S76 Stripe v0.1.6 Stripe View Source

Link to this section Summary

Functions

Converts a raw Stripe API response into the equivalent Stripe struct.

Link to this section Types

Link to this type

currency_code()

View Source
currency_code() :: String.t()
Link to this type

metadata()

View Source
metadata() :: %{optional(String.t()) => String.t()}
Link to this type

reference(t)

View Source
reference(t) :: nil | String.t() | t

Link to this section Functions

Converts a raw Stripe API response into the equivalent Stripe struct.

Unix timestamps are converted to DateTime.t, integer cents are converted to Decimal.t, and any enumerated fields are converted to atoms. Other fields are mapped as-is.

Missing and unexpanded references are passed through as-is.