Package com.stripe.model.checkout
Class Session.ConsentCollection
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.ConsentCollection
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
Session
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If set toauto
, enables the collection of customer consent for promotional communications.int
hashCode()
void
setPromotions
(String promotions) If set toauto
, enables the collection of customer consent for promotional communications.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ConsentCollection
public ConsentCollection()
-
-
Method Details
-
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.One of
auto
, ornone
. -
setPromotions
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.One of
auto
, ornone
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-