Class Session.ConsentCollection

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.checkout.Session.ConsentCollection
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Session

public static class Session.ConsentCollection extends StripeObject
  • Constructor Details

    • ConsentCollection

      public ConsentCollection()
  • Method Details

    • getPromotions

      public String getPromotions()
      If set to auto, 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, or none.

    • setPromotions

      public void setPromotions(String promotions)
      If set to auto, 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, or none.

    • 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