Skip to content

Commit aa3eab4

Browse files
committed
feat(dunning): Add payment_overdue_since to invoice
1 parent acedb24 commit aa3eab4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

spec/fixtures/api/invoice.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"issuing_date": "2022-06-02",
77
"payment_dispute_lost_at": "2022-04-29T08:59:51Z",
88
"payment_due_date": "2022-06-02",
9+
"payment_overdue_since": null,
910
"invoice_type": "one_off",
1011
"version_number": 2,
1112
"status": "finalized",

spec/lago/api/resources/invoice_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
net_payment_term: 0,
5151
payment_due_date: '2022-06-02',
5252
payment_status: 'succeeded',
53+
payment_overdue_since: nil,
5354
invoice_type: 'one_off'
5455
)
5556
expect(invoice.applied_taxes.first.tax_code).to eq('tax_code')

0 commit comments

Comments
 (0)