@@ -59,7 +59,6 @@ export interface CreateStripeCustomerResponse {
59
59
60
60
export interface CreateStripeSubscriptionRequest {
61
61
attributionId : string ;
62
- customerId : string ;
63
62
setupIntentId : string ;
64
63
usageLimit : number ;
65
64
}
@@ -624,22 +623,19 @@ export const CreateStripeCustomerResponse = {
624
623
} ;
625
624
626
625
function createBaseCreateStripeSubscriptionRequest ( ) : CreateStripeSubscriptionRequest {
627
- return { attributionId : "" , customerId : "" , setupIntentId : "" , usageLimit : 0 } ;
626
+ return { attributionId : "" , setupIntentId : "" , usageLimit : 0 } ;
628
627
}
629
628
630
629
export const CreateStripeSubscriptionRequest = {
631
630
encode ( message : CreateStripeSubscriptionRequest , writer : _m0 . Writer = _m0 . Writer . create ( ) ) : _m0 . Writer {
632
631
if ( message . attributionId !== "" ) {
633
632
writer . uint32 ( 10 ) . string ( message . attributionId ) ;
634
633
}
635
- if ( message . customerId !== "" ) {
636
- writer . uint32 ( 18 ) . string ( message . customerId ) ;
637
- }
638
634
if ( message . setupIntentId !== "" ) {
639
- writer . uint32 ( 26 ) . string ( message . setupIntentId ) ;
635
+ writer . uint32 ( 18 ) . string ( message . setupIntentId ) ;
640
636
}
641
637
if ( message . usageLimit !== 0 ) {
642
- writer . uint32 ( 32 ) . int64 ( message . usageLimit ) ;
638
+ writer . uint32 ( 24 ) . int64 ( message . usageLimit ) ;
643
639
}
644
640
return writer ;
645
641
} ,
@@ -655,12 +651,9 @@ export const CreateStripeSubscriptionRequest = {
655
651
message . attributionId = reader . string ( ) ;
656
652
break ;
657
653
case 2 :
658
- message . customerId = reader . string ( ) ;
659
- break ;
660
- case 3 :
661
654
message . setupIntentId = reader . string ( ) ;
662
655
break ;
663
- case 4 :
656
+ case 3 :
664
657
message . usageLimit = longToNumber ( reader . int64 ( ) as Long ) ;
665
658
break ;
666
659
default :
@@ -674,7 +667,6 @@ export const CreateStripeSubscriptionRequest = {
674
667
fromJSON ( object : any ) : CreateStripeSubscriptionRequest {
675
668
return {
676
669
attributionId : isSet ( object . attributionId ) ? String ( object . attributionId ) : "" ,
677
- customerId : isSet ( object . customerId ) ? String ( object . customerId ) : "" ,
678
670
setupIntentId : isSet ( object . setupIntentId ) ? String ( object . setupIntentId ) : "" ,
679
671
usageLimit : isSet ( object . usageLimit ) ? Number ( object . usageLimit ) : 0 ,
680
672
} ;
@@ -683,7 +675,6 @@ export const CreateStripeSubscriptionRequest = {
683
675
toJSON ( message : CreateStripeSubscriptionRequest ) : unknown {
684
676
const obj : any = { } ;
685
677
message . attributionId !== undefined && ( obj . attributionId = message . attributionId ) ;
686
- message . customerId !== undefined && ( obj . customerId = message . customerId ) ;
687
678
message . setupIntentId !== undefined && ( obj . setupIntentId = message . setupIntentId ) ;
688
679
message . usageLimit !== undefined && ( obj . usageLimit = Math . round ( message . usageLimit ) ) ;
689
680
return obj ;
@@ -692,7 +683,6 @@ export const CreateStripeSubscriptionRequest = {
692
683
fromPartial ( object : DeepPartial < CreateStripeSubscriptionRequest > ) : CreateStripeSubscriptionRequest {
693
684
const message = createBaseCreateStripeSubscriptionRequest ( ) ;
694
685
message . attributionId = object . attributionId ?? "" ;
695
- message . customerId = object . customerId ?? "" ;
696
686
message . setupIntentId = object . setupIntentId ?? "" ;
697
687
message . usageLimit = object . usageLimit ?? 0 ;
698
688
return message ;
0 commit comments