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

:amount :: :integer

The amount, in %s, of the discount.

:discount :: ExOAPI.Stripe.Schemas.DeletedDiscount | ExOAPI.Stripe.Schemas.Discount | :string

The discount that was applied to get this discount amount.

Link to this section Summary

Link to this section Types

@type params() :: map()
@type t() :: %ExOAPI.Stripe.Schemas.DiscountsResourceDiscountAmount{
  amount: integer() | nil,
  discount: ExOAPI.EctoTypes.AnyOf.t() | nil
}

Link to this section Functions

Link to this function

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

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