Skip to content

Commit

Permalink
feat(frontier): on demand trigger to generate credit overdraft invoices
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma committed Nov 9, 2024
1 parent eccbc3b commit ea64fa9
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions raystack/frontier/v1beta1/admin.proto
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,18 @@ service AdminService {
};
}

rpc TriggerCreditInvoices(TriggerCreditInvoicesRequest) returns (TriggerCreditInvoicesResponse) {
option (google.api.http) = {
post: "/v1beta1/admin/billing/invoices/trigger/credits",
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Invoice";
summary: "Trigger credit invoices";
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) = {
Expand Down Expand Up @@ -700,6 +712,10 @@ message ListAllInvoicesResponse {
];
}

message TriggerCreditInvoicesRequest {}

message TriggerCreditInvoicesResponse {}

message ListAllBillingAccountsRequest {
string org_id = 1;
}
Expand Down

0 comments on commit ea64fa9

Please sign in to comment.