diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 38c87f52..0431232e 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -1763,6 +1763,9 @@ message ListSubscriptionsRequest { string org_id = 1 [(validate.rules).string.min_len = 3]; // ID of the billing account to list subscriptions for string billing_id = 2 [(validate.rules).string.min_len = 1]; + + // Filter subscriptions by state + string state = 3; } message ListSubscriptionsResponse { @@ -1848,14 +1851,16 @@ message ListCheckoutsResponse { } message ProductRequestBody { + reserved 7; + string name = 1; string title = 2; string description = 3; string plan_id = 4; repeated Price prices = 5; - int64 credit_amount = 7; string behavior = 8; repeated Feature features = 9; + Product.BehaviorConfig behavior_config = 10; google.protobuf.Struct metadata = 20; } @@ -1906,6 +1911,7 @@ message PlanRequestBody { repeated Product products = 4; string interval = 5; // known intervals are "day", "week", "month", and "year" + int64 on_start_credits = 6; google.protobuf.Struct metadata = 20; } diff --git a/raystack/frontier/v1beta1/models.proto b/raystack/frontier/v1beta1/models.proto index 9804b869..336f553f 100644 --- a/raystack/frontier/v1beta1/models.proto +++ b/raystack/frontier/v1beta1/models.proto @@ -621,6 +621,7 @@ message Plan { string description = 4; repeated Product products = 5; string interval = 6; // known intervals are "day", "week", "month", and "year" + int64 on_start_credits = 7; google.protobuf.Struct metadata = 20; google.protobuf.Timestamp created_at = 21; @@ -628,6 +629,12 @@ message Plan { } message Product { + reserved 8; + message BehaviorConfig { + int64 credit_amount = 1; + int64 seat_limit = 2; + } + string id = 1; string name = 2; string title = 3; @@ -636,9 +643,9 @@ message Product { string state = 6; repeated Price prices = 7; - int64 credit_amount = 8; string behavior = 9; repeated Feature features = 10; + BehaviorConfig behavior_config = 11; google.protobuf.Struct metadata = 20; google.protobuf.Timestamp created_at = 21;