@polar-sh/sdk 0.32.0 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -34
- package/bin/mcp-server.js +107 -12
- package/bin/mcp-server.js.map +11 -9
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +19 -9
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +14 -6
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts +16 -2
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.js +4 -2
- package/dist/commonjs/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +19 -9
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +14 -6
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +19 -9
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +14 -6
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +18 -4
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +8 -6
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts +2 -2
- package/dist/commonjs/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdatepublic.js +4 -4
- package/dist/commonjs/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/commonjs/models/components/customerupdate.d.ts +16 -2
- package/dist/commonjs/models/components/customerupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerupdate.js +4 -2
- package/dist/commonjs/models/components/customerupdate.js.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatecheckbox.d.ts +16 -2
- package/dist/commonjs/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatecheckbox.js +4 -2
- package/dist/commonjs/models/components/customfieldupdatecheckbox.js.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatedate.d.ts +16 -2
- package/dist/commonjs/models/components/customfieldupdatedate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatedate.js +4 -2
- package/dist/commonjs/models/components/customfieldupdatedate.js.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatenumber.d.ts +16 -2
- package/dist/commonjs/models/components/customfieldupdatenumber.d.ts.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatenumber.js +4 -2
- package/dist/commonjs/models/components/customfieldupdatenumber.js.map +1 -1
- package/dist/commonjs/models/components/customfieldupdateselect.d.ts +16 -2
- package/dist/commonjs/models/components/customfieldupdateselect.d.ts.map +1 -1
- package/dist/commonjs/models/components/customfieldupdateselect.js +4 -2
- package/dist/commonjs/models/components/customfieldupdateselect.js.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatetext.d.ts +16 -2
- package/dist/commonjs/models/components/customfieldupdatetext.d.ts.map +1 -1
- package/dist/commonjs/models/components/customfieldupdatetext.js +4 -2
- package/dist/commonjs/models/components/customfieldupdatetext.js.map +1 -1
- package/dist/commonjs/models/components/discountupdate.d.ts +16 -2
- package/dist/commonjs/models/components/discountupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountupdate.js +4 -2
- package/dist/commonjs/models/components/discountupdate.js.map +1 -1
- package/dist/commonjs/models/components/meterupdate.d.ts +16 -2
- package/dist/commonjs/models/components/meterupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterupdate.js +4 -2
- package/dist/commonjs/models/components/meterupdate.js.map +1 -1
- package/dist/commonjs/models/components/productprice.d.ts +3 -2
- package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/productprice.js +3 -0
- package/dist/commonjs/models/components/productprice.js.map +1 -1
- package/dist/commonjs/models/components/productpricemeter.d.ts +40 -0
- package/dist/commonjs/models/components/productpricemeter.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpricemeter.js +61 -0
- package/dist/commonjs/models/components/productpricemeter.js.map +1 -0
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts +97 -0
- package/dist/commonjs/models/components/productpricemeteredunit.d.ts.map +1 -0
- package/dist/commonjs/models/components/productpricemeteredunit.js +117 -0
- package/dist/commonjs/models/components/productpricemeteredunit.js.map +1 -0
- package/dist/commonjs/models/components/productupdate.d.ts +16 -2
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +4 -2
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/checkout.d.ts +19 -9
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +14 -6
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.d.ts +16 -2
- package/dist/esm/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.js +4 -2
- package/dist/esm/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +19 -9
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +14 -6
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +19 -9
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +14 -6
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +18 -4
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +8 -6
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.d.ts +2 -2
- package/dist/esm/models/components/checkoutupdatepublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdatepublic.js +4 -4
- package/dist/esm/models/components/checkoutupdatepublic.js.map +1 -1
- package/dist/esm/models/components/customerupdate.d.ts +16 -2
- package/dist/esm/models/components/customerupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerupdate.js +4 -2
- package/dist/esm/models/components/customerupdate.js.map +1 -1
- package/dist/esm/models/components/customfieldupdatecheckbox.d.ts +16 -2
- package/dist/esm/models/components/customfieldupdatecheckbox.d.ts.map +1 -1
- package/dist/esm/models/components/customfieldupdatecheckbox.js +4 -2
- package/dist/esm/models/components/customfieldupdatecheckbox.js.map +1 -1
- package/dist/esm/models/components/customfieldupdatedate.d.ts +16 -2
- package/dist/esm/models/components/customfieldupdatedate.d.ts.map +1 -1
- package/dist/esm/models/components/customfieldupdatedate.js +4 -2
- package/dist/esm/models/components/customfieldupdatedate.js.map +1 -1
- package/dist/esm/models/components/customfieldupdatenumber.d.ts +16 -2
- package/dist/esm/models/components/customfieldupdatenumber.d.ts.map +1 -1
- package/dist/esm/models/components/customfieldupdatenumber.js +4 -2
- package/dist/esm/models/components/customfieldupdatenumber.js.map +1 -1
- package/dist/esm/models/components/customfieldupdateselect.d.ts +16 -2
- package/dist/esm/models/components/customfieldupdateselect.d.ts.map +1 -1
- package/dist/esm/models/components/customfieldupdateselect.js +4 -2
- package/dist/esm/models/components/customfieldupdateselect.js.map +1 -1
- package/dist/esm/models/components/customfieldupdatetext.d.ts +16 -2
- package/dist/esm/models/components/customfieldupdatetext.d.ts.map +1 -1
- package/dist/esm/models/components/customfieldupdatetext.js +4 -2
- package/dist/esm/models/components/customfieldupdatetext.js.map +1 -1
- package/dist/esm/models/components/discountupdate.d.ts +16 -2
- package/dist/esm/models/components/discountupdate.d.ts.map +1 -1
- package/dist/esm/models/components/discountupdate.js +4 -2
- package/dist/esm/models/components/discountupdate.js.map +1 -1
- package/dist/esm/models/components/meterupdate.d.ts +16 -2
- package/dist/esm/models/components/meterupdate.d.ts.map +1 -1
- package/dist/esm/models/components/meterupdate.js +4 -2
- package/dist/esm/models/components/meterupdate.js.map +1 -1
- package/dist/esm/models/components/productprice.d.ts +3 -2
- package/dist/esm/models/components/productprice.d.ts.map +1 -1
- package/dist/esm/models/components/productprice.js +3 -0
- package/dist/esm/models/components/productprice.js.map +1 -1
- package/dist/esm/models/components/productpricemeter.d.ts +40 -0
- package/dist/esm/models/components/productpricemeter.d.ts.map +1 -0
- package/dist/esm/models/components/productpricemeter.js +33 -0
- package/dist/esm/models/components/productpricemeter.js.map +1 -0
- package/dist/esm/models/components/productpricemeteredunit.d.ts +97 -0
- package/dist/esm/models/components/productpricemeteredunit.d.ts.map +1 -0
- package/dist/esm/models/components/productpricemeteredunit.js +89 -0
- package/dist/esm/models/components/productpricemeteredunit.js.map +1 -0
- package/dist/esm/models/components/productupdate.d.ts +16 -2
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +4 -2
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/checkout.ts +33 -15
- package/src/models/components/checkoutlinkupdate.ts +20 -8
- package/src/models/components/checkoutpublic.ts +33 -15
- package/src/models/components/checkoutpublicconfirmed.ts +33 -15
- package/src/models/components/checkoutupdate.ts +36 -30
- package/src/models/components/checkoutupdatepublic.ts +16 -22
- package/src/models/components/customerupdate.ts +20 -8
- package/src/models/components/customfieldupdatecheckbox.ts +20 -8
- package/src/models/components/customfieldupdatedate.ts +20 -8
- package/src/models/components/customfieldupdatenumber.ts +20 -8
- package/src/models/components/customfieldupdateselect.ts +20 -8
- package/src/models/components/customfieldupdatetext.ts +20 -8
- package/src/models/components/discountupdate.ts +20 -8
- package/src/models/components/meterupdate.ts +20 -8
- package/src/models/components/productprice.ts +12 -2
- package/src/models/components/productpricemeter.ts +79 -0
- package/src/models/components/productpricemeteredunit.ts +204 -0
- package/src/models/components/productupdate.ts +20 -8
|
@@ -139,21 +139,25 @@ export type CheckoutPublic = {
|
|
|
139
139
|
embedOrigin: string | null;
|
|
140
140
|
amount: number | null;
|
|
141
141
|
/**
|
|
142
|
-
*
|
|
142
|
+
* Discount amount in cents.
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
discountAmount: number | null;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Amount in cents, after discounts but before taxes.
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
netAmount: number | null;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Sales tax amount in cents.
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
taxAmount: number | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Amount in cents, after discounts and taxes.
|
|
155
155
|
*/
|
|
156
156
|
totalAmount: number | null;
|
|
157
|
+
/**
|
|
158
|
+
* Currency code of the checkout session.
|
|
159
|
+
*/
|
|
160
|
+
currency: string | null;
|
|
157
161
|
/**
|
|
158
162
|
* ID of the product to checkout.
|
|
159
163
|
*/
|
|
@@ -203,6 +207,10 @@ export type CheckoutPublic = {
|
|
|
203
207
|
customerBillingAddress: Address | null;
|
|
204
208
|
customerTaxId: string | null;
|
|
205
209
|
paymentProcessorMetadata: { [k: string]: string };
|
|
210
|
+
/**
|
|
211
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
212
|
+
*/
|
|
213
|
+
subtotalAmount: number | null;
|
|
206
214
|
/**
|
|
207
215
|
* List of products available to select.
|
|
208
216
|
*/
|
|
@@ -436,10 +444,11 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
436
444
|
success_url: z.string(),
|
|
437
445
|
embed_origin: z.nullable(z.string()),
|
|
438
446
|
amount: z.nullable(z.number().int()),
|
|
447
|
+
discount_amount: z.nullable(z.number().int()),
|
|
448
|
+
net_amount: z.nullable(z.number().int()),
|
|
439
449
|
tax_amount: z.nullable(z.number().int()),
|
|
440
|
-
currency: z.nullable(z.string()),
|
|
441
|
-
subtotal_amount: z.nullable(z.number().int()),
|
|
442
450
|
total_amount: z.nullable(z.number().int()),
|
|
451
|
+
currency: z.nullable(z.string()),
|
|
443
452
|
product_id: z.string(),
|
|
444
453
|
product_price_id: z.string(),
|
|
445
454
|
discount_id: z.nullable(z.string()),
|
|
@@ -456,6 +465,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
456
465
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
457
466
|
customer_tax_id: z.nullable(z.string()),
|
|
458
467
|
payment_processor_metadata: z.record(z.string()),
|
|
468
|
+
subtotal_amount: z.nullable(z.number().int()),
|
|
459
469
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
460
470
|
product: CheckoutProduct$inboundSchema,
|
|
461
471
|
product_price: z.union([
|
|
@@ -482,8 +492,9 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
482
492
|
"expires_at": "expiresAt",
|
|
483
493
|
"success_url": "successUrl",
|
|
484
494
|
"embed_origin": "embedOrigin",
|
|
495
|
+
"discount_amount": "discountAmount",
|
|
496
|
+
"net_amount": "netAmount",
|
|
485
497
|
"tax_amount": "taxAmount",
|
|
486
|
-
"subtotal_amount": "subtotalAmount",
|
|
487
498
|
"total_amount": "totalAmount",
|
|
488
499
|
"product_id": "productId",
|
|
489
500
|
"product_price_id": "productPriceId",
|
|
@@ -501,6 +512,7 @@ export const CheckoutPublic$inboundSchema: z.ZodType<
|
|
|
501
512
|
"customer_billing_address": "customerBillingAddress",
|
|
502
513
|
"customer_tax_id": "customerTaxId",
|
|
503
514
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
515
|
+
"subtotal_amount": "subtotalAmount",
|
|
504
516
|
"product_price": "productPrice",
|
|
505
517
|
"attached_custom_fields": "attachedCustomFields",
|
|
506
518
|
});
|
|
@@ -522,10 +534,11 @@ export type CheckoutPublic$Outbound = {
|
|
|
522
534
|
success_url: string;
|
|
523
535
|
embed_origin: string | null;
|
|
524
536
|
amount: number | null;
|
|
537
|
+
discount_amount: number | null;
|
|
538
|
+
net_amount: number | null;
|
|
525
539
|
tax_amount: number | null;
|
|
526
|
-
currency: string | null;
|
|
527
|
-
subtotal_amount: number | null;
|
|
528
540
|
total_amount: number | null;
|
|
541
|
+
currency: string | null;
|
|
529
542
|
product_id: string;
|
|
530
543
|
product_price_id: string;
|
|
531
544
|
discount_id: string | null;
|
|
@@ -542,6 +555,7 @@ export type CheckoutPublic$Outbound = {
|
|
|
542
555
|
customer_billing_address: Address$Outbound | null;
|
|
543
556
|
customer_tax_id: string | null;
|
|
544
557
|
payment_processor_metadata: { [k: string]: string };
|
|
558
|
+
subtotal_amount: number | null;
|
|
545
559
|
products: Array<CheckoutProduct$Outbound>;
|
|
546
560
|
product: CheckoutProduct$Outbound;
|
|
547
561
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
@@ -582,10 +596,11 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
582
596
|
successUrl: z.string(),
|
|
583
597
|
embedOrigin: z.nullable(z.string()),
|
|
584
598
|
amount: z.nullable(z.number().int()),
|
|
599
|
+
discountAmount: z.nullable(z.number().int()),
|
|
600
|
+
netAmount: z.nullable(z.number().int()),
|
|
585
601
|
taxAmount: z.nullable(z.number().int()),
|
|
586
|
-
currency: z.nullable(z.string()),
|
|
587
|
-
subtotalAmount: z.nullable(z.number().int()),
|
|
588
602
|
totalAmount: z.nullable(z.number().int()),
|
|
603
|
+
currency: z.nullable(z.string()),
|
|
589
604
|
productId: z.string(),
|
|
590
605
|
productPriceId: z.string(),
|
|
591
606
|
discountId: z.nullable(z.string()),
|
|
@@ -602,6 +617,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
602
617
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
603
618
|
customerTaxId: z.nullable(z.string()),
|
|
604
619
|
paymentProcessorMetadata: z.record(z.string()),
|
|
620
|
+
subtotalAmount: z.nullable(z.number().int()),
|
|
605
621
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
606
622
|
product: CheckoutProduct$outboundSchema,
|
|
607
623
|
productPrice: z.union([
|
|
@@ -628,8 +644,9 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
628
644
|
expiresAt: "expires_at",
|
|
629
645
|
successUrl: "success_url",
|
|
630
646
|
embedOrigin: "embed_origin",
|
|
647
|
+
discountAmount: "discount_amount",
|
|
648
|
+
netAmount: "net_amount",
|
|
631
649
|
taxAmount: "tax_amount",
|
|
632
|
-
subtotalAmount: "subtotal_amount",
|
|
633
650
|
totalAmount: "total_amount",
|
|
634
651
|
productId: "product_id",
|
|
635
652
|
productPriceId: "product_price_id",
|
|
@@ -647,6 +664,7 @@ export const CheckoutPublic$outboundSchema: z.ZodType<
|
|
|
647
664
|
customerBillingAddress: "customer_billing_address",
|
|
648
665
|
customerTaxId: "customer_tax_id",
|
|
649
666
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
667
|
+
subtotalAmount: "subtotal_amount",
|
|
650
668
|
productPrice: "product_price",
|
|
651
669
|
attachedCustomFields: "attached_custom_fields",
|
|
652
670
|
});
|
|
@@ -143,21 +143,25 @@ export type CheckoutPublicConfirmed = {
|
|
|
143
143
|
embedOrigin: string | null;
|
|
144
144
|
amount: number | null;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
146
|
+
* Discount amount in cents.
|
|
147
147
|
*/
|
|
148
|
-
|
|
148
|
+
discountAmount: number | null;
|
|
149
149
|
/**
|
|
150
|
-
*
|
|
150
|
+
* Amount in cents, after discounts but before taxes.
|
|
151
151
|
*/
|
|
152
|
-
|
|
152
|
+
netAmount: number | null;
|
|
153
153
|
/**
|
|
154
|
-
*
|
|
154
|
+
* Sales tax amount in cents.
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
taxAmount: number | null;
|
|
157
157
|
/**
|
|
158
|
-
*
|
|
158
|
+
* Amount in cents, after discounts and taxes.
|
|
159
159
|
*/
|
|
160
160
|
totalAmount: number | null;
|
|
161
|
+
/**
|
|
162
|
+
* Currency code of the checkout session.
|
|
163
|
+
*/
|
|
164
|
+
currency: string | null;
|
|
161
165
|
/**
|
|
162
166
|
* ID of the product to checkout.
|
|
163
167
|
*/
|
|
@@ -207,6 +211,10 @@ export type CheckoutPublicConfirmed = {
|
|
|
207
211
|
customerBillingAddress: Address | null;
|
|
208
212
|
customerTaxId: string | null;
|
|
209
213
|
paymentProcessorMetadata: { [k: string]: string };
|
|
214
|
+
/**
|
|
215
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
216
|
+
*/
|
|
217
|
+
subtotalAmount: number | null;
|
|
210
218
|
/**
|
|
211
219
|
* List of products available to select.
|
|
212
220
|
*/
|
|
@@ -452,10 +460,11 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
452
460
|
success_url: z.string(),
|
|
453
461
|
embed_origin: z.nullable(z.string()),
|
|
454
462
|
amount: z.nullable(z.number().int()),
|
|
463
|
+
discount_amount: z.nullable(z.number().int()),
|
|
464
|
+
net_amount: z.nullable(z.number().int()),
|
|
455
465
|
tax_amount: z.nullable(z.number().int()),
|
|
456
|
-
currency: z.nullable(z.string()),
|
|
457
|
-
subtotal_amount: z.nullable(z.number().int()),
|
|
458
466
|
total_amount: z.nullable(z.number().int()),
|
|
467
|
+
currency: z.nullable(z.string()),
|
|
459
468
|
product_id: z.string(),
|
|
460
469
|
product_price_id: z.string(),
|
|
461
470
|
discount_id: z.nullable(z.string()),
|
|
@@ -472,6 +481,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
472
481
|
customer_billing_address: z.nullable(Address$inboundSchema),
|
|
473
482
|
customer_tax_id: z.nullable(z.string()),
|
|
474
483
|
payment_processor_metadata: z.record(z.string()),
|
|
484
|
+
subtotal_amount: z.nullable(z.number().int()),
|
|
475
485
|
products: z.array(CheckoutProduct$inboundSchema),
|
|
476
486
|
product: CheckoutProduct$inboundSchema,
|
|
477
487
|
product_price: z.union([
|
|
@@ -499,8 +509,9 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
499
509
|
"expires_at": "expiresAt",
|
|
500
510
|
"success_url": "successUrl",
|
|
501
511
|
"embed_origin": "embedOrigin",
|
|
512
|
+
"discount_amount": "discountAmount",
|
|
513
|
+
"net_amount": "netAmount",
|
|
502
514
|
"tax_amount": "taxAmount",
|
|
503
|
-
"subtotal_amount": "subtotalAmount",
|
|
504
515
|
"total_amount": "totalAmount",
|
|
505
516
|
"product_id": "productId",
|
|
506
517
|
"product_price_id": "productPriceId",
|
|
@@ -518,6 +529,7 @@ export const CheckoutPublicConfirmed$inboundSchema: z.ZodType<
|
|
|
518
529
|
"customer_billing_address": "customerBillingAddress",
|
|
519
530
|
"customer_tax_id": "customerTaxId",
|
|
520
531
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
532
|
+
"subtotal_amount": "subtotalAmount",
|
|
521
533
|
"product_price": "productPrice",
|
|
522
534
|
"attached_custom_fields": "attachedCustomFields",
|
|
523
535
|
"customer_session_token": "customerSessionToken",
|
|
@@ -540,10 +552,11 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
540
552
|
success_url: string;
|
|
541
553
|
embed_origin: string | null;
|
|
542
554
|
amount: number | null;
|
|
555
|
+
discount_amount: number | null;
|
|
556
|
+
net_amount: number | null;
|
|
543
557
|
tax_amount: number | null;
|
|
544
|
-
currency: string | null;
|
|
545
|
-
subtotal_amount: number | null;
|
|
546
558
|
total_amount: number | null;
|
|
559
|
+
currency: string | null;
|
|
547
560
|
product_id: string;
|
|
548
561
|
product_price_id: string;
|
|
549
562
|
discount_id: string | null;
|
|
@@ -560,6 +573,7 @@ export type CheckoutPublicConfirmed$Outbound = {
|
|
|
560
573
|
customer_billing_address: Address$Outbound | null;
|
|
561
574
|
customer_tax_id: string | null;
|
|
562
575
|
payment_processor_metadata: { [k: string]: string };
|
|
576
|
+
subtotal_amount: number | null;
|
|
563
577
|
products: Array<CheckoutProduct$Outbound>;
|
|
564
578
|
product: CheckoutProduct$Outbound;
|
|
565
579
|
product_price: LegacyRecurringProductPrice$Outbound | ProductPrice$Outbound;
|
|
@@ -601,10 +615,11 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
601
615
|
successUrl: z.string(),
|
|
602
616
|
embedOrigin: z.nullable(z.string()),
|
|
603
617
|
amount: z.nullable(z.number().int()),
|
|
618
|
+
discountAmount: z.nullable(z.number().int()),
|
|
619
|
+
netAmount: z.nullable(z.number().int()),
|
|
604
620
|
taxAmount: z.nullable(z.number().int()),
|
|
605
|
-
currency: z.nullable(z.string()),
|
|
606
|
-
subtotalAmount: z.nullable(z.number().int()),
|
|
607
621
|
totalAmount: z.nullable(z.number().int()),
|
|
622
|
+
currency: z.nullable(z.string()),
|
|
608
623
|
productId: z.string(),
|
|
609
624
|
productPriceId: z.string(),
|
|
610
625
|
discountId: z.nullable(z.string()),
|
|
@@ -621,6 +636,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
621
636
|
customerBillingAddress: z.nullable(Address$outboundSchema),
|
|
622
637
|
customerTaxId: z.nullable(z.string()),
|
|
623
638
|
paymentProcessorMetadata: z.record(z.string()),
|
|
639
|
+
subtotalAmount: z.nullable(z.number().int()),
|
|
624
640
|
products: z.array(CheckoutProduct$outboundSchema),
|
|
625
641
|
product: CheckoutProduct$outboundSchema,
|
|
626
642
|
productPrice: z.union([
|
|
@@ -648,8 +664,9 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
648
664
|
expiresAt: "expires_at",
|
|
649
665
|
successUrl: "success_url",
|
|
650
666
|
embedOrigin: "embed_origin",
|
|
667
|
+
discountAmount: "discount_amount",
|
|
668
|
+
netAmount: "net_amount",
|
|
651
669
|
taxAmount: "tax_amount",
|
|
652
|
-
subtotalAmount: "subtotal_amount",
|
|
653
670
|
totalAmount: "total_amount",
|
|
654
671
|
productId: "product_id",
|
|
655
672
|
productPriceId: "product_price_id",
|
|
@@ -667,6 +684,7 @@ export const CheckoutPublicConfirmed$outboundSchema: z.ZodType<
|
|
|
667
684
|
customerBillingAddress: "customer_billing_address",
|
|
668
685
|
customerTaxId: "customer_tax_id",
|
|
669
686
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
687
|
+
subtotalAmount: "subtotal_amount",
|
|
670
688
|
productPrice: "product_price",
|
|
671
689
|
attachedCustomFields: "attached_custom_fields",
|
|
672
690
|
customerSessionToken: "customer_session_token",
|
|
@@ -29,7 +29,6 @@ export type CheckoutUpdate = {
|
|
|
29
29
|
*/
|
|
30
30
|
customFieldData?:
|
|
31
31
|
| { [k: string]: string | number | boolean | Date | null }
|
|
32
|
-
| null
|
|
33
32
|
| undefined;
|
|
34
33
|
/**
|
|
35
34
|
* ID of the product to checkout. Must be present in the checkout's product list.
|
|
@@ -46,7 +45,21 @@ export type CheckoutUpdate = {
|
|
|
46
45
|
customerEmail?: string | null | undefined;
|
|
47
46
|
customerBillingAddress?: Address | null | undefined;
|
|
48
47
|
customerTaxId?: string | null | undefined;
|
|
49
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Key-value object allowing you to store additional information.
|
|
50
|
+
*
|
|
51
|
+
* @remarks
|
|
52
|
+
*
|
|
53
|
+
* The key must be a string with a maximum length of **40 characters**.
|
|
54
|
+
* The value must be either:
|
|
55
|
+
*
|
|
56
|
+
* * A string with a maximum length of **500 characters**
|
|
57
|
+
* * An integer
|
|
58
|
+
* * A boolean
|
|
59
|
+
*
|
|
60
|
+
* You can store up to **50 key-value pairs**.
|
|
61
|
+
*/
|
|
62
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
50
63
|
/**
|
|
51
64
|
* ID of the discount to apply to the checkout.
|
|
52
65
|
*/
|
|
@@ -252,16 +265,14 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
|
|
|
252
265
|
z.ZodTypeDef,
|
|
253
266
|
unknown
|
|
254
267
|
> = z.object({
|
|
255
|
-
custom_field_data: z.
|
|
256
|
-
z.
|
|
257
|
-
z.
|
|
258
|
-
z.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
]),
|
|
264
|
-
),
|
|
268
|
+
custom_field_data: z.record(
|
|
269
|
+
z.nullable(
|
|
270
|
+
z.union([
|
|
271
|
+
z.string(),
|
|
272
|
+
z.number().int(),
|
|
273
|
+
z.boolean(),
|
|
274
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
275
|
+
]),
|
|
265
276
|
),
|
|
266
277
|
).optional(),
|
|
267
278
|
product_id: z.nullable(z.string()).optional(),
|
|
@@ -271,9 +282,8 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
|
|
|
271
282
|
customer_email: z.nullable(z.string()).optional(),
|
|
272
283
|
customer_billing_address: z.nullable(Address$inboundSchema).optional(),
|
|
273
284
|
customer_tax_id: z.nullable(z.string()).optional(),
|
|
274
|
-
metadata: z.
|
|
275
|
-
|
|
276
|
-
).optional(),
|
|
285
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
286
|
+
.optional(),
|
|
277
287
|
discount_id: z.nullable(z.string()).optional(),
|
|
278
288
|
allow_discount_codes: z.nullable(z.boolean()).optional(),
|
|
279
289
|
customer_ip_address: z.nullable(z.string()).optional(),
|
|
@@ -304,7 +314,6 @@ export const CheckoutUpdate$inboundSchema: z.ZodType<
|
|
|
304
314
|
export type CheckoutUpdate$Outbound = {
|
|
305
315
|
custom_field_data?:
|
|
306
316
|
| { [k: string]: string | number | boolean | string | null }
|
|
307
|
-
| null
|
|
308
317
|
| undefined;
|
|
309
318
|
product_id?: string | null | undefined;
|
|
310
319
|
product_price_id?: string | null | undefined;
|
|
@@ -313,7 +322,7 @@ export type CheckoutUpdate$Outbound = {
|
|
|
313
322
|
customer_email?: string | null | undefined;
|
|
314
323
|
customer_billing_address?: Address$Outbound | null | undefined;
|
|
315
324
|
customer_tax_id?: string | null | undefined;
|
|
316
|
-
metadata?: { [k: string]: string | number | boolean } |
|
|
325
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
317
326
|
discount_id?: string | null | undefined;
|
|
318
327
|
allow_discount_codes?: boolean | null | undefined;
|
|
319
328
|
customer_ip_address?: string | null | undefined;
|
|
@@ -331,16 +340,14 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
|
|
|
331
340
|
z.ZodTypeDef,
|
|
332
341
|
CheckoutUpdate
|
|
333
342
|
> = z.object({
|
|
334
|
-
customFieldData: z.
|
|
335
|
-
z.
|
|
336
|
-
z.
|
|
337
|
-
z.
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
]),
|
|
343
|
-
),
|
|
343
|
+
customFieldData: z.record(
|
|
344
|
+
z.nullable(
|
|
345
|
+
z.union([
|
|
346
|
+
z.string(),
|
|
347
|
+
z.number().int(),
|
|
348
|
+
z.boolean(),
|
|
349
|
+
z.date().transform(v => v.toISOString()),
|
|
350
|
+
]),
|
|
344
351
|
),
|
|
345
352
|
).optional(),
|
|
346
353
|
productId: z.nullable(z.string()).optional(),
|
|
@@ -350,9 +357,8 @@ export const CheckoutUpdate$outboundSchema: z.ZodType<
|
|
|
350
357
|
customerEmail: z.nullable(z.string()).optional(),
|
|
351
358
|
customerBillingAddress: z.nullable(Address$outboundSchema).optional(),
|
|
352
359
|
customerTaxId: z.nullable(z.string()).optional(),
|
|
353
|
-
metadata: z.
|
|
354
|
-
|
|
355
|
-
).optional(),
|
|
360
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
361
|
+
.optional(),
|
|
356
362
|
discountId: z.nullable(z.string()).optional(),
|
|
357
363
|
allowDiscountCodes: z.nullable(z.boolean()).optional(),
|
|
358
364
|
customerIpAddress: z.nullable(z.string()).optional(),
|
|
@@ -29,7 +29,6 @@ export type CheckoutUpdatePublic = {
|
|
|
29
29
|
*/
|
|
30
30
|
customFieldData?:
|
|
31
31
|
| { [k: string]: string | number | boolean | Date | null }
|
|
32
|
-
| null
|
|
33
32
|
| undefined;
|
|
34
33
|
/**
|
|
35
34
|
* ID of the product to checkout. Must be present in the checkout's product list.
|
|
@@ -125,16 +124,14 @@ export const CheckoutUpdatePublic$inboundSchema: z.ZodType<
|
|
|
125
124
|
z.ZodTypeDef,
|
|
126
125
|
unknown
|
|
127
126
|
> = z.object({
|
|
128
|
-
custom_field_data: z.
|
|
129
|
-
z.
|
|
130
|
-
z.
|
|
131
|
-
z.
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
]),
|
|
137
|
-
),
|
|
127
|
+
custom_field_data: z.record(
|
|
128
|
+
z.nullable(
|
|
129
|
+
z.union([
|
|
130
|
+
z.string(),
|
|
131
|
+
z.number().int(),
|
|
132
|
+
z.boolean(),
|
|
133
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
134
|
+
]),
|
|
138
135
|
),
|
|
139
136
|
).optional(),
|
|
140
137
|
product_id: z.nullable(z.string()).optional(),
|
|
@@ -162,7 +159,6 @@ export const CheckoutUpdatePublic$inboundSchema: z.ZodType<
|
|
|
162
159
|
export type CheckoutUpdatePublic$Outbound = {
|
|
163
160
|
custom_field_data?:
|
|
164
161
|
| { [k: string]: string | number | boolean | string | null }
|
|
165
|
-
| null
|
|
166
162
|
| undefined;
|
|
167
163
|
product_id?: string | null | undefined;
|
|
168
164
|
product_price_id?: string | null | undefined;
|
|
@@ -180,16 +176,14 @@ export const CheckoutUpdatePublic$outboundSchema: z.ZodType<
|
|
|
180
176
|
z.ZodTypeDef,
|
|
181
177
|
CheckoutUpdatePublic
|
|
182
178
|
> = z.object({
|
|
183
|
-
customFieldData: z.
|
|
184
|
-
z.
|
|
185
|
-
z.
|
|
186
|
-
z.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
]),
|
|
192
|
-
),
|
|
179
|
+
customFieldData: z.record(
|
|
180
|
+
z.nullable(
|
|
181
|
+
z.union([
|
|
182
|
+
z.string(),
|
|
183
|
+
z.number().int(),
|
|
184
|
+
z.boolean(),
|
|
185
|
+
z.date().transform(v => v.toISOString()),
|
|
186
|
+
]),
|
|
193
187
|
),
|
|
194
188
|
).optional(),
|
|
195
189
|
productId: z.nullable(z.string()).optional(),
|
|
@@ -24,7 +24,21 @@ export type CustomerUpdateMetadata = string | number | boolean;
|
|
|
24
24
|
export type CustomerUpdateTaxId = string | TaxIDFormat;
|
|
25
25
|
|
|
26
26
|
export type CustomerUpdate = {
|
|
27
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Key-value object allowing you to store additional information.
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
*
|
|
32
|
+
* The key must be a string with a maximum length of **40 characters**.
|
|
33
|
+
* The value must be either:
|
|
34
|
+
*
|
|
35
|
+
* * A string with a maximum length of **500 characters**
|
|
36
|
+
* * An integer
|
|
37
|
+
* * A boolean
|
|
38
|
+
*
|
|
39
|
+
* You can store up to **50 key-value pairs**.
|
|
40
|
+
*/
|
|
41
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
28
42
|
/**
|
|
29
43
|
* The ID of the customer in your system. This must be unique within the organization. Once set, it can't be updated.
|
|
30
44
|
*/
|
|
@@ -143,9 +157,8 @@ export const CustomerUpdate$inboundSchema: z.ZodType<
|
|
|
143
157
|
z.ZodTypeDef,
|
|
144
158
|
unknown
|
|
145
159
|
> = z.object({
|
|
146
|
-
metadata: z.
|
|
147
|
-
|
|
148
|
-
).optional(),
|
|
160
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
161
|
+
.optional(),
|
|
149
162
|
external_id: z.nullable(z.string()).optional(),
|
|
150
163
|
email: z.nullable(z.string()).optional(),
|
|
151
164
|
name: z.nullable(z.string()).optional(),
|
|
@@ -163,7 +176,7 @@ export const CustomerUpdate$inboundSchema: z.ZodType<
|
|
|
163
176
|
|
|
164
177
|
/** @internal */
|
|
165
178
|
export type CustomerUpdate$Outbound = {
|
|
166
|
-
metadata?: { [k: string]: string | number | boolean } |
|
|
179
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
167
180
|
external_id?: string | null | undefined;
|
|
168
181
|
email?: string | null | undefined;
|
|
169
182
|
name?: string | null | undefined;
|
|
@@ -177,9 +190,8 @@ export const CustomerUpdate$outboundSchema: z.ZodType<
|
|
|
177
190
|
z.ZodTypeDef,
|
|
178
191
|
CustomerUpdate
|
|
179
192
|
> = z.object({
|
|
180
|
-
metadata: z.
|
|
181
|
-
|
|
182
|
-
).optional(),
|
|
193
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
194
|
+
.optional(),
|
|
183
195
|
externalId: z.nullable(z.string()).optional(),
|
|
184
196
|
email: z.nullable(z.string()).optional(),
|
|
185
197
|
name: z.nullable(z.string()).optional(),
|
|
@@ -19,7 +19,21 @@ export type CustomFieldUpdateCheckboxMetadata = string | number | boolean;
|
|
|
19
19
|
* Schema to update a custom field of type checkbox.
|
|
20
20
|
*/
|
|
21
21
|
export type CustomFieldUpdateCheckbox = {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Key-value object allowing you to store additional information.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
*
|
|
27
|
+
* The key must be a string with a maximum length of **40 characters**.
|
|
28
|
+
* The value must be either:
|
|
29
|
+
*
|
|
30
|
+
* * A string with a maximum length of **500 characters**
|
|
31
|
+
* * An integer
|
|
32
|
+
* * A boolean
|
|
33
|
+
*
|
|
34
|
+
* You can store up to **50 key-value pairs**.
|
|
35
|
+
*/
|
|
36
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
23
37
|
name?: string | null | undefined;
|
|
24
38
|
slug?: string | null | undefined;
|
|
25
39
|
type?: "checkbox" | undefined;
|
|
@@ -86,9 +100,8 @@ export const CustomFieldUpdateCheckbox$inboundSchema: z.ZodType<
|
|
|
86
100
|
z.ZodTypeDef,
|
|
87
101
|
unknown
|
|
88
102
|
> = z.object({
|
|
89
|
-
metadata: z.
|
|
90
|
-
|
|
91
|
-
).optional(),
|
|
103
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
104
|
+
.optional(),
|
|
92
105
|
name: z.nullable(z.string()).optional(),
|
|
93
106
|
slug: z.nullable(z.string()).optional(),
|
|
94
107
|
type: z.literal("checkbox").optional(),
|
|
@@ -98,7 +111,7 @@ export const CustomFieldUpdateCheckbox$inboundSchema: z.ZodType<
|
|
|
98
111
|
|
|
99
112
|
/** @internal */
|
|
100
113
|
export type CustomFieldUpdateCheckbox$Outbound = {
|
|
101
|
-
metadata?: { [k: string]: string | number | boolean } |
|
|
114
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
102
115
|
name?: string | null | undefined;
|
|
103
116
|
slug?: string | null | undefined;
|
|
104
117
|
type: "checkbox";
|
|
@@ -111,9 +124,8 @@ export const CustomFieldUpdateCheckbox$outboundSchema: z.ZodType<
|
|
|
111
124
|
z.ZodTypeDef,
|
|
112
125
|
CustomFieldUpdateCheckbox
|
|
113
126
|
> = z.object({
|
|
114
|
-
metadata: z.
|
|
115
|
-
|
|
116
|
-
).optional(),
|
|
127
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
128
|
+
.optional(),
|
|
117
129
|
name: z.nullable(z.string()).optional(),
|
|
118
130
|
slug: z.nullable(z.string()).optional(),
|
|
119
131
|
type: z.literal("checkbox").default("checkbox" as const),
|
|
@@ -19,7 +19,21 @@ export type CustomFieldUpdateDateMetadata = string | number | boolean;
|
|
|
19
19
|
* Schema to update a custom field of type date.
|
|
20
20
|
*/
|
|
21
21
|
export type CustomFieldUpdateDate = {
|
|
22
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Key-value object allowing you to store additional information.
|
|
24
|
+
*
|
|
25
|
+
* @remarks
|
|
26
|
+
*
|
|
27
|
+
* The key must be a string with a maximum length of **40 characters**.
|
|
28
|
+
* The value must be either:
|
|
29
|
+
*
|
|
30
|
+
* * A string with a maximum length of **500 characters**
|
|
31
|
+
* * An integer
|
|
32
|
+
* * A boolean
|
|
33
|
+
*
|
|
34
|
+
* You can store up to **50 key-value pairs**.
|
|
35
|
+
*/
|
|
36
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
23
37
|
name?: string | null | undefined;
|
|
24
38
|
slug?: string | null | undefined;
|
|
25
39
|
type?: "date" | undefined;
|
|
@@ -82,9 +96,8 @@ export const CustomFieldUpdateDate$inboundSchema: z.ZodType<
|
|
|
82
96
|
z.ZodTypeDef,
|
|
83
97
|
unknown
|
|
84
98
|
> = z.object({
|
|
85
|
-
metadata: z.
|
|
86
|
-
|
|
87
|
-
).optional(),
|
|
99
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
100
|
+
.optional(),
|
|
88
101
|
name: z.nullable(z.string()).optional(),
|
|
89
102
|
slug: z.nullable(z.string()).optional(),
|
|
90
103
|
type: z.literal("date").optional(),
|
|
@@ -93,7 +106,7 @@ export const CustomFieldUpdateDate$inboundSchema: z.ZodType<
|
|
|
93
106
|
|
|
94
107
|
/** @internal */
|
|
95
108
|
export type CustomFieldUpdateDate$Outbound = {
|
|
96
|
-
metadata?: { [k: string]: string | number | boolean } |
|
|
109
|
+
metadata?: { [k: string]: string | number | boolean } | undefined;
|
|
97
110
|
name?: string | null | undefined;
|
|
98
111
|
slug?: string | null | undefined;
|
|
99
112
|
type: "date";
|
|
@@ -106,9 +119,8 @@ export const CustomFieldUpdateDate$outboundSchema: z.ZodType<
|
|
|
106
119
|
z.ZodTypeDef,
|
|
107
120
|
CustomFieldUpdateDate
|
|
108
121
|
> = z.object({
|
|
109
|
-
metadata: z.
|
|
110
|
-
|
|
111
|
-
).optional(),
|
|
122
|
+
metadata: z.record(z.union([z.string(), z.number().int(), z.boolean()]))
|
|
123
|
+
.optional(),
|
|
112
124
|
name: z.nullable(z.string()).optional(),
|
|
113
125
|
slug: z.nullable(z.string()).optional(),
|
|
114
126
|
type: z.literal("date").default("date" as const),
|