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
Get expanded account.
  • Constructor Details

    • Consent

      public Consent()
  • Method Details

    • getPromotions

      public String getPromotions()
      If opt_in, the customer consents to receiving promotional communications from the merchant about this Checkout Session.

      One of opt_in, or opt_out.

    • getTermsOfService

      public String getTermsOfService()
      If accepted, the customer in this Checkout Session has agreed to the merchant's terms of service.

      Equal to accepted.

    • setPromotions

      public void setPromotions(String promotions)
      If opt_in, the customer consents to receiving promotional communications from the merchant about this Checkout Session.

      One of opt_in, or opt_out.

    • setTermsOfService

      public void setTermsOfService(String termsOfService)
      If accepted, the customer in this Checkout Session has agreed to the merchant's terms of service.

      Equal to accepted.

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object