Struct stripe::generated::checkout::checkout_session::CreateCheckoutSessionConsentCollection
source · pub struct CreateCheckoutSessionConsentCollection {
pub promotions: Option<CreateCheckoutSessionConsentCollectionPromotions>,
pub terms_of_service: Option<CreateCheckoutSessionConsentCollectionTermsOfService>,
}Fields§
§promotions: Option<CreateCheckoutSessionConsentCollectionPromotions>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<CreateCheckoutSessionConsentCollectionTermsOfService>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 CreateCheckoutSessionConsentCollection
impl Clone for CreateCheckoutSessionConsentCollection
source§fn clone(&self) -> CreateCheckoutSessionConsentCollection
fn clone(&self) -> CreateCheckoutSessionConsentCollection
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 CreateCheckoutSessionConsentCollection
impl Default for CreateCheckoutSessionConsentCollection
source§fn default() -> CreateCheckoutSessionConsentCollection
fn default() -> CreateCheckoutSessionConsentCollection
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionConsentCollection
impl<'de> Deserialize<'de> for CreateCheckoutSessionConsentCollection
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