Class PaymentLink.ConsentCollection

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

public static class PaymentLink.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.

      One of auto, or none.

    • getTermsOfService

      public String getTermsOfService()
      If set to required, it requires cutomers to accept the terms of service before being able to pay. If set to none, customers won't be shown a checkbox to accept the terms of service.

      One of none, or required.

    • setPromotions

      public void setPromotions(String promotions)
      If set to auto, enables the collection of customer consent for promotional communications.

      One of auto, or none.

    • setTermsOfService

      public void setTermsOfService(String termsOfService)
      If set to required, it requires cutomers to accept the terms of service before being able to pay. If set to none, customers won't be shown a checkbox to accept the terms of service.

      One of none, or required.

    • 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