Skip to content

Commit 704bc15

Browse files
OAS Update
1 parent 3743740 commit 704bc15

1 file changed

Lines changed: 52 additions & 13 deletions

File tree

services/cost/v3/cost.json

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@
115115
"format": "int32",
116116
"type": "integer"
117117
},
118+
"totalQuantityDecimal": {
119+
"description": "Total quantity in decimal format, returned as string to preserve precision.\nNOTE: This field will be removed in future versions and `totalQuantity` will become a decimal.\n",
120+
"example": "321.1",
121+
"type": "string"
122+
},
118123
"unitLabel": {
119124
"description": "Label for unit",
120125
"example": "Giga Hours",
@@ -125,6 +130,7 @@
125130
},
126131
"required": [
127132
"totalQuantity",
133+
"totalQuantityDecimal",
128134
"totalCharge",
129135
"totalDiscount",
130136
"unitLabel",
@@ -315,6 +321,11 @@
315321
"format": "int32",
316322
"type": "integer"
317323
},
324+
"quantityDecimal": {
325+
"description": "Quantity in decimal format, returned as string to preserve precision.\nNOTE: This field will be removed in future versions and `totalQuantity` will become a decimal.\n",
326+
"example": "123.3",
327+
"type": "string"
328+
},
318329
"timePeriod": {
319330
"description": "Time period according to desired granularity",
320331
"format": "date",
@@ -337,7 +348,8 @@
337348
"timePeriod",
338349
"charge",
339350
"discount",
340-
"quantity"
351+
"quantity",
352+
"quantityDecimal"
341353
],
342354
"title": "Costs",
343355
"type": "object"
@@ -520,13 +532,13 @@
520532
"text/csv": {
521533
"examples": {
522534
"Project Costs with detailed service costs": {
523-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,giga\n"
535+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,quantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,giga\n"
524536
},
525537
"Project costs with report data": {
526-
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2\n"
538+
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity,quantityDecimal\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2,2.1\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2,2.1\n"
527539
},
528540
"Project costs with summarized services": {
529-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,giga\n"
541+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,totalQuantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,3.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,3.1,giga\n"
530542
},
531543
"Summarized Project Costs": {
532544
"value": "customerAccountId,projectId,projectName,totalCharge,totalDiscount\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,1407.4073407199998,2074.07340738\n"
@@ -537,7 +549,16 @@
537549
}
538550
}
539551
},
540-
"description": "OK"
552+
"description": "OK",
553+
"headers": {
554+
"Last-Modified": {
555+
"description": "The UTC date/time when the costs were last updated.",
556+
"schema": {
557+
"format": "date-time",
558+
"type": "string"
559+
}
560+
}
561+
}
541562
},
542563
"400": {
543564
"content": {
@@ -660,13 +681,13 @@
660681
"text/csv": {
661682
"examples": {
662683
"Project Costs with detailed service costs": {
663-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,giga\n"
684+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,quantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,giga\n"
664685
},
665686
"Project costs with report data": {
666-
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2\n"
687+
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity,quantityDecimal\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2,2.1\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2,2.1\n"
667688
},
668689
"Project costs with summarized services": {
669-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,giga\n"
690+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,totalQuantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,3.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,3.1,giga\n"
670691
},
671692
"Summarized Project Costs": {
672693
"value": "customerAccountId,projectId,projectName,totalCharge,totalDiscount\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,1407.4073407199998,2074.07340738\n"
@@ -677,7 +698,16 @@
677698
}
678699
}
679700
},
680-
"description": "OK"
701+
"description": "OK",
702+
"headers": {
703+
"Last-Modified": {
704+
"description": "The UTC date/time when the costs were last updated.",
705+
"schema": {
706+
"format": "date-time",
707+
"type": "string"
708+
}
709+
}
710+
}
681711
},
682712
"400": {
683713
"content": {
@@ -797,13 +827,13 @@
797827
"text/csv": {
798828
"examples": {
799829
"Project Costs with detailed service costs": {
800-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,giga\n"
830+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,start,end,charge,discount,quantity,quantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,2022-02-28,2022-02-28,234.56789012,345.67890123,1,1.1,giga\n"
801831
},
802832
"Project costs with report data": {
803-
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2\n"
833+
"value": "customerAccountId,projectId,projectName,start,end,charge,discount,quantity,quantityDecimal\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-02-28,2022-02-28,469.13578024,691.35780246,2,2.1\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,2022-03-01,2022-03-01,469.13578024,691.35780246,2,2.1\n"
804834
},
805835
"Project costs with summarized services": {
806-
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,giga\n"
836+
"value": "customerAccountId,projectId,projectName,sku,serviceName,serviceCategoryName,totalCharge,totalDiscount,totalQuantity,totalQuantityDecimal,unitLabel\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku 2,service 2,bar,703.70367036,1037.03670369,3,3.1,hour\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,sku name,service name,foo,703.70367036,1037.03670369,3,3.1,giga\n"
807837
},
808838
"Summarized Project Costs": {
809839
"value": "customerAccountId,projectId,projectName,totalCharge,totalDiscount\n9caede67-72ce-4ce1-be58-90b6d1216540,491c5413-f561-44a5-adae-941fcd2d7a8a,testProject,1407.4073407199998,2074.07340738\n"
@@ -814,7 +844,16 @@
814844
}
815845
}
816846
},
817-
"description": "OK"
847+
"description": "OK",
848+
"headers": {
849+
"Last-Modified": {
850+
"description": "The UTC date/time when the costs were last updated.",
851+
"schema": {
852+
"format": "date-time",
853+
"type": "string"
854+
}
855+
}
856+
}
818857
},
819858
"400": {
820859
"content": {

0 commit comments

Comments
 (0)