|
66 | 66 | } |
67 | 67 | }, |
68 | 68 | "schemas": { |
69 | | - "DetailedServiceCosts": { |
| 69 | + "DetailedServiceCost": { |
70 | 70 | "description": "Costs for a single service", |
71 | 71 | "properties": { |
72 | 72 | "reportData": { |
|
135 | 135 | "title": "Service Costs", |
136 | 136 | "type": "object" |
137 | 137 | }, |
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": { |
139 | 157 | "description": "Detailed costs for a project including service costs", |
140 | 158 | "properties": { |
141 | 159 | "customerAccountId": { |
|
155 | 173 | "services": { |
156 | 174 | "description": "Total discount for all services and the whole requested date range (value in cents). Please see \"depth\" parameter for more details.", |
157 | 175 | "items": { |
158 | | - "$ref": "#/components/schemas/DetailedServiceCosts" |
| 176 | + "$ref": "#/components/schemas/DetailedServiceCost" |
159 | 177 | }, |
160 | 178 | "type": "array" |
161 | 179 | }, |
|
182 | 200 | "title": "V3 Project Costs with detailed service costs", |
183 | 201 | "type": "object" |
184 | 202 | }, |
185 | | - "ProjectCostsWithReports": { |
| 203 | + "ProjectCostWithReports": { |
186 | 204 | "description": "Detailed costs for a project", |
187 | 205 | "properties": { |
188 | 206 | "customerAccountId": { |
|
229 | 247 | "title": "v3 Project costs with report data", |
230 | 248 | "type": "object" |
231 | 249 | }, |
232 | | - "ProjectCostsWithSummarizedServices": { |
| 250 | + "ProjectCostWithSummarizedServices": { |
233 | 251 | "description": "Costs for a project including summarized service costs", |
234 | 252 | "properties": { |
235 | 253 | "customerAccountId": { |
|
249 | 267 | "services": { |
250 | 268 | "description": "Summarized service costs", |
251 | 269 | "items": { |
252 | | - "$ref": "#/components/schemas/SummarizedServiceCosts" |
| 270 | + "$ref": "#/components/schemas/SummarizedServiceCost" |
253 | 271 | }, |
254 | 272 | "type": "array" |
255 | 273 | }, |
|
324 | 342 | "title": "Costs", |
325 | 343 | "type": "object" |
326 | 344 | }, |
327 | | - "SummarizedProjectCosts": { |
| 345 | + "SummarizedProjectCost": { |
328 | 346 | "description": "Summarized costs for a project", |
329 | 347 | "properties": { |
330 | 348 | "customerAccountId": { |
|
364 | 382 | "title": "v3 Summarized Project Costs", |
365 | 383 | "type": "object" |
366 | 384 | }, |
367 | | - "SummarizedServiceCosts": { |
| 385 | + "SummarizedServiceCost": { |
368 | 386 | "description": "Summarized costs for a project", |
369 | 387 | "properties": { |
370 | 388 | "customerAccountId": { |
|
401 | 419 | "totalCharge", |
402 | 420 | "totalDiscount" |
403 | 421 | ], |
404 | | - "title": "V3 Summarized Project Costs", |
| 422 | + "title": "V3 Summarized Service Costs", |
405 | 423 | "type": "object" |
406 | 424 | }, |
407 | 425 | "defaultError": { |
|
469 | 487 | "application/json": { |
470 | 488 | "schema": { |
471 | 489 | "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" |
486 | 491 | }, |
487 | 492 | "type": "array" |
488 | 493 | } |
|
603 | 608 | "application/json": { |
604 | 609 | "schema": { |
605 | 610 | "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" |
620 | 612 | }, |
621 | 613 | "type": "array" |
622 | 614 | } |
|
736 | 728 | "content": { |
737 | 729 | "application/json": { |
738 | 730 | "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" |
753 | 732 | } |
754 | 733 | }, |
755 | 734 | "text/csv": { |
|
0 commit comments