Package com.stripe.param.checkout
Class SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Builder
- Enclosing class:
- SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement
public static class SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.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.Required. Determines the position and visibility of the payment method reuse agreement in the UI.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.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. SeeSessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.extraParamsfor the field documentation. -
putAllExtraParam
public SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.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. SeeSessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.extraParamsfor the field documentation. -
setPosition
public SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Builder setPosition(SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Position position) Required. Determines the position and visibility of the payment method reuse agreement in the UI. When set toauto, Stripe's defaults will be used. When set tohidden, the payment method reuse agreement text will always be hidden in the UI.
-