stripity_stripe v2.0.0-alpha.6 Stripe.Invoice
Work with Stripe invoice objects.
You can:
- Create an invoice
- Retrieve an invoice
- Update an invoice
Does not yet implement lines
.
Does not yet render lists or take options.
Stripe API reference: https://stripe.com/docs/api#invoice
Summary
Types
t()
t :: %Stripe.Invoice{amount_due: term, application_fee: term, attempt_count: term, attempted: term, charge: term, closed: term, currency: term, customer: term, date: term, description: term, discount: term, ending_balance: term, forgiven: term, id: term, livemode: term, metadata: term, next_payment_attempt: term, object: term, paid: term, period_end: term, period_start: term, receipt_number: term, starting_balance: term, statement_descriptor: term, subscription: term, subscription_proration_date: term, subtotal: term, tax: term, tax_percent: term, total: term, webhooks_delivered_at: term}
Functions
Create an invoice.
retrieve(id, opts \\ [])
retrieve(binary, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Retrieve an invoice.
update(id, changes, opts \\ [])
update(binary, map, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Update an invoice.
Takes the id
and a map of changes.