Package com.stripe.param
Class SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder
java.lang.Object
com.stripe.param.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder
- Enclosing class:
- SetupIntentConfirmParams.PaymentMethodOptions.Klarna
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllSubscription
(List<SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription> elements) Add all elements to `subscriptions` list.Add an element to `subscriptions` list.build()
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.setCurrency
(String currency) The currency of the SetupIntent.On-demand details if setting up a payment method for on-demand payments.setPreferredLocale
(SetupIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) Preferred language of the Klarna authorization page that the customer is redirected to.setSubscriptions
(EmptyParam subscriptions) Subscription details if setting up or charging a subscription.setSubscriptions
(List<SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription> subscriptions) Subscription details if setting up or charging a subscription.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
The currency of the SetupIntent. Three letter ISO currency code. -
putExtraParam
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.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. SeeSetupIntentConfirmParams.PaymentMethodOptions.Klarna.extraParams
for the field documentation. -
putAllExtraParam
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.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. SeeSetupIntentConfirmParams.PaymentMethodOptions.Klarna.extraParams
for the field documentation. -
setOnDemand
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder setOnDemand(SetupIntentConfirmParams.PaymentMethodOptions.Klarna.OnDemand onDemand) On-demand details if setting up a payment method for on-demand payments. -
setPreferredLocale
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder setPreferredLocale(SetupIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale preferredLocale) Preferred language of the Klarna authorization page that the customer is redirected to. -
addSubscription
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder addSubscription(SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription element) Add an element to `subscriptions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSetupIntentConfirmParams.PaymentMethodOptions.Klarna.subscriptions
for the field documentation. -
addAllSubscription
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder addAllSubscription(List<SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription> elements) Add all elements to `subscriptions` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSetupIntentConfirmParams.PaymentMethodOptions.Klarna.subscriptions
for the field documentation. -
setSubscriptions
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder setSubscriptions(EmptyParam subscriptions) Subscription details if setting up or charging a subscription. -
setSubscriptions
public SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Builder setSubscriptions(List<SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription> subscriptions) Subscription details if setting up or charging a subscription.
-