pub struct CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptions {
pub amount: Option<i64>,
pub amount_type: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType>,
pub end_date: Option<String>,
pub payment_schedule: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule>,
pub payments_per_period: Option<i64>,
pub purpose: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose>,
}Expand description
Additional fields for Mandate creation.
Only purpose field is configurable for PayTo PaymentIntent with setup_future_usage=none.
Other fields are only applicable to PayTo PaymentIntent with setup_future_usage=off_session.
Fields§
§amount: Option<i64>Amount that will be collected. It is required when amount_type is fixed.
amount_type: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsAmountType>The type of amount that will be collected.
The amount charged must be exact or up to the value of amount param for fixed or maximum type respectively.
Defaults to maximum.
end_date: Option<String>Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
payment_schedule: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsPaymentSchedule>The periodicity at which payments will be collected. Defaults to adhoc.
payments_per_period: Option<i64>The number of payments that will be made during a payment period.
Defaults to 1 except for when payment_schedule is adhoc.
In that case, it defaults to no limit.
purpose: Option<CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptionsPurpose>The purpose for which payments are made. Has a default value based on your merchant category code.
Implementations§
Trait Implementations§
Source§impl Clone for CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptions
impl Clone for CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptions
Source§fn clone(&self) -> CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptions
fn clone(&self) -> CreatePaymentIntentPaymentMethodOptionsPaytoMandateOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more