Skip to content

Commit 118d82d

Browse files
OAS Update
1 parent 00d5a02 commit 118d82d

File tree

3 files changed

+30
-939
lines changed

3 files changed

+30
-939
lines changed

services/cost/v3/cost.json

Lines changed: 30 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
}
6767
},
6868
"schemas": {
69-
"DetailedServiceCosts": {
69+
"DetailedServiceCost": {
7070
"description": "Costs for a single service",
7171
"properties": {
7272
"reportData": {
@@ -135,7 +135,25 @@
135135
"title": "Service Costs",
136136
"type": "object"
137137
},
138-
"ProjectCostsWithDetailedServices": {
138+
"ProjectCost": {
139+
"anyOf": [
140+
{
141+
"$ref": "#/components/schemas/SummarizedProjectCost"
142+
},
143+
{
144+
"$ref": "#/components/schemas/ProjectCostWithReports"
145+
},
146+
{
147+
"$ref": "#/components/schemas/ProjectCostWithSummarizedServices"
148+
},
149+
{
150+
"$ref": "#/components/schemas/ProjectCostWithDetailedServices"
151+
}
152+
],
153+
"title": "v3 Project Costs",
154+
"type": "object"
155+
},
156+
"ProjectCostWithDetailedServices": {
139157
"description": "Detailed costs for a project including service costs",
140158
"properties": {
141159
"customerAccountId": {
@@ -155,7 +173,7 @@
155173
"services": {
156174
"description": "Total discount for all services and the whole requested date range (value in cents). Please see \"depth\" parameter for more details.",
157175
"items": {
158-
"$ref": "#/components/schemas/DetailedServiceCosts"
176+
"$ref": "#/components/schemas/DetailedServiceCost"
159177
},
160178
"type": "array"
161179
},
@@ -182,7 +200,7 @@
182200
"title": "V3 Project Costs with detailed service costs",
183201
"type": "object"
184202
},
185-
"ProjectCostsWithReports": {
203+
"ProjectCostWithReports": {
186204
"description": "Detailed costs for a project",
187205
"properties": {
188206
"customerAccountId": {
@@ -229,7 +247,7 @@
229247
"title": "v3 Project costs with report data",
230248
"type": "object"
231249
},
232-
"ProjectCostsWithSummarizedServices": {
250+
"ProjectCostWithSummarizedServices": {
233251
"description": "Costs for a project including summarized service costs",
234252
"properties": {
235253
"customerAccountId": {
@@ -249,7 +267,7 @@
249267
"services": {
250268
"description": "Summarized service costs",
251269
"items": {
252-
"$ref": "#/components/schemas/SummarizedServiceCosts"
270+
"$ref": "#/components/schemas/SummarizedServiceCost"
253271
},
254272
"type": "array"
255273
},
@@ -324,7 +342,7 @@
324342
"title": "Costs",
325343
"type": "object"
326344
},
327-
"SummarizedProjectCosts": {
345+
"SummarizedProjectCost": {
328346
"description": "Summarized costs for a project",
329347
"properties": {
330348
"customerAccountId": {
@@ -364,7 +382,7 @@
364382
"title": "v3 Summarized Project Costs",
365383
"type": "object"
366384
},
367-
"SummarizedServiceCosts": {
385+
"SummarizedServiceCost": {
368386
"description": "Summarized costs for a project",
369387
"properties": {
370388
"customerAccountId": {
@@ -401,7 +419,7 @@
401419
"totalCharge",
402420
"totalDiscount"
403421
],
404-
"title": "V3 Summarized Project Costs",
422+
"title": "V3 Summarized Service Costs",
405423
"type": "object"
406424
},
407425
"defaultError": {
@@ -469,20 +487,7 @@
469487
"application/json": {
470488
"schema": {
471489
"items": {
472-
"anyOf": [
473-
{
474-
"$ref": "#/components/schemas/SummarizedProjectCosts"
475-
},
476-
{
477-
"$ref": "#/components/schemas/ProjectCostsWithReports"
478-
},
479-
{
480-
"$ref": "#/components/schemas/ProjectCostsWithSummarizedServices"
481-
},
482-
{
483-
"$ref": "#/components/schemas/ProjectCostsWithDetailedServices"
484-
}
485-
]
490+
"$ref": "#/components/schemas/ProjectCost"
486491
},
487492
"type": "array"
488493
}
@@ -603,20 +608,7 @@
603608
"application/json": {
604609
"schema": {
605610
"items": {
606-
"anyOf": [
607-
{
608-
"$ref": "#/components/schemas/SummarizedProjectCosts"
609-
},
610-
{
611-
"$ref": "#/components/schemas/ProjectCostsWithReports"
612-
},
613-
{
614-
"$ref": "#/components/schemas/ProjectCostsWithSummarizedServices"
615-
},
616-
{
617-
"$ref": "#/components/schemas/ProjectCostsWithDetailedServices"
618-
}
619-
]
611+
"$ref": "#/components/schemas/ProjectCost"
620612
},
621613
"type": "array"
622614
}
@@ -736,20 +728,7 @@
736728
"content": {
737729
"application/json": {
738730
"schema": {
739-
"anyOf": [
740-
{
741-
"$ref": "#/components/schemas/SummarizedProjectCosts"
742-
},
743-
{
744-
"$ref": "#/components/schemas/ProjectCostsWithReports"
745-
},
746-
{
747-
"$ref": "#/components/schemas/ProjectCostsWithSummarizedServices"
748-
},
749-
{
750-
"$ref": "#/components/schemas/ProjectCostsWithDetailedServices"
751-
}
752-
]
731+
"$ref": "#/components/schemas/ProjectCost"
753732
}
754733
},
755734
"text/csv": {

0 commit comments

Comments
 (0)