diff --git a/raystack/frontier/v1beta1/admin.proto b/raystack/frontier/v1beta1/admin.proto index 7d36c061..dd99c6e5 100644 --- a/raystack/frontier/v1beta1/admin.proto +++ b/raystack/frontier/v1beta1/admin.proto @@ -318,6 +318,15 @@ service AdminService { description: "Checkout a product to buy it one time or start a subscription plan on a billing account manually. It bypasses billing engine."; }; } + + rpc ListAllInvoices(ListAllInvoicesRequest) returns (ListAllInvoicesResponse) { + option (google.api.http) = {get: "/v1beta1/admin/billing/invoices"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "Invoice"; + summary: "List all invoices"; + description: "Lists all the invoices from all the organizations in a Frontier instance. It can be filtered by organization."; + }; + } } message ListAllUsersRequest { @@ -543,4 +552,12 @@ message DelegatedCheckoutResponse { Subscription subscription = 1; // product if bought Product product = 2; +} + +message ListAllInvoicesRequest { + string org_id = 1; +} + +message ListAllInvoicesResponse { + repeated Invoice invoices = 1; } \ No newline at end of file diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index c3ecaa57..5fb84591 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -1528,6 +1528,15 @@ service FrontierService { }; } + rpc ListFeatures(ListFeaturesRequest) returns (ListFeaturesResponse) { + option (google.api.http) = {get: "/v1beta1/billing/features"}; + option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { + tags: "Feature"; + summary: "List features"; + description: "List all features"; + }; + } + // Plans rpc CreatePlan(CreatePlanRequest) returns (CreatePlanResponse) { option (google.api.http) = { @@ -1935,6 +1944,13 @@ message UpdateProductResponse { Product product = 1; } +message ListFeaturesRequest { +} + +message ListFeaturesResponse { + repeated Feature features = 1; +} + message PlanRequestBody { string name = 1; string title = 2; diff --git a/raystack/frontier/v1beta1/models.proto b/raystack/frontier/v1beta1/models.proto index 2a8c44c6..6528c868 100644 --- a/raystack/frontier/v1beta1/models.proto +++ b/raystack/frontier/v1beta1/models.proto @@ -600,6 +600,9 @@ message Subscription { google.protobuf.Timestamp canceled_at = 13; google.protobuf.Timestamp ended_at = 14; google.protobuf.Timestamp trial_ends_at = 15; + google.protobuf.Timestamp current_period_start = 16; + google.protobuf.Timestamp current_period_end = 17; + google.protobuf.Timestamp billing_cycle_anchor = 18; message Phase { google.protobuf.Timestamp effective_at = 1;