# `MishkaPay.Checkout.Discounts`
[🔗](https://github.com/mishka-group/mishka_pay/blob/v0.0.1/nofile#L1)

# `t`

```elixir
@type t() :: %MishkaPay.Checkout.Discounts{
  coupon_id: String.t() | nil,
  promotion_code_id: String.t() | nil
}
```

The struct that `builder/1` returns.

| Field | Type | Required | Default | Description | Derives |
| --- | --- | --- | --- | --- | --- |
| `:coupon_id` | `String.t()` \| `nil` | no |  |  | `sanitize(trim) validate(string, not_empty)` |
| `:promotion_code_id` | `String.t()` \| `nil` | no |  |  | `sanitize(trim) validate(string, not_empty)` |

# `builder`

# `enforce_keys`

# `enforce_keys`

# `example`

A sample %MishkaPay.Checkout.Discounts{} populated from defaults + type-based fallbacks.

# `keys`

# `keys`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
