Package com.stripe.param
Class PaymentLinkUpdateParams.SubscriptionData.Builder
java.lang.Object
com.stripe.param.PaymentLinkUpdateParams.SubscriptionData.Builder
- Enclosing class:
- PaymentLinkUpdateParams.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.All invoices will be billed using the specified settings.setMetadata
(EmptyParam metadata) Set of key-value pairs that will declaratively set metadata on Subscriptions generated from this payment link.setMetadata
(Map<String, String> metadata) Set of key-value pairs that will declaratively set metadata on Subscriptions generated from this payment link.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.setTrialSettings
(EmptyParam trialSettings) Settings related to subscription trials.Settings related to subscription trials.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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. SeePaymentLinkUpdateParams.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. SeePaymentLinkUpdateParams.SubscriptionData.extraParams
for the field documentation. -
setInvoiceSettings
public PaymentLinkUpdateParams.SubscriptionData.Builder setInvoiceSettings(PaymentLinkUpdateParams.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. SeePaymentLinkUpdateParams.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. SeePaymentLinkUpdateParams.SubscriptionData.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that will declaratively set metadata on Subscriptions generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. -
setMetadata
Set of key-value pairs that will declaratively set metadata on Subscriptions generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. -
setTrialPeriodDays
Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. -
setTrialPeriodDays
public PaymentLinkUpdateParams.SubscriptionData.Builder setTrialPeriodDays(EmptyParam trialPeriodDays) 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 PaymentLinkUpdateParams.SubscriptionData.Builder setTrialSettings(PaymentLinkUpdateParams.SubscriptionData.TrialSettings trialSettings) Settings related to subscription trials. -
setTrialSettings
Settings related to subscription trials.
-