Skip to content

Commit

Permalink
Add Invoice delinquencyTime (#1746)
Browse files Browse the repository at this point in the history
  • Loading branch information
2e3s authored Jan 25, 2024
1 parent b09d533 commit f323f92
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions openapi/components/schemas/Invoice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,20 @@ properties:
readOnly: true
allOf:
- $ref: ./OrganizationId.yaml
delinquencyTime:
description: |-
Date and time when the related order is considered delinquent, and is canceled.
The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
If this value is `null`, no delinquency time is configured.
If the `dueTime` of the order becomes greater than the `delinquencyTime` value,
the `delinquencyTime` value becomes equal to `dueTime`.
If an invoice is not related to an order, this field can only be `null`.
type:
- 'string'
- 'null'
format: date-time
default: null
_links:
type: array
description: Related links.
Expand Down
5 changes: 4 additions & 1 deletion openapi/components/schemas/Subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ properties:
- 'null'
description: |-
Length of time, in ISO-8601 durations format,
before which an order with an invoice in past the due state is automatically canceled.
which is added to the due time of the order when setting the delinquency time for all related invoices.
When the delinquency time of an invoice is reached, the order is automatically canceled.
The current invoice is abandoned along with order invoices that have the `unpaid` or `past-due` status.
If the provided value is `null`, the order does not change state.
example: P7D
default: null
Expand Down

0 comments on commit f323f92

Please sign in to comment.