Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 72 additions & 24 deletions raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2080,12 +2080,23 @@ message TotalDebitedTransactionsResponse {
}

message GetSubscriptionRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// DEPRECATED: org_id will be inferred from subscription id
string org_id = 1 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
min_len: 3
}
];
// DEPRECATED: billing_id will be inferred from subscription id
// ID of the billing account to get the subscription for
string billing_id = 2 [(validate.rules).string = {
ignore_empty: true,
uuid: true
}];
string billing_id = 2 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
uuid: true
}
];
// ID of the subscription to get
string id = 3 [(validate.rules).string.min_len = 1];

Expand All @@ -2098,11 +2109,15 @@ message GetSubscriptionResponse {

message ListSubscriptionsRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// DEPRECATED: billing_id will be inferred from org_id
// ID of the billing account to list subscriptions for
string billing_id = 2 [(validate.rules).string = {
ignore_empty: true,
uuid: true
}];
string billing_id = 2 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
uuid: true
}
];

// Filter subscriptions by state
string state = 3;
Expand All @@ -2117,12 +2132,23 @@ message ListSubscriptionsResponse {
}

message UpdateSubscriptionRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// DEPRECATED: org_id will be inferred from subscription id
string org_id = 1 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
min_len: 3
}
];
// DEPRECATED: billing_id will be inferred from subscription id
// ID of the billing account to update the subscription for
string billing_id = 2 [(validate.rules).string = {
ignore_empty: true,
uuid: true
}];
string billing_id = 2 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
uuid: true
}
];
// ID of the subscription to update
string id = 3 [(validate.rules).string.min_len = 1];

Expand All @@ -2135,12 +2161,23 @@ message UpdateSubscriptionResponse {
}

message ChangeSubscriptionRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// DEPRECATED: org_id will be inferred from subscription id
string org_id = 1 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
min_len: 3
}
];
// DEPRECATED: billing_id will be inferred from subscription id
// ID of the billing account to update the subscription for
string billing_id = 2 [(validate.rules).string = {
ignore_empty: true,
uuid: true
}];
string billing_id = 2 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
uuid: true
}
];
// ID of the subscription to update
string id = 3 [(validate.rules).string.min_len = 1];

Expand Down Expand Up @@ -2175,12 +2212,23 @@ message ChangeSubscriptionResponse {
}

message CancelSubscriptionRequest {
string org_id = 1 [(validate.rules).string.min_len = 3];
// DEPRECATED: org_id will be inferred from subscription id
string org_id = 1 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
min_len: 3
}
];
// DEPRECATED: billing_id will be inferred from subscription id
// ID of the billing account to update the subscription for
string billing_id = 2 [(validate.rules).string = {
ignore_empty: true,
uuid: true
}];
string billing_id = 2 [
deprecated = true,
(validate.rules).string = {
ignore_empty: true,
uuid: true
}
];
// ID of the subscription to cancel
string id = 3 [(validate.rules).string.min_len = 1];

Expand Down
Loading