pub struct Invoice {
pub id: String,
pub status: String,
pub billing_reason: String,
pub lines: Vec<InvoiceLine>,
pub amount_due: i64,
pub amount_paid: i64,
pub period_start: i64,
pub period_end: i64,
pub created: i64,
pub subtotal: i64,
}Expand description
An invoice issued to the account.
Fields§
§id: StringUnique invoice identifier.
status: StringPayment status (e.g. paid, open).
billing_reason: StringReason the invoice was generated (e.g. subscription_cycle).
lines: Vec<InvoiceLine>Line items contributing to the invoice total.
amount_due: i64Amount due in the smallest currency unit.
amount_paid: i64Amount already paid in the smallest currency unit.
period_start: i64Start of the billing period (Unix timestamp).
period_end: i64End of the billing period (Unix timestamp).
created: i64Timestamp when the invoice was created (Unix timestamp).
subtotal: i64Subtotal before taxes and adjustments.
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
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