Summary
Functions
A sample %MishkaPay.Invoice.Lines{} populated from defaults + type-based fallbacks.
Types
@type t() :: %MishkaPay.Invoice.Lines{ amount: Money.t() | nil, description: String.t() | nil, id: String.t() | nil, period_end: DateTime.t() | nil, period_start: DateTime.t() | nil, price_id: String.t() | nil, proration: boolean() | nil, quantity: non_neg_integer() | nil }
The struct that builder/1 returns.
| Field | Type | Required | Default | Description | Derives |
|---|---|---|---|---|---|
:id | String.t() | nil | no | validate(string) | ||
:description | String.t() | nil | no | validate(string) | ||
:amount | Money.t() | nil | no | validator {MishkaPay.Money, :signed_field} | ||
:quantity | non_neg_integer() | nil | no | validate(integer) | ||
:price_id | String.t() | nil | no | validate(string) | ||
:proration | boolean() | nil | no | false | validate(boolean) | |
:period_start | DateTime.t() | nil | no | validate(struct) | ||
:period_end | DateTime.t() | nil | no | validate(struct) |