Package com.stripe.model
Class PaymentLink.ConsentCollection
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PaymentLink.ConsentCollection
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PaymentLink
For more details about ConsentCollection, please refer to the API Reference.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about PaymentMethodReuseAgreement, 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 booleanbooleanSettings related to the payment method reuse text shown in the Checkout UI.If set toauto, enables the collection of customer consent for promotional communications.If set torequired, it requires cutomers to accept the terms of service before being able to pay.inthashCode()voidsetPaymentMethodReuseAgreement(PaymentLink.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) Settings related to the payment method reuse text shown in the Checkout UI.voidsetPromotions(String promotions) If set toauto, enables the collection of customer consent for promotional communications.voidsetTermsOfService(String termsOfService) If set torequired, it requires cutomers to accept the terms of service before being able to pay.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
ConsentCollection
public ConsentCollection()
-
-
Method Details
-
getPaymentMethodReuseAgreement
Settings related to the payment method reuse text shown in the Checkout UI. -
getPromotions
If set toauto, enables the collection of customer consent for promotional communications.One of
auto, ornone. -
getTermsOfService
If set torequired, it requires cutomers to accept the terms of service before being able to pay. If set tonone, customers won't be shown a checkbox to accept the terms of service.One of
none, orrequired. -
setPaymentMethodReuseAgreement
public void setPaymentMethodReuseAgreement(PaymentLink.ConsentCollection.PaymentMethodReuseAgreement paymentMethodReuseAgreement) Settings related to the payment method reuse text shown in the Checkout UI. -
setPromotions
If set toauto, enables the collection of customer consent for promotional communications.One of
auto, ornone. -
setTermsOfService
If set torequired, it requires cutomers to accept the terms of service before being able to pay. If set tonone, customers won't be shown a checkbox to accept the terms of service.One of
none, orrequired. -
equals
-
canEqual
-
hashCode
public int hashCode()
-