pub struct CreateSubscriptionPaymentSettings {
pub payment_method_options: Option<CreateSubscriptionPaymentSettingsPaymentMethodOptions>,
pub payment_method_types: Option<Vec<CreateSubscriptionPaymentSettingsPaymentMethodTypes>>,
pub save_default_payment_method: Option<CreateSubscriptionPaymentSettingsSaveDefaultPaymentMethod>,
}
Expand description
Payment settings to pass to invoices created by the subscription.
Fields§
§payment_method_options: Option<CreateSubscriptionPaymentSettingsPaymentMethodOptions>
Payment-method-specific configuration to provide to invoices created by the subscription.
payment_method_types: Option<Vec<CreateSubscriptionPaymentSettingsPaymentMethodTypes>>
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. Should not be specified with payment_method_configuration.
save_default_payment_method: Option<CreateSubscriptionPaymentSettingsSaveDefaultPaymentMethod>
Configure whether Stripe updates subscription.default_payment_method
when payment succeeds.
Defaults to off
if unspecified.
Implementations§
Trait Implementations§
Source§impl Clone for CreateSubscriptionPaymentSettings
impl Clone for CreateSubscriptionPaymentSettings
Source§fn clone(&self) -> CreateSubscriptionPaymentSettings
fn clone(&self) -> CreateSubscriptionPaymentSettings
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 moreAuto Trait Implementations§
impl Freeze for CreateSubscriptionPaymentSettings
impl RefUnwindSafe for CreateSubscriptionPaymentSettings
impl Send for CreateSubscriptionPaymentSettings
impl Sync for CreateSubscriptionPaymentSettings
impl Unpin for CreateSubscriptionPaymentSettings
impl UnwindSafe for CreateSubscriptionPaymentSettings
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