@polar-sh/sdk 0.35.0 → 0.35.1
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/bin/mcp-server.js +673 -475
- package/bin/mcp-server.js.map +19 -15
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/address.d.ts +687 -687
- package/dist/commonjs/models/components/address.js +222 -222
- package/dist/commonjs/models/components/addressinput.d.ts +683 -683
- package/dist/commonjs/models/components/addressinput.js +217 -217
- package/dist/commonjs/models/components/checkout.d.ts +31 -5
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +23 -2
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.js +9 -0
- package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.js +11 -2
- package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkproduct.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutlinkproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkproduct.js +11 -2
- package/dist/commonjs/models/components/checkoutlinkproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutproduct.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutproduct.js +11 -2
- package/dist/commonjs/models/components/checkoutproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +21 -5
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +15 -2
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +21 -5
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +15 -2
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +9 -0
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.js +11 -2
- package/dist/commonjs/models/components/customerorderproduct.js.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.js +8 -0
- package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customerproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customerproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerproduct.js +11 -2
- package/dist/commonjs/models/components/customerproduct.js.map +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +8 -0
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscriptionproduct.js +11 -2
- package/dist/commonjs/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/commonjs/models/components/discountproduct.d.ts +14 -3
- package/dist/commonjs/models/components/discountproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountproduct.js +11 -2
- package/dist/commonjs/models/components/discountproduct.js.map +1 -1
- package/dist/commonjs/models/components/orderproduct.d.ts +14 -3
- package/dist/commonjs/models/components/orderproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderproduct.js +11 -2
- package/dist/commonjs/models/components/orderproduct.js.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.js +8 -0
- package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +14 -3
- package/dist/commonjs/models/components/product.d.ts.map +1 -1
- package/dist/commonjs/models/components/product.js +11 -2
- package/dist/commonjs/models/components/product.js.map +1 -1
- package/dist/commonjs/models/components/productcreate.d.ts +4 -111
- package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreate.js +9 -106
- package/dist/commonjs/models/components/productcreate.js.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.d.ts +130 -0
- package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -0
- package/dist/commonjs/models/components/productcreateonetime.js +169 -0
- package/dist/commonjs/models/components/productcreateonetime.js.map +1 -0
- package/dist/commonjs/models/components/productcreaterecurring.d.ts +139 -0
- package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -0
- package/dist/commonjs/models/components/productcreaterecurring.js +179 -0
- package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -0
- package/dist/commonjs/models/components/productupdate.d.ts +11 -0
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +9 -0
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +10 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +8 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.d.ts +3 -2
- package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.js +3 -0
- package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts +32 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.js +78 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.js.map +1 -0
- package/dist/commonjs/models/components/trialinterval.d.ts +34 -0
- package/dist/commonjs/models/components/trialinterval.d.ts.map +1 -0
- package/dist/commonjs/models/components/trialinterval.js +62 -0
- package/dist/commonjs/models/components/trialinterval.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/address.d.ts +687 -687
- package/dist/esm/models/components/address.js +222 -222
- package/dist/esm/models/components/addressinput.d.ts +683 -683
- package/dist/esm/models/components/addressinput.js +217 -217
- package/dist/esm/models/components/checkout.d.ts +31 -5
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +23 -2
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +11 -0
- package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutcreate.js +9 -0
- package/dist/esm/models/components/checkoutcreate.js.map +1 -1
- package/dist/esm/models/components/checkoutlink.d.ts +14 -3
- package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlink.js +11 -2
- package/dist/esm/models/components/checkoutlink.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproduct.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproductprice.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproductprice.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproducts.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproducts.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkproduct.d.ts +14 -3
- package/dist/esm/models/components/checkoutlinkproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkproduct.js +11 -2
- package/dist/esm/models/components/checkoutlinkproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.js +9 -0
- package/dist/esm/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutproduct.d.ts +14 -3
- package/dist/esm/models/components/checkoutproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutproduct.js +11 -2
- package/dist/esm/models/components/checkoutproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +21 -5
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +15 -2
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +21 -5
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +15 -2
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +11 -0
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +9 -0
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/customerorderproduct.d.ts +14 -3
- package/dist/esm/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customerorderproduct.js +11 -2
- package/dist/esm/models/components/customerorderproduct.js.map +1 -1
- package/dist/esm/models/components/customerordersubscription.d.ts +10 -0
- package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerordersubscription.js +8 -0
- package/dist/esm/models/components/customerordersubscription.js.map +1 -1
- package/dist/esm/models/components/customerproduct.d.ts +14 -3
- package/dist/esm/models/components/customerproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customerproduct.js +11 -2
- package/dist/esm/models/components/customerproduct.js.map +1 -1
- package/dist/esm/models/components/customersubscription.d.ts +10 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +8 -0
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/customersubscriptionproduct.d.ts +14 -3
- package/dist/esm/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscriptionproduct.js +11 -2
- package/dist/esm/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/esm/models/components/discountproduct.d.ts +14 -3
- package/dist/esm/models/components/discountproduct.d.ts.map +1 -1
- package/dist/esm/models/components/discountproduct.js +11 -2
- package/dist/esm/models/components/discountproduct.js.map +1 -1
- package/dist/esm/models/components/orderproduct.d.ts +14 -3
- package/dist/esm/models/components/orderproduct.d.ts.map +1 -1
- package/dist/esm/models/components/orderproduct.js +11 -2
- package/dist/esm/models/components/orderproduct.js.map +1 -1
- package/dist/esm/models/components/ordersubscription.d.ts +10 -0
- package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/ordersubscription.js +8 -0
- package/dist/esm/models/components/ordersubscription.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +14 -3
- package/dist/esm/models/components/product.d.ts.map +1 -1
- package/dist/esm/models/components/product.js +11 -2
- package/dist/esm/models/components/product.js.map +1 -1
- package/dist/esm/models/components/productcreate.d.ts +4 -111
- package/dist/esm/models/components/productcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productcreate.js +8 -101
- package/dist/esm/models/components/productcreate.js.map +1 -1
- package/dist/esm/models/components/productcreateonetime.d.ts +130 -0
- package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -0
- package/dist/esm/models/components/productcreateonetime.js +127 -0
- package/dist/esm/models/components/productcreateonetime.js.map +1 -0
- package/dist/esm/models/components/productcreaterecurring.d.ts +139 -0
- package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -0
- package/dist/esm/models/components/productcreaterecurring.js +137 -0
- package/dist/esm/models/components/productcreaterecurring.js.map +1 -0
- package/dist/esm/models/components/productupdate.d.ts +11 -0
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +9 -0
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +10 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +8 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.d.ts +3 -2
- package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.js +3 -0
- package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdatetrial.d.ts +32 -0
- package/dist/esm/models/components/subscriptionupdatetrial.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatetrial.js +40 -0
- package/dist/esm/models/components/subscriptionupdatetrial.js.map +1 -0
- package/dist/esm/models/components/trialinterval.d.ts +34 -0
- package/dist/esm/models/components/trialinterval.d.ts.map +1 -0
- package/dist/esm/models/components/trialinterval.js +26 -0
- package/dist/esm/models/components/trialinterval.js.map +1 -0
- package/docs/sdks/products/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/address.ts +222 -222
- package/src/models/components/addressinput.ts +217 -217
- package/src/models/components/checkout.ts +59 -7
- package/src/models/components/checkoutcreate.ts +23 -0
- package/src/models/components/checkoutlink.ts +28 -5
- package/src/models/components/checkoutlinkcreateproduct.ts +23 -0
- package/src/models/components/checkoutlinkcreateproductprice.ts +23 -0
- package/src/models/components/checkoutlinkcreateproducts.ts +23 -0
- package/src/models/components/checkoutlinkproduct.ts +28 -5
- package/src/models/components/checkoutlinkupdate.ts +23 -0
- package/src/models/components/checkoutproduct.ts +28 -5
- package/src/models/components/checkoutpublic.ts +41 -7
- package/src/models/components/checkoutpublicconfirmed.ts +41 -7
- package/src/models/components/checkoutupdate.ts +23 -0
- package/src/models/components/customerorderproduct.ts +28 -5
- package/src/models/components/customerordersubscription.ts +22 -0
- package/src/models/components/customerproduct.ts +28 -5
- package/src/models/components/customersubscription.ts +22 -0
- package/src/models/components/customersubscriptionproduct.ts +28 -5
- package/src/models/components/discountproduct.ts +28 -5
- package/src/models/components/orderproduct.ts +28 -5
- package/src/models/components/ordersubscription.ts +22 -0
- package/src/models/components/product.ts +28 -5
- package/src/models/components/productcreate.ts +22 -275
- package/src/models/components/productcreateonetime.ts +329 -0
- package/src/models/components/productcreaterecurring.ts +356 -0
- package/src/models/components/productupdate.ts +23 -0
- package/src/models/components/subscription.ts +22 -0
- package/src/models/components/subscriptionupdate.ts +10 -0
- package/src/models/components/subscriptionupdatetrial.ts +78 -0
- package/src/models/components/trialinterval.ts +35 -0
|
@@ -10,250 +10,250 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
export const CountryAlpha2Input = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Sj: "SJ",
|
|
27
|
-
Tm: "TM",
|
|
28
|
-
Sg: "SG",
|
|
29
|
-
Ao: "AO",
|
|
30
|
-
Id: "ID",
|
|
31
|
-
Jm: "JM",
|
|
32
|
-
Jo: "JO",
|
|
33
|
-
Gg: "GG",
|
|
34
|
-
Fm: "FM",
|
|
35
|
-
Bo: "BO",
|
|
36
|
-
Nu: "NU",
|
|
37
|
-
Si: "SI",
|
|
13
|
+
Am: "AM",
|
|
14
|
+
Na: "NA",
|
|
15
|
+
Sx: "SX",
|
|
16
|
+
Gp: "GP",
|
|
17
|
+
Mq: "MQ",
|
|
18
|
+
Pk: "PK",
|
|
19
|
+
Ne: "NE",
|
|
20
|
+
Tj: "TJ",
|
|
21
|
+
Ws: "WS",
|
|
22
|
+
Al: "AL",
|
|
23
|
+
Gs: "GS",
|
|
24
|
+
Sr: "SR",
|
|
25
|
+
Hu: "HU",
|
|
38
26
|
Bv: "BV",
|
|
39
|
-
|
|
27
|
+
Il: "IL",
|
|
28
|
+
Vc: "VC",
|
|
40
29
|
La: "LA",
|
|
41
|
-
|
|
30
|
+
Cl: "CL",
|
|
31
|
+
Ee: "EE",
|
|
32
|
+
Fi: "FI",
|
|
33
|
+
Pt: "PT",
|
|
42
34
|
Lc: "LC",
|
|
43
|
-
|
|
35
|
+
By: "BY",
|
|
36
|
+
Co: "CO",
|
|
44
37
|
Tt: "TT",
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
Mf: "MF",
|
|
39
|
+
De: "DE",
|
|
40
|
+
Iq: "IQ",
|
|
41
|
+
At: "AT",
|
|
42
|
+
Km: "KM",
|
|
43
|
+
Ni: "NI",
|
|
44
|
+
Sc: "SC",
|
|
45
|
+
Sd: "SD",
|
|
46
|
+
Cn: "CN",
|
|
47
|
+
Ng: "NG",
|
|
48
|
+
Br: "BR",
|
|
49
|
+
Ph: "PH",
|
|
50
|
+
Tm: "TM",
|
|
51
|
+
Va: "VA",
|
|
52
|
+
Ga: "GA",
|
|
53
|
+
Bb: "BB",
|
|
54
|
+
Gt: "GT",
|
|
55
|
+
Ps: "PS",
|
|
56
|
+
Gd: "GD",
|
|
57
|
+
Tn: "TN",
|
|
58
|
+
Zw: "ZW",
|
|
59
|
+
Ca: "CA",
|
|
60
|
+
Tz: "TZ",
|
|
61
|
+
Eh: "EH",
|
|
62
|
+
Pn: "PN",
|
|
63
|
+
Cw: "CW",
|
|
64
|
+
Lu: "LU",
|
|
47
65
|
Ug: "UG",
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Sh: "SH",
|
|
51
|
-
Bf: "BF",
|
|
52
|
-
It: "IT",
|
|
53
|
-
Kw: "KW",
|
|
54
|
-
Tw: "TW",
|
|
66
|
+
In: "IN",
|
|
67
|
+
Pa: "PA",
|
|
55
68
|
Hk: "HK",
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
69
|
+
Pr: "PR",
|
|
70
|
+
Ki: "KI",
|
|
71
|
+
Aq: "AQ",
|
|
72
|
+
Bz: "BZ",
|
|
73
|
+
Fr: "FR",
|
|
74
|
+
Yt: "YT",
|
|
75
|
+
Ie: "IE",
|
|
76
|
+
Um: "UM",
|
|
77
|
+
Gu: "GU",
|
|
78
|
+
Jo: "JO",
|
|
79
|
+
Cc: "CC",
|
|
59
80
|
Vi: "VI",
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
81
|
+
Nc: "NC",
|
|
82
|
+
Do: "DO",
|
|
83
|
+
Cr: "CR",
|
|
84
|
+
Ar: "AR",
|
|
85
|
+
Ai: "AI",
|
|
86
|
+
Bf: "BF",
|
|
87
|
+
Ec: "EC",
|
|
88
|
+
Im: "IM",
|
|
89
|
+
Za: "ZA",
|
|
90
|
+
Tf: "TF",
|
|
91
|
+
Bd: "BD",
|
|
92
|
+
Mx: "MX",
|
|
93
|
+
Cy: "CY",
|
|
94
|
+
Vu: "VU",
|
|
95
|
+
Mp: "MP",
|
|
96
|
+
Mz: "MZ",
|
|
97
|
+
Mu: "MU",
|
|
98
|
+
Lk: "LK",
|
|
99
|
+
Bo: "BO",
|
|
66
100
|
Sa: "SA",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
101
|
+
Bn: "BN",
|
|
102
|
+
Sl: "SL",
|
|
103
|
+
Lr: "LR",
|
|
104
|
+
Cz: "CZ",
|
|
105
|
+
Et: "ET",
|
|
106
|
+
Re: "RE",
|
|
107
|
+
Tk: "TK",
|
|
108
|
+
Io: "IO",
|
|
109
|
+
Sm: "SM",
|
|
110
|
+
Pw: "PW",
|
|
111
|
+
Kn: "KN",
|
|
112
|
+
Cv: "CV",
|
|
113
|
+
To: "TO",
|
|
114
|
+
Tw: "TW",
|
|
115
|
+
Nr: "NR",
|
|
73
116
|
Ma: "MA",
|
|
74
|
-
Pg: "PG",
|
|
75
|
-
Th: "TH",
|
|
76
|
-
Ee: "EE",
|
|
77
|
-
Mu: "MU",
|
|
78
|
-
Cr: "CR",
|
|
79
|
-
Ge: "GE",
|
|
80
117
|
Gr: "GR",
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
118
|
+
Bh: "BH",
|
|
119
|
+
Th: "TH",
|
|
120
|
+
Jm: "JM",
|
|
121
|
+
Vn: "VN",
|
|
122
|
+
Ch: "CH",
|
|
123
|
+
Pl: "PL",
|
|
124
|
+
Me: "ME",
|
|
125
|
+
Fo: "FO",
|
|
126
|
+
Fj: "FJ",
|
|
127
|
+
Ve: "VE",
|
|
85
128
|
Gw: "GW",
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
Km: "KM",
|
|
93
|
-
Gs: "GS",
|
|
94
|
-
Bg: "BG",
|
|
95
|
-
Ng: "NG",
|
|
96
|
-
As: "AS",
|
|
97
|
-
Za: "ZA",
|
|
98
|
-
Pt: "PT",
|
|
99
|
-
Np: "NP",
|
|
129
|
+
Ck: "CK",
|
|
130
|
+
Dm: "DM",
|
|
131
|
+
Gy: "GY",
|
|
132
|
+
Dk: "DK",
|
|
133
|
+
Pf: "PF",
|
|
134
|
+
Sk: "SK",
|
|
100
135
|
Rw: "RW",
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Gq: "GQ",
|
|
106
|
-
Mf: "MF",
|
|
107
|
-
Mh: "MH",
|
|
108
|
-
Gp: "GP",
|
|
109
|
-
Kn: "KN",
|
|
110
|
-
Wf: "WF",
|
|
111
|
-
Fj: "FJ",
|
|
136
|
+
Bt: "BT",
|
|
137
|
+
Ye: "YE",
|
|
138
|
+
Ss: "SS",
|
|
139
|
+
Lb: "LB",
|
|
112
140
|
Fk: "FK",
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Gh: "GH",
|
|
117
|
-
Sv: "SV",
|
|
118
|
-
Hm: "HM",
|
|
119
|
-
Bn: "BN",
|
|
120
|
-
Ga: "GA",
|
|
121
|
-
Py: "PY",
|
|
122
|
-
Bl: "BL",
|
|
141
|
+
Gn: "GN",
|
|
142
|
+
Zm: "ZM",
|
|
143
|
+
Mm: "MM",
|
|
123
144
|
Eg: "EG",
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
145
|
+
Je: "JE",
|
|
146
|
+
Hm: "HM",
|
|
147
|
+
Be: "BE",
|
|
148
|
+
Ax: "AX",
|
|
149
|
+
Sh: "SH",
|
|
150
|
+
Tg: "TG",
|
|
151
|
+
Mn: "MN",
|
|
152
|
+
Bg: "BG",
|
|
153
|
+
It: "IT",
|
|
154
|
+
Gh: "GH",
|
|
155
|
+
Gl: "GL",
|
|
156
|
+
Nu: "NU",
|
|
157
|
+
Om: "OM",
|
|
158
|
+
Ua: "UA",
|
|
159
|
+
Gi: "GI",
|
|
160
|
+
Ke: "KE",
|
|
130
161
|
Nl: "NL",
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
Bz: "BZ",
|
|
162
|
+
Fm: "FM",
|
|
163
|
+
Bm: "BM",
|
|
164
|
+
Gb: "GB",
|
|
165
|
+
Rs: "RS",
|
|
166
|
+
Tr: "TR",
|
|
137
167
|
Mc: "MC",
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
168
|
+
Ci: "CI",
|
|
169
|
+
Tv: "TV",
|
|
170
|
+
Kh: "KH",
|
|
171
|
+
Vg: "VG",
|
|
172
|
+
Mw: "MW",
|
|
173
|
+
Id: "ID",
|
|
174
|
+
Np: "NP",
|
|
175
|
+
Lv: "LV",
|
|
176
|
+
Si: "SI",
|
|
142
177
|
Cx: "CX",
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Sm: "SM",
|
|
149
|
-
Im: "IM",
|
|
150
|
-
Tj: "TJ",
|
|
151
|
-
Ps: "PS",
|
|
152
|
-
Mt: "MT",
|
|
153
|
-
Sk: "SK",
|
|
154
|
-
By: "BY",
|
|
155
|
-
Il: "IL",
|
|
156
|
-
Cy: "CY",
|
|
157
|
-
Bm: "BM",
|
|
158
|
-
Sr: "SR",
|
|
159
|
-
Am: "AM",
|
|
160
|
-
Pe: "PE",
|
|
161
|
-
Ws: "WS",
|
|
162
|
-
Fi: "FI",
|
|
178
|
+
Ls: "LS",
|
|
179
|
+
Ad: "AD",
|
|
180
|
+
Ms: "MS",
|
|
181
|
+
Bs: "BS",
|
|
182
|
+
Hn: "HN",
|
|
163
183
|
Li: "LI",
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
Sd: "SD",
|
|
169
|
-
Mp: "MP",
|
|
170
|
-
Je: "JE",
|
|
171
|
-
Ca: "CA",
|
|
172
|
-
Ec: "EC",
|
|
173
|
-
Hu: "HU",
|
|
174
|
-
So: "SO",
|
|
175
|
-
Tz: "TZ",
|
|
176
|
-
Cn: "CN",
|
|
177
|
-
Vc: "VC",
|
|
178
|
-
Sz: "SZ",
|
|
179
|
-
Ml: "ML",
|
|
180
|
-
Bd: "BD",
|
|
181
|
-
Gn: "GN",
|
|
182
|
-
Ki: "KI",
|
|
183
|
-
Do: "DO",
|
|
184
|
-
Sx: "SX",
|
|
185
|
-
Um: "UM",
|
|
186
|
-
Cf: "CF",
|
|
187
|
-
Pw: "PW",
|
|
188
|
-
Zm: "ZM",
|
|
189
|
-
Tf: "TF",
|
|
190
|
-
Tg: "TG",
|
|
191
|
-
Is: "IS",
|
|
192
|
-
Yt: "YT",
|
|
193
|
-
De: "DE",
|
|
194
|
-
Dz: "DZ",
|
|
184
|
+
Sv: "SV",
|
|
185
|
+
Bw: "BW",
|
|
186
|
+
Aw: "AW",
|
|
187
|
+
Bq: "BQ",
|
|
195
188
|
Uy: "UY",
|
|
196
|
-
Af: "AF",
|
|
197
|
-
Be: "BE",
|
|
198
|
-
Kz: "KZ",
|
|
199
|
-
Nz: "NZ",
|
|
200
|
-
Pl: "PL",
|
|
201
|
-
Pf: "PF",
|
|
202
|
-
At: "AT",
|
|
203
189
|
Az: "AZ",
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
Co: "CO",
|
|
208
|
-
Et: "ET",
|
|
209
|
-
Md: "MD",
|
|
210
|
-
Mw: "MW",
|
|
211
|
-
Om: "OM",
|
|
212
|
-
Ph: "PH",
|
|
213
|
-
Ie: "IE",
|
|
214
|
-
Kr: "KR",
|
|
215
|
-
Pk: "PK",
|
|
216
|
-
Au: "AU",
|
|
217
|
-
Ni: "NI",
|
|
218
|
-
Ro: "RO",
|
|
219
|
-
Lu: "LU",
|
|
220
|
-
Mx: "MX",
|
|
221
|
-
Ar: "AR",
|
|
222
|
-
Na: "NA",
|
|
223
|
-
Dk: "DK",
|
|
224
|
-
Mm: "MM",
|
|
225
|
-
Ax: "AX",
|
|
226
|
-
Ch: "CH",
|
|
190
|
+
Ba: "BA",
|
|
191
|
+
Ly: "LY",
|
|
192
|
+
Ml: "ML",
|
|
227
193
|
Nf: "NF",
|
|
228
|
-
Lr: "LR",
|
|
229
194
|
Sn: "SN",
|
|
230
|
-
|
|
231
|
-
Cl: "CL",
|
|
232
|
-
Pm: "PM",
|
|
195
|
+
Mh: "MH",
|
|
233
196
|
Us: "US",
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
197
|
+
Pe: "PE",
|
|
198
|
+
Uz: "UZ",
|
|
199
|
+
Kw: "KW",
|
|
200
|
+
Td: "TD",
|
|
201
|
+
Kz: "KZ",
|
|
202
|
+
Py: "PY",
|
|
203
|
+
Dz: "DZ",
|
|
204
|
+
Hr: "HR",
|
|
205
|
+
Kr: "KR",
|
|
206
|
+
Au: "AU",
|
|
207
|
+
Tc: "TC",
|
|
208
|
+
Mv: "MV",
|
|
209
|
+
Mt: "MT",
|
|
210
|
+
Nz: "NZ",
|
|
240
211
|
Jp: "JP",
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
212
|
+
Lt: "LT",
|
|
213
|
+
Cm: "CM",
|
|
214
|
+
Ag: "AG",
|
|
215
|
+
Ro: "RO",
|
|
216
|
+
As: "AS",
|
|
217
|
+
Md: "MD",
|
|
218
|
+
Mg: "MG",
|
|
219
|
+
Se: "SE",
|
|
220
|
+
Cg: "CG",
|
|
221
|
+
Cd: "CD",
|
|
222
|
+
Pg: "PG",
|
|
223
|
+
Wf: "WF",
|
|
224
|
+
Gq: "GQ",
|
|
225
|
+
Bj: "BJ",
|
|
226
|
+
Gg: "GG",
|
|
227
|
+
Mr: "MR",
|
|
228
|
+
Is: "IS",
|
|
229
|
+
Bi: "BI",
|
|
230
|
+
Gm: "GM",
|
|
231
|
+
Er: "ER",
|
|
244
232
|
Ky: "KY",
|
|
245
|
-
|
|
246
|
-
|
|
233
|
+
Gf: "GF",
|
|
234
|
+
Ge: "GE",
|
|
235
|
+
Sj: "SJ",
|
|
236
|
+
Ao: "AO",
|
|
237
|
+
Mk: "MK",
|
|
238
|
+
St: "ST",
|
|
239
|
+
Mo: "MO",
|
|
240
|
+
So: "SO",
|
|
241
|
+
Sz: "SZ",
|
|
242
|
+
Pm: "PM",
|
|
243
|
+
Es: "ES",
|
|
244
|
+
Tl: "TL",
|
|
245
|
+
Bl: "BL",
|
|
246
|
+
Ae: "AE",
|
|
247
|
+
Cf: "CF",
|
|
248
|
+
Dj: "DJ",
|
|
249
|
+
Kg: "KG",
|
|
250
|
+
Qa: "QA",
|
|
247
251
|
Ht: "HT",
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
252
|
+
No: "NO",
|
|
253
|
+
Sg: "SG",
|
|
254
|
+
Sb: "SB",
|
|
255
|
+
Af: "AF",
|
|
251
256
|
My: "MY",
|
|
252
|
-
Bw: "BW",
|
|
253
|
-
Tv: "TV",
|
|
254
|
-
Bq: "BQ",
|
|
255
|
-
Lk: "LK",
|
|
256
|
-
Cg: "CG",
|
|
257
257
|
} as const;
|
|
258
258
|
export type CountryAlpha2Input = ClosedEnum<typeof CountryAlpha2Input>;
|
|
259
259
|
|
|
@@ -77,6 +77,11 @@ import {
|
|
|
77
77
|
ProductPrice$Outbound,
|
|
78
78
|
ProductPrice$outboundSchema,
|
|
79
79
|
} from "./productprice.js";
|
|
80
|
+
import {
|
|
81
|
+
TrialInterval,
|
|
82
|
+
TrialInterval$inboundSchema,
|
|
83
|
+
TrialInterval$outboundSchema,
|
|
84
|
+
} from "./trialinterval.js";
|
|
80
85
|
|
|
81
86
|
export type CheckoutCustomFieldData = string | number | boolean | Date;
|
|
82
87
|
|
|
@@ -99,6 +104,10 @@ export type CustomerMetadata = string | number | boolean;
|
|
|
99
104
|
* Checkout session data retrieved using an access token.
|
|
100
105
|
*/
|
|
101
106
|
export type Checkout = {
|
|
107
|
+
/**
|
|
108
|
+
* The ID of the object.
|
|
109
|
+
*/
|
|
110
|
+
id: string;
|
|
102
111
|
/**
|
|
103
112
|
* Creation timestamp of the object.
|
|
104
113
|
*/
|
|
@@ -107,10 +116,6 @@ export type Checkout = {
|
|
|
107
116
|
* Last modification timestamp of the object.
|
|
108
117
|
*/
|
|
109
118
|
modifiedAt: Date | null;
|
|
110
|
-
/**
|
|
111
|
-
* The ID of the object.
|
|
112
|
-
*/
|
|
113
|
-
id: string;
|
|
114
119
|
/**
|
|
115
120
|
* Key-value object storing custom field values.
|
|
116
121
|
*/
|
|
@@ -163,6 +168,18 @@ export type Checkout = {
|
|
|
163
168
|
* Currency code of the checkout session.
|
|
164
169
|
*/
|
|
165
170
|
currency: string;
|
|
171
|
+
/**
|
|
172
|
+
* Interval unit of the trial period, if any. This value is either set from the checkout, if `trial_interval` is set, or from the selected product.
|
|
173
|
+
*/
|
|
174
|
+
activeTrialInterval: TrialInterval | null;
|
|
175
|
+
/**
|
|
176
|
+
* Number of interval units of the trial period, if any. This value is either set from the checkout, if `trial_interval_count` is set, or from the selected product.
|
|
177
|
+
*/
|
|
178
|
+
activeTrialIntervalCount: number | null;
|
|
179
|
+
/**
|
|
180
|
+
* End date and time of the trial period, if any.
|
|
181
|
+
*/
|
|
182
|
+
trialEnd: Date | null;
|
|
166
183
|
/**
|
|
167
184
|
* ID of the product to checkout.
|
|
168
185
|
*/
|
|
@@ -222,6 +239,14 @@ export type Checkout = {
|
|
|
222
239
|
customerTaxId: string | null;
|
|
223
240
|
paymentProcessorMetadata: { [k: string]: string };
|
|
224
241
|
billingAddressFields: CheckoutBillingAddressFields;
|
|
242
|
+
/**
|
|
243
|
+
* The interval unit for the trial period.
|
|
244
|
+
*/
|
|
245
|
+
trialInterval: TrialInterval | null;
|
|
246
|
+
/**
|
|
247
|
+
* The number of interval units for the trial period.
|
|
248
|
+
*/
|
|
249
|
+
trialIntervalCount: number | null;
|
|
225
250
|
metadata: { [k: string]: string | number | number | boolean };
|
|
226
251
|
/**
|
|
227
252
|
* ID of the customer in your system. If a matching customer exists on Polar, the resulting order will be linked to this customer. Otherwise, a new customer will be created with this external ID set.
|
|
@@ -536,11 +561,11 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
536
561
|
z.ZodTypeDef,
|
|
537
562
|
unknown
|
|
538
563
|
> = z.object({
|
|
564
|
+
id: z.string(),
|
|
539
565
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
540
566
|
modified_at: z.nullable(
|
|
541
567
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
542
568
|
),
|
|
543
|
-
id: z.string(),
|
|
544
569
|
custom_field_data: z.record(
|
|
545
570
|
z.nullable(
|
|
546
571
|
z.union([
|
|
@@ -564,6 +589,11 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
564
589
|
tax_amount: z.nullable(z.number().int()),
|
|
565
590
|
total_amount: z.number().int(),
|
|
566
591
|
currency: z.string(),
|
|
592
|
+
active_trial_interval: z.nullable(TrialInterval$inboundSchema),
|
|
593
|
+
active_trial_interval_count: z.nullable(z.number().int()),
|
|
594
|
+
trial_end: z.nullable(
|
|
595
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
596
|
+
),
|
|
567
597
|
product_id: z.string(),
|
|
568
598
|
product_price_id: z.string(),
|
|
569
599
|
discount_id: z.nullable(z.string()),
|
|
@@ -584,6 +614,8 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
584
614
|
customer_tax_id: z.nullable(z.string()),
|
|
585
615
|
payment_processor_metadata: z.record(z.string()),
|
|
586
616
|
billing_address_fields: CheckoutBillingAddressFields$inboundSchema,
|
|
617
|
+
trial_interval: z.nullable(TrialInterval$inboundSchema),
|
|
618
|
+
trial_interval_count: z.nullable(z.number().int()),
|
|
587
619
|
metadata: z.record(
|
|
588
620
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
589
621
|
),
|
|
@@ -622,6 +654,9 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
622
654
|
"net_amount": "netAmount",
|
|
623
655
|
"tax_amount": "taxAmount",
|
|
624
656
|
"total_amount": "totalAmount",
|
|
657
|
+
"active_trial_interval": "activeTrialInterval",
|
|
658
|
+
"active_trial_interval_count": "activeTrialIntervalCount",
|
|
659
|
+
"trial_end": "trialEnd",
|
|
625
660
|
"product_id": "productId",
|
|
626
661
|
"product_price_id": "productPriceId",
|
|
627
662
|
"discount_id": "discountId",
|
|
@@ -642,6 +677,8 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
642
677
|
"customer_tax_id": "customerTaxId",
|
|
643
678
|
"payment_processor_metadata": "paymentProcessorMetadata",
|
|
644
679
|
"billing_address_fields": "billingAddressFields",
|
|
680
|
+
"trial_interval": "trialInterval",
|
|
681
|
+
"trial_interval_count": "trialIntervalCount",
|
|
645
682
|
"external_customer_id": "externalCustomerId",
|
|
646
683
|
"customer_external_id": "customerExternalId",
|
|
647
684
|
"product_price": "productPrice",
|
|
@@ -653,9 +690,9 @@ export const Checkout$inboundSchema: z.ZodType<
|
|
|
653
690
|
|
|
654
691
|
/** @internal */
|
|
655
692
|
export type Checkout$Outbound = {
|
|
693
|
+
id: string;
|
|
656
694
|
created_at: string;
|
|
657
695
|
modified_at: string | null;
|
|
658
|
-
id: string;
|
|
659
696
|
custom_field_data?:
|
|
660
697
|
| { [k: string]: string | number | boolean | string | null }
|
|
661
698
|
| undefined;
|
|
@@ -672,6 +709,9 @@ export type Checkout$Outbound = {
|
|
|
672
709
|
tax_amount: number | null;
|
|
673
710
|
total_amount: number;
|
|
674
711
|
currency: string;
|
|
712
|
+
active_trial_interval: string | null;
|
|
713
|
+
active_trial_interval_count: number | null;
|
|
714
|
+
trial_end: string | null;
|
|
675
715
|
product_id: string;
|
|
676
716
|
product_price_id: string;
|
|
677
717
|
discount_id: string | null;
|
|
@@ -692,6 +732,8 @@ export type Checkout$Outbound = {
|
|
|
692
732
|
customer_tax_id: string | null;
|
|
693
733
|
payment_processor_metadata: { [k: string]: string };
|
|
694
734
|
billing_address_fields: CheckoutBillingAddressFields$Outbound;
|
|
735
|
+
trial_interval: string | null;
|
|
736
|
+
trial_interval_count: number | null;
|
|
695
737
|
metadata: { [k: string]: string | number | number | boolean };
|
|
696
738
|
external_customer_id: string | null;
|
|
697
739
|
customer_external_id: string | null;
|
|
@@ -715,9 +757,9 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
715
757
|
z.ZodTypeDef,
|
|
716
758
|
Checkout
|
|
717
759
|
> = z.object({
|
|
760
|
+
id: z.string(),
|
|
718
761
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
719
762
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
720
|
-
id: z.string(),
|
|
721
763
|
customFieldData: z.record(
|
|
722
764
|
z.nullable(
|
|
723
765
|
z.union([
|
|
@@ -741,6 +783,9 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
741
783
|
taxAmount: z.nullable(z.number().int()),
|
|
742
784
|
totalAmount: z.number().int(),
|
|
743
785
|
currency: z.string(),
|
|
786
|
+
activeTrialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
787
|
+
activeTrialIntervalCount: z.nullable(z.number().int()),
|
|
788
|
+
trialEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
744
789
|
productId: z.string(),
|
|
745
790
|
productPriceId: z.string(),
|
|
746
791
|
discountId: z.nullable(z.string()),
|
|
@@ -761,6 +806,8 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
761
806
|
customerTaxId: z.nullable(z.string()),
|
|
762
807
|
paymentProcessorMetadata: z.record(z.string()),
|
|
763
808
|
billingAddressFields: CheckoutBillingAddressFields$outboundSchema,
|
|
809
|
+
trialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
810
|
+
trialIntervalCount: z.nullable(z.number().int()),
|
|
764
811
|
metadata: z.record(
|
|
765
812
|
z.union([z.string(), z.number().int(), z.number(), z.boolean()]),
|
|
766
813
|
),
|
|
@@ -799,6 +846,9 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
799
846
|
netAmount: "net_amount",
|
|
800
847
|
taxAmount: "tax_amount",
|
|
801
848
|
totalAmount: "total_amount",
|
|
849
|
+
activeTrialInterval: "active_trial_interval",
|
|
850
|
+
activeTrialIntervalCount: "active_trial_interval_count",
|
|
851
|
+
trialEnd: "trial_end",
|
|
802
852
|
productId: "product_id",
|
|
803
853
|
productPriceId: "product_price_id",
|
|
804
854
|
discountId: "discount_id",
|
|
@@ -819,6 +869,8 @@ export const Checkout$outboundSchema: z.ZodType<
|
|
|
819
869
|
customerTaxId: "customer_tax_id",
|
|
820
870
|
paymentProcessorMetadata: "payment_processor_metadata",
|
|
821
871
|
billingAddressFields: "billing_address_fields",
|
|
872
|
+
trialInterval: "trial_interval",
|
|
873
|
+
trialIntervalCount: "trial_interval_count",
|
|
822
874
|
externalCustomerId: "external_customer_id",
|
|
823
875
|
customerExternalId: "customer_external_id",
|
|
824
876
|
productPrice: "product_price",
|