Package com.stripe.param
Class QuoteUpdateParams.SubscriptionData.Builder
- java.lang.Object
-
- com.stripe.param.QuoteUpdateParams.SubscriptionData.Builder
-
- Enclosing class:
- QuoteUpdateParams.SubscriptionData
public static class QuoteUpdateParams.SubscriptionData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuoteUpdateParams.SubscriptionData
build()
Finalize and obtain parameter instance from this builder.QuoteUpdateParams.SubscriptionData.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.QuoteUpdateParams.SubscriptionData.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.QuoteUpdateParams.SubscriptionData.Builder
setEffectiveDate(EmptyParam effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.QuoteUpdateParams.SubscriptionData.Builder
setEffectiveDate(QuoteUpdateParams.SubscriptionData.EffectiveDate effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.QuoteUpdateParams.SubscriptionData.Builder
setEffectiveDate(java.lang.Long effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.QuoteUpdateParams.SubscriptionData.Builder
setTrialPeriodDays(EmptyParam trialPeriodDays)
Integer representing the number of trial period days before the customer is charged for the first time.QuoteUpdateParams.SubscriptionData.Builder
setTrialPeriodDays(java.lang.Long trialPeriodDays)
Integer representing the number of trial period days before the customer is charged for the first time.
-
-
-
Method Detail
-
build
public QuoteUpdateParams.SubscriptionData build()
Finalize and obtain parameter instance from this builder.
-
setEffectiveDate
public QuoteUpdateParams.SubscriptionData.Builder setEffectiveDate(QuoteUpdateParams.SubscriptionData.EffectiveDate effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special valuecurrent_period_end
can be provided to update a subscription at the end of its current period. Theeffective_date
is ignored if it is in the past when the quote is accepted.
-
setEffectiveDate
public QuoteUpdateParams.SubscriptionData.Builder setEffectiveDate(java.lang.Long effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special valuecurrent_period_end
can be provided to update a subscription at the end of its current period. Theeffective_date
is ignored if it is in the past when the quote is accepted.
-
setEffectiveDate
public QuoteUpdateParams.SubscriptionData.Builder setEffectiveDate(EmptyParam effectiveDate)
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. When updating a subscription, the date of which the subscription will be updated using a subscription schedule. The special valuecurrent_period_end
can be provided to update a subscription at the end of its current period. Theeffective_date
is ignored if it is in the past when the quote is accepted.
-
putExtraParam
public QuoteUpdateParams.SubscriptionData.Builder putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.SubscriptionData.extraParams
for the field documentation.
-
putAllExtraParam
public QuoteUpdateParams.SubscriptionData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.SubscriptionData.extraParams
for the field documentation.
-
setTrialPeriodDays
public QuoteUpdateParams.SubscriptionData.Builder setTrialPeriodDays(java.lang.Long trialPeriodDays)
Integer representing the number of trial period days before the customer is charged for the first time.
-
setTrialPeriodDays
public QuoteUpdateParams.SubscriptionData.Builder setTrialPeriodDays(EmptyParam trialPeriodDays)
Integer representing the number of trial period days before the customer is charged for the first time.
-
-