Skip to content

Commit

Permalink
add get billing group service discount
Browse files Browse the repository at this point in the history
  • Loading branch information
topphh committed Jan 17, 2025
1 parent 33df480 commit eb63759
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
14 changes: 14 additions & 0 deletions billing/v1/billing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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) = {
Expand Down Expand Up @@ -1836,3 +1843,10 @@ message RippleV2InvoiceListingResponse {
string billingAmountGcp = 8;
}

message GetBillingGroupInvoiceServiceDiscountsRequest {
string groupId = 1;
}

message GetBillingGroupInvoiceServiceDiscountsResponse {
string serviceDiscountId = 1;
}
39 changes: 39 additions & 0 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down Expand Up @@ -27244,6 +27275,14 @@
}
}
},
"v1GetBillingGroupInvoiceServiceDiscountsResponse": {
"type": "object",
"properties": {
"serviceDiscountId": {
"type": "string"
}
}
},
"v1GetBillingGroupResponse": {
"type": "object",
"properties": {
Expand Down

0 comments on commit eb63759

Please sign in to comment.