pub enum InvoiceRequestMethod {
Email,
ChargeCardOnFile,
ShareManually,
ChargeBankOnFile,
Sms,
SmsChargeCardOnFile,
SmsChargeBankOnFile,
}
Variants
Email
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.
ShareManually
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
sourceimpl Clone for InvoiceRequestMethod
impl Clone for InvoiceRequestMethod
sourcefn clone(&self) -> InvoiceRequestMethod
fn clone(&self) -> InvoiceRequestMethod
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InvoiceRequestMethod
impl Debug for InvoiceRequestMethod
sourceimpl<'de> Deserialize<'de> for InvoiceRequestMethod
impl<'de> Deserialize<'de> for InvoiceRequestMethod
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<InvoiceRequestMethod> for InvoiceRequestMethod
impl PartialEq<InvoiceRequestMethod> for InvoiceRequestMethod
sourcefn eq(&self, other: &InvoiceRequestMethod) -> bool
fn eq(&self, other: &InvoiceRequestMethod) -> bool
sourceimpl Serialize for InvoiceRequestMethod
impl Serialize for InvoiceRequestMethod
impl Eq for InvoiceRequestMethod
impl StructuralEq for InvoiceRequestMethod
impl StructuralPartialEq for InvoiceRequestMethod
Auto Trait Implementations
impl RefUnwindSafe for InvoiceRequestMethod
impl Send for InvoiceRequestMethod
impl Sync for InvoiceRequestMethod
impl Unpin for InvoiceRequestMethod
impl UnwindSafe for InvoiceRequestMethod
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.