pub struct Invoice {
pub amount_due_cents: Option<i32>,
pub amount_paid_cents: Option<i32>,
pub created_at: Option<String>,
pub currency: Option<String>,
pub customer_email: Option<String>,
pub id: Option<String>,
pub lines: Option<Vec<InvoiceLine>>,
pub number: Option<String>,
pub payment_ref: Option<String>,
pub status: Option<String>,
pub subtotal_cents: Option<i32>,
pub user_id: Option<String>,
}Fields§
§amount_due_cents: Option<i32>AmountDueCents is what remains collectible.
amount_paid_cents: Option<i32>AmountPaidCents is what has been collected so far.
created_at: Option<String>CreatedAt is when the draft was raised, RFC3339.
currency: Option<String>Currency is the ISO 4217 code.
customer_email: Option<String>CustomerEmail is where it is sent.
id: Option<String>ID is the invoice id — what the issue, collect and void ops address.
lines: Option<Vec<InvoiceLine>>Lines are the charges on the invoice.
number: Option<String>Number is the human-facing invoice number, e.g. "INV-0042". A draft has none; issuing assigns it.
payment_ref: Option<String>PaymentRef is the processor reference for the collection, once paid.
status: Option<String>Status is draft, open, paid, void or uncollectible. A draft is not collectible; issuing moves it to open.
subtotal_cents: Option<i32>SubtotalCents is the sum of the lines.
user_id: Option<String>UserID is the customer billed.
Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more