pub struct UpdateSubscriptionPaymentSettings {
pub payment_method_options: Option<UpdateSubscriptionPaymentSettingsPaymentMethodOptions>,
pub payment_method_types: Option<Vec<UpdateSubscriptionPaymentSettingsPaymentMethodTypes>>,
pub save_default_payment_method: Option<UpdateSubscriptionPaymentSettingsSaveDefaultPaymentMethod>,
}
Fields§
§payment_method_options: Option<UpdateSubscriptionPaymentSettingsPaymentMethodOptions>
Payment-method-specific configuration to provide to invoices created by the subscription.
payment_method_types: Option<Vec<UpdateSubscriptionPaymentSettingsPaymentMethodTypes>>
The list of payment method types (e.g.
card) to provide to the invoice’s PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice’s default payment method, the subscription’s default payment method, the customer’s default payment method, and your invoice template settings.
save_default_payment_method: Option<UpdateSubscriptionPaymentSettingsSaveDefaultPaymentMethod>
Either off
, or on_subscription
.
With on_subscription
Stripe updates subscription.default_payment_method
when a subscription payment succeeds.
Trait Implementations§
source§impl Clone for UpdateSubscriptionPaymentSettings
impl Clone for UpdateSubscriptionPaymentSettings
source§fn clone(&self) -> UpdateSubscriptionPaymentSettings
fn clone(&self) -> UpdateSubscriptionPaymentSettings
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 UpdateSubscriptionPaymentSettings
impl Default for UpdateSubscriptionPaymentSettings
source§fn default() -> UpdateSubscriptionPaymentSettings
fn default() -> UpdateSubscriptionPaymentSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UpdateSubscriptionPaymentSettings
impl<'de> Deserialize<'de> for UpdateSubscriptionPaymentSettings
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 UpdateSubscriptionPaymentSettings
impl Send for UpdateSubscriptionPaymentSettings
impl Sync for UpdateSubscriptionPaymentSettings
impl Unpin for UpdateSubscriptionPaymentSettings
impl UnwindSafe for UpdateSubscriptionPaymentSettings
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