[−][src]Struct stripe::Invoice
The resource representing a Stripe invoice.
For more details see https://stripe.com/docs/api#invoice_object.
Fields
id: Option<String>
amount_due: u64
application_fee: Option<u64>
attempt_count: u64
attempted: bool
charge: Option<String>
closed: bool
currency: Currency
customer: String
date: Timestamp
description: Option<String>
discount: Option<Discount>
ending_balance: Option<i64>
forgiven: bool
lines: List<InvoiceLineItem>
livemode: bool
metadata: Metadata
next_payment_attempt: Option<Timestamp>
paid: bool
period_end: Timestamp
period_start: Timestamp
receipt_number: Option<String>
starting_balance: i64
statment_descriptor: Option<String>
subscription: Option<String>
subscription_proration_date: Option<Timestamp>
subtotal: i64
tax: Option<i64>
tax_percent: Option<f64>
total: i64
webhooks_delivered_at: Option<Timestamp>
Methods
impl Invoice[src]
impl Invoicepub fn create(client: &Client, params: InvoiceParams) -> Result<Invoice, Error>[src]
pub fn create(client: &Client, params: InvoiceParams) -> Result<Invoice, Error>Creates a new invoice.
For more details see https://stripe.com/docs/api#create_invoice.
pub fn retrieve(client: &Client, invoice_id: &str) -> Result<Invoice, Error>[src]
pub fn retrieve(client: &Client, invoice_id: &str) -> Result<Invoice, Error>Retrieves the details of an invoice.
For more details see https://stripe.com/docs/api#retrieve_invoice.
pub fn upcoming(
client: &Client,
params: InvoiceUpcomingParams
) -> Result<Invoice, Error>[src]
pub fn upcoming(
client: &Client,
params: InvoiceUpcomingParams
) -> Result<Invoice, Error>Retrieves the details of an upcoming invoice_id
For more details see https://stripe.com/docs/api#upcoming_invoice
pub fn pay(client: &Client, invoice_id: &str) -> Result<Invoice, Error>[src]
pub fn pay(client: &Client, invoice_id: &str) -> Result<Invoice, Error>Pays an invoice.
For more details see https://stripe.com/docs/api#pay_invoice.
pub fn update(
client: &Client,
invoice_id: &str,
params: InvoiceParams
) -> Result<Invoice, Error>[src]
pub fn update(
client: &Client,
invoice_id: &str,
params: InvoiceParams
) -> Result<Invoice, Error>Updates an invoice.
For more details see https://stripe.com/docs/api#update_invoice.
pub fn list(
client: &Client,
params: InvoiceListParams
) -> Result<List<Invoice>, Error>[src]
pub fn list(
client: &Client,
params: InvoiceListParams
) -> Result<List<Invoice>, Error>Lists all invoices.
For more details see https://stripe.com/docs/api#list_invoices.
Trait Implementations
impl Clone for Invoice[src]
impl Clone for Invoicefn clone(&self) -> Invoice[src]
fn clone(&self) -> Invoicefn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for Invoice[src]
impl Debug for Invoiceimpl Serialize for Invoice[src]
impl Serialize for Invoicefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, impl<'de> Deserialize<'de> for Invoice[src]
impl<'de> Deserialize<'de> for Invoicefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> From for T[src]
impl<T> From for Timpl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self
impl<T> Erased for T
impl<T> Erased for T