Skip to content

Commit

Permalink
feat: Add items to CreditNotesController#index
Browse files Browse the repository at this point in the history
  • Loading branch information
rsempe committed Apr 17, 2024
1 parent 2fd04dd commit 4f71830
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion tests/fixtures/credit_note_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,32 @@
"sub_total_excluding_taxes_amount_cents": 200,
"coupons_adjustment_amount_cents": 0,
"created_at": "2022-10-04 16:21:00",
"updated_at": "2022-10-04 16:21:00"
"updated_at": "2022-10-04 16:21:00",
"items": [
{
"lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"fee": {
"lago_id": "5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba",
"invoice_display_name": "credit_note_invoice_display_name",
"item": {
"type": "charge",
"code": "seats",
"name": "User Seats",
"invoice_display_name": "credit_note_invoice_display_name"
},
"credit_amount_cents": 100,
"credit_amount_currency": "EUR",
"refund_amount_cents": 50,
"refund_amount_currency": "EUR",
"taxes_amount_cents": 20,
"taxes_rate": "20.0",
"total_amount_cents": 120,
"total_amount_currency": "EUR",
"units": 12.6,
"events_count": 4
}
}
]
}
],
"meta": {
Expand Down

0 comments on commit 4f71830

Please sign in to comment.