Package com.stripe.param
Class CustomerSessionCreateParams.Components.PaymentElement.Features.Builder
java.lang.Object
com.stripe.param.CustomerSessionCreateParams.Components.PaymentElement.Features.Builder
- Enclosing class:
- CustomerSessionCreateParams.Components.PaymentElement.Features
public static class CustomerSessionCreateParams.Components.PaymentElement.Features.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.setPaymentMethodRemove
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the Payment Element allows the removal of a saved payment method.setPaymentMethodSave
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave paymentMethodSave) Controls whether the Payment Element offers to save a new payment method.setPaymentMethodSetAsDefault
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSetAsDefault paymentMethodSetAsDefault) Controls whether the Payment Element offers to set a payment method as the default.setPaymentMethodUpdate
(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodUpdate paymentMethodUpdate) Controls whether the Payment Element allows the updating of a saved payment method.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public CustomerSessionCreateParams.Components.PaymentElement.Features.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. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.extraParams
for the field documentation. -
putAllExtraParam
public CustomerSessionCreateParams.Components.PaymentElement.Features.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. SeeCustomerSessionCreateParams.Components.PaymentElement.Features.extraParams
for the field documentation. -
setPaymentMethodRemove
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodRemove(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the Payment Element allows the removal of a saved payment method. -
setPaymentMethodSave
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodSave(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave paymentMethodSave) Controls whether the Payment Element offers to save a new payment method. -
setPaymentMethodSetAsDefault
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodSetAsDefault(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSetAsDefault paymentMethodSetAsDefault) Controls whether the Payment Element offers to set a payment method as the default. -
setPaymentMethodUpdate
public CustomerSessionCreateParams.Components.PaymentElement.Features.Builder setPaymentMethodUpdate(CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodUpdate paymentMethodUpdate) Controls whether the Payment Element allows the updating of a saved payment method.
-