Skip to content

Commit

Permalink
feat(frontier): trial days in billing plans (#335)
Browse files Browse the repository at this point in the history
Signed-off-by: Kush Sharma <[email protected]>
  • Loading branch information
kushsharma authored Feb 6, 2024
1 parent cb41786 commit 4edd109
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1943,6 +1943,7 @@ message PlanRequestBody {
repeated Product products = 4;
string interval = 5; // known intervals are "day", "week", "month", and "year"
int64 on_start_credits = 6;
int64 trial_days = 7;

google.protobuf.Struct metadata = 20;
}
Expand Down
5 changes: 4 additions & 1 deletion raystack/frontier/v1beta1/models.proto
Original file line number Diff line number Diff line change
Expand Up @@ -585,19 +585,21 @@ message BillingAccount {
}

message Subscription {
reserved 9;

string id = 1;
string customer_id = 2;
string provider_id = 3;
string plan_id = 4;

string state = 5;
int32 trial_days = 9;

google.protobuf.Struct metadata = 10;
google.protobuf.Timestamp created_at = 11;
google.protobuf.Timestamp updated_at = 12;
google.protobuf.Timestamp canceled_at = 13;
google.protobuf.Timestamp ended_at = 14;
google.protobuf.Timestamp trial_ends_at = 15;

message Phase {
google.protobuf.Timestamp effective_at = 1;
Expand Down Expand Up @@ -631,6 +633,7 @@ message Plan {
repeated Product products = 5;
string interval = 6; // known intervals are "day", "week", "month", and "year"
int64 on_start_credits = 7;
int64 trial_days = 8;

google.protobuf.Struct metadata = 20;
google.protobuf.Timestamp created_at = 21;
Expand Down

0 comments on commit 4edd109

Please sign in to comment.