Package com.stripe.model.checkout
Class Session.Consent
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.Consent
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Session
Get expanded
account
.-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.Ifaccepted
, the customer in this Checkout Session has agreed to the merchant's terms of service.int
hashCode()
void
setPromotions
(String promotions) Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.void
setTermsOfService
(String termsOfService) Ifaccepted
, the customer in this Checkout Session has agreed to the merchant's terms of service.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Consent
public Consent()
-
-
Method Details
-
getPromotions
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.One of
opt_in
, oropt_out
. -
getTermsOfService
Ifaccepted
, the customer in this Checkout Session has agreed to the merchant's terms of service.Equal to
accepted
. -
setPromotions
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.One of
opt_in
, oropt_out
. -
setTermsOfService
Ifaccepted
, the customer in this Checkout Session has agreed to the merchant's terms of service.Equal to
accepted
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-