Summary
Functions
A sample %MishkaPay.Checkout.Discounts{} populated from defaults + type-based fallbacks.
Types
@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) |