Package com.stripe.param
Class SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder
java.lang.Object
com.stripe.param.SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder
- Enclosing class:
- SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription
public static class SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder
extends Object
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.Required. Unit of time between subscription charges.setIntervalCount
(Long intervalCount) The number of intervals (specified in theinterval
attribute) between subscription charges.Name for subscription.setNextBilling
(SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) Required. Describes the upcoming charge for this subscription.setReference
(String reference) Required. A non-customer-facing reference to correlate subscription charges in the Klarna app.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder putExtraParam(String key, 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. SeeSetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
putAllExtraParam
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder putAllExtraParam(Map<String, 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. SeeSetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
setInterval
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder setInterval(SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Interval interval) Required. Unit of time between subscription charges. -
setIntervalCount
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder setIntervalCount(Long intervalCount) The number of intervals (specified in theinterval
attribute) between subscription charges. For example,interval=month
andinterval_count=3
charges every 3 months. -
setName
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder setName(String name) Name for subscription. -
setNextBilling
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder setNextBilling(SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) Required. Describes the upcoming charge for this subscription. -
setReference
public SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Builder setReference(String reference) Required. A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
-