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
For more details about Consent, please refer to the API
Reference.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanIfopt_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.inthashCode()voidsetPromotions(String promotions) Ifopt_in, the customer consents to receiving promotional communications from the merchant about this Checkout Session.voidsetTermsOfService(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, 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()
-