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
public static class Session.Consent extends StripeObject
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description Consent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getPromotions()
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.int
hashCode()
void
setPromotions(java.lang.String promotions)
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getPromotions
public java.lang.String getPromotions()
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.One of
opt_in
, oropt_out
.
-
setPromotions
public void setPromotions(java.lang.String promotions)
Ifopt_in
, the customer consents to receiving promotional communications from the merchant about this Checkout Session.One of
opt_in
, oropt_out
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-