From 7a10c1b3488a89d95199e3e25883976c597d03ed Mon Sep 17 00:00:00 2001 From: Kush Sharma Date: Sat, 9 Nov 2024 20:51:51 +0530 Subject: [PATCH] feat(frontier): on demand trigger to generate credit overdraft invoices Signed-off-by: Kush Sharma --- raystack/frontier/v1beta1/admin.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; }