pub struct PaymentRequestPaymentMethodOptionsApiSchema {
pub descriptor: Option<String>,
pub vault_on_success: Option<bool>,
pub payment_type: Option<String>,
}
Fields§
§descriptor: Option<String>
A description of the payment, as it would typically appear on a bank statement.
vault_on_success: Option<bool>
Whether the payment method should be vaulted on a successful payment or not.
payment_type: Option<String>
Payment types, primarily to be used for recurring payments.
Note: If you successfully vault a SINGLE_USE
token on payment creation, then there’s no need to set a value for this field and it will be flagged as FIRST_PAYMENT
. Otherwise, see the table below for all possible values.
paymentType | Use case |
---|---|
FIRST_PAYMENT | a customer-initiated payment which is the first in a series of recurring payments or subscription, or a card on file scenario. |
ECOMMERCE | a customer-initiated payment using stored payment details where the cardholder is present. |
SUBSCRIPTION | a merchant-initiated payment as part of a series of payments on a fixed schedule and a set amount. |
UNSCHEDULED | a merchant-initiated payment using stored payment details with no fixed schedule or amount. |
Trait Implementations§
Source§impl Default for PaymentRequestPaymentMethodOptionsApiSchema
impl Default for PaymentRequestPaymentMethodOptionsApiSchema
Source§fn default() -> PaymentRequestPaymentMethodOptionsApiSchema
fn default() -> PaymentRequestPaymentMethodOptionsApiSchema
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentRequestPaymentMethodOptionsApiSchema
impl<'de> Deserialize<'de> for PaymentRequestPaymentMethodOptionsApiSchema
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 PaymentRequestPaymentMethodOptionsApiSchema
impl RefUnwindSafe for PaymentRequestPaymentMethodOptionsApiSchema
impl Send for PaymentRequestPaymentMethodOptionsApiSchema
impl Sync for PaymentRequestPaymentMethodOptionsApiSchema
impl Unpin for PaymentRequestPaymentMethodOptionsApiSchema
impl UnwindSafe for PaymentRequestPaymentMethodOptionsApiSchema
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