From 001e77ac7f85c8208361cd3ee3261c38ad3852d4 Mon Sep 17 00:00:00 2001 From: capoyon Date: Mon, 20 Jan 2025 10:58:59 +0800 Subject: [PATCH 1/2] remove ripple v2 invoice listing endpoint --- billing/v1/billing.proto | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/billing/v1/billing.proto b/billing/v1/billing.proto index 8bf26f1d..cdbc3f5f 100644 --- a/billing/v1/billing.proto +++ b/billing/v1/billing.proto @@ -573,12 +573,6 @@ service Billing { }; } - rpc RippleV2InvoiceListing(RippleV2InvoiceListingRequest) returns (stream RippleV2InvoiceListingResponse) { - option (google.api.http) = { - get: "/v1/ripplev2/invoicing/invoice-listing" - }; - } - } message BillingGroup { @@ -1827,22 +1821,6 @@ message FileChunk { bytes content = 1; } - -message RippleV2InvoiceListingRequest { - string yymmDate = 1; -} - -message RippleV2InvoiceListingResponse { - string invoiceName = 1; - string invoiceId = 2; - string company = 3; - string status = 4; - string waveStatus = 5; - string billingAmountAws = 6; - string billingAmmountAzure = 7; - string billingAmountGcp = 8; -} - message GetBillingGroupInvoiceServiceDiscountsRequest { string groupId = 1; } From bcd68f733bb321f3883f28113b9fb083fb30cef3 Mon Sep 17 00:00:00 2001 From: capoyon Date: Mon, 20 Jan 2025 11:02:27 +0800 Subject: [PATCH 2/2] update list invoice --- billing/v1/billing.proto | 15 ++++-- openapiv2/apidocs.swagger.json | 88 +++++++--------------------------- 2 files changed, 27 insertions(+), 76 deletions(-) diff --git a/billing/v1/billing.proto b/billing/v1/billing.proto index cdbc3f5f..d374622d 100644 --- a/billing/v1/billing.proto +++ b/billing/v1/billing.proto @@ -1369,7 +1369,7 @@ message DeleteAccessGroupRequest { // Request message for the ListInvoice rpc. message ListInvoiceRequest { - // Optional. billing internal id. + // Optional. billing internal id. If empty will list all the invoice status string groupId = 1; } @@ -1380,13 +1380,20 @@ message ListInvoiceResponse { string billingInternalId = 1; // The billing group id. - string BillingGroupId = 2; + string billingGroupId = 2; - // The billing group name. - string BillingGroupName = 3; + // The billing group name. Used as invoice name on ripple v2 + string billingGroupName = 3; // The date. string date = 4; + + // Created || Not Created + string invoiceStatus = 5; + // In progress || Done + string finalizationStatus = 6; + // Published || Not published + string waveStatus = 7; } // request message for ListAbcBillingGroups diff --git a/openapiv2/apidocs.swagger.json b/openapiv2/apidocs.swagger.json index 2fdf7dc8..5c60de05 100644 --- a/openapiv2/apidocs.swagger.json +++ b/openapiv2/apidocs.swagger.json @@ -9497,45 +9497,6 @@ ] } }, - "/v1/ripplev2/invoicing/invoice-listing": { - "get": { - "operationId": "Billing_RippleV2InvoiceListing", - "responses": { - "200": { - "description": "A successful response.(streaming responses)", - "schema": { - "type": "object", - "properties": { - "result": { - "$ref": "#/definitions/v1RippleV2InvoiceListingResponse" - }, - "error": { - "$ref": "#/definitions/googlerpcStatus" - } - }, - "title": "Stream result of v1RippleV2InvoiceListingResponse" - } - }, - "default": { - "description": "An unexpected error response.", - "schema": { - "$ref": "#/definitions/googlerpcStatus" - } - } - }, - "parameters": [ - { - "name": "yymmDate", - "in": "query", - "required": false, - "type": "string" - } - ], - "tags": [ - "Billing" - ] - } - }, "/v1/servicediscounts": { "post": { "summary": "WORK-IN-PROGRESS: Creates the invoice service discounts. Only available in Ripple.", @@ -28844,7 +28805,7 @@ "properties": { "groupId": { "type": "string", - "description": "Optional. billing internal id." + "title": "Optional. billing internal id. If empty will list all the invoice status" } }, "description": "Request message for the ListInvoice rpc." @@ -28856,17 +28817,29 @@ "type": "string", "description": "The billing internal id." }, - "BillingGroupId": { + "billingGroupId": { "type": "string", "description": "The billing group id." }, - "BillingGroupName": { + "billingGroupName": { "type": "string", - "description": "The billing group name." + "title": "The billing group name. Used as invoice name on ripple v2" }, "date": { "type": "string", "description": "The date." + }, + "invoiceStatus": { + "type": "string", + "title": "Created || Not Created" + }, + "finalizationStatus": { + "type": "string", + "title": "In progress || Done" + }, + "waveStatus": { + "type": "string", + "title": "Published || Not published" } }, "description": "Response message for the ListInvoice rpc." @@ -30124,35 +30097,6 @@ }, "description": "Request message for the RestoreSavings rpc." }, - "v1RippleV2InvoiceListingResponse": { - "type": "object", - "properties": { - "invoiceName": { - "type": "string" - }, - "invoiceId": { - "type": "string" - }, - "company": { - "type": "string" - }, - "status": { - "type": "string" - }, - "waveStatus": { - "type": "string" - }, - "billingAmountAws": { - "type": "string" - }, - "billingAmmountAzure": { - "type": "string" - }, - "billingAmountGcp": { - "type": "string" - } - } - }, "v1SaveNotificationSettingsRequest": { "type": "object", "properties": {