Package com.stripe.param
Class QuoteCreateParams.SubscriptionData.Builder
java.lang.Object
com.stripe.param.QuoteCreateParams.SubscriptionData.Builder
- Enclosing class:
- QuoteCreateParams.SubscriptionData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.Controls how prorations and invoices for subscriptions are calculated and orchestrated.setDescription
(String description) The subscription's description, meant to be displayable to the customer.setEffectiveDate
(EmptyParam effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.setEffectiveDate
(QuoteCreateParams.SubscriptionData.EffectiveDate effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.setEffectiveDate
(Long effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted.setTrialPeriodDays
(EmptyParam trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.setTrialPeriodDays
(Long trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingMode
public QuoteCreateParams.SubscriptionData.Builder setBillingMode(QuoteCreateParams.SubscriptionData.BillingMode billingMode) Controls how prorations and invoices for subscriptions are calculated and orchestrated. -
setDescription
The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
setEffectiveDate
public QuoteCreateParams.SubscriptionData.Builder setEffectiveDate(QuoteCreateParams.SubscriptionData.EffectiveDate effectiveDate) When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. Theeffective_date
is ignored if it is in the past when the quote is accepted. -
setEffectiveDate
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. Theeffective_date
is ignored if it is in the past when the quote is accepted. -
setEffectiveDate
When creating a new subscription, the date of which the subscription schedule will start after the quote is accepted. Theeffective_date
is ignored if it is in the past when the quote is accepted. -
putExtraParam
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. SeeQuoteCreateParams.SubscriptionData.extraParams
for the field documentation. -
putAllExtraParam
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. SeeQuoteCreateParams.SubscriptionData.extraParams
for the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.SubscriptionData.metadata
for the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteCreateParams.SubscriptionData.metadata
for the field documentation. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time.
-