S76 Stripe v0.1.4 Stripe.Source View Source

The Stripe Source object.

See https://stripe.com/docs/api/curl#sources for further details.

Link to this section Summary

Functions

See https://stripe.com/docs/api/curl#attach_source

See https://stripe.com/docs/api/curl#create_source

See https://stripe.com/docs/api/curl#detach_source

Link to this section Types

Link to this type t() View Source
t() :: %Stripe.Source{amount: Decimal.t(), client_secret: String.t(), created: DateTime.t(), currency: Stripe.currency_code(), flow: :redirect | :receiver | :code_verification | :none, id: nil | String.t(), livemode: boolean(), metadata: Stripe.metadata(), statement_descriptor: nil | String.t(), status: :canceled | :chargeable | :consumed | :failed | :pending, type: atom(), usage: :reusable | :single_use}

Link to this section Functions

Link to this function attach(customer_id, source_id) View Source
attach(String.t(), String.t()) :: Stripe.API.response(t() | Stripe.Card.t())

See https://stripe.com/docs/api/curl#attach_source

Link to this function create(params) View Source
create(map()) :: Stripe.API.response(t())

See https://stripe.com/docs/api/curl#create_source

Link to this function detach(customer_id, source_id) View Source
detach(String.t(), String.t()) :: Stripe.API.response(t() | Stripe.Card.t())

See https://stripe.com/docs/api/curl#detach_source