Package com.stripe.param
Class CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder
java.lang.Object
com.stripe.param.CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder
- Enclosing class:
- CustomerSessionCreateParams.Components.CustomerSheet.Features
public static class CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllPaymentMethodAllowRedisplayFilter(List<CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter> elements) Add all elements to `paymentMethodAllowRedisplayFilters` list.addPaymentMethodAllowRedisplayFilter(CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter element) Add an element to `paymentMethodAllowRedisplayFilters` 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.setPaymentMethodRemove(CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the customer sheet displays the option to remove a saved payment method."
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public CustomerSessionCreateParams.Components.CustomerSheet.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.CustomerSheet.Features.extraParamsfor the field documentation. -
putAllExtraParam
public CustomerSessionCreateParams.Components.CustomerSheet.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.CustomerSheet.Features.extraParamsfor the field documentation. -
addPaymentMethodAllowRedisplayFilter
public CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder addPaymentMethodAllowRedisplayFilter(CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter element) Add an element to `paymentMethodAllowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerSessionCreateParams.Components.CustomerSheet.Features.paymentMethodAllowRedisplayFiltersfor the field documentation. -
addAllPaymentMethodAllowRedisplayFilter
public CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder addAllPaymentMethodAllowRedisplayFilter(List<CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter> elements) Add all elements to `paymentMethodAllowRedisplayFilters` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeCustomerSessionCreateParams.Components.CustomerSheet.Features.paymentMethodAllowRedisplayFiltersfor the field documentation. -
setPaymentMethodRemove
public CustomerSessionCreateParams.Components.CustomerSheet.Features.Builder setPaymentMethodRemove(CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodRemove paymentMethodRemove) Controls whether the customer sheet displays the option to remove a saved payment method."Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method. Removing the payment method detaches the
customerobject from that PaymentMethod.
-