Skip to content

Commit ac2df19

Browse files
authored
fix(frontier): revert removal of some deprecated fields (#468)
* fix(frontier): revert removal of deprecated fields in ChangeSubscriptionRequest and ListBillingTransactionsRequest * fix(frontier): revert removal of HasTrialedRequest.id and unmark as deprecated
1 parent 2d162b4 commit ac2df19

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

‎raystack/frontier/v1beta1/frontier.proto‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,10 @@ message GetBillingBalanceResponse {
519519
}
520520

521521
message HasTrialedRequest {
522-
reserved 1, 2;
522+
// ID of the billing account to check
523+
string id = 1 [(buf.validate.field).string.uuid = true];
524+
525+
reserved 2;
523526

524527
// ID of the plan to check
525528
string plan_id = 3 [(buf.validate.field).string.min_len = 1];
@@ -542,8 +545,9 @@ message CreateBillingUsageResponse {}
542545

543546
message ListBillingTransactionsRequest {
544547
string org_id = 1 [(buf.validate.field).string.min_len = 3];
545-
reserved 2, 3;
548+
reserved 2;
546549

550+
google.protobuf.Timestamp since = 3 [deprecated = true];
547551
google.protobuf.Timestamp start_range = 4;
548552
google.protobuf.Timestamp end_range = 5;
549553

@@ -609,11 +613,19 @@ message UpdateSubscriptionResponse {
609613
}
610614

611615
message ChangeSubscriptionRequest {
612-
reserved 1, 2, 4, 5;
616+
reserved 1, 2;
613617

614618
// ID of the subscription to update
615619
string id = 3 [(buf.validate.field).string.min_len = 1];
616620

621+
// plan to change to
622+
// deprecated in favor of plan_change
623+
string plan = 4 [deprecated = true];
624+
625+
// should the change be immediate or at the end of the current billing period
626+
// deprecated in favor of plan_change
627+
bool immediate = 5 [deprecated = true];
628+
617629
message PlanChange {
618630
// plan to change to
619631
string plan = 1;

0 commit comments

Comments
 (0)