pub struct UpdateSetupIntentPaymentMethodOptionsCardMandateOptions {
    pub amount: i64,
    pub amount_type: UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsAmountType,
    pub currency: Currency,
    pub description: Option<String>,
    pub end_date: Option<Timestamp>,
    pub interval: UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsInterval,
    pub interval_count: Option<u64>,
    pub reference: String,
    pub start_date: Timestamp,
    pub supported_types: Option<Vec<UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes>>,
}

Fields§

§amount: i64

Amount to be charged for future payments.

§amount_type: UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsAmountType

One of fixed or maximum.

If fixed, the amount param refers to the exact amount to be charged in future payments. If maximum, the amount charged can be up to the value passed for the amount param.

§currency: Currency

Currency in which future payments will be charged.

Three-letter ISO currency code, in lowercase. Must be a supported currency.

§description: Option<String>

A description of the mandate or subscription that is meant to be displayed to the customer.

§end_date: Option<Timestamp>

End date of the mandate or subscription.

If not provided, the mandate will be active until canceled. If provided, end date should be after start date.

§interval: UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsInterval

Specifies payment frequency.

One of day, week, month, year, or sporadic.

§interval_count: Option<u64>

The number of intervals between payments.

For example, interval=month and interval_count=3 indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when interval=sporadic.

§reference: String

Unique identifier for the mandate or subscription.

§start_date: Timestamp

Start date of the mandate or subscription.

Start date should not be lesser than yesterday.

§supported_types: Option<Vec<UpdateSetupIntentPaymentMethodOptionsCardMandateOptionsSupportedTypes>>

Specifies the type of mandates supported.

Possible values are india.

Trait Implementations§

source§

impl Clone for UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

source§

fn clone(&self) -> UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

source§

fn default() -> UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for UpdateSetupIntentPaymentMethodOptionsCardMandateOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,