# `Stripe.Params.CreditNotePreviewParams.Lines`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/params/credit_note_preview_params.ex#L55)

Nested parameters.

# `t`

```elixir
@type t() :: %Stripe.Params.CreditNotePreviewParams.Lines{
  amount: integer() | nil,
  description: String.t() | nil,
  invoice_line_item: String.t() | nil,
  metadata: %{required(String.t()) =&gt; String.t()} | nil,
  quantity: integer() | nil,
  tax_amounts: map() | nil,
  tax_rates: map() | nil,
  type: String.t() | nil,
  unit_amount: integer() | nil,
  unit_amount_decimal: String.t() | nil
}
```

* `amount` - The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive
* `description` - The description of the credit note line item. Only valid when the `type` is `custom_line_item`. Max length: 5000.
* `invoice_line_item` - The invoice line item to credit. Only valid when the `type` is `invoice_line_item`. Max length: 5000.
* `metadata` - Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
* `quantity` - The line item quantity to credit.
* `tax_amounts` - A list of up to 10 tax amounts for the credit note line item. Not valid when `tax_rates` is used or if invoice is set up with `automatic_tax[enabled]=true`.
* `tax_rates` - The tax rates which apply to the credit note line item. Only valid when the `type` is `custom_line_item` and `tax_amounts` is not used.
* `type` - Type of the credit note line item, one of `invoice_line_item` or `custom_line_item`. `custom_line_item` is not valid when the invoice is set up with `automatic_tax[enabled]=true`. Possible values: `custom_line_item`, `invoice_line_item`.
* `unit_amount` - The integer unit amount in cents (or local equivalent) of the credit note line item. This `unit_amount` will be multiplied by the quantity to get the full amount to credit for this line item. Only valid when `type` is `custom_line_item`.
* `unit_amount_decimal` - Same as `unit_amount`, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of `unit_amount` and `unit_amount_decimal` can be set. Format: decimal string.

---

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