[−][src]Struct libstripe::resources::billing::invoices::Invoice
Fields
id: String
object: Object
account_country: String
account_name: String
amount_due: i64
amount_paid: i64
amount_remaining: i64
application_fee_amount: Option<i64>
attempt_count: i64
attempted: bool
auto_advance: bool
billing: InvoiceBilling
billing_reason: Option<InvoiceBillingReason>
charge: Option<Expandable<Charge>>
created: i64
currency: Currency
custom_fields: Option<CustomFields>
customer: Expandable<Customer>
customer_email: Option<String>
customer_address: Option<Address>
customer_name: Option<String>
customer_phone: Option<String>
customer_shipping: Option<CustomerShipping>
default_payment_method: Option<Expandable<PaymentMethods>>
default_source: Option<Expandable<PaymentSource>>
description: Option<String>
discount: Option<Discount>
due_date: Option<i64>
ending_balance: Option<i64>
hosted_invoice_url: Option<String>
invoice_pdf: Option<String>
lines: List<InvoiceLine>
livemode: bool
metadata: HashMap<String, String>
next_payment_attempt: Option<i64>
number: Option<String>
paid: bool
payment_intent: Option<Expandable<PaymentIntent>>
period_end: i64
period_start: i64
post_payment_credit_notes_amount: i64
pre_payment_credit_notes_amount: i64
receipt_number: Option<String>
starting_balance: i64
statement_descriptor: Option<String>
status: InvoiceStatus
status_transition: Option<StatusTransitions>
subscription: Option<Expandable<Subscription>>
subscription_proration_date: Option<i64>
subtotal: i64
tax: Option<i64>
tax_percent: Option<i64>
threshold_reason: Option<ThresholdReason>
total: i64
webhooks_delivered_at: Option<i64>
Methods
impl Invoice
[src]
pub fn create<B: Serialize>(client: &Client, param: B) -> Result<Self>
[src]
pub fn retrieve(client: &Client, invoice: &str) -> Result<Self>
[src]
pub fn retrieve_upcoming<B: Serialize>(
client: &Client,
param: B
) -> Result<Self>
[src]
client: &Client,
param: B
) -> Result<Self>
pub fn update<B: Serialize>(
client: &Client,
invoice_id: &str,
param: B
) -> Result<Self>
[src]
client: &Client,
invoice_id: &str,
param: B
) -> Result<Self>
pub fn delete(client: &Client, invoice_id: &str) -> Result<Self>
[src]
pub fn finalize<B: Serialize>(
client: &Client,
invoice_id: &str,
param: B
) -> Result<Self>
[src]
client: &Client,
invoice_id: &str,
param: B
) -> Result<Self>
pub fn pay<B: Serialize>(
client: &Client,
invoice_id: &str,
source: B
) -> Result<Self>
[src]
client: &Client,
invoice_id: &str,
source: B
) -> Result<Self>
pub fn send(client: &Client, invoice_id: &str) -> Result<Self>
[src]
pub fn void(client: &Client, invoice_id: &str) -> Result<Self>
[src]
pub fn uncollectible(client: &Client, invoice_id: &str) -> Result<Self>
[src]
pub fn list<B: Serialize>(client: &Client, param: B) -> Result<List<Self>>
[src]
Trait Implementations
impl PartialEq<Invoice> for Invoice
[src]
impl Debug for Invoice
[src]
impl Serialize for Invoice
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Invoice
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,