pub enum PaymentSourceType {
Card,
BankAccount,
Wallet,
BuyNowPayLater,
Cash,
External,
}
Expand description
Sources from which [Payment]s can be taken.
For information about these payment source types, see Take Payments.
Variants§
Card
A seller can charge a card (a credit/debit card or Square gift card). For more information, see Take Card Payments.
BankAccount
For more information, see ACH Bank Transfer Payment.
Wallet
A seller can receive payments via Apple or Google Wallet.
BuyNowPayLater
For more information, see Afterpay Payments.
Cash
A seller can receive cash payments from a buyer and use CreatePayment
to record the
payment. For more information, see Take Cash
Payments.
External
External payments refer to any payments processed by external entities (not by Square or the
seller). For example, a buyer places a food order through a courier service. The courier
service collects the payment and pays the seller. The seller can record these payments using
CreatePayment
. This does not change the seller’s Square Balance. For more information, see
Take External
Payments.
Trait Implementations§
Source§impl Clone for PaymentSourceType
impl Clone for PaymentSourceType
Source§fn clone(&self) -> PaymentSourceType
fn clone(&self) -> PaymentSourceType
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for PaymentSourceType
impl Debug for PaymentSourceType
Source§impl<'de> Deserialize<'de> for PaymentSourceType
impl<'de> Deserialize<'de> for PaymentSourceType
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>,
Source§impl PartialEq for PaymentSourceType
impl PartialEq for PaymentSourceType
Source§impl Serialize for PaymentSourceType
impl Serialize for PaymentSourceType
impl Eq for PaymentSourceType
impl StructuralPartialEq for PaymentSourceType
Auto Trait Implementations§
impl Freeze for PaymentSourceType
impl RefUnwindSafe for PaymentSourceType
impl Send for PaymentSourceType
impl Sync for PaymentSourceType
impl Unpin for PaymentSourceType
impl UnwindSafe for PaymentSourceType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.