stripity_stripe v2.0.0-alpha.6 Stripe.ExternalAccount

Work with Stripe external account objects.

You can:

  • Create an external account
  • Retrieve an external account
  • Update an external account
  • Delete an external account

Does not yet render lists or take options.

Probably does not yet work for credit cards.

Stripe API reference: https://stripe.com/docs/api#external_accounts

Summary

Functions

Create an external account

Delete an external account

Retrieve an external account

Update an external account

Types

t()
t :: %Stripe.ExternalAccount{account: term, account_holder_name: term, account_holder_type: term, bank_name: term, country: term, currency: term, default_for_currency: term, fingerprint: term, id: term, last4: term, metadata: term, object: term, routing_number: term, status: term}

Functions

create(changes, list)
create(map, Keyword.t) ::
  {:ok, t} |
  {:error, Stripe.api_error_struct}

Create an external account.

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

Delete an external account.

retrieve(id, list)
retrieve(binary, Keyword.t) ::
  {:ok, t} |
  {:error, Stripe.api_error_struct}

Retrieve an external account.

update(id, changes, list)
update(binary, map, list) ::
  {:ok, t} |
  {:error, Stripe.api_error_struct}

Update an external account.

Takes the id and a map of changes.