pub struct CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures {
pub payment_method_allow_redisplay_filters: Option<Vec<CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesPaymentMethodAllowRedisplayFilters>>,
pub payment_method_remove: Option<CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesPaymentMethodRemove>,
}Expand description
This hash contains the features the customer sheet supports.
Fields§
§payment_method_allow_redisplay_filters: Option<Vec<CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesPaymentMethodAllowRedisplayFilters>>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<CustomerSessionResourceComponentsResourceCustomerSheetResourceFeaturesPaymentMethodRemove>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.
Trait Implementations§
Source§impl Clone for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl Clone for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
Source§fn clone(
&self,
) -> CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
fn clone( &self, ) -> CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
Returns a duplicate 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 FromValueOpt for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl FromValueOpt for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl RefUnwindSafe for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl Send for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl Sync for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl Unpin for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
impl UnwindSafe for CustomerSessionResourceComponentsResourceCustomerSheetResourceFeatures
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