pub struct Invoice {Show 17 fields
pub id: String,
pub customer: String,
pub subscription: Option<String>,
pub status: InvoiceStatus,
pub amount_due: i64,
pub amount_paid: i64,
pub amount_remaining: i64,
pub currency: String,
pub billing_reason: Option<String>,
pub customer_email: Option<String>,
pub hosted_invoice_url: Option<String>,
pub invoice_pdf: Option<String>,
pub payment_intent: Option<String>,
pub created: i64,
pub period_start: i64,
pub period_end: i64,
pub livemode: bool,
}Expand description
Stripe invoice object
Fields§
§id: StringInvoice ID (in_…)
customer: StringCustomer ID
subscription: Option<String>Associated subscription ID (if any)
status: InvoiceStatusInvoice status
amount_due: i64Total amount in cents
amount_paid: i64Amount paid in cents
amount_remaining: i64Amount remaining in cents
currency: StringCurrency
billing_reason: Option<String>Billing reason
customer_email: Option<String>Customer email at time of invoice
hosted_invoice_url: Option<String>Hosted invoice URL
invoice_pdf: Option<String>Invoice PDF URL
payment_intent: Option<String>Payment intent ID (if payment attempted)
created: i64When created (Unix timestamp)
period_start: i64Period start
period_end: i64Period end
livemode: boolWhether this is live mode
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more