diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a42b323..cd25dd0 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 79fa0df9-852a-493c-b998-1d82654b5f18 management: - docChecksum: 90d8fb7e96c274a28fb9d286a2727296 + docChecksum: 1d04f8a746ca7df0efd64a6a125fc076 docVersion: 3.0.1 speakeasyVersion: internal - generationVersion: 2.237.3 - releaseVersion: 0.5.3 - configChecksum: e18592a104bc3b8e33e126c077253686 + generationVersion: 2.239.4 + releaseVersion: 0.5.4 + configChecksum: fe25b17652890f09cf86574183fd59e8 repoURL: https://github.com/BoltApp/Bolt-Typescript-SDK.git repoSubDirectory: . installationURL: https://github.com/BoltApp/Bolt-Typescript-SDK @@ -78,6 +78,8 @@ generatedFiles: - src/models/components/creditcardnetwork.ts - src/models/components/addressreference.ts - src/models/components/addressreferenceid.ts + - src/models/components/addressreferenceexplicit.ts + - src/models/components/countrycode.ts - src/models/components/paymentmethodpaypaloutput.ts - src/models/components/paymentmethodaffirmoutput.ts - src/models/components/paymentmethodafterpayoutput.ts @@ -87,10 +89,10 @@ generatedFiles: - src/models/components/addresslisting.ts - src/models/components/error.ts - src/models/components/fielderror.ts + - src/models/components/addresslistinginput.ts - src/models/components/creditcarderror.ts - src/models/components/paymentmethodinput.ts - src/models/components/addressreferenceinput.ts - - src/models/components/addressreferenceexplicit.ts - src/models/components/paymentresponse.ts - src/models/components/paymentresponsefinalized.ts - src/models/components/transaction.ts @@ -181,8 +183,8 @@ generatedFiles: - docs/models/components/addressreferenceidtag.md - docs/models/components/addressreferenceid.md - docs/models/components/addressreferenceexplicittag.md - - docs/models/components/addressreferenceexplicitcountrycode.md - docs/models/components/addressreferenceexplicit.md + - docs/models/components/countrycode.md - docs/models/components/paymentmethodpaypaltag.md - docs/models/components/paymentmethodpaypaloutput.md - docs/models/components/paymentmethodaffirmtag.md @@ -195,7 +197,6 @@ generatedFiles: - docs/models/components/paymentmethodklarnaaccountoutput.md - docs/models/components/paymentmethodklarnapaynowtag.md - docs/models/components/paymentmethodklarnapaynowoutput.md - - docs/models/components/countrycode.md - docs/models/components/addresslisting.md - docs/models/components/errortag.md - docs/models/components/errort.md diff --git a/RELEASES.md b/RELEASES.md index 79ec177..444a375 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -148,4 +148,14 @@ Based on: ### Generated - [typescript v0.5.3] . ### Releases -- [NPM v0.5.3] https://www.npmjs.com/package/@boltpay/bolt-typescript-sdk/v/0.5.3 - . \ No newline at end of file +- [NPM v0.5.3] https://www.npmjs.com/package/@boltpay/bolt-typescript-sdk/v/0.5.3 - . + +## 2024-01-25 22:29:12 +### Changes +Based on: +- OpenAPI Doc 3.0.1 +- Speakeasy CLI 1.152.1 (2.239.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.5.4] . +### Releases +- [NPM v0.5.4] https://www.npmjs.com/package/@boltpay/bolt-typescript-sdk/v/0.5.4 - . \ No newline at end of file diff --git a/docs/models/components/addressreferenceexplicit.md b/docs/models/components/addressreferenceexplicit.md index 7ead28f..daee348 100644 --- a/docs/models/components/addressreferenceexplicit.md +++ b/docs/models/components/addressreferenceexplicit.md @@ -5,18 +5,18 @@ A physical address. ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `dotTag` | [components.AddressReferenceExplicitTag](../../models/components/addressreferenceexplicittag.md) | :heavy_check_mark: | The type of address reference | explicit | -| `id` | *string* | :heavy_minus_sign: | The address's unique identifier. | D4g3h5tBuVYK9 | -| `firstName` | *string* | :heavy_check_mark: | The first name of the person associated with this address. | Alice | -| `lastName` | *string* | :heavy_check_mark: | The last name of the person associated with this address. | Baker | -| `company` | *string* | :heavy_minus_sign: | The company associated with this address. | ACME Corporation | -| `streetAddress1` | *string* | :heavy_check_mark: | The street address associated with this address. | 535 Mission St, Ste 1401 | -| `streetAddress2` | *string* | :heavy_minus_sign: | Any additional, optional, street address information associated with this address. | c/o Shipping Department | -| `locality` | *string* | :heavy_check_mark: | The locality (e.g. city, town, etc...) associated with this address. | San Francisco | -| `postalCode` | *string* | :heavy_check_mark: | The postal code associated with this address. | 94105 | -| `region` | *string* | :heavy_minus_sign: | The region or administrative area (e.g. state, province, county, etc...) associated with this address. | CA | -| `countryCode` | [components.AddressReferenceExplicitCountryCode](../../models/components/addressreferenceexplicitcountrycode.md) | :heavy_check_mark: | The country (in its ISO 3166 alpha-2 format) associated with this address. | US | -| `email` | *string* | :heavy_minus_sign: | The email address associated with this address. | alice@example.com | -| `phone` | *string* | :heavy_minus_sign: | The phone number associated with this address. | +14155550199 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `dotTag` | [components.AddressReferenceExplicitTag](../../models/components/addressreferenceexplicittag.md) | :heavy_check_mark: | The type of address reference | explicit | +| `id` | *string* | :heavy_minus_sign: | The address's unique identifier. | D4g3h5tBuVYK9 | +| `firstName` | *string* | :heavy_check_mark: | The first name of the person associated with this address. | Alice | +| `lastName` | *string* | :heavy_check_mark: | The last name of the person associated with this address. | Baker | +| `company` | *string* | :heavy_minus_sign: | The company associated with this address. | ACME Corporation | +| `streetAddress1` | *string* | :heavy_check_mark: | The street address associated with this address. | 535 Mission St, Ste 1401 | +| `streetAddress2` | *string* | :heavy_minus_sign: | Any additional, optional, street address information associated with this address. | c/o Shipping Department | +| `locality` | *string* | :heavy_check_mark: | The locality (e.g. city, town, etc...) associated with this address. | San Francisco | +| `postalCode` | *string* | :heavy_check_mark: | The postal code associated with this address. | 94105 | +| `region` | *string* | :heavy_minus_sign: | The region or administrative area (e.g. state, province, county, etc...) associated with this address. | CA | +| `countryCode` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_check_mark: | The country (in its ISO 3166 alpha-2 format) associated with this address. | US | +| `email` | *string* | :heavy_minus_sign: | The email address associated with this address. | alice@example.com | +| `phone` | *string* | :heavy_minus_sign: | The phone number associated with this address. | +14155550199 | \ No newline at end of file diff --git a/docs/models/components/addressreferenceexplicitcountrycode.md b/docs/models/components/addressreferenceexplicitcountrycode.md deleted file mode 100644 index 9c08d82..0000000 --- a/docs/models/components/addressreferenceexplicitcountrycode.md +++ /dev/null @@ -1,258 +0,0 @@ -# AddressReferenceExplicitCountryCode - -The country (in its ISO 3166 alpha-2 format) associated with this address. - - -## Values - -| Name | Value | -| ----- | ----- | -| `Af` | AF | -| `Ax` | AX | -| `Al` | AL | -| `Dz` | DZ | -| `As` | AS | -| `Ad` | AD | -| `Ao` | AO | -| `Ai` | AI | -| `Aq` | AQ | -| `Ag` | AG | -| `Ar` | AR | -| `Am` | AM | -| `Aw` | AW | -| `Au` | AU | -| `At` | AT | -| `Az` | AZ | -| `Bh` | BH | -| `Bs` | BS | -| `Bd` | BD | -| `Bb` | BB | -| `By` | BY | -| `Be` | BE | -| `Bz` | BZ | -| `Bj` | BJ | -| `Bm` | BM | -| `Bt` | BT | -| `Bo` | BO | -| `Bq` | BQ | -| `Ba` | BA | -| `Bw` | BW | -| `Bv` | BV | -| `Br` | BR | -| `Io` | IO | -| `Bn` | BN | -| `Bg` | BG | -| `Bf` | BF | -| `Bi` | BI | -| `Kh` | KH | -| `Cm` | CM | -| `Ca` | CA | -| `Cv` | CV | -| `Ky` | KY | -| `Cf` | CF | -| `Td` | TD | -| `Cl` | CL | -| `Cn` | CN | -| `Cx` | CX | -| `Cc` | CC | -| `Co` | CO | -| `Km` | KM | -| `Cg` | CG | -| `Cd` | CD | -| `Ck` | CK | -| `Cr` | CR | -| `Ci` | CI | -| `Hr` | HR | -| `Cu` | CU | -| `Cw` | CW | -| `Cy` | CY | -| `Cz` | CZ | -| `Dk` | DK | -| `Dj` | DJ | -| `Dm` | DM | -| `Do` | DO | -| `Ec` | EC | -| `Eg` | EG | -| `Sv` | SV | -| `Gq` | GQ | -| `Er` | ER | -| `Ee` | EE | -| `Et` | ET | -| `Fk` | FK | -| `Fo` | FO | -| `Fj` | FJ | -| `Fi` | FI | -| `Fr` | FR | -| `Gf` | GF | -| `Pf` | PF | -| `Tf` | TF | -| `Ga` | GA | -| `Gm` | GM | -| `Ge` | GE | -| `De` | DE | -| `Gh` | GH | -| `Gi` | GI | -| `Gr` | GR | -| `Gl` | GL | -| `Gd` | GD | -| `Gp` | GP | -| `Gu` | GU | -| `Gt` | GT | -| `Gg` | GG | -| `Gn` | GN | -| `Gw` | GW | -| `Gy` | GY | -| `Ht` | HT | -| `Hm` | HM | -| `Va` | VA | -| `Hn` | HN | -| `Hk` | HK | -| `Hu` | HU | -| `Is` | IS | -| `In` | IN | -| `Id` | ID | -| `Ir` | IR | -| `Iq` | IQ | -| `Ie` | IE | -| `Im` | IM | -| `Il` | IL | -| `It` | IT | -| `Jm` | JM | -| `Jp` | JP | -| `Je` | JE | -| `Jo` | JO | -| `Kz` | KZ | -| `Ke` | KE | -| `Ki` | KI | -| `Kp` | KP | -| `Kr` | KR | -| `Kw` | KW | -| `Kg` | KG | -| `La` | LA | -| `Lv` | LV | -| `Lb` | LB | -| `Ls` | LS | -| `Lr` | LR | -| `Ly` | LY | -| `Li` | LI | -| `Lt` | LT | -| `Lu` | LU | -| `Mo` | MO | -| `Mk` | MK | -| `Mg` | MG | -| `Mw` | MW | -| `My` | MY | -| `Mv` | MV | -| `Ml` | ML | -| `Mt` | MT | -| `Mh` | MH | -| `Mq` | MQ | -| `Mr` | MR | -| `Mu` | MU | -| `Yt` | YT | -| `Mx` | MX | -| `Fm` | FM | -| `Md` | MD | -| `Mc` | MC | -| `Mn` | MN | -| `Me` | ME | -| `Ms` | MS | -| `Ma` | MA | -| `Mz` | MZ | -| `Mm` | MM | -| `Na` | NA | -| `Nr` | NR | -| `Np` | NP | -| `Nl` | NL | -| `Nc` | NC | -| `Nz` | NZ | -| `Ni` | NI | -| `Ne` | NE | -| `Ng` | NG | -| `Nu` | NU | -| `Nf` | NF | -| `Mp` | MP | -| `No` | NO | -| `Om` | OM | -| `Pk` | PK | -| `Pw` | PW | -| `Ps` | PS | -| `Pa` | PA | -| `Pg` | PG | -| `Py` | PY | -| `Pe` | PE | -| `Ph` | PH | -| `Pn` | PN | -| `Pl` | PL | -| `Pt` | PT | -| `Pr` | PR | -| `Qa` | QA | -| `Re` | RE | -| `Ro` | RO | -| `Ru` | RU | -| `Rw` | RW | -| `Bl` | BL | -| `Sh` | SH | -| `Kn` | KN | -| `Lc` | LC | -| `Mf` | MF | -| `Pm` | PM | -| `Vc` | VC | -| `Ws` | WS | -| `Sm` | SM | -| `St` | ST | -| `Sa` | SA | -| `Sn` | SN | -| `Rs` | RS | -| `Sc` | SC | -| `Sl` | SL | -| `Sg` | SG | -| `Sx` | SX | -| `Sk` | SK | -| `Si` | SI | -| `Sb` | SB | -| `So` | SO | -| `Za` | ZA | -| `Gs` | GS | -| `Ss` | SS | -| `Es` | ES | -| `Lk` | LK | -| `Sd` | SD | -| `Sr` | SR | -| `Sj` | SJ | -| `Sz` | SZ | -| `Se` | SE | -| `Ch` | CH | -| `Sy` | SY | -| `Tw` | TW | -| `Tj` | TJ | -| `Tz` | TZ | -| `Th` | TH | -| `Tl` | TL | -| `Tg` | TG | -| `Tk` | TK | -| `To` | TO | -| `Tt` | TT | -| `Tn` | TN | -| `Tr` | TR | -| `Tm` | TM | -| `Tc` | TC | -| `Tv` | TV | -| `Ug` | UG | -| `Ua` | UA | -| `Ae` | AE | -| `Gb` | GB | -| `Us` | US | -| `Um` | UM | -| `Uy` | UY | -| `Uz` | UZ | -| `Vu` | VU | -| `Ve` | VE | -| `Vn` | VN | -| `Vg` | VG | -| `Vi` | VI | -| `Wf` | WF | -| `Eh` | EH | -| `Ye` | YE | -| `Zm` | ZM | -| `Zw` | ZW | \ No newline at end of file diff --git a/docs/models/components/addressreferenceexplicitinput.md b/docs/models/components/addressreferenceexplicitinput.md index 7ee93c9..4ec6f88 100644 --- a/docs/models/components/addressreferenceexplicitinput.md +++ b/docs/models/components/addressreferenceexplicitinput.md @@ -5,17 +5,17 @@ A physical address. ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `dotTag` | [components.AddressReferenceExplicitTag](../../models/components/addressreferenceexplicittag.md) | :heavy_check_mark: | The type of address reference | explicit | -| `firstName` | *string* | :heavy_check_mark: | The first name of the person associated with this address. | Alice | -| `lastName` | *string* | :heavy_check_mark: | The last name of the person associated with this address. | Baker | -| `company` | *string* | :heavy_minus_sign: | The company associated with this address. | ACME Corporation | -| `streetAddress1` | *string* | :heavy_check_mark: | The street address associated with this address. | 535 Mission St, Ste 1401 | -| `streetAddress2` | *string* | :heavy_minus_sign: | Any additional, optional, street address information associated with this address. | c/o Shipping Department | -| `locality` | *string* | :heavy_check_mark: | The locality (e.g. city, town, etc...) associated with this address. | San Francisco | -| `postalCode` | *string* | :heavy_check_mark: | The postal code associated with this address. | 94105 | -| `region` | *string* | :heavy_minus_sign: | The region or administrative area (e.g. state, province, county, etc...) associated with this address. | CA | -| `countryCode` | [components.AddressReferenceExplicitCountryCode](../../models/components/addressreferenceexplicitcountrycode.md) | :heavy_check_mark: | The country (in its ISO 3166 alpha-2 format) associated with this address. | US | -| `email` | *string* | :heavy_minus_sign: | The email address associated with this address. | alice@example.com | -| `phone` | *string* | :heavy_minus_sign: | The phone number associated with this address. | +14155550199 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | +| `dotTag` | [components.AddressReferenceExplicitTag](../../models/components/addressreferenceexplicittag.md) | :heavy_check_mark: | The type of address reference | explicit | +| `firstName` | *string* | :heavy_check_mark: | The first name of the person associated with this address. | Alice | +| `lastName` | *string* | :heavy_check_mark: | The last name of the person associated with this address. | Baker | +| `company` | *string* | :heavy_minus_sign: | The company associated with this address. | ACME Corporation | +| `streetAddress1` | *string* | :heavy_check_mark: | The street address associated with this address. | 535 Mission St, Ste 1401 | +| `streetAddress2` | *string* | :heavy_minus_sign: | Any additional, optional, street address information associated with this address. | c/o Shipping Department | +| `locality` | *string* | :heavy_check_mark: | The locality (e.g. city, town, etc...) associated with this address. | San Francisco | +| `postalCode` | *string* | :heavy_check_mark: | The postal code associated with this address. | 94105 | +| `region` | *string* | :heavy_minus_sign: | The region or administrative area (e.g. state, province, county, etc...) associated with this address. | CA | +| `countryCode` | [components.CountryCode](../../models/components/countrycode.md) | :heavy_check_mark: | The country (in its ISO 3166 alpha-2 format) associated with this address. | US | +| `email` | *string* | :heavy_minus_sign: | The email address associated with this address. | alice@example.com | +| `phone` | *string* | :heavy_minus_sign: | The phone number associated with this address. | +14155550199 | \ No newline at end of file diff --git a/docs/models/components/errortag.md b/docs/models/components/errortag.md index ba831d0..a7426fb 100644 --- a/docs/models/components/errortag.md +++ b/docs/models/components/errortag.md @@ -7,5 +7,6 @@ The type of error returned | Name | Value | | ---------------------- | ---------------------- | +| `Unauthorized` | unauthorized | | `UnprocessableRequest` | unprocessable_request | | `NotFound` | not_found | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 201f09a..9900018 100644 --- a/gen.yaml +++ b/gen.yaml @@ -7,7 +7,7 @@ generation: fixes: nameResolutionDec2023: false typescript: - version: 0.5.3 + version: 0.5.4 author: BoltPublicAPI clientServerStatusCodesAsErrors: true flattenGlobalSecurity: true diff --git a/package-lock.json b/package-lock.json index 5adc78e..0e9dd3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@boltpay/bolt-typescript-sdk", - "version": "0.5.3", + "version": "0.5.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@boltpay/bolt-typescript-sdk", - "version": "0.5.3", + "version": "0.5.4", "dependencies": { "decimal.js": "^10.4.3", "jsonpath": "^1.1.1" diff --git a/package.json b/package.json index 5d71ccd..b74c09b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "type": "commonjs", "name": "@boltpay/bolt-typescript-sdk", - "version": "0.5.3", + "version": "0.5.4", "author": "BoltPublicAPI", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index c7b880e..5106b5c 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL { export const SDK_METADATA = Object.freeze({ language: "typescript", openapiDocVersion: "3.0.1", - sdkVersion: "0.5.3", - genVersion: "2.237.3", - userAgent: "speakeasy-sdk/typescript 0.5.3 2.237.3 3.0.1 @boltpay/bolt-typescript-sdk", + sdkVersion: "0.5.4", + genVersion: "2.239.4", + userAgent: "speakeasy-sdk/typescript 0.5.4 2.239.4 3.0.1 @boltpay/bolt-typescript-sdk", }); diff --git a/src/models/components/addresslisting.ts b/src/models/components/addresslisting.ts index 3d0cba1..75890b2 100644 --- a/src/models/components/addresslisting.ts +++ b/src/models/components/addresslisting.ts @@ -2,263 +2,9 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import { CountryCode, CountryCode$ } from "./countrycode"; import { z } from "zod"; -/** - * The country (in its ISO 3166 alpha-2 format) associated with this address. - */ -export enum CountryCode { - Af = "AF", - Ax = "AX", - Al = "AL", - Dz = "DZ", - As = "AS", - Ad = "AD", - Ao = "AO", - Ai = "AI", - Aq = "AQ", - Ag = "AG", - Ar = "AR", - Am = "AM", - Aw = "AW", - Au = "AU", - At = "AT", - Az = "AZ", - Bh = "BH", - Bs = "BS", - Bd = "BD", - Bb = "BB", - By = "BY", - Be = "BE", - Bz = "BZ", - Bj = "BJ", - Bm = "BM", - Bt = "BT", - Bo = "BO", - Bq = "BQ", - Ba = "BA", - Bw = "BW", - Bv = "BV", - Br = "BR", - Io = "IO", - Bn = "BN", - Bg = "BG", - Bf = "BF", - Bi = "BI", - Kh = "KH", - Cm = "CM", - Ca = "CA", - Cv = "CV", - Ky = "KY", - Cf = "CF", - Td = "TD", - Cl = "CL", - Cn = "CN", - Cx = "CX", - Cc = "CC", - Co = "CO", - Km = "KM", - Cg = "CG", - Cd = "CD", - Ck = "CK", - Cr = "CR", - Ci = "CI", - Hr = "HR", - Cu = "CU", - Cw = "CW", - Cy = "CY", - Cz = "CZ", - Dk = "DK", - Dj = "DJ", - Dm = "DM", - Do = "DO", - Ec = "EC", - Eg = "EG", - Sv = "SV", - Gq = "GQ", - Er = "ER", - Ee = "EE", - Et = "ET", - Fk = "FK", - Fo = "FO", - Fj = "FJ", - Fi = "FI", - Fr = "FR", - Gf = "GF", - Pf = "PF", - Tf = "TF", - Ga = "GA", - Gm = "GM", - Ge = "GE", - De = "DE", - Gh = "GH", - Gi = "GI", - Gr = "GR", - Gl = "GL", - Gd = "GD", - Gp = "GP", - Gu = "GU", - Gt = "GT", - Gg = "GG", - Gn = "GN", - Gw = "GW", - Gy = "GY", - Ht = "HT", - Hm = "HM", - Va = "VA", - Hn = "HN", - Hk = "HK", - Hu = "HU", - Is = "IS", - In = "IN", - Id = "ID", - Ir = "IR", - Iq = "IQ", - Ie = "IE", - Im = "IM", - Il = "IL", - It = "IT", - Jm = "JM", - Jp = "JP", - Je = "JE", - Jo = "JO", - Kz = "KZ", - Ke = "KE", - Ki = "KI", - Kp = "KP", - Kr = "KR", - Kw = "KW", - Kg = "KG", - La = "LA", - Lv = "LV", - Lb = "LB", - Ls = "LS", - Lr = "LR", - Ly = "LY", - Li = "LI", - Lt = "LT", - Lu = "LU", - Mo = "MO", - Mk = "MK", - Mg = "MG", - Mw = "MW", - My = "MY", - Mv = "MV", - Ml = "ML", - Mt = "MT", - Mh = "MH", - Mq = "MQ", - Mr = "MR", - Mu = "MU", - Yt = "YT", - Mx = "MX", - Fm = "FM", - Md = "MD", - Mc = "MC", - Mn = "MN", - Me = "ME", - Ms = "MS", - Ma = "MA", - Mz = "MZ", - Mm = "MM", - Na = "NA", - Nr = "NR", - Np = "NP", - Nl = "NL", - Nc = "NC", - Nz = "NZ", - Ni = "NI", - Ne = "NE", - Ng = "NG", - Nu = "NU", - Nf = "NF", - Mp = "MP", - No = "NO", - Om = "OM", - Pk = "PK", - Pw = "PW", - Ps = "PS", - Pa = "PA", - Pg = "PG", - Py = "PY", - Pe = "PE", - Ph = "PH", - Pn = "PN", - Pl = "PL", - Pt = "PT", - Pr = "PR", - Qa = "QA", - Re = "RE", - Ro = "RO", - Ru = "RU", - Rw = "RW", - Bl = "BL", - Sh = "SH", - Kn = "KN", - Lc = "LC", - Mf = "MF", - Pm = "PM", - Vc = "VC", - Ws = "WS", - Sm = "SM", - St = "ST", - Sa = "SA", - Sn = "SN", - Rs = "RS", - Sc = "SC", - Sl = "SL", - Sg = "SG", - Sx = "SX", - Sk = "SK", - Si = "SI", - Sb = "SB", - So = "SO", - Za = "ZA", - Gs = "GS", - Ss = "SS", - Es = "ES", - Lk = "LK", - Sd = "SD", - Sr = "SR", - Sj = "SJ", - Sz = "SZ", - Se = "SE", - Ch = "CH", - Sy = "SY", - Tw = "TW", - Tj = "TJ", - Tz = "TZ", - Th = "TH", - Tl = "TL", - Tg = "TG", - Tk = "TK", - To = "TO", - Tt = "TT", - Tn = "TN", - Tr = "TR", - Tm = "TM", - Tc = "TC", - Tv = "TV", - Ug = "UG", - Ua = "UA", - Ae = "AE", - Gb = "GB", - Us = "US", - Um = "UM", - Uy = "UY", - Uz = "UZ", - Vu = "VU", - Ve = "VE", - Vn = "VN", - Vg = "VG", - Vi = "VI", - Wf = "WF", - Eh = "EH", - Ye = "YE", - Zm = "ZM", - Zw = "ZW", -} - /** * An address saved on an account, i.e. a physical address plus any additional account-specific metadata. */ @@ -317,63 +63,6 @@ export type AddressListing = { isDefault?: boolean | undefined; }; -/** - * An address saved on an account, i.e. a physical address plus any additional account-specific metadata. - */ -export type AddressListingInput = { - /** - * The first name of the person associated with this address. - */ - firstName: string; - /** - * The last name of the person associated with this address. - */ - lastName: string; - /** - * The company associated with this address. - */ - company?: string | undefined; - /** - * The street address associated with this address. - */ - streetAddress1: string; - /** - * Any additional, optional, street address information associated with this address. - */ - streetAddress2?: string | undefined; - /** - * The locality (e.g. city, town, etc...) associated with this address. - */ - locality: string; - /** - * The postal code associated with this address. - */ - postalCode: string; - /** - * The region or administrative area (e.g. state, province, county, etc...) associated with this address. - */ - region?: string | undefined; - /** - * The country (in its ISO 3166 alpha-2 format) associated with this address. - */ - countryCode: CountryCode; - /** - * The email address associated with this address. - */ - email?: string | undefined; - /** - * The phone number associated with this address. - */ - phone?: string | undefined; - /** - * Whether or not this is the default address saved. - */ - isDefault?: boolean | undefined; -}; - -/** @internal */ -export const CountryCode$ = z.nativeEnum(CountryCode); - /** @internal */ export namespace AddressListing$ { export type Inbound = { @@ -476,100 +165,3 @@ export namespace AddressListing$ { }; }); } - -/** @internal */ -export namespace AddressListingInput$ { - export type Inbound = { - first_name: string; - last_name: string; - company?: string | undefined; - street_address1: string; - street_address2?: string | undefined; - locality: string; - postal_code: string; - region?: string | undefined; - country_code: CountryCode; - email?: string | undefined; - phone?: string | undefined; - is_default?: boolean | undefined; - }; - - export const inboundSchema: z.ZodType = z - .object({ - first_name: z.string(), - last_name: z.string(), - company: z.string().optional(), - street_address1: z.string(), - street_address2: z.string().optional(), - locality: z.string(), - postal_code: z.string(), - region: z.string().optional(), - country_code: CountryCode$, - email: z.string().optional(), - phone: z.string().optional(), - is_default: z.boolean().optional(), - }) - .transform((v) => { - return { - firstName: v.first_name, - lastName: v.last_name, - ...(v.company === undefined ? null : { company: v.company }), - streetAddress1: v.street_address1, - ...(v.street_address2 === undefined ? null : { streetAddress2: v.street_address2 }), - locality: v.locality, - postalCode: v.postal_code, - ...(v.region === undefined ? null : { region: v.region }), - countryCode: v.country_code, - ...(v.email === undefined ? null : { email: v.email }), - ...(v.phone === undefined ? null : { phone: v.phone }), - ...(v.is_default === undefined ? null : { isDefault: v.is_default }), - }; - }); - - export type Outbound = { - first_name: string; - last_name: string; - company?: string | undefined; - street_address1: string; - street_address2?: string | undefined; - locality: string; - postal_code: string; - region?: string | undefined; - country_code: CountryCode; - email?: string | undefined; - phone?: string | undefined; - is_default?: boolean | undefined; - }; - - export const outboundSchema: z.ZodType = z - .object({ - firstName: z.string(), - lastName: z.string(), - company: z.string().optional(), - streetAddress1: z.string(), - streetAddress2: z.string().optional(), - locality: z.string(), - postalCode: z.string(), - region: z.string().optional(), - countryCode: CountryCode$, - email: z.string().optional(), - phone: z.string().optional(), - isDefault: z.boolean().optional(), - }) - .transform((v) => { - return { - first_name: v.firstName, - last_name: v.lastName, - ...(v.company === undefined ? null : { company: v.company }), - street_address1: v.streetAddress1, - ...(v.streetAddress2 === undefined ? null : { street_address2: v.streetAddress2 }), - locality: v.locality, - postal_code: v.postalCode, - ...(v.region === undefined ? null : { region: v.region }), - country_code: v.countryCode, - ...(v.email === undefined ? null : { email: v.email }), - ...(v.phone === undefined ? null : { phone: v.phone }), - ...(v.isDefault === undefined ? null : { is_default: v.isDefault }), - }; - }); -} diff --git a/src/models/components/addresslistinginput.ts b/src/models/components/addresslistinginput.ts new file mode 100644 index 0000000..fc1fa1d --- /dev/null +++ b/src/models/components/addresslistinginput.ts @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { CountryCode, CountryCode$ } from "./countrycode"; +import { z } from "zod"; + +/** + * An address saved on an account, i.e. a physical address plus any additional account-specific metadata. + */ +export type AddressListingInput = { + /** + * The first name of the person associated with this address. + */ + firstName: string; + /** + * The last name of the person associated with this address. + */ + lastName: string; + /** + * The company associated with this address. + */ + company?: string | undefined; + /** + * The street address associated with this address. + */ + streetAddress1: string; + /** + * Any additional, optional, street address information associated with this address. + */ + streetAddress2?: string | undefined; + /** + * The locality (e.g. city, town, etc...) associated with this address. + */ + locality: string; + /** + * The postal code associated with this address. + */ + postalCode: string; + /** + * The region or administrative area (e.g. state, province, county, etc...) associated with this address. + */ + region?: string | undefined; + /** + * The country (in its ISO 3166 alpha-2 format) associated with this address. + */ + countryCode: CountryCode; + /** + * The email address associated with this address. + */ + email?: string | undefined; + /** + * The phone number associated with this address. + */ + phone?: string | undefined; + /** + * Whether or not this is the default address saved. + */ + isDefault?: boolean | undefined; +}; + +/** @internal */ +export namespace AddressListingInput$ { + export type Inbound = { + first_name: string; + last_name: string; + company?: string | undefined; + street_address1: string; + street_address2?: string | undefined; + locality: string; + postal_code: string; + region?: string | undefined; + country_code: CountryCode; + email?: string | undefined; + phone?: string | undefined; + is_default?: boolean | undefined; + }; + + export const inboundSchema: z.ZodType = z + .object({ + first_name: z.string(), + last_name: z.string(), + company: z.string().optional(), + street_address1: z.string(), + street_address2: z.string().optional(), + locality: z.string(), + postal_code: z.string(), + region: z.string().optional(), + country_code: CountryCode$, + email: z.string().optional(), + phone: z.string().optional(), + is_default: z.boolean().optional(), + }) + .transform((v) => { + return { + firstName: v.first_name, + lastName: v.last_name, + ...(v.company === undefined ? null : { company: v.company }), + streetAddress1: v.street_address1, + ...(v.street_address2 === undefined ? null : { streetAddress2: v.street_address2 }), + locality: v.locality, + postalCode: v.postal_code, + ...(v.region === undefined ? null : { region: v.region }), + countryCode: v.country_code, + ...(v.email === undefined ? null : { email: v.email }), + ...(v.phone === undefined ? null : { phone: v.phone }), + ...(v.is_default === undefined ? null : { isDefault: v.is_default }), + }; + }); + + export type Outbound = { + first_name: string; + last_name: string; + company?: string | undefined; + street_address1: string; + street_address2?: string | undefined; + locality: string; + postal_code: string; + region?: string | undefined; + country_code: CountryCode; + email?: string | undefined; + phone?: string | undefined; + is_default?: boolean | undefined; + }; + + export const outboundSchema: z.ZodType = z + .object({ + firstName: z.string(), + lastName: z.string(), + company: z.string().optional(), + streetAddress1: z.string(), + streetAddress2: z.string().optional(), + locality: z.string(), + postalCode: z.string(), + region: z.string().optional(), + countryCode: CountryCode$, + email: z.string().optional(), + phone: z.string().optional(), + isDefault: z.boolean().optional(), + }) + .transform((v) => { + return { + first_name: v.firstName, + last_name: v.lastName, + ...(v.company === undefined ? null : { company: v.company }), + street_address1: v.streetAddress1, + ...(v.streetAddress2 === undefined ? null : { street_address2: v.streetAddress2 }), + locality: v.locality, + postal_code: v.postalCode, + ...(v.region === undefined ? null : { region: v.region }), + country_code: v.countryCode, + ...(v.email === undefined ? null : { email: v.email }), + ...(v.phone === undefined ? null : { phone: v.phone }), + ...(v.isDefault === undefined ? null : { is_default: v.isDefault }), + }; + }); +} diff --git a/src/models/components/addressreferenceexplicit.ts b/src/models/components/addressreferenceexplicit.ts index d92ccd6..9b74a5d 100644 --- a/src/models/components/addressreferenceexplicit.ts +++ b/src/models/components/addressreferenceexplicit.ts @@ -2,6 +2,7 @@ * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. */ +import { CountryCode, CountryCode$ } from "./countrycode"; import { z } from "zod"; /** @@ -11,261 +12,6 @@ export enum AddressReferenceExplicitTag { Explicit = "explicit", } -/** - * The country (in its ISO 3166 alpha-2 format) associated with this address. - */ -export enum AddressReferenceExplicitCountryCode { - Af = "AF", - Ax = "AX", - Al = "AL", - Dz = "DZ", - As = "AS", - Ad = "AD", - Ao = "AO", - Ai = "AI", - Aq = "AQ", - Ag = "AG", - Ar = "AR", - Am = "AM", - Aw = "AW", - Au = "AU", - At = "AT", - Az = "AZ", - Bh = "BH", - Bs = "BS", - Bd = "BD", - Bb = "BB", - By = "BY", - Be = "BE", - Bz = "BZ", - Bj = "BJ", - Bm = "BM", - Bt = "BT", - Bo = "BO", - Bq = "BQ", - Ba = "BA", - Bw = "BW", - Bv = "BV", - Br = "BR", - Io = "IO", - Bn = "BN", - Bg = "BG", - Bf = "BF", - Bi = "BI", - Kh = "KH", - Cm = "CM", - Ca = "CA", - Cv = "CV", - Ky = "KY", - Cf = "CF", - Td = "TD", - Cl = "CL", - Cn = "CN", - Cx = "CX", - Cc = "CC", - Co = "CO", - Km = "KM", - Cg = "CG", - Cd = "CD", - Ck = "CK", - Cr = "CR", - Ci = "CI", - Hr = "HR", - Cu = "CU", - Cw = "CW", - Cy = "CY", - Cz = "CZ", - Dk = "DK", - Dj = "DJ", - Dm = "DM", - Do = "DO", - Ec = "EC", - Eg = "EG", - Sv = "SV", - Gq = "GQ", - Er = "ER", - Ee = "EE", - Et = "ET", - Fk = "FK", - Fo = "FO", - Fj = "FJ", - Fi = "FI", - Fr = "FR", - Gf = "GF", - Pf = "PF", - Tf = "TF", - Ga = "GA", - Gm = "GM", - Ge = "GE", - De = "DE", - Gh = "GH", - Gi = "GI", - Gr = "GR", - Gl = "GL", - Gd = "GD", - Gp = "GP", - Gu = "GU", - Gt = "GT", - Gg = "GG", - Gn = "GN", - Gw = "GW", - Gy = "GY", - Ht = "HT", - Hm = "HM", - Va = "VA", - Hn = "HN", - Hk = "HK", - Hu = "HU", - Is = "IS", - In = "IN", - Id = "ID", - Ir = "IR", - Iq = "IQ", - Ie = "IE", - Im = "IM", - Il = "IL", - It = "IT", - Jm = "JM", - Jp = "JP", - Je = "JE", - Jo = "JO", - Kz = "KZ", - Ke = "KE", - Ki = "KI", - Kp = "KP", - Kr = "KR", - Kw = "KW", - Kg = "KG", - La = "LA", - Lv = "LV", - Lb = "LB", - Ls = "LS", - Lr = "LR", - Ly = "LY", - Li = "LI", - Lt = "LT", - Lu = "LU", - Mo = "MO", - Mk = "MK", - Mg = "MG", - Mw = "MW", - My = "MY", - Mv = "MV", - Ml = "ML", - Mt = "MT", - Mh = "MH", - Mq = "MQ", - Mr = "MR", - Mu = "MU", - Yt = "YT", - Mx = "MX", - Fm = "FM", - Md = "MD", - Mc = "MC", - Mn = "MN", - Me = "ME", - Ms = "MS", - Ma = "MA", - Mz = "MZ", - Mm = "MM", - Na = "NA", - Nr = "NR", - Np = "NP", - Nl = "NL", - Nc = "NC", - Nz = "NZ", - Ni = "NI", - Ne = "NE", - Ng = "NG", - Nu = "NU", - Nf = "NF", - Mp = "MP", - No = "NO", - Om = "OM", - Pk = "PK", - Pw = "PW", - Ps = "PS", - Pa = "PA", - Pg = "PG", - Py = "PY", - Pe = "PE", - Ph = "PH", - Pn = "PN", - Pl = "PL", - Pt = "PT", - Pr = "PR", - Qa = "QA", - Re = "RE", - Ro = "RO", - Ru = "RU", - Rw = "RW", - Bl = "BL", - Sh = "SH", - Kn = "KN", - Lc = "LC", - Mf = "MF", - Pm = "PM", - Vc = "VC", - Ws = "WS", - Sm = "SM", - St = "ST", - Sa = "SA", - Sn = "SN", - Rs = "RS", - Sc = "SC", - Sl = "SL", - Sg = "SG", - Sx = "SX", - Sk = "SK", - Si = "SI", - Sb = "SB", - So = "SO", - Za = "ZA", - Gs = "GS", - Ss = "SS", - Es = "ES", - Lk = "LK", - Sd = "SD", - Sr = "SR", - Sj = "SJ", - Sz = "SZ", - Se = "SE", - Ch = "CH", - Sy = "SY", - Tw = "TW", - Tj = "TJ", - Tz = "TZ", - Th = "TH", - Tl = "TL", - Tg = "TG", - Tk = "TK", - To = "TO", - Tt = "TT", - Tn = "TN", - Tr = "TR", - Tm = "TM", - Tc = "TC", - Tv = "TV", - Ug = "UG", - Ua = "UA", - Ae = "AE", - Gb = "GB", - Us = "US", - Um = "UM", - Uy = "UY", - Uz = "UZ", - Vu = "VU", - Ve = "VE", - Vn = "VN", - Vg = "VG", - Vi = "VI", - Wf = "WF", - Eh = "EH", - Ye = "YE", - Zm = "ZM", - Zw = "ZW", -} - /** * A physical address. */ @@ -313,7 +59,7 @@ export type AddressReferenceExplicit = { /** * The country (in its ISO 3166 alpha-2 format) associated with this address. */ - countryCode: AddressReferenceExplicitCountryCode; + countryCode: CountryCode; /** * The email address associated with this address. */ @@ -367,7 +113,7 @@ export type AddressReferenceExplicitInput = { /** * The country (in its ISO 3166 alpha-2 format) associated with this address. */ - countryCode: AddressReferenceExplicitCountryCode; + countryCode: CountryCode; /** * The email address associated with this address. */ @@ -381,11 +127,6 @@ export type AddressReferenceExplicitInput = { /** @internal */ export const AddressReferenceExplicitTag$ = z.nativeEnum(AddressReferenceExplicitTag); -/** @internal */ -export const AddressReferenceExplicitCountryCode$ = z.nativeEnum( - AddressReferenceExplicitCountryCode -); - /** @internal */ export namespace AddressReferenceExplicit$ { export type Inbound = { @@ -399,7 +140,7 @@ export namespace AddressReferenceExplicit$ { locality: string; postal_code: string; region?: string | undefined; - country_code: AddressReferenceExplicitCountryCode; + country_code: CountryCode; email?: string | undefined; phone?: string | undefined; }; @@ -416,7 +157,7 @@ export namespace AddressReferenceExplicit$ { locality: z.string(), postal_code: z.string(), region: z.string().optional(), - country_code: AddressReferenceExplicitCountryCode$, + country_code: CountryCode$, email: z.string().optional(), phone: z.string().optional(), }) @@ -449,7 +190,7 @@ export namespace AddressReferenceExplicit$ { locality: string; postal_code: string; region?: string | undefined; - country_code: AddressReferenceExplicitCountryCode; + country_code: CountryCode; email?: string | undefined; phone?: string | undefined; }; @@ -466,7 +207,7 @@ export namespace AddressReferenceExplicit$ { locality: z.string(), postalCode: z.string(), region: z.string().optional(), - countryCode: AddressReferenceExplicitCountryCode$, + countryCode: CountryCode$, email: z.string().optional(), phone: z.string().optional(), }) @@ -501,7 +242,7 @@ export namespace AddressReferenceExplicitInput$ { locality: string; postal_code: string; region?: string | undefined; - country_code: AddressReferenceExplicitCountryCode; + country_code: CountryCode; email?: string | undefined; phone?: string | undefined; }; @@ -517,7 +258,7 @@ export namespace AddressReferenceExplicitInput$ { locality: z.string(), postal_code: z.string(), region: z.string().optional(), - country_code: AddressReferenceExplicitCountryCode$, + country_code: CountryCode$, email: z.string().optional(), phone: z.string().optional(), }) @@ -548,7 +289,7 @@ export namespace AddressReferenceExplicitInput$ { locality: string; postal_code: string; region?: string | undefined; - country_code: AddressReferenceExplicitCountryCode; + country_code: CountryCode; email?: string | undefined; phone?: string | undefined; }; @@ -565,7 +306,7 @@ export namespace AddressReferenceExplicitInput$ { locality: z.string(), postalCode: z.string(), region: z.string().optional(), - countryCode: AddressReferenceExplicitCountryCode$, + countryCode: CountryCode$, email: z.string().optional(), phone: z.string().optional(), }) diff --git a/src/models/components/countrycode.ts b/src/models/components/countrycode.ts new file mode 100644 index 0000000..f323378 --- /dev/null +++ b/src/models/components/countrycode.ts @@ -0,0 +1,263 @@ +/* + * Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. + */ + +import { z } from "zod"; + +/** + * The country (in its ISO 3166 alpha-2 format) associated with this address. + */ +export enum CountryCode { + Af = "AF", + Ax = "AX", + Al = "AL", + Dz = "DZ", + As = "AS", + Ad = "AD", + Ao = "AO", + Ai = "AI", + Aq = "AQ", + Ag = "AG", + Ar = "AR", + Am = "AM", + Aw = "AW", + Au = "AU", + At = "AT", + Az = "AZ", + Bh = "BH", + Bs = "BS", + Bd = "BD", + Bb = "BB", + By = "BY", + Be = "BE", + Bz = "BZ", + Bj = "BJ", + Bm = "BM", + Bt = "BT", + Bo = "BO", + Bq = "BQ", + Ba = "BA", + Bw = "BW", + Bv = "BV", + Br = "BR", + Io = "IO", + Bn = "BN", + Bg = "BG", + Bf = "BF", + Bi = "BI", + Kh = "KH", + Cm = "CM", + Ca = "CA", + Cv = "CV", + Ky = "KY", + Cf = "CF", + Td = "TD", + Cl = "CL", + Cn = "CN", + Cx = "CX", + Cc = "CC", + Co = "CO", + Km = "KM", + Cg = "CG", + Cd = "CD", + Ck = "CK", + Cr = "CR", + Ci = "CI", + Hr = "HR", + Cu = "CU", + Cw = "CW", + Cy = "CY", + Cz = "CZ", + Dk = "DK", + Dj = "DJ", + Dm = "DM", + Do = "DO", + Ec = "EC", + Eg = "EG", + Sv = "SV", + Gq = "GQ", + Er = "ER", + Ee = "EE", + Et = "ET", + Fk = "FK", + Fo = "FO", + Fj = "FJ", + Fi = "FI", + Fr = "FR", + Gf = "GF", + Pf = "PF", + Tf = "TF", + Ga = "GA", + Gm = "GM", + Ge = "GE", + De = "DE", + Gh = "GH", + Gi = "GI", + Gr = "GR", + Gl = "GL", + Gd = "GD", + Gp = "GP", + Gu = "GU", + Gt = "GT", + Gg = "GG", + Gn = "GN", + Gw = "GW", + Gy = "GY", + Ht = "HT", + Hm = "HM", + Va = "VA", + Hn = "HN", + Hk = "HK", + Hu = "HU", + Is = "IS", + In = "IN", + Id = "ID", + Ir = "IR", + Iq = "IQ", + Ie = "IE", + Im = "IM", + Il = "IL", + It = "IT", + Jm = "JM", + Jp = "JP", + Je = "JE", + Jo = "JO", + Kz = "KZ", + Ke = "KE", + Ki = "KI", + Kp = "KP", + Kr = "KR", + Kw = "KW", + Kg = "KG", + La = "LA", + Lv = "LV", + Lb = "LB", + Ls = "LS", + Lr = "LR", + Ly = "LY", + Li = "LI", + Lt = "LT", + Lu = "LU", + Mo = "MO", + Mk = "MK", + Mg = "MG", + Mw = "MW", + My = "MY", + Mv = "MV", + Ml = "ML", + Mt = "MT", + Mh = "MH", + Mq = "MQ", + Mr = "MR", + Mu = "MU", + Yt = "YT", + Mx = "MX", + Fm = "FM", + Md = "MD", + Mc = "MC", + Mn = "MN", + Me = "ME", + Ms = "MS", + Ma = "MA", + Mz = "MZ", + Mm = "MM", + Na = "NA", + Nr = "NR", + Np = "NP", + Nl = "NL", + Nc = "NC", + Nz = "NZ", + Ni = "NI", + Ne = "NE", + Ng = "NG", + Nu = "NU", + Nf = "NF", + Mp = "MP", + No = "NO", + Om = "OM", + Pk = "PK", + Pw = "PW", + Ps = "PS", + Pa = "PA", + Pg = "PG", + Py = "PY", + Pe = "PE", + Ph = "PH", + Pn = "PN", + Pl = "PL", + Pt = "PT", + Pr = "PR", + Qa = "QA", + Re = "RE", + Ro = "RO", + Ru = "RU", + Rw = "RW", + Bl = "BL", + Sh = "SH", + Kn = "KN", + Lc = "LC", + Mf = "MF", + Pm = "PM", + Vc = "VC", + Ws = "WS", + Sm = "SM", + St = "ST", + Sa = "SA", + Sn = "SN", + Rs = "RS", + Sc = "SC", + Sl = "SL", + Sg = "SG", + Sx = "SX", + Sk = "SK", + Si = "SI", + Sb = "SB", + So = "SO", + Za = "ZA", + Gs = "GS", + Ss = "SS", + Es = "ES", + Lk = "LK", + Sd = "SD", + Sr = "SR", + Sj = "SJ", + Sz = "SZ", + Se = "SE", + Ch = "CH", + Sy = "SY", + Tw = "TW", + Tj = "TJ", + Tz = "TZ", + Th = "TH", + Tl = "TL", + Tg = "TG", + Tk = "TK", + To = "TO", + Tt = "TT", + Tn = "TN", + Tr = "TR", + Tm = "TM", + Tc = "TC", + Tv = "TV", + Ug = "UG", + Ua = "UA", + Ae = "AE", + Gb = "GB", + Us = "US", + Um = "UM", + Uy = "UY", + Uz = "UZ", + Vu = "VU", + Ve = "VE", + Vn = "VN", + Vg = "VG", + Vi = "VI", + Wf = "WF", + Eh = "EH", + Ye = "YE", + Zm = "ZM", + Zw = "ZW", +} + +/** @internal */ +export const CountryCode$ = z.nativeEnum(CountryCode); diff --git a/src/models/components/error.ts b/src/models/components/error.ts index df1e438..bd17f7f 100644 --- a/src/models/components/error.ts +++ b/src/models/components/error.ts @@ -8,6 +8,7 @@ import { z } from "zod"; * The type of error returned */ export enum ErrorTag { + Unauthorized = "unauthorized", UnprocessableRequest = "unprocessable_request", NotFound = "not_found", } diff --git a/src/models/components/index.ts b/src/models/components/index.ts index c0b6f3d..469fce6 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -5,6 +5,7 @@ export * from "./account"; export * from "./accounttestcreationdataoutput"; export * from "./addresslisting"; +export * from "./addresslistinginput"; export * from "./addressreference"; export * from "./addressreferenceexplicit"; export * from "./addressreferenceid"; @@ -14,6 +15,7 @@ export * from "./cart"; export * from "./cartdiscount"; export * from "./cartitem"; export * from "./cartshipment"; +export * from "./countrycode"; export * from "./creditcarderror"; export * from "./creditcardnetwork"; export * from "./error";