@@ -181,7 +181,9 @@ export interface SinglePaymentPriceClientSelectSchema {
181181 | 'ZMW' ;
182182
183183 /**
184- * Whether or not this price is the default price for the product.
184+ * Whether or not this price is the default price. For product prices, this
185+ * indicates the default price for that product. For usage prices, this indicates
186+ * the default price for that usage meter.
185187 */
186188 isDefault : boolean ;
187189
@@ -191,6 +193,9 @@ export interface SinglePaymentPriceClientSelectSchema {
191193
192194 pricingModelId : string ;
193195
196+ /**
197+ * The product this price belongs to. Required for single payment prices.
198+ */
194199 productId : string ;
195200
196201 slug : string | null ;
@@ -392,7 +397,9 @@ export interface SubscriptionPriceClientSelectSchema {
392397 intervalUnit : 'day' | 'week' | 'month' | 'year' ;
393398
394399 /**
395- * Whether or not this price is the default price for the product.
400+ * Whether or not this price is the default price. For product prices, this
401+ * indicates the default price for that product. For usage prices, this indicates
402+ * the default price for that usage meter.
396403 */
397404 isDefault : boolean ;
398405
@@ -402,6 +409,9 @@ export interface SubscriptionPriceClientSelectSchema {
402409
403410 pricingModelId : string ;
404411
412+ /**
413+ * The product this price belongs to. Required for subscription prices.
414+ */
405415 productId : string ;
406416
407417 slug : string | null ;
@@ -594,7 +604,9 @@ export interface UsagePriceClientSelectSchema {
594604 intervalUnit : 'day' | 'week' | 'month' | 'year' ;
595605
596606 /**
597- * Whether or not this price is the default price for the product.
607+ * Whether or not this price is the default price. For product prices, this
608+ * indicates the default price for that product. For usage prices, this indicates
609+ * the default price for that usage meter.
598610 */
599611 isDefault : boolean ;
600612
@@ -604,7 +616,7 @@ export interface UsagePriceClientSelectSchema {
604616
605617 pricingModelId : string ;
606618
607- productId : string ;
619+ productId : null ;
608620
609621 slug : string | null ;
610622
@@ -685,10 +697,15 @@ export namespace PriceCreateParams {
685697 intervalUnit : 'day' | 'week' | 'month' | 'year' ;
686698
687699 /**
688- * Whether or not this price is the default price for the product.
700+ * Whether or not this price is the default price. For product prices, this
701+ * indicates the default price for that product. For usage prices, this indicates
702+ * the default price for that usage meter.
689703 */
690704 isDefault : boolean ;
691705
706+ /**
707+ * The product this price belongs to. Required for subscription prices.
708+ */
692709 productId : string ;
693710
694711 type : 'subscription' ;
@@ -725,10 +742,15 @@ export namespace PriceCreateParams {
725742
726743 export interface SinglePaymentPriceClientInsertSchema {
727744 /**
728- * Whether or not this price is the default price for the product.
745+ * Whether or not this price is the default price. For product prices, this
746+ * indicates the default price for that product. For usage prices, this indicates
747+ * the default price for that usage meter.
729748 */
730749 isDefault : boolean ;
731750
751+ /**
752+ * The product this price belongs to. Required for single payment prices.
753+ */
732754 productId : string ;
733755
734756 type : 'single_payment' ;
@@ -781,12 +803,12 @@ export namespace PriceCreateParams {
781803 intervalUnit : 'day' | 'week' | 'month' | 'year' ;
782804
783805 /**
784- * Whether or not this price is the default price for the product.
806+ * Whether or not this price is the default price. For product prices, this
807+ * indicates the default price for that product. For usage prices, this indicates
808+ * the default price for that usage meter.
785809 */
786810 isDefault : boolean ;
787811
788- productId : string ;
789-
790812 type : 'usage' ;
791813
792814 /**
@@ -812,6 +834,11 @@ export namespace PriceCreateParams {
812834
813835 name ?: string | null ;
814836
837+ /**
838+ * Omitted.
839+ */
840+ productId ?: null ;
841+
815842 slug ?: string | null ;
816843
817844 /**
@@ -833,7 +860,9 @@ export namespace PriceUpdateParams {
833860 id : string ;
834861
835862 /**
836- * Whether or not this price is the default price for the product.
863+ * Whether or not this price is the default price. For product prices, this
864+ * indicates the default price for that product. For usage prices, this indicates
865+ * the default price for that usage meter.
837866 */
838867 isDefault : boolean ;
839868
@@ -850,7 +879,9 @@ export namespace PriceUpdateParams {
850879 id : string ;
851880
852881 /**
853- * Whether or not this price is the default price for the product.
882+ * Whether or not this price is the default price. For product prices, this
883+ * indicates the default price for that product. For usage prices, this indicates
884+ * the default price for that usage meter.
854885 */
855886 isDefault : boolean ;
856887
@@ -867,7 +898,9 @@ export namespace PriceUpdateParams {
867898 id : string ;
868899
869900 /**
870- * Whether or not this price is the default price for the product.
901+ * Whether or not this price is the default price. For product prices, this
902+ * indicates the default price for that product. For usage prices, this indicates
903+ * the default price for that usage meter.
871904 */
872905 isDefault : boolean ;
873906
0 commit comments