Enum square_api_client::models::enums::InvoiceStatus
source · [−]pub enum InvoiceStatus {
Draft,
Unpaid,
Scheduled,
PartiallyPaid,
Paid,
PartiallyRefunded,
Refunded,
Canceled,
Failed,
PaymentPending,
}
Expand description
Indicates the status of an invoice.
Variants
Draft
The invoice is a draft. You must publish a draft invoice before Square can process it. A
draft invoice has no public_url
, so it is not available to customers.
Unpaid
The invoice is published but not yet paid.
Scheduled
The invoice is scheduled to be processed. On the scheduled date, Square sends the invoice,
initiates an automatic payment, or takes no action, depending on the delivery method and
payment request settings. Square also sets the invoice status to the appropriate state:
UNPAID
, PAID
, PARTIALLY_PAID
, or PAYMENT_PENDING
.
PartiallyPaid
A partial payment is received for the invoice.
Paid
The customer paid the invoice in full.
PartiallyRefunded
The invoice is paid (or partially paid) and some but not all the amount paid is refunded.
Refunded
The full amount that the customer paid for the invoice is refunded.
Canceled
The invoice is canceled. Square no longer requests payments from the customer. The
public_url
page remains and is accessible, but it displays the invoice as canceled and
does not accept payment.
Failed
Square canceled the invoice due to suspicious activity.
PaymentPending
A payment on the invoice was initiated but has not yet been processed.
When in this state, invoices cannot be updated and other payments cannot be initiated.
Trait Implementations
sourceimpl Clone for InvoiceStatus
impl Clone for InvoiceStatus
sourcefn clone(&self) -> InvoiceStatus
fn clone(&self) -> InvoiceStatus
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for InvoiceStatus
impl Debug for InvoiceStatus
sourceimpl<'de> Deserialize<'de> for InvoiceStatus
impl<'de> Deserialize<'de> for InvoiceStatus
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<InvoiceStatus> for InvoiceStatus
impl PartialEq<InvoiceStatus> for InvoiceStatus
sourcefn eq(&self, other: &InvoiceStatus) -> bool
fn eq(&self, other: &InvoiceStatus) -> bool
sourceimpl Serialize for InvoiceStatus
impl Serialize for InvoiceStatus
impl Eq for InvoiceStatus
impl StructuralEq for InvoiceStatus
impl StructuralPartialEq for InvoiceStatus
Auto Trait Implementations
impl RefUnwindSafe for InvoiceStatus
impl Send for InvoiceStatus
impl Sync for InvoiceStatus
impl Unpin for InvoiceStatus
impl UnwindSafe for InvoiceStatus
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.