pub struct InvoicesPaymentSettings {
pub default_mandate: Option<String>,
pub payment_method_options: Option<InvoicesPaymentMethodOptions>,
pub payment_method_types: Option<Vec<InvoicesPaymentSettingsPaymentMethodTypes>>,
}
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<InvoicesPaymentMethodOptions>
Payment-method-specific configuration to provide to the invoice’s PaymentIntent.
payment_method_types: Option<Vec<InvoicesPaymentSettingsPaymentMethodTypes>>
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.
Trait Implementations§
source§impl Clone for InvoicesPaymentSettings
impl Clone for InvoicesPaymentSettings
source§fn clone(&self) -> InvoicesPaymentSettings
fn clone(&self) -> InvoicesPaymentSettings
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 Debug for InvoicesPaymentSettings
impl Debug for InvoicesPaymentSettings
source§impl Default for InvoicesPaymentSettings
impl Default for InvoicesPaymentSettings
source§fn default() -> InvoicesPaymentSettings
fn default() -> InvoicesPaymentSettings
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InvoicesPaymentSettings
impl<'de> Deserialize<'de> for InvoicesPaymentSettings
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 InvoicesPaymentSettings
impl Send for InvoicesPaymentSettings
impl Sync for InvoicesPaymentSettings
impl Unpin for InvoicesPaymentSettings
impl UnwindSafe for InvoicesPaymentSettings
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