pub struct PaymentPagesCheckoutSessionConsentCollection {
pub promotions: Option<PaymentPagesCheckoutSessionConsentCollectionPromotions>,
pub terms_of_service: Option<PaymentPagesCheckoutSessionConsentCollectionTermsOfService>,
}
Fields§
§promotions: Option<PaymentPagesCheckoutSessionConsentCollectionPromotions>
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<PaymentPagesCheckoutSessionConsentCollectionTermsOfService>
If set to required
, it requires customers to accept the terms of service before being able to pay.
Trait Implementations§
source§impl Clone for PaymentPagesCheckoutSessionConsentCollection
impl Clone for PaymentPagesCheckoutSessionConsentCollection
source§fn clone(&self) -> PaymentPagesCheckoutSessionConsentCollection
fn clone(&self) -> PaymentPagesCheckoutSessionConsentCollection
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 PaymentPagesCheckoutSessionConsentCollection
impl Default for PaymentPagesCheckoutSessionConsentCollection
source§fn default() -> PaymentPagesCheckoutSessionConsentCollection
fn default() -> PaymentPagesCheckoutSessionConsentCollection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PaymentPagesCheckoutSessionConsentCollection
impl<'de> Deserialize<'de> for PaymentPagesCheckoutSessionConsentCollection
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