stripity_stripe v2.0.0-alpha.6 Stripe.Customer
Work with Stripe customer objects.
You can:
- Create a customer
- Retrieve a customer
- Update a customer
- Delete a customer
Does not yet render lists or take options.
Stripe API reference: https://stripe.com/docs/api#customer
Summary
Types
t()
t :: %Stripe.Customer{account_balance: term, business_vat_id: term, created: term, currency: term, default_source: term, delinquent: term, description: term, discount: term, email: term, id: term, livemode: term, metadata: term, object: term, shipping: term, sources: term, subscriptions: term}
Functions
Create a customer.
Delete a customer.
retrieve(id, opts \\ [])
retrieve(binary, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Retrieve a customer.
update(id, changes, opts \\ [])
update(binary, map, list) :: {:ok, t} | {:error, Stripe.api_error_struct}
Update a customer.
Takes the id
and a map of changes.