S76 Stripe v0.1.6 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 Sourcet() :: %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 Sourceattach(String.t(), String.t()) :: Stripe.API.response(t() | Stripe.Card.t())
See https://stripe.com/docs/api/curl#attach_source
See https://stripe.com/docs/api/curl#create_source
Link to this function
detach(customer_id, source_id)
View Sourcedetach(String.t(), String.t()) :: Stripe.API.response(t() | Stripe.Card.t())
See https://stripe.com/docs/api/curl#detach_source