Skip to content

Commit

Permalink
feat(frontier): get upcoming invoice of a customer (#330)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Jan 2, 2024
1 parent 07e3cab commit c54cb02
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1625,6 +1625,15 @@ service FrontierService {
description: "List all invoices of a billing account.";
};
}

rpc GetUpcomingInvoice(GetUpcomingInvoiceRequest) returns (GetUpcomingInvoiceResponse) {
option (google.api.http) = {get: "/v1beta1/organizations/{org_id}/billing/{billing_id}/invoices/upcoming"};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Invoice";
summary: "Get upcoming invoice";
description: "Get the upcoming invoice of a billing account.";
};
}
}

// Billing
Expand Down Expand Up @@ -1939,6 +1948,17 @@ message ListInvoicesResponse {
repeated Invoice invoices = 1;
}

message GetUpcomingInvoiceRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// ID of the billing account to get the upcoming invoice for
string billing_id = 2 [(validate.rules).string.min_len = 1];
}

message GetUpcomingInvoiceResponse {
// Upcoming invoice
Invoice invoice = 1;
}

// Authentication

message GetJWKsRequest {}
Expand Down

0 comments on commit c54cb02

Please sign in to comment.