Skip to content

Commit 273b488

Browse files
nanobashnoon-dawgjustnero
authored
Rename subscription yaml files (#1735)
* Rename Subscription.yaml to SubscriptionOrOneTimeSale.yaml * Rename OneTimeOrder.yaml to OneTimeSale.yaml * Rename StorefrontOneTimeOrder.yaml to StorefrontOneTimeSale.yaml * Rename SubscriptionOrder.yaml to Subscription.yaml * Rename StorefrontSubscriptionOrder.yaml to StorefrontSubscription.yaml * Apply suggestions from code review Co-authored-by: Chris <[email protected]> * Update openapi/components/schemas/SubscriptionOrOneTimeSale.yaml Co-authored-by: Arif Kurkchi <[email protected]> --------- Co-authored-by: Chris <[email protected]> Co-authored-by: Arif Kurkchi <[email protected]>
1 parent a8e7558 commit 273b488

17 files changed

+496
-496
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
content:
22
application/json:
33
schema:
4-
$ref: ../schemas/Subscription.yaml
4+
$ref: ../schemas/SubscriptionOrOneTimeSale.yaml
55
description: Order resource.
66
required: true

openapi/components/requestBodies/Webhooks/RenewalInvoiceIssued.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ content:
2121
description: Embedded objects.
2222
properties:
2323
subscription:
24-
$ref: ../../schemas/Subscription.yaml
24+
$ref: ../../schemas/SubscriptionOrOneTimeSale.yaml
2525
invoice:
2626
$ref: ../../schemas/Invoice.yaml
2727
_links:

openapi/components/requestBodies/Webhooks/SubscriptionAndSubscriptionPause.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ content:
2424
description: Embedded objects.
2525
properties:
2626
subscription:
27-
$ref: ../../schemas/Subscription.yaml
27+
$ref: ../../schemas/SubscriptionOrOneTimeSale.yaml
2828
pause:
2929
$ref: ../../schemas/SubscriptionPause.yaml
3030
_links:

openapi/components/requestBodies/Webhooks/SubscriptionWebhook.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ content:
3030
description: Embedded objects.
3131
properties:
3232
subscription:
33-
$ref: ../../schemas/Subscription.yaml
33+
$ref: ../../schemas/SubscriptionOrOneTimeSale.yaml
3434
_links:
3535
type: array
3636
description: Related links.

openapi/components/requestBodies/Webhooks/UsageLimitWebhook.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ content:
3535
description: Embedded objects.
3636
properties:
3737
subscription:
38-
$ref: ../../schemas/Subscription.yaml
38+
$ref: ../../schemas/SubscriptionOrOneTimeSale.yaml
3939
_links:
4040
type: array
4141
description: Related links.

openapi/components/schemas/Search.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ properties:
1717
readOnly: true
1818
type: array
1919
items:
20-
$ref: ./Subscription.yaml
20+
$ref: ./SubscriptionOrOneTimeSale.yaml
2121
transactions:
2222
description: List of returned transactions.
2323
readOnly: true

openapi/components/schemas/StorefrontOrder.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ type: object
22
discriminator:
33
propertyName: orderType
44
mapping:
5-
subscription-order: ./StorefrontSubscriptionOrder.yaml
6-
one-time-order: ./StorefrontOneTimeOrder.yaml
5+
subscription-order: ./StorefrontSubscription.yaml
6+
one-time-order: ./StorefrontOneTimeSale.yaml
77
properties:
88
orderType:
99
description: |-

0 commit comments

Comments
 (0)