Package com.stripe.param.checkout
Class SessionCreateParams.ConsentCollection
- java.lang.Object
-
- com.stripe.param.checkout.SessionCreateParams.ConsentCollection
-
- Enclosing class:
- SessionCreateParams
public static class SessionCreateParams.ConsentCollection extends java.lang.Object
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.AutomaticTax.extraParams
for the field documentation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SessionCreateParams.ConsentCollection.Builder
static class
SessionCreateParams.ConsentCollection.Promotions
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SessionCreateParams.ConsentCollection.Builder
builder()
java.util.Map<java.lang.String,java.lang.Object>
getExtraParams()
Map of extra parameters for custom features not available in this client library.SessionCreateParams.ConsentCollection.Promotions
getPromotions()
If set toauto
, enables the collection of customer consent for promotional communications.
-
-
-
Method Detail
-
builder
public static SessionCreateParams.ConsentCollection.Builder builder()
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
-
getPromotions
public SessionCreateParams.ConsentCollection.Promotions getPromotions()
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.
-
-