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

# `t`

```elixir
@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)` |

# `builder`

# `enforce_keys`

# `enforce_keys`

# `example`

A sample %MishkaPay.Invoice.Lines{} populated from defaults + type-based fallbacks.

# `keys`

# `keys`

---

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