pub struct CreateCheckoutSessionConsentCollection {
pub payment_method_reuse_agreement: Option<CreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement>,
pub promotions: Option<CreateCheckoutSessionConsentCollectionPromotions>,
pub terms_of_service: Option<CreateCheckoutSessionConsentCollectionTermsOfService>,
}
Fields§
§payment_method_reuse_agreement: Option<CreateCheckoutSessionConsentCollectionPaymentMethodReuseAgreement>
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<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
Auto Trait Implementations§
impl RefUnwindSafe for CreateCheckoutSessionConsentCollection
impl Send for CreateCheckoutSessionConsentCollection
impl Sync for CreateCheckoutSessionConsentCollection
impl Unpin for CreateCheckoutSessionConsentCollection
impl UnwindSafe for CreateCheckoutSessionConsentCollection
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