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
sourceimpl Clone for InvoiceAutomaticPaymentSource
impl Clone for InvoiceAutomaticPaymentSource
sourcefn clone(&self) -> InvoiceAutomaticPaymentSource
fn clone(&self) -> InvoiceAutomaticPaymentSource
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InvoiceAutomaticPaymentSource
impl Debug for InvoiceAutomaticPaymentSource
sourceimpl<'de> Deserialize<'de> for InvoiceAutomaticPaymentSource
impl<'de> Deserialize<'de> for InvoiceAutomaticPaymentSource
sourcefn 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>,
sourceimpl PartialEq<InvoiceAutomaticPaymentSource> for InvoiceAutomaticPaymentSource
impl PartialEq<InvoiceAutomaticPaymentSource> for InvoiceAutomaticPaymentSource
sourcefn eq(&self, other: &InvoiceAutomaticPaymentSource) -> bool
fn eq(&self, other: &InvoiceAutomaticPaymentSource) -> bool
impl Eq for InvoiceAutomaticPaymentSource
impl StructuralEq for InvoiceAutomaticPaymentSource
impl StructuralPartialEq for InvoiceAutomaticPaymentSource
Auto Trait Implementations
impl RefUnwindSafe for InvoiceAutomaticPaymentSource
impl Send for InvoiceAutomaticPaymentSource
impl Sync for InvoiceAutomaticPaymentSource
impl Unpin for InvoiceAutomaticPaymentSource
impl UnwindSafe for InvoiceAutomaticPaymentSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.