pub struct PaymentIntentPaymentMethodOptionsMandateOptionsPayto {
pub amount: Option<i64>,
pub amount_type: Option<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoAmountType>,
pub end_date: Option<String>,
pub payment_schedule: Option<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoPaymentSchedule>,
pub payments_per_period: Option<i64>,
pub purpose: Option<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoPurpose>,
}Fields§
§amount: Option<i64>Amount that will be collected. It is required when amount_type is fixed.
amount_type: Option<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoAmountType>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<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoPaymentSchedule>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<PaymentIntentPaymentMethodOptionsMandateOptionsPaytoPurpose>The purpose for which payments are made. Has a default value based on your merchant category code.
Trait Implementations§
Source§impl Clone for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl Clone for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
Source§fn clone(&self) -> PaymentIntentPaymentMethodOptionsMandateOptionsPayto
fn clone(&self) -> PaymentIntentPaymentMethodOptionsMandateOptionsPayto
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 FromValueOpt for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl FromValueOpt for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl RefUnwindSafe for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl Send for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl Sync for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl Unpin for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
impl UnwindSafe for PaymentIntentPaymentMethodOptionsMandateOptionsPayto
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