pub enum InvoiceRequestType {
Balance,
Deposit,
Installment,
}
Expand description
Indicates the type of the payment request.
For more information, see Configuring payment requests.
Variants§
Balance
A request for a balance payment. The balance amount is computed as follows:
- If the invoice specifies only a balance payment request, the balance amount is the total amount of the associated order.
- If the invoice also specifies a deposit request, the balance amount is the amount remaining after the deposit.
INSTALLMENT
and BALANCE
payment requests are not allowed in the same invoice.
Deposit
A request for a deposit payment. You have the option of specifying an exact amount or a percentage of the total order amount. If you request a deposit, it must be due before any other payment requests.
Installment
A request for an installment payment. Installments allow buyers to pay the invoice over time. Installments can optionally be combined with a deposit.
Adding INSTALLMENT
payment requests to an invoice requires an Invoices Plus
subscription.
Trait Implementations§
Source§impl Clone for InvoiceRequestType
impl Clone for InvoiceRequestType
Source§fn clone(&self) -> InvoiceRequestType
fn clone(&self) -> InvoiceRequestType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InvoiceRequestType
impl Debug for InvoiceRequestType
Source§impl<'de> Deserialize<'de> for InvoiceRequestType
impl<'de> Deserialize<'de> for InvoiceRequestType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InvoiceRequestType
impl PartialEq for InvoiceRequestType
Source§impl Serialize for InvoiceRequestType
impl Serialize for InvoiceRequestType
impl Eq for InvoiceRequestType
impl StructuralPartialEq for InvoiceRequestType
Auto Trait Implementations§
impl Freeze for InvoiceRequestType
impl RefUnwindSafe for InvoiceRequestType
impl Send for InvoiceRequestType
impl Sync for InvoiceRequestType
impl Unpin for InvoiceRequestType
impl UnwindSafe for InvoiceRequestType
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
Mutably borrows from an owned value. Read more
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
Compare self to
key
and return true
if they are equal.