pub struct Mandate {
pub customer_acceptance: CustomerAcceptance,
pub id: MandateId,
pub livemode: bool,
pub multi_use: Option<MandateMultiUse>,
pub on_behalf_of: Option<String>,
pub payment_method: Expandable<PaymentMethod>,
pub payment_method_details: MandatePaymentMethodDetails,
pub single_use: Option<MandateSingleUse>,
pub status: MandateStatus,
pub type_: MandateType,
}
Expand description
A Mandate is a record of the permission that your customer gives you to debit their payment method.
For more details see <https://stripe.com/docs/api/mandates/object>.
Fields§
§customer_acceptance: CustomerAcceptance
§id: MandateId
Unique identifier for the object.
livemode: bool
Has the value true
if the object exists in live mode or the value false
if the object exists in test mode.
multi_use: Option<MandateMultiUse>
§on_behalf_of: Option<String>
The account (if any) that the mandate is intended for.
payment_method: Expandable<PaymentMethod>
ID of the payment method associated with this mandate.
payment_method_details: MandatePaymentMethodDetails
§single_use: Option<MandateSingleUse>
§status: MandateStatus
The mandate status indicates whether or not you can use it to initiate a payment.
type_: MandateType
The type of the mandate.
Trait Implementations§
Source§impl Deserialize for Mandate
impl Deserialize for Mandate
Auto Trait Implementations§
impl Freeze for Mandate
impl RefUnwindSafe for Mandate
impl Send for Mandate
impl Sync for Mandate
impl Unpin for Mandate
impl UnwindSafe for Mandate
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