pub struct Mandate {
pub id: MandateId,
pub customer_acceptance: CustomerAcceptance,
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
The resource representing a Stripe “Mandate”.
For more details see https://stripe.com/docs/api/mandates/object
Fields§
§id: MandateId
Unique identifier for the object.
customer_acceptance: CustomerAcceptance
§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.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Mandate
impl<'de> Deserialize<'de> for Mandate
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 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