diff --git a/billing/v1/billing.proto b/billing/v1/billing.proto index fd60fa69..6dffaa7c 100644 --- a/billing/v1/billing.proto +++ b/billing/v1/billing.proto @@ -262,6 +262,13 @@ service Billing { }; } + // Returns the service discount associated with the billing group id + rpc GetBillingGroupServiceDiscounts(GetBillingGroupInvoiceServiceDiscountsRequest) returns (GetBillingGroupInvoiceServiceDiscountsResponse) { + option (google.api.http) = { + get: "/v1/servicediscounts/{groupId}/billinggroup" + }; + } + // Registers the reseller account. Only available in Ripple. rpc CreateReseller(CreateResellerRequest) returns (api.ripple.Reseller) { option (google.api.http) = { @@ -1836,3 +1843,10 @@ message RippleV2InvoiceListingResponse { string billingAmountGcp = 8; } +message GetBillingGroupInvoiceServiceDiscountsRequest { + string groupId = 1; +} + +message GetBillingGroupInvoiceServiceDiscountsResponse { + string serviceDiscountId = 1; +} diff --git a/openapiv2/apidocs.swagger.json b/openapiv2/apidocs.swagger.json index c75ee838..c4489bc8 100644 --- a/openapiv2/apidocs.swagger.json +++ b/openapiv2/apidocs.swagger.json @@ -9837,6 +9837,37 @@ ] } }, + "/v1/servicediscounts/{groupId}/billinggroup": { + "get": { + "summary": "Returns the service discount associated with the billing group id", + "operationId": "Billing_GetBillingGroupServiceDiscounts", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/v1GetBillingGroupInvoiceServiceDiscountsResponse" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/googlerpcStatus" + } + } + }, + "parameters": [ + { + "name": "groupId", + "in": "path", + "required": true, + "type": "string" + } + ], + "tags": [ + "Billing" + ] + } + }, "/v1/servicediscounts/{id}": { "get": { "summary": "WORK-IN-PROGRESS: Gets the invoice service discounts. Only available in Ripple.", @@ -27244,6 +27275,14 @@ } } }, + "v1GetBillingGroupInvoiceServiceDiscountsResponse": { + "type": "object", + "properties": { + "serviceDiscountId": { + "type": "string" + } + } + }, "v1GetBillingGroupResponse": { "type": "object", "properties": {