View Source ExOAPI.Stripe.Schemas.PriceTier (exoapi_stripe v0.1.4)

:flat_amount :: :integer

Price for the entire tier.

:flat_amount_decimal :: :string

Same as flat_amount, but contains a decimal value with at most 12 decimal places.

:unit_amount :: :integer

Per unit price for units relevant to the tier.

:unit_amount_decimal :: :string

Same as unit_amount, but contains a decimal value with at most 12 decimal places.

:up_to :: :integer

Up to and including to this quantity will be contained in the tier.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.PriceTier{
  flat_amount: integer() | nil,
  flat_amount_decimal: String.t() | nil,
  unit_amount: integer() | nil,
  unit_amount_decimal: String.t() | nil,
  up_to: integer() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source
@spec changeset(t(), params()) :: Ecto.Changeset.t()