diff --git a/raystack/frontier/v1beta1/frontier.proto b/raystack/frontier/v1beta1/frontier.proto index 38c87f52..31c5fc63 100644 --- a/raystack/frontier/v1beta1/frontier.proto +++ b/raystack/frontier/v1beta1/frontier.proto @@ -1848,14 +1848,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 +1908,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;