pub enum InvoiceRequestMethod {
Email,
ChargeCardOnFile,
ShareManually,
ChargeBankOnFile,
Sms,
SmsChargeCardOnFile,
SmsChargeBankOnFile,
}
Variants§
Directs Square to send invoices, reminders, and receipts to the customer using email. Square
sends the invoice after it is published (either immediately or at the scheduled_at time
,
if specified in the [Invoice]).
ChargeCardOnFile
Directs Square to charge the card on file on the due_date
specified in the payment request
and to use email to send invoices, reminders, and receipts.
Directs Square to take no specific action on the invoice. In this case, the seller (or the
application developer) follows up with the customer for payment. For example, a seller might
collect a payment in the Seller Dashboard or use the Point of Sale (POS) application. The
seller might also share the URL of the Square-hosted invoice page (public_url
) with the
customer requesting payment.
ChargeBankOnFile
Directs Square to charge the bank account on file on the due_date
specified in the payment
request and to use email to send invoices, reminders, and receipts.
The bank on file 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 CHARGE_BANK_ON_FILE
as a request
method using the Invoices API.
Sms
Directs Square to send invoices and receipts to the customer using SMS (text message).
Square sends the invoice after it is published (either immediately or at the scheduled_at
time, if specified in the [Invoice]).
You cannot set SMS
as a request method using the Invoices API.
SmsChargeCardOnFile
Directs Square to charge the card on file on the due_date
specified in the payment request
and to use SMS (text message) to send invoices and receipts.
You cannot set SMS_CHARGE_CARD_ON_FILE
as a request method using the Invoices API.
SmsChargeBankOnFile
Directs Square to charge the bank account on file on the due_date
specified in the payment
request and to use SMS (text message) to send invoices and receipts.
The bank on file 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 SMS_CHARGE_BANK_ON_FILE
as a
request method using the Invoices API.
Trait Implementations§
Source§impl Clone for InvoiceRequestMethod
impl Clone for InvoiceRequestMethod
Source§fn clone(&self) -> InvoiceRequestMethod
fn clone(&self) -> InvoiceRequestMethod
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 InvoiceRequestMethod
impl Debug for InvoiceRequestMethod
Source§impl<'de> Deserialize<'de> for InvoiceRequestMethod
impl<'de> Deserialize<'de> for InvoiceRequestMethod
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 InvoiceRequestMethod
impl PartialEq for InvoiceRequestMethod
Source§impl Serialize for InvoiceRequestMethod
impl Serialize for InvoiceRequestMethod
impl Eq for InvoiceRequestMethod
impl StructuralPartialEq for InvoiceRequestMethod
Auto Trait Implementations§
impl Freeze for InvoiceRequestMethod
impl RefUnwindSafe for InvoiceRequestMethod
impl Send for InvoiceRequestMethod
impl Sync for InvoiceRequestMethod
impl Unpin for InvoiceRequestMethod
impl UnwindSafe for InvoiceRequestMethod
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.