@@ -449,10 +449,7 @@ message UpdateBillingAccountRequest {
449449 // ID of the billing account to update
450450 string id = 1 [(buf.validate.field ) .string.uuid = true ];
451451
452- string org_id = 2 [
453- deprecated = true ,
454- (buf.validate.field ) .string.min_len = 1
455- ]; // DEPRECATED: org_id will be inferred from billing account id
452+ reserved 2 ;
456453
457454 // Billing account to update.
458455 BillingAccountRequestBody body = 3 ;
@@ -467,10 +464,7 @@ message RegisterBillingAccountRequest {
467464 // ID of the billing account to register
468465 string id = 1 [(buf.validate.field ) .string.uuid = true ];
469466
470- string org_id = 2 [
471- deprecated = true ,
472- (buf.validate.field ) .string.min_len = 1
473- ]; // DEPRECATED: org_id will be inferred from billing account id
467+ reserved 2 ;
474468}
475469
476470message RegisterBillingAccountResponse {}
@@ -491,32 +485,23 @@ message DeleteBillingAccountRequest {
491485 // ID of the billing account to delete
492486 string id = 1 [(buf.validate.field ) .string.uuid = true ];
493487
494- string org_id = 2 [
495- deprecated = true ,
496- (buf.validate.field ) .string.min_len = 1
497- ]; // DEPRECATED: org_id will be inferred from billing account id
488+ reserved 2 ;
498489}
499490
500491message DeleteBillingAccountResponse {}
501492
502493message EnableBillingAccountRequest {
503494 // ID of the billing account to enable
504495 string id = 1 [(buf.validate.field ) .string.uuid = true ];
505- string org_id = 2 [
506- deprecated = true ,
507- (buf.validate.field ) .string.min_len = 1
508- ]; // DEPRECATED: org_id will be inferred from billing account id
496+ reserved 2 ;
509497}
510498
511499message EnableBillingAccountResponse {}
512500
513501message DisableBillingAccountRequest {
514502 // ID of the billing account to disable
515503 string id = 1 [(buf.validate.field ) .string.uuid = true ];
516- string org_id = 2 [
517- deprecated = true ,
518- (buf.validate.field ) .string.min_len = 1
519- ]; // DEPRECATED: org_id will be inferred from billing account id
504+ reserved 2 ;
520505}
521506
522507message DisableBillingAccountResponse {}
@@ -525,10 +510,7 @@ message GetBillingBalanceRequest {
525510 // ID of the billing account to get the balance for
526511 string id = 1 [(buf.validate.field ) .string.uuid = true ];
527512
528- string org_id = 2 [
529- deprecated = true ,
530- (buf.validate.field ) .string.min_len = 1
531- ]; // DEPRECATED: org_id will be inferred from billing account id
513+ reserved 2 ;
532514}
533515
534516message GetBillingBalanceResponse {
@@ -537,16 +519,7 @@ message GetBillingBalanceResponse {
537519}
538520
539521message HasTrialedRequest {
540- // ID of the billing account to check
541- string id = 1 [
542- deprecated = true ,
543- (buf.validate.field ) .string.uuid = true
544- ]; // DEPRECATED: billing_id will be inferred from plan_id
545-
546- string org_id = 2 [
547- deprecated = true ,
548- (buf.validate.field ) .string.min_len = 1
549- ]; // DEPRECATED: org_id will be inferred from plan_id
522+ reserved 1 , 2 ;
550523
551524 // ID of the plan to check
552525 string plan_id = 3 [(buf.validate.field ) .string.min_len = 1 ];
@@ -559,17 +532,7 @@ message HasTrialedResponse {
559532
560533message CreateBillingUsageRequest {
561534 string org_id = 1 ;
562- // DEPRECATED: billing_id will be inferred from org_id
563- string billing_id = 2 [
564- deprecated = true ,
565- (buf.validate.field ) = {
566- ignore : IGNORE_IF_ZERO_VALUE
567- string : {uuid : true}
568- }
569- ];
570-
571- // DEPRECATED
572- string project_id = 4 [deprecated = true ];
535+ reserved 2 , 4 ;
573536
574537 // Usage to create
575538 repeated Usage usages = 3 ;
@@ -579,16 +542,8 @@ message CreateBillingUsageResponse {}
579542
580543message ListBillingTransactionsRequest {
581544 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
582- // DEPRECATED: billing_id will be inferred from org_id
583- string billing_id = 2 [
584- deprecated = true ,
585- (buf.validate.field ) = {
586- ignore : IGNORE_IF_ZERO_VALUE
587- string : {uuid : true}
588- }
589- ];
545+ reserved 2 , 3 ;
590546
591- google.protobuf.Timestamp since = 3 [deprecated = true ];
592547 google.protobuf.Timestamp start_range = 4 ;
593548 google.protobuf.Timestamp end_range = 5 ;
594549
@@ -602,14 +557,7 @@ message ListBillingTransactionsResponse {
602557
603558message TotalDebitedTransactionsRequest {
604559 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
605- // DEPRECATED: billing_id will be inferred from org_id
606- string billing_id = 2 [
607- deprecated = true ,
608- (buf.validate.field ) = {
609- ignore : IGNORE_IF_ZERO_VALUE
610- string : {uuid : true}
611- }
612- ];
560+ reserved 2 ;
613561}
614562
615563message TotalDebitedTransactionsResponse {
@@ -618,23 +566,8 @@ message TotalDebitedTransactionsResponse {
618566}
619567
620568message GetSubscriptionRequest {
621- // DEPRECATED: org_id will be inferred from subscription id
622- string org_id = 1 [
623- deprecated = true ,
624- (buf.validate.field ) = {
625- ignore : IGNORE_IF_ZERO_VALUE
626- string : {min_len : 3 }
627- }
628- ];
629- // DEPRECATED: billing_id will be inferred from subscription id
630- // ID of the billing account to get the subscription for
631- string billing_id = 2 [
632- deprecated = true ,
633- (buf.validate.field ) = {
634- ignore : IGNORE_IF_ZERO_VALUE
635- string : {uuid : true}
636- }
637- ];
569+ reserved 1 , 2 ;
570+
638571 // ID of the subscription to get
639572 string id = 3 [(buf.validate.field ) .string.min_len = 1 ];
640573
@@ -647,15 +580,7 @@ message GetSubscriptionResponse {
647580
648581message ListSubscriptionsRequest {
649582 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
650- // DEPRECATED: billing_id will be inferred from org_id
651- // ID of the billing account to list subscriptions for
652- string billing_id = 2 [
653- deprecated = true ,
654- (buf.validate.field ) = {
655- ignore : IGNORE_IF_ZERO_VALUE
656- string : {uuid : true}
657- }
658- ];
583+ reserved 2 ;
659584
660585 // Filter subscriptions by state
661586 string state = 3 ;
@@ -670,23 +595,8 @@ message ListSubscriptionsResponse {
670595}
671596
672597message UpdateSubscriptionRequest {
673- // DEPRECATED: org_id will be inferred from subscription id
674- string org_id = 1 [
675- deprecated = true ,
676- (buf.validate.field ) = {
677- ignore : IGNORE_IF_ZERO_VALUE
678- string : {min_len : 3 }
679- }
680- ];
681- // DEPRECATED: billing_id will be inferred from subscription id
682- // ID of the billing account to update the subscription for
683- string billing_id = 2 [
684- deprecated = true ,
685- (buf.validate.field ) = {
686- ignore : IGNORE_IF_ZERO_VALUE
687- string : {uuid : true}
688- }
689- ];
598+ reserved 1 , 2 ;
599+
690600 // ID of the subscription to update
691601 string id = 3 [(buf.validate.field ) .string.min_len = 1 ];
692602
@@ -699,23 +609,8 @@ message UpdateSubscriptionResponse {
699609}
700610
701611message ChangeSubscriptionRequest {
702- // DEPRECATED: org_id will be inferred from subscription id
703- string org_id = 1 [
704- deprecated = true ,
705- (buf.validate.field ) = {
706- ignore : IGNORE_IF_ZERO_VALUE
707- string : {min_len : 3 }
708- }
709- ];
710- // DEPRECATED: billing_id will be inferred from subscription id
711- // ID of the billing account to update the subscription for
712- string billing_id = 2 [
713- deprecated = true ,
714- (buf.validate.field ) = {
715- ignore : IGNORE_IF_ZERO_VALUE
716- string : {uuid : true}
717- }
718- ];
612+ reserved 1 , 2 ;
613+
719614 // ID of the subscription to update
720615 string id = 3 [(buf.validate.field ) .string.min_len = 1 ];
721616
@@ -750,23 +645,8 @@ message ChangeSubscriptionResponse {
750645}
751646
752647message CancelSubscriptionRequest {
753- // DEPRECATED: org_id will be inferred from subscription id
754- string org_id = 1 [
755- deprecated = true ,
756- (buf.validate.field ) = {
757- ignore : IGNORE_IF_ZERO_VALUE
758- string : {min_len : 3 }
759- }
760- ];
761- // DEPRECATED: billing_id will be inferred from subscription id
762- // ID of the billing account to update the subscription for
763- string billing_id = 2 [
764- deprecated = true ,
765- (buf.validate.field ) = {
766- ignore : IGNORE_IF_ZERO_VALUE
767- string : {uuid : true}
768- }
769- ];
648+ reserved 1 , 2 ;
649+
770650 // ID of the subscription to cancel
771651 string id = 3 [(buf.validate.field ) .string.min_len = 1 ];
772652
@@ -784,17 +664,7 @@ message ListPlansResponse {
784664
785665message CheckFeatureEntitlementRequest {
786666 string org_id = 1 ;
787- // DEPRECATED: billing_id will be inferred from org_id
788- string billing_id = 2 [
789- deprecated = true ,
790- (buf.validate.field ) = {
791- ignore : IGNORE_IF_ZERO_VALUE
792- string : {uuid : true}
793- }
794- ];
795-
796- // DEPRECATED
797- string project_id = 4 [deprecated = true ];
667+ reserved 2 , 4 ;
798668
799669 // feature or product name
800670 string feature = 3 [(buf.validate.field ) .string.min_len = 1 ];
@@ -815,15 +685,7 @@ message CheckCreditEntitlementResponse {
815685
816686message CreateCheckoutRequest {
817687 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
818- // DEPRECATED: billing_id will be inferred from org_id
819- // ID of the billing account to update the subscription for
820- string billing_id = 2 [
821- deprecated = true ,
822- (buf.validate.field ) = {
823- ignore : IGNORE_IF_ZERO_VALUE
824- string : {uuid : true}
825- }
826- ];
688+ reserved 2 ;
827689
828690 string success_url = 3 ;
829691 string cancel_url = 4 ;
@@ -843,15 +705,7 @@ message CreateCheckoutResponse {
843705
844706message ListCheckoutsRequest {
845707 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
846- // DEPRECATED: billing_id will be inferred from org_id
847- // ID of the billing account to get the subscriptions for
848- string billing_id = 2 [
849- deprecated = true ,
850- (buf.validate.field ) = {
851- ignore : IGNORE_IF_ZERO_VALUE
852- string : {uuid : true}
853- }
854- ];
708+ reserved 2 ;
855709}
856710
857711message ListCheckoutsResponse {
@@ -860,22 +714,8 @@ message ListCheckoutsResponse {
860714}
861715
862716message GetCheckoutRequest {
863- // DEPRECATED: org_id is not needed, checkout can be fetched by id alone
864- string org_id = 1 [
865- deprecated = true ,
866- (buf.validate.field ) = {
867- ignore : IGNORE_IF_ZERO_VALUE
868- string : {min_len : 3 }
869- }
870- ];
871- // DEPRECATED: billing_id is not needed, checkout can be fetched by id alone
872- string billing_id = 2 [
873- deprecated = true ,
874- (buf.validate.field ) = {
875- ignore : IGNORE_IF_ZERO_VALUE
876- string : {uuid : true}
877- }
878- ];
717+ reserved 1 , 2 ;
718+
879719 // ID of the checkout to get
880720 string id = 3 [(buf.validate.field ) .string.min_len = 1 ];
881721}
@@ -1052,14 +892,7 @@ message UpdatePlanResponse {
1052892
1053893message ListInvoicesRequest {
1054894 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
1055- // DEPRECATED: billing_id will be inferred from org_id
1056- string billing_id = 2 [
1057- deprecated = true ,
1058- (buf.validate.field ) = {
1059- ignore : IGNORE_IF_ZERO_VALUE
1060- string : {uuid : true}
1061- }
1062- ];
895+ reserved 2 ;
1063896
1064897 bool nonzero_amount_only = 3 ;
1065898
@@ -1073,14 +906,7 @@ message ListInvoicesResponse {
1073906
1074907message GetUpcomingInvoiceRequest {
1075908 string org_id = 1 [(buf.validate.field ) .string.min_len = 3 ];
1076- // DEPRECATED: billing_id will be inferred from org_id
1077- string billing_id = 2 [
1078- deprecated = true ,
1079- (buf.validate.field ) = {
1080- ignore : IGNORE_IF_ZERO_VALUE
1081- string : {uuid : true}
1082- }
1083- ];
909+ reserved 2 ;
1084910}
1085911
1086912message GetUpcomingInvoiceResponse {
0 commit comments