@@ -22,14 +22,14 @@ paths:
2222 operationId : getSubscription
2323 summary : Retrieves a subscription for a given subscriptionId
2424 parameters :
25- - $ref : ' #/components/parameters/subscriptionId'
25+ - $ref : " #/components/parameters/subscriptionId"
2626 responses :
2727 " 200 " :
2828 description : Success - return response of unique Subscription object
2929 content :
3030 application/json :
3131 schema :
32- $ref : ' #/components/schemas/Subscription'
32+ $ref : " #/components/schemas/Subscription"
3333 example :
3434 currentPeriodEnd : 2021-07-20T03:13:48
3535 endDate : 2021-07-20T03:13:48
7272 content :
7373 application/json :
7474 schema :
75- $ref : ' #/components/schemas/ProblemDetails'
75+ $ref : " #/components/schemas/ProblemDetails"
7676 description : When a failure occurs in the endpoint
7777 security :
7878 - OAuth2 :
@@ -84,16 +84,16 @@ paths:
8484 operationId : postUsageRecords
8585 summary : Send metered usage belonging to this subscription and subscription item
8686 parameters :
87- - $ref : ' #/components/parameters/idempotencyKey'
88- - $ref : ' #/components/parameters/subscriptionId'
89- - $ref : ' #/components/parameters/subscriptionItemId'
87+ - $ref : " #/components/parameters/idempotencyKey"
88+ - $ref : " #/components/parameters/subscriptionId"
89+ - $ref : " #/components/parameters/subscriptionItemId"
9090 responses :
9191 " 200 " :
9292 description : Success - return response of the record submitted
9393 content :
9494 application/json :
9595 schema :
96- $ref : ' #/components/schemas/UsageRecord'
96+ $ref : " #/components/schemas/UsageRecord"
9797 example :
9898 usageRecordId : 2a90f7d9-4c10-4a23-9c34-b47225167a48
9999 subscriptionId : 391be708-878a-4741-acfb-c0bc9a165bdb
@@ -107,7 +107,7 @@ paths:
107107 content :
108108 application/json :
109109 schema :
110- $ref : ' #/components/schemas/ProblemDetails'
110+ $ref : " #/components/schemas/ProblemDetails"
111111 description : When a failure occurs in the endpoint
112112 security :
113113 - OAuth2 :
@@ -116,7 +116,7 @@ paths:
116116 content :
117117 application/json :
118118 schema :
119- $ref : ' #/components/schemas/CreateUsageRecord'
119+ $ref : " #/components/schemas/CreateUsageRecord"
120120 example :
121121 timestamp : 2022-01-21T13:01:00
122122 quantity : 10
@@ -129,17 +129,17 @@ paths:
129129 operationId : putUsageRecords
130130 summary : Update and existing metered usage belonging to this subscription and subscription item
131131 parameters :
132- - $ref : ' #/components/parameters/idempotencyKey'
133- - $ref : ' #/components/parameters/subscriptionId'
134- - $ref : ' #/components/parameters/subscriptionItemId'
135- - $ref : ' #/components/parameters/usageRecordId'
132+ - $ref : " #/components/parameters/idempotencyKey"
133+ - $ref : " #/components/parameters/subscriptionId"
134+ - $ref : " #/components/parameters/subscriptionItemId"
135+ - $ref : " #/components/parameters/usageRecordId"
136136 responses :
137137 " 200 " :
138138 description : Success - return response of the modified record
139139 content :
140140 application/json :
141141 schema :
142- $ref : ' #/components/schemas/UsageRecord'
142+ $ref : " #/components/schemas/UsageRecord"
143143 example :
144144 usageRecordId : 2a90f7d9-4c10-4a23-9c34-b47225167a48
145145 subscriptionId : 391be708-878a-4741-acfb-c0bc9a165bdb
@@ -153,7 +153,7 @@ paths:
153153 content :
154154 application/json :
155155 schema :
156- $ref : ' #/components/schemas/ProblemDetails'
156+ $ref : " #/components/schemas/ProblemDetails"
157157 description : When a failure occurs in the endpoint
158158 security :
159159 - OAuth2 :
@@ -162,7 +162,7 @@ paths:
162162 content :
163163 application/json :
164164 schema :
165- $ref : ' #/components/schemas/UpdateUsageRecord'
165+ $ref : " #/components/schemas/UpdateUsageRecord"
166166 example :
167167 quantity : 10
168168 description : Contains the quantity for the usage record to update
@@ -174,14 +174,14 @@ paths:
174174 operationId : getUsageRecords
175175 summary : Gets all usage records related to the subscription
176176 parameters :
177- - $ref : ' #/components/parameters/subscriptionId'
177+ - $ref : " #/components/parameters/subscriptionId"
178178 responses :
179179 " 200 " :
180180 description : Success - return a list of all usage record submitted against this subscription for this subscription period
181181 content :
182182 application/json :
183183 schema :
184- $ref : ' #/components/schemas/UsageRecordsList'
184+ $ref : " #/components/schemas/UsageRecordsList"
185185 example :
186186 usageRecords :
187187 - usageRecordId : 206100d3-e18b-4c59-9372-e98e4367a73f
@@ -204,7 +204,7 @@ paths:
204204 content :
205205 application/json :
206206 schema :
207- $ref : ' #/components/schemas/ProblemDetails'
207+ $ref : " #/components/schemas/ProblemDetails"
208208 description : When a failure occurs in the endpoint
209209 security :
210210 - OAuth2 :
@@ -228,7 +228,7 @@ components:
228228 description : Unique identifier for Subscription object
229229 example : 00000000-0000-0000-0000-000000000000
230230 x-example-java : UUID.fromString("00000000-0000-0000-0000-000000000000")
231- x-example-php : ' "00000000-0000-0000-0000-000000000000"'
231+ x-example-php : " "00000000-0000-0000-0000-000000000000""
232232 x-example-csharp : Guid.Parse("00000000-0000-0000-0000-000000000000");
233233 schema :
234234 type : string
@@ -241,7 +241,7 @@ components:
241241 description : The unique identifier of the subscriptionItem
242242 example : 00000000-0000-0000-0000-000000000000
243243 x-example-java : UUID.fromString("00000000-0000-0000-0000-000000000000")
244- x-example-php : ' "00000000-0000-0000-0000-000000000000"'
244+ x-example-php : " "00000000-0000-0000-0000-000000000000""
245245 x-example-csharp : Guid.Parse("00000000-0000-0000-0000-000000000000");
246246 schema :
247247 type : string
@@ -254,7 +254,7 @@ components:
254254 description : The unique identifier of the usage record
255255 example : 00000000-0000-0000-0000-000000000000
256256 x-example-java : UUID.fromString("00000000-0000-0000-0000-000000000000")
257- x-example-php : ' "00000000-0000-0000-0000-000000000000"'
257+ x-example-php : " "00000000-0000-0000-0000-000000000000""
258258 x-example-csharp : Guid.Parse("00000000-0000-0000-0000-000000000000");
259259 schema :
260260 type : string
@@ -294,7 +294,7 @@ components:
294294 description : List of plans for the subscription.
295295 type : array
296296 items :
297- $ref : ' #/components/schemas/Plan'
297+ $ref : " #/components/schemas/Plan"
298298 startDate :
299299 description : Date when the subscription was first created.
300300 format : date-time
@@ -343,7 +343,7 @@ components:
343343 List of the subscription items belonging to the plan. It does not
344344 include cancelled subscription items.
345345 items :
346- $ref : ' #/components/schemas/SubscriptionItem'
346+ $ref : " #/components/schemas/SubscriptionItem"
347347 type : array
348348 required :
349349 - id
@@ -398,10 +398,10 @@ components:
398398 type : string
399399 price :
400400 description : The price of the product subscribed to.
401- $ref : ' #/components/schemas/Price'
401+ $ref : " #/components/schemas/Price"
402402 product :
403403 description : The product subscribed to.
404- $ref : ' #/components/schemas/Product'
404+ $ref : " #/components/schemas/Product"
405405 quantity :
406406 description : The quantity of the item. For a fixed product, it is 1. For a per-seat product, it is a positive integer. For metered products, it is always null.
407407 type : integer
@@ -508,7 +508,7 @@ components:
508508 usageRecords :
509509 description : A collection of usage records
510510 items :
511- $ref : ' #/components/schemas/UsageRecord'
511+ $ref : " #/components/schemas/UsageRecord"
512512 type : array
513513 required :
514514 - usageRecords
0 commit comments