diff --git a/raystack/frontier/v1beta1/admin.proto b/raystack/frontier/v1beta1/admin.proto index 7cbbd821..c104ab75 100644 --- a/raystack/frontier/v1beta1/admin.proto +++ b/raystack/frontier/v1beta1/admin.proto @@ -344,6 +344,18 @@ service AdminService { }; } + rpc GenerateInvoices(GenerateInvoicesRequest) returns (GenerateInvoicesResponse) { + option (google.api.http) = { + post: "/v1beta1/admin/billing/invoices/generate", + body: "*" + }; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "Invoice"; + summary: "Trigger invoice generation"; + description: "Triggers the creation of credit overdraft invoices for all billing accounts."; + }; + } + rpc ListAllBillingAccounts(ListAllBillingAccountsRequest) returns (ListAllBillingAccountsResponse) { option (google.api.http) = {get: "/v1beta1/admin/billing/accounts"}; option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { @@ -700,6 +712,10 @@ message ListAllInvoicesResponse { ]; } +message GenerateInvoicesRequest {} + +message GenerateInvoicesResponse {} + message ListAllBillingAccountsRequest { string org_id = 1; }