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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
If set tohidden
, it will hide legal text related to the reuse of a payment method.If set toauto
, enables the collection of customer consent for promotional communications.If set torequired
, it requires customers to accept the terms of service before being able to pay.int
hashCode()
void
setPaymentMethodReuseAgreement
(Session.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) If set tohidden
, it will hide legal text related to the reuse of a payment method.void
setPromotions
(String promotions) If set toauto
, enables the collection of customer consent for promotional communications.void
setTermsOfService
(String termsOfService) If set torequired
, it requires customers to accept the terms of service before being able to pay.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ConsentCollection
public ConsentCollection()
-
-
Method Details
-
getPaymentMethodReuseAgreement
If set tohidden
, it will hide legal text related to the reuse of a payment method. -
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
. -
getTermsOfService
If set torequired
, it requires customers to accept the terms of service before being able to pay.One of
none
, orrequired
. -
setPaymentMethodReuseAgreement
public void setPaymentMethodReuseAgreement(Session.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) If set tohidden
, it will hide legal text related to the reuse of a payment method. -
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
. -
setTermsOfService
If set torequired
, it requires customers to accept the terms of service before being able to pay.One of
none
, orrequired
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-