pub struct CreatePaymentLinkConsentCollection {
pub payment_method_reuse_agreement: Option<CreatePaymentLinkConsentCollectionPaymentMethodReuseAgreement>,
pub promotions: Option<CreatePaymentLinkConsentCollectionPromotions>,
pub terms_of_service: Option<CreatePaymentLinkConsentCollectionTermsOfService>,
}
Fields§
§payment_method_reuse_agreement: Option<CreatePaymentLinkConsentCollectionPaymentMethodReuseAgreement>
Determines the display of payment method reuse agreement text in the UI.
If set to hidden
, it will hide legal text related to the reuse of a payment method.
promotions: Option<CreatePaymentLinkConsentCollectionPromotions>
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.
terms_of_service: Option<CreatePaymentLinkConsentCollectionTermsOfService>
If set to required
, it requires customers to check a terms of service checkbox before being able to pay.
There must be a valid terms of service URL set in your Dashboard settings.
Trait Implementations§
source§impl Clone for CreatePaymentLinkConsentCollection
impl Clone for CreatePaymentLinkConsentCollection
source§fn clone(&self) -> CreatePaymentLinkConsentCollection
fn clone(&self) -> CreatePaymentLinkConsentCollection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for CreatePaymentLinkConsentCollection
impl Default for CreatePaymentLinkConsentCollection
source§fn default() -> CreatePaymentLinkConsentCollection
fn default() -> CreatePaymentLinkConsentCollection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreatePaymentLinkConsentCollection
impl<'de> Deserialize<'de> for CreatePaymentLinkConsentCollection
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for CreatePaymentLinkConsentCollection
impl Send for CreatePaymentLinkConsentCollection
impl Sync for CreatePaymentLinkConsentCollection
impl Unpin for CreatePaymentLinkConsentCollection
impl UnwindSafe for CreatePaymentLinkConsentCollection
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more