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

Functions

Create a customer

Delete a customer

Retrieve 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, discount: term, email: term, id: term, livemode: term, metadata: term, object: term, shipping: term, sources: term, subscriptions: term}

Functions

create(changes, opts \\ [])
create(map, Keyword.t) ::
  {:ok, t} |
  {:error, Stripe.api_error_struct}

Create a customer.

delete(id, opts \\ [])
delete(binary, list) :: :ok | {:error, Stripe.api_error_struct}

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.