Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add get billing group service discount #573

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 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 GetBillingGroupInvoiceServiceDiscounts(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,11 @@ message RippleV2InvoiceListingResponse {
string billingAmountGcp = 8;
}

message GetBillingGroupInvoiceServiceDiscountsRequest {
string groupId = 1;
}

message GetBillingGroupInvoiceServiceDiscountsResponse {
// Service discount id
string id = 1;
}
40 changes: 40 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_GetBillingGroupInvoiceServiceDiscounts",
"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,15 @@
}
}
},
"v1GetBillingGroupInvoiceServiceDiscountsResponse": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "Service discount id"
}
}
},
"v1GetBillingGroupResponse": {
"type": "object",
"properties": {
Expand Down
Loading