pub enum InvoiceAutomaticPaymentSource {
None,
CardOnFile,
BankOnFile,
}
Expand description
Indicates the automatic payment method for an invoice payment request.
Variants§
None
An automatic payment is not configured for the payment request.
CardOnFile
Use a card on file as the automatic payment method. On the due date, Square charges the card for the amount of the payment request.
For CARD_ON_FILE
payments, the invoice delivery method must be EMAIL
and card_id
must
be specified for the payment request before the invoice can be published.
BankOnFile
Use a bank account on file as the automatic payment method. On the due date, Square charges the bank account for the amount of the payment request.
This payment method applies only to recurring invoices that sellers create in the Seller Dashboard or other Square first-party applications. The bank account is provided by the customer during the payment flow.
You cannot set BANK_ON_FILE
as a payment method using the Invoices API, but you can change
a BANK_ON_FILE
payment method to NONE
or CARD_ON_FILE
. For BANK_ON_FILE
payments,
the invoice delivery method must be EMAIL
.
Trait Implementations§
Source§impl Clone for InvoiceAutomaticPaymentSource
impl Clone for InvoiceAutomaticPaymentSource
Source§fn clone(&self) -> InvoiceAutomaticPaymentSource
fn clone(&self) -> InvoiceAutomaticPaymentSource
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl<'de> Deserialize<'de> for InvoiceAutomaticPaymentSource
impl<'de> Deserialize<'de> for InvoiceAutomaticPaymentSource
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 InvoiceAutomaticPaymentSource
impl PartialEq for InvoiceAutomaticPaymentSource
Source§fn eq(&self, other: &InvoiceAutomaticPaymentSource) -> bool
fn eq(&self, other: &InvoiceAutomaticPaymentSource) -> bool
self
and other
values to be equal, and is used by ==
.impl Eq for InvoiceAutomaticPaymentSource
impl StructuralPartialEq for InvoiceAutomaticPaymentSource
Auto Trait Implementations§
impl Freeze for InvoiceAutomaticPaymentSource
impl RefUnwindSafe for InvoiceAutomaticPaymentSource
impl Send for InvoiceAutomaticPaymentSource
impl Sync for InvoiceAutomaticPaymentSource
impl Unpin for InvoiceAutomaticPaymentSource
impl UnwindSafe for InvoiceAutomaticPaymentSource
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.