@@ -1920,7 +1920,10 @@ message GetBillingAccountRequest {
19201920 // ID of the billing account to get
19211921 string id = 1 [(validate.rules ) .string.min_len = 1 ];
19221922
1923- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
1923+ string org_id = 2 [
1924+ deprecated = true ,
1925+ (validate.rules ) .string.min_len = 1
1926+ ]; // DEPRECATED: org_id will be inferred from billing account id
19241927
19251928 bool with_payment_methods = 3 ;
19261929
@@ -1944,7 +1947,10 @@ message UpdateBillingAccountRequest {
19441947 // ID of the billing account to update
19451948 string id = 1 [(validate.rules ) .string.uuid = true ];
19461949
1947- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
1950+ string org_id = 2 [
1951+ deprecated = true ,
1952+ (validate.rules ) .string.min_len = 1
1953+ ]; // DEPRECATED: org_id will be inferred from billing account id
19481954
19491955 // Billing account to update.
19501956 BillingAccountRequestBody body = 3 ;
@@ -1959,7 +1965,10 @@ message RegisterBillingAccountRequest {
19591965 // ID of the billing account to register
19601966 string id = 1 [(validate.rules ) .string.uuid = true ];
19611967
1962- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
1968+ string org_id = 2 [
1969+ deprecated = true ,
1970+ (validate.rules ) .string.min_len = 1
1971+ ]; // DEPRECATED: org_id will be inferred from billing account id
19631972}
19641973
19651974message RegisterBillingAccountResponse {}
@@ -1980,23 +1989,32 @@ message DeleteBillingAccountRequest {
19801989 // ID of the billing account to delete
19811990 string id = 1 [(validate.rules ) .string.uuid = true ];
19821991
1983- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
1992+ string org_id = 2 [
1993+ deprecated = true ,
1994+ (validate.rules ) .string.min_len = 1
1995+ ]; // DEPRECATED: org_id will be inferred from billing account id
19841996}
19851997
19861998message DeleteBillingAccountResponse {}
19871999
19882000message EnableBillingAccountRequest {
19892001 // ID of the billing account to enable
19902002 string id = 1 [(validate.rules ) .string.uuid = true ];
1991- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
2003+ string org_id = 2 [
2004+ deprecated = true ,
2005+ (validate.rules ) .string.min_len = 1
2006+ ]; // DEPRECATED: org_id will be inferred from billing account id
19922007}
19932008
19942009message EnableBillingAccountResponse {}
19952010
19962011message DisableBillingAccountRequest {
19972012 // ID of the billing account to disable
19982013 string id = 1 [(validate.rules ) .string.uuid = true ];
1999- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
2014+ string org_id = 2 [
2015+ deprecated = true ,
2016+ (validate.rules ) .string.min_len = 1
2017+ ]; // DEPRECATED: org_id will be inferred from billing account id
20002018}
20012019
20022020message DisableBillingAccountResponse {}
@@ -2005,7 +2023,10 @@ message GetBillingBalanceRequest {
20052023 // ID of the billing account to get the balance for
20062024 string id = 1 [(validate.rules ) .string.uuid = true ];
20072025
2008- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
2026+ string org_id = 2 [
2027+ deprecated = true ,
2028+ (validate.rules ) .string.min_len = 1
2029+ ]; // DEPRECATED: org_id will be inferred from billing account id
20092030}
20102031
20112032message GetBillingBalanceResponse {
@@ -2015,9 +2036,15 @@ message GetBillingBalanceResponse {
20152036
20162037message HasTrialedRequest {
20172038 // ID of the billing account to check
2018- string id = 1 [(validate.rules ) .string.uuid = true ];
2039+ string id = 1 [
2040+ deprecated = true ,
2041+ (validate.rules ) .string.uuid = true
2042+ ]; // DEPRECATED: billing_id will be inferred from plan_id
20192043
2020- string org_id = 2 [(validate.rules ) .string.min_len = 1 ];
2044+ string org_id = 2 [
2045+ deprecated = true ,
2046+ (validate.rules ) .string.min_len = 1
2047+ ]; // DEPRECATED: org_id will be inferred from plan_id
20212048
20222049 // ID of the plan to check
20232050 string plan_id = 3 [(validate.rules ) .string.min_len = 1 ];
0 commit comments