pub struct CreateCustomerSessionComponentsCustomerSheetFeatures {
pub payment_method_allow_redisplay_filters: Option<Vec<CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodAllowRedisplayFilters>>,
pub payment_method_remove: Option<CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove>,
}Expand description
This hash defines whether the customer sheet supports certain features.
Fields§
§payment_method_allow_redisplay_filters: Option<Vec<CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodAllowRedisplayFilters>>A list of allow_redisplay values that controls which saved payment methods the customer sheet displays by filtering to only show payment methods with an allow_redisplay value that is present in this list.
If not specified, defaults to [“always”]. In order to display all saved payment methods, specify [“always”, “limited”, “unspecified”].
payment_method_remove: Option<CreateCustomerSessionComponentsCustomerSheetFeaturesPaymentMethodRemove>Controls whether the customer sheet displays the option to remove a saved payment method.“
Allowing buyers to remove their saved payment methods impacts subscriptions that depend on that payment method.
Removing the payment method detaches the customer object from that PaymentMethod.
Implementations§
Trait Implementations§
Source§impl Clone for CreateCustomerSessionComponentsCustomerSheetFeatures
impl Clone for CreateCustomerSessionComponentsCustomerSheetFeatures
Source§fn clone(&self) -> CreateCustomerSessionComponentsCustomerSheetFeatures
fn clone(&self) -> CreateCustomerSessionComponentsCustomerSheetFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl PartialEq for CreateCustomerSessionComponentsCustomerSheetFeatures
impl PartialEq for CreateCustomerSessionComponentsCustomerSheetFeatures
Source§fn eq(
&self,
other: &CreateCustomerSessionComponentsCustomerSheetFeatures,
) -> bool
fn eq( &self, other: &CreateCustomerSessionComponentsCustomerSheetFeatures, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CreateCustomerSessionComponentsCustomerSheetFeatures
impl StructuralPartialEq for CreateCustomerSessionComponentsCustomerSheetFeatures
Auto Trait Implementations§
impl Freeze for CreateCustomerSessionComponentsCustomerSheetFeatures
impl RefUnwindSafe for CreateCustomerSessionComponentsCustomerSheetFeatures
impl Send for CreateCustomerSessionComponentsCustomerSheetFeatures
impl Sync for CreateCustomerSessionComponentsCustomerSheetFeatures
impl Unpin for CreateCustomerSessionComponentsCustomerSheetFeatures
impl UnsafeUnpin for CreateCustomerSessionComponentsCustomerSheetFeatures
impl UnwindSafe for CreateCustomerSessionComponentsCustomerSheetFeatures
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