Skip to content

Commit

Permalink
Add delinquencyPeriod property to Subscription resource (#1722)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-yasko authored Jan 11, 2024
1 parent 273b488 commit bb16a18
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ content:
- subscription-trial-end-reminder
- subscription-trial-ended
- subscription-upgraded
- order-delinquency-reached
_embedded:
type: object
description: Embedded objects.
Expand Down
1 change: 1 addition & 0 deletions openapi/components/schemas/EventType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,4 @@ enum:
- transaction-discrepancy-found
- transaction-process-requested
- transaction-processed
- order-delinquency-reached
1 change: 1 addition & 0 deletions openapi/components/schemas/GlobalEventType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,4 @@ enum:
- transaction-reconciled
- transaction-timeout-resolved
- waiting-gateway-transaction-completed
- order-delinquency-reached
10 changes: 10 additions & 0 deletions openapi/components/schemas/Subscription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,16 @@ properties:
If this value is not passed during order creation,
a [pending order TTL](https://all-rebilly.redoc.ly/tag/Organizations/operation/PatchOrganization/#!path=settings/billing/pendingOrderTtl&t=request) setting is used to calculate the value.
format: date-time
delinquencyPeriod:
type:
- 'string'
- '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.
If the provided value is `null`, the order does not change state.
example: P7D
default: null
couponIds:
type:
- 'array'
Expand Down
3 changes: 3 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1564,3 +1564,6 @@ webhooks:
data-export-completed:
post:
$ref: ./webhooks/data-export-completed.yaml
order-delinquency-reached:
post:
$ref: ./webhooks/order-delinquency-reached.yaml
11 changes: 11 additions & 0 deletions openapi/webhooks/order-delinquency-reached.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
summary: Order delinquency time reached
operationId: order-delinquency-reached
x-products:
- Core
tags:
- Orders
requestBody:
$ref: ../components/requestBodies/Webhooks/SubscriptionWebhook.yaml
responses:
'2xx':
description: Returns any 2xx status to indicate that data is received.

0 comments on commit bb16a18

Please sign in to comment.