pub struct Invoice {Show 14 fields
pub id: String,
pub customer: InvoiceCustomer,
pub subscription: Option<InvoiceSubscription>,
pub invoice_date: OffsetDateTime,
pub invoice_number: String,
pub invoice_pdf: Option<String>,
pub currency: String,
pub total: String,
pub amount_due: String,
pub created_at: OffsetDateTime,
pub issued_at: Option<OffsetDateTime>,
pub hosted_invoice_url: Option<String>,
pub status: String,
pub metadata: BTreeMap<String, String>,
}Expand description
An Orb invoice.
Fields§
§id: StringThe Orb-assigned unique identifier for the invoice.
customer: InvoiceCustomerThe customer to whom this invoice was issued.
subscription: Option<InvoiceSubscription>The subscription associated with this invoice.
invoice_date: OffsetDateTimeThe issue date of the invoice.
invoice_number: StringAn automatically generated number to help track and reconcile invoices.
invoice_pdf: Option<String>The link to download the PDF representation of the invoice.
currency: StringAn ISO 4217 currency string, or “credits”
total: StringThe total after any minimums, discounts, and taxes have been applied.
amount_due: StringThis is the final amount required to be charged to the customer and reflects the application of the customer balance to the total of the invoice.
created_at: OffsetDateTimeThe time at which the invoice was created.
issued_at: Option<OffsetDateTime>The time at which the invoice was issued.
hosted_invoice_url: Option<String>The link to the hosted invoice
status: StringThe status (see InvoiceStatusFilter for details)
metadata: BTreeMap<String, String>Arbitrary metadata that is attached to the invoice. Cannot be nested, must have string values.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Invoice
impl<'de> Deserialize<'de> for Invoice
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>,
impl Eq for Invoice
impl StructuralPartialEq for Invoice
Auto Trait Implementations§
impl Freeze for Invoice
impl RefUnwindSafe for Invoice
impl Send for Invoice
impl Sync for Invoice
impl Unpin for Invoice
impl UnwindSafe for Invoice
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.