Skip to content

Commit

Permalink
feat(frontier): add min/max quantity in billing product (#355)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Apr 24, 2024
1 parent df5720c commit c4305a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,8 @@ message Product {
message BehaviorConfig {
int64 credit_amount = 1;
int64 seat_limit = 2;
int64 min_quantity = 3 [(validate.rules).int64 = {gte: 0}];
int64 max_quantity = 4 [(validate.rules).int64 = {gte: 0}];
}

string id = 1;
Expand Down Expand Up @@ -892,6 +894,7 @@ message CheckoutSubscriptionBody {

message CheckoutProductBody {
string product = 1;
int64 quantity = 2 [(validate.rules).int64 = {gte: 0}];
}

message CheckoutSetupBody {
Expand Down

0 comments on commit c4305a4

Please sign in to comment.