Skip to content

Commit

Permalink
Add churnTimePolicy to subscription cancellation (#1839)
Browse files Browse the repository at this point in the history
  • Loading branch information
i-yasko authored Mar 29, 2024
1 parent e8bccfc commit 6c69aca
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 12 additions & 1 deletion openapi/components/schemas/SubscriptionCancellation.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
type: object
required:
- subscriptionId
- churnTime
- churnTimePolicy
properties:
id:
type: string
Expand Down Expand Up @@ -97,6 +97,17 @@ properties:
description: Date and time when the subscription is deactivated.
type: string
format: date-time
churnTimePolicy:
description: |-
Specifies when the subscription is to be deactivated.
The `churnTimePolicy` takes precedence over the `churnTime` in request.
type:
- 'string'
- 'null'
enum:
- 'null'
- 'now'
- 'at-next-renewal'
lineItems:
description: |-
Items to be added to the new invoice.
Expand Down
2 changes: 0 additions & 2 deletions openapi/paths/subscription-cancellations@{id}.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ patch:
readOnly: true
status:
readOnly: true
churnTime:
readOnly: true
- $ref: ../components/schemas/SubscriptionCancellation.yaml
description: Patch cancellation resource.
required: true
Expand Down

0 comments on commit 6c69aca

Please sign in to comment.