pub struct CreatePaymentMethod {Show 15 fields
pub customer_id: CustomerId,
pub method_type: PaymentMethodType,
pub is_default: Option<bool>,
pub card_brand: Option<CardBrand>,
pub card_last4: Option<String>,
pub card_exp_month: Option<i32>,
pub card_exp_year: Option<i32>,
pub cardholder_name: Option<String>,
pub bank_name: Option<String>,
pub account_last4: Option<String>,
pub wallet_address: Option<String>,
pub blockchain_network: Option<BlockchainNetwork>,
pub stablecoin_type: Option<StablecoinType>,
pub external_id: Option<String>,
pub billing_address: Option<String>,
}Expand description
Input for creating a payment method
Fields§
§customer_id: CustomerIdCustomer ID
method_type: PaymentMethodTypePayment method type
is_default: Option<bool>Set as default
card_brand: Option<CardBrand>Card brand
card_last4: Option<String>Last 4 digits
card_exp_month: Option<i32>Expiry month
card_exp_year: Option<i32>Expiry year
cardholder_name: Option<String>Cardholder name
bank_name: Option<String>Bank name
account_last4: Option<String>Account last 4
wallet_address: Option<String>Wallet address (for receiving payments)
blockchain_network: Option<BlockchainNetwork>Preferred blockchain network
stablecoin_type: Option<StablecoinType>Preferred stablecoin type
external_id: Option<String>External ID
billing_address: Option<String>Billing address
Trait Implementations§
Source§impl Clone for CreatePaymentMethod
impl Clone for CreatePaymentMethod
Source§fn clone(&self) -> CreatePaymentMethod
fn clone(&self) -> CreatePaymentMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreatePaymentMethod
impl Debug for CreatePaymentMethod
Source§impl Default for CreatePaymentMethod
impl Default for CreatePaymentMethod
Source§fn default() -> CreatePaymentMethod
fn default() -> CreatePaymentMethod
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreatePaymentMethod
impl<'de> Deserialize<'de> for CreatePaymentMethod
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePaymentMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CreatePaymentMethod, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CreatePaymentMethod
impl Serialize for CreatePaymentMethod
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for CreatePaymentMethod
impl RefUnwindSafe for CreatePaymentMethod
impl Send for CreatePaymentMethod
impl Sync for CreatePaymentMethod
impl Unpin for CreatePaymentMethod
impl UnsafeUnpin for CreatePaymentMethod
impl UnwindSafe for CreatePaymentMethod
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