stripity_stripe v2.0.0-alpha.3 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
Functions
Create a customer
Delete a customer
Returns the Stripe response mapping of keys to types
Retrieve a customer
Update a customer
Types
t()
t :: %Stripe.Customer{account_balance: term, business_vat_id: term, created: term, currency: term, default_source: term, delinquent: term, description: term, email: term, id: term, livemode: term, metadata: term}
Functions
Create a customer.
Delete a customer.
Returns the Stripe response mapping of keys to types.
retrieve(id, opts \\ [])
retrieve(binary, Keyword.t) :: {:ok, t} | {:error, Stripe.api_error_struct}
Retrieve a customer.
update(id, changes, opts \\ [])
update(t, map, list) :: {:ok, t} | {:error, Stripe.api_error_struct}
Update a customer.
Takes the id and a map of changes.