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

:first_time_transaction :: :boolean

A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices

:minimum_amount :: :integer

Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).

:minimum_amount_currency :: :string

Three-letter ISO code for minimum_amount

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.PromotionCodesResourceRestrictions{
  first_time_transaction: boolean() | nil,
  minimum_amount: integer() | nil,
  minimum_amount_currency: String.t() | nil
}

Link to this section Functions

Link to this function

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

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