Skip to content

Commit

Permalink
Add subscription-items-changed event (#1794)
Browse files Browse the repository at this point in the history
* Add subscription-items-changed event

* Update openapi/webhooks/subscription-items-changed.yaml

Co-authored-by: Chris  <[email protected]>

---------

Co-authored-by: Chris <[email protected]>
  • Loading branch information
XaosSintez and noon-dawg authored Feb 16, 2024
1 parent e223cc3 commit 8f4354b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ content:
- subscription-trial-ended
- subscription-upgraded
- order-delinquency-reached
- subscription-items-changed
_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 @@ -65,6 +65,7 @@ enum:
- subscription-churned
- subscription-created
- subscription-downgraded
- subscription-items-changed
- subscription-modified
- subscription-pause-created
- subscription-pause-modified
Expand Down
1 change: 1 addition & 0 deletions openapi/components/schemas/GlobalEventType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ enum:
- subscription-canceled
- subscription-churned
- subscription-downgraded
- subscription-items-changed
- subscription-modified
- subscription-pause-created
- subscription-pause-modified
Expand Down
3 changes: 3 additions & 0 deletions openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,9 @@ webhooks:
subscription-downgraded:
post:
$ref: ./webhooks/subscription-downgraded.yaml
subscription-items-changed:
post:
$ref: ./webhooks/subscription-items-changed.yaml
subscription-modified:
post:
$ref: ./webhooks/subscription-modified.yaml
Expand Down
11 changes: 11 additions & 0 deletions openapi/webhooks/subscription-items-changed.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
summary: Subscription items changed
operationId: subscription-items-changed
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 8f4354b

Please sign in to comment.