From a948d167087d3977c69f6614fa33565317ee79d5 Mon Sep 17 00:00:00 2001 From: hzoppetti Date: Thu, 9 Jan 2020 10:26:02 -0500 Subject: [PATCH 1/2] updated ints to nums, updated examples, changed type to exclude prepay --- openapi.yaml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 763cd1420..a8d0d831b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14370,44 +14370,44 @@ components: example: Invoice x-linode-cli-display: 3 subtotal: - type: integer + type: number readOnly: true description: The amount of the Invoice before taxes in US Dollars. - example: 120 + example: 120.25 x-linode-cli-display: 4 tax: - type: integer + type: number readOnly: true description: The amount of tax levied on the Invoice in US Dollars. - example: 12 + example: 12.25 x-linode-cli-display: 5 total: - type: integer + type: number readOnly: true description: The amount of the Invoice after taxes in US Dollars. - example: 132 + example: 132.50 x-linode-cli-display: 6 InvoiceItem: type: object description: An InvoiceItem object. properties: amount: - type: integer + type: number readOnly: true description: The price, in US dollars, of the Invoice Item. Equal to the unit price multiplied by quantity. - example: 20 + example: 20.25 x-linode-cli-display: 4 tax: - type: integer + type: number readOnly: true description: The amount of tax levied on this Item in US Dollars. - example: 2 + example: 1.25 x-linode-cli-display: 5 total: - type: integer + type: number readOnly: true description: The price of this Item after taxes in US Dollars. - example: 22 + example: 21.50 x-linode-cli-display: 6 from: type: string @@ -14426,7 +14426,7 @@ components: type: integer readOnly: true description: The quantity of this Item for the specified Invoice. - example: 2 + example: 4 to: type: string readOnly: true @@ -14437,16 +14437,16 @@ components: type: type: string readOnly: true - description: The type of service, ether `prepay` or `misc`. + description: The type of service, ether `hourly` or `misc`. enum: - hourly - - prepay - misc + example: hourly unitprice: - type: integer + type: number readOnly: true description: The monthly service fee in US Dollars for this Item. - example: 10 + example: 5.05 IPAddress: type: object description: > From 96dadbb9633f33afe8f69b0f70e062423a861d08 Mon Sep 17 00:00:00 2001 From: nmelehan Date: Fri, 10 Jan 2020 16:10:11 -0500 Subject: [PATCH 2/2] Update examples for InvoiceItem amount and total properties Updated examples fit the arithmetic for the properties --- openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index a8d0d831b..1fa44262a 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -14395,7 +14395,7 @@ components: type: number readOnly: true description: The price, in US dollars, of the Invoice Item. Equal to the unit price multiplied by quantity. - example: 20.25 + example: 20.20 x-linode-cli-display: 4 tax: type: number @@ -14407,7 +14407,7 @@ components: type: number readOnly: true description: The price of this Item after taxes in US Dollars. - example: 21.50 + example: 21.45 x-linode-cli-display: 6 from: type: string