A discount-code response.
Summary
Types
@type t() :: %DodoPayments.Discount{ amount: number() | nil, business_id: String.t() | nil, code: String.t() | nil, created_at: String.t() | nil, currency_options: [DodoPayments.ResponseTypes.discount_currency_option()] | nil, customer_eligibility: DodoPayments.Enums.decoded_customer_eligibility() | nil, discount_id: String.t() | nil, expires_at: String.t() | nil, extra: map(), metadata: DodoPayments.ResponseTypes.metadata() | nil, name: String.t() | nil, per_customer_usage_limit: number() | nil, preserve_on_plan_change: boolean() | nil, restricted_to: [String.t()] | nil, starts_at: String.t() | nil, subscription_cycles: number() | nil, times_used: number() | nil, type: DodoPayments.Enums.decoded_discount_type() | nil, usage_limit: number() | nil }