Package com.stripe.param
Class OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder
public static class OrderCreateParams.Payment.Settings.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.setInterval
(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Interval interval) 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
(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) 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 OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
putAllExtraParam
public OrderCreateParams.Payment.Settings.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. SeeOrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
setInterval
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setInterval(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Interval interval) Required. Unit of time between subscription charges. -
setIntervalCount
public OrderCreateParams.Payment.Settings.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 OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setName(String name) Name for subscription. -
setNextBilling
public OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setNextBilling(OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) Describes the upcoming charge for this subscription. -
setReference
public OrderCreateParams.Payment.Settings.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.
-