Package com.stripe.param
Class OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder
java.lang.Object
com.stripe.param.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder
public static class OrderUpdateParams.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
(OrderUpdateParams.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.setName
(EmptyParam name) Name for subscription.Name for subscription.setNextBilling
(OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) Describes the upcoming charge for this subscription.setReference
(EmptyParam reference) Required. A non-customer-facing reference to correlate subscription charges in the Klarna app.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 OrderUpdateParams.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. SeeOrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
putAllExtraParam
public OrderUpdateParams.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. SeeOrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.extraParams
for the field documentation. -
setInterval
public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setInterval(OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Interval interval) Required. Unit of time between subscription charges. -
setIntervalCount
public OrderUpdateParams.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 OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setName(String name) Name for subscription. -
setName
public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setName(EmptyParam name) Name for subscription. -
setNextBilling
public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setNextBilling(OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling nextBilling) Describes the upcoming charge for this subscription. -
setReference
public OrderUpdateParams.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. -
setReference
public OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Builder setReference(EmptyParam reference) Required. A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
-