Package com.stripe.param
Class PaymentLinkCreateParams.SubscriptionData.Builder
java.lang.Object
com.stripe.param.PaymentLinkCreateParams.SubscriptionData.Builder
- Enclosing class:
- PaymentLinkCreateParams.SubscriptionData
-
Constructor Summary
-
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.setDescription
(String description) The subscription's description, meant to be displayable to the customer.All invoices will be billed using the specified settings.setTrialPeriodDays
(Long trialPeriodDays) Integer representing the number of trial period days before the customer is charged for the first time.Settings related to subscription trials.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. -
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. SeePaymentLinkCreateParams.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. SeePaymentLinkCreateParams.SubscriptionData.extraParams
for the field documentation. -
setInvoiceSettings
public PaymentLinkCreateParams.SubscriptionData.Builder setInvoiceSettings(PaymentLinkCreateParams.SubscriptionData.InvoiceSettings invoiceSettings) All invoices will be billed using the specified settings. -
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. SeePaymentLinkCreateParams.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. SeePaymentLinkCreateParams.SubscriptionData.metadata
for the field documentation. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. -
setTrialSettings
public PaymentLinkCreateParams.SubscriptionData.Builder setTrialSettings(PaymentLinkCreateParams.SubscriptionData.TrialSettings trialSettings) Settings related to subscription trials.
-