Skip to content

Commit

Permalink
feat(frontier): admins can list all billing accounts (#340)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Feb 26, 2024
1 parent ed6bf22 commit 00bd94e
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,15 @@ service AdminService {
description: "Lists all the invoices from all the organizations in a Frontier instance. It can be filtered by organization.";
};
}

rpc ListAllBillingAccounts(ListAllBillingAccountsRequest) returns (ListAllBillingAccountsResponse) {
option (google.api.http) = {get: "/v1beta1/admin/billing/accounts"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Billing";
summary: "List all billing accounts";
description: "Lists all the billing accounts from all the organizations in a Frontier instance. It can be filtered by organization.";
};
}
}

message ListAllUsersRequest {
Expand Down Expand Up @@ -560,4 +569,12 @@ message ListAllInvoicesRequest {

message ListAllInvoicesResponse {
repeated Invoice invoices = 1;
}

message ListAllBillingAccountsRequest {
string org_id = 1;
}

message ListAllBillingAccountsResponse {
repeated BillingAccount billing_accounts = 1;
}

0 comments on commit 00bd94e

Please sign in to comment.