pub struct CreateInvoicePaymentSettings {
pub default_mandate: Option<String>,
pub payment_method_options: Option<CreateInvoicePaymentSettingsPaymentMethodOptions>,
pub payment_method_types: Option<Vec<CreateInvoicePaymentSettingsPaymentMethodTypes>>,
}
Expand description
Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
Fields§
§default_mandate: Option<String>
ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice’s default_payment_method or default_source, if set.
payment_method_options: Option<CreateInvoicePaymentSettingsPaymentMethodOptions>
Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
payment_method_types: Option<Vec<CreateInvoicePaymentSettingsPaymentMethodTypes>>
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.
Implementations§
Trait Implementations§
Source§impl Clone for CreateInvoicePaymentSettings
impl Clone for CreateInvoicePaymentSettings
Source§fn clone(&self) -> CreateInvoicePaymentSettings
fn clone(&self) -> CreateInvoicePaymentSettings
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 Debug for CreateInvoicePaymentSettings
impl Debug for CreateInvoicePaymentSettings
Auto Trait Implementations§
impl Freeze for CreateInvoicePaymentSettings
impl RefUnwindSafe for CreateInvoicePaymentSettings
impl Send for CreateInvoicePaymentSettings
impl Sync for CreateInvoicePaymentSettings
impl Unpin for CreateInvoicePaymentSettings
impl UnwindSafe for CreateInvoicePaymentSettings
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