Package com.stripe.param.checkout
Class SessionCreateParams.ConsentCollection.Builder
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.ConsentCollection.Builder
-
- Enclosing class:
- SessionCreateParams.ConsentCollection
public static class SessionCreateParams.ConsentCollection.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionCreateParams.ConsentCollection
build()
Finalize and obtain parameter instance from this builder.SessionCreateParams.ConsentCollection.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.SessionCreateParams.ConsentCollection.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.SessionCreateParams.ConsentCollection.Builder
setPromotions(SessionCreateParams.ConsentCollection.Promotions promotions)
If set toauto
, enables the collection of customer consent for promotional communications.
-
-
-
Method Detail
-
build
public SessionCreateParams.ConsentCollection build()
Finalize and obtain parameter instance from this builder.
-
putExtraParam
public SessionCreateParams.ConsentCollection.Builder putExtraParam(java.lang.String key, java.lang.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.extraParams
for the field documentation.
-
putAllExtraParam
public SessionCreateParams.ConsentCollection.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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.extraParams
for the field documentation.
-
setPromotions
public SessionCreateParams.ConsentCollection.Builder setPromotions(SessionCreateParams.ConsentCollection.Promotions promotions)
If set toauto
, enables the collection of customer consent for promotional communications. The Checkout Session will determine whether to display an option to opt into promotional communication from the merchant depending on the customer's locale. Only available to US merchants.
-
-