@@ -373,55 +373,13 @@ export namespace CustomerProfileRetrieveBillingResponse {
373373
374374 export namespace Catalog {
375375 export interface Product {
376- product : Product . Product ;
376+ prices : Array < Product . SubscriptionPrice | Product . SinglePaymentPrice > ;
377377
378- variants : Array < Product . SubscriptionVariant | Product . SinglePaymentVariant > ;
378+ product : Product . Product ;
379379 }
380380
381381 export namespace Product {
382- export interface Product {
383- id : string ;
384-
385- active : boolean ;
386-
387- /**
388- * safeZodDate
389- */
390- createdAt : ( string & { } ) | string ;
391-
392- description : string | null ;
393-
394- displayFeatures : Array < Product . DisplayFeature > | null ;
395-
396- imageURL : string | null ;
397-
398- livemode : boolean ;
399-
400- name : string ;
401-
402- organizationId : string ;
403-
404- pluralQuantityLabel : string | null ;
405-
406- singularQuantityLabel : string | null ;
407-
408- /**
409- * safeZodDate
410- */
411- updatedAt : ( string & { } ) | string ;
412- }
413-
414- export namespace Product {
415- export interface DisplayFeature {
416- enabled : boolean ;
417-
418- label : string ;
419-
420- details ?: string | null ;
421- }
422- }
423-
424- export interface SubscriptionVariant {
382+ export interface SubscriptionPrice {
425383 id : string ;
426384
427385 active : boolean ;
@@ -577,8 +535,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
577535
578536 name : string | null ;
579537
580- priceType : 'subscription' ;
581-
582538 productId : string ;
583539
584540 /**
@@ -591,6 +547,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
591547 */
592548 trialPeriodDays : number | 0 | null ;
593549
550+ type : 'subscription' ;
551+
594552 /**
595553 * safeZodPositiveInteger
596554 */
@@ -599,7 +557,7 @@ export namespace CustomerProfileRetrieveBillingResponse {
599557 updatedAt : string | null ;
600558 }
601559
602- export interface SinglePaymentVariant {
560+ export interface SinglePaymentPrice {
603561 id : string ;
604562
605563 active : boolean ;
@@ -748,10 +706,10 @@ export namespace CustomerProfileRetrieveBillingResponse {
748706
749707 name : string | null ;
750708
751- priceType : 'single_payment' ;
752-
753709 productId : string ;
754710
711+ type : 'single_payment' ;
712+
755713 /**
756714 * safeZodPositiveInteger
757715 */
@@ -779,6 +737,48 @@ export namespace CustomerProfileRetrieveBillingResponse {
779737 */
780738 trialPeriodDays ?: unknown | unknown | null ;
781739 }
740+
741+ export interface Product {
742+ id : string ;
743+
744+ active : boolean ;
745+
746+ /**
747+ * safeZodDate
748+ */
749+ createdAt : ( string & { } ) | string ;
750+
751+ description : string | null ;
752+
753+ displayFeatures : Array < Product . DisplayFeature > | null ;
754+
755+ imageURL : string | null ;
756+
757+ livemode : boolean ;
758+
759+ name : string ;
760+
761+ organizationId : string ;
762+
763+ pluralQuantityLabel : string | null ;
764+
765+ singularQuantityLabel : string | null ;
766+
767+ /**
768+ * safeZodDate
769+ */
770+ updatedAt : ( string & { } ) | string ;
771+ }
772+
773+ export namespace Product {
774+ export interface DisplayFeature {
775+ enabled : boolean ;
776+
777+ label : string ;
778+
779+ details ?: string | null ;
780+ }
781+ }
782782 }
783783 }
784784
@@ -2244,14 +2244,14 @@ export namespace CustomerProfileRetrieveBillingResponse {
22442244
22452245 price : number ;
22462246
2247+ priceId : string | null ;
2248+
22472249 /**
22482250 * safeZodPositiveInteger
22492251 */
22502252 quantity : number ;
22512253
22522254 updatedAt : string | null ;
2253-
2254- variantId : string | null ;
22552255 }
22562256 }
22572257
@@ -2347,6 +2347,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
23472347
23482348 planName : string | null ;
23492349
2350+ priceId : string ;
2351+
23502352 status :
23512353 | 'incomplete'
23522354 | 'incomplete_expired'
@@ -2363,8 +2365,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
23632365 trialEnd : string | null ;
23642366
23652367 updatedAt : string | null ;
2366-
2367- variantId : string ;
23682368 }
23692369
23702370 export namespace Subscription {
@@ -2381,6 +2381,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
23812381
23822382 name : string | null ;
23832383
2384+ priceId : string ;
2385+
23842386 /**
23852387 * safeZodPositiveInteger
23862388 */
@@ -2396,8 +2398,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
23962398 updatedAt : string | null ;
23972399
23982400 variant : SubscriptionItem . Variant ;
2399-
2400- variantId : string ;
24012401 }
24022402
24032403 export namespace SubscriptionItem {
@@ -2557,8 +2557,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
25572557
25582558 name : string | null ;
25592559
2560- priceType : 'subscription' ;
2561-
25622560 productId : string ;
25632561
25642562 /**
@@ -2571,6 +2569,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
25712569 */
25722570 trialPeriodDays : number | 0 | null ;
25732571
2572+ type : 'subscription' ;
2573+
25742574 /**
25752575 * safeZodPositiveInteger
25762576 */
@@ -2617,6 +2617,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
26172617
26182618 planName : string | null ;
26192619
2620+ priceId : string ;
2621+
26202622 status :
26212623 | 'incomplete'
26222624 | 'incomplete_expired'
@@ -2633,8 +2635,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
26332635 trialEnd : string | null ;
26342636
26352637 updatedAt : string | null ;
2636-
2637- variantId : string ;
26382638 }
26392639
26402640 export namespace CurrentSubscription {
@@ -2651,6 +2651,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
26512651
26522652 name : string | null ;
26532653
2654+ priceId : string ;
2655+
26542656 /**
26552657 * safeZodPositiveInteger
26562658 */
@@ -2666,8 +2668,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
26662668 updatedAt : string | null ;
26672669
26682670 variant : SubscriptionItem . Variant ;
2669-
2670- variantId : string ;
26712671 }
26722672
26732673 export namespace SubscriptionItem {
@@ -2827,8 +2827,6 @@ export namespace CustomerProfileRetrieveBillingResponse {
28272827
28282828 name : string | null ;
28292829
2830- priceType : 'subscription' ;
2831-
28322830 productId : string ;
28332831
28342832 /**
@@ -2841,6 +2839,8 @@ export namespace CustomerProfileRetrieveBillingResponse {
28412839 */
28422840 trialPeriodDays : number | 0 | null ;
28432841
2842+ type : 'subscription' ;
2843+
28442844 /**
28452845 * safeZodPositiveInteger
28462846 */
0 commit comments