postgrid-node 0.4.2 → 0.6.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/CHANGELOG.md +93 -0
- package/LICENSE +1 -1
- package/README.md +15 -12
- package/client.d.mts +35 -15
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -15
- package/client.d.ts.map +1 -1
- package/client.js +61 -15
- package/client.js.map +1 -1
- package/client.mjs +62 -16
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +3 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +3 -2
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +9 -3
- package/resources/address-verification.d.mts +1689 -15
- package/resources/address-verification.d.mts.map +1 -1
- package/resources/address-verification.d.ts +1689 -15
- package/resources/address-verification.d.ts.map +1 -1
- package/resources/address-verification.js +200 -0
- package/resources/address-verification.js.map +1 -1
- package/resources/address-verification.mjs +200 -0
- package/resources/address-verification.mjs.map +1 -1
- package/resources/index.d.mts +3 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intl-address-verification.d.mts +956 -35
- package/resources/intl-address-verification.d.mts.map +1 -1
- package/resources/intl-address-verification.d.ts +956 -35
- package/resources/intl-address-verification.d.ts.map +1 -1
- package/resources/intl-address-verification.js +121 -27
- package/resources/intl-address-verification.js.map +1 -1
- package/resources/intl-address-verification.mjs +121 -27
- package/resources/intl-address-verification.mjs.map +1 -1
- package/resources/print-mail/boxes.d.mts +733 -59
- package/resources/print-mail/boxes.d.mts.map +1 -1
- package/resources/print-mail/boxes.d.ts +733 -59
- package/resources/print-mail/boxes.d.ts.map +1 -1
- package/resources/print-mail/boxes.js +19 -1
- package/resources/print-mail/boxes.js.map +1 -1
- package/resources/print-mail/boxes.mjs +19 -1
- package/resources/print-mail/boxes.mjs.map +1 -1
- package/resources/print-mail/campaigns.d.mts +923 -34
- package/resources/print-mail/campaigns.d.mts.map +1 -1
- package/resources/print-mail/campaigns.d.ts +923 -34
- package/resources/print-mail/campaigns.d.ts.map +1 -1
- package/resources/print-mail/campaigns.js +10 -3
- package/resources/print-mail/campaigns.js.map +1 -1
- package/resources/print-mail/campaigns.mjs +10 -3
- package/resources/print-mail/campaigns.mjs.map +1 -1
- package/resources/print-mail/cheques.d.mts +60 -11
- package/resources/print-mail/cheques.d.mts.map +1 -1
- package/resources/print-mail/cheques.d.ts +60 -11
- package/resources/print-mail/cheques.d.ts.map +1 -1
- package/resources/print-mail/cheques.js +32 -0
- package/resources/print-mail/cheques.js.map +1 -1
- package/resources/print-mail/cheques.mjs +32 -0
- package/resources/print-mail/cheques.mjs.map +1 -1
- package/resources/print-mail/contacts.d.mts +138 -3
- package/resources/print-mail/contacts.d.mts.map +1 -1
- package/resources/print-mail/contacts.d.ts +138 -3
- package/resources/print-mail/contacts.d.ts.map +1 -1
- package/resources/print-mail/contacts.js.map +1 -1
- package/resources/print-mail/contacts.mjs.map +1 -1
- package/resources/print-mail/index.d.mts +12 -8
- package/resources/print-mail/index.d.mts.map +1 -1
- package/resources/print-mail/index.d.ts +12 -8
- package/resources/print-mail/index.d.ts.map +1 -1
- package/resources/print-mail/index.js +13 -5
- package/resources/print-mail/index.js.map +1 -1
- package/resources/print-mail/index.mjs +5 -1
- package/resources/print-mail/index.mjs.map +1 -1
- package/resources/print-mail/letters.d.mts +62 -13
- package/resources/print-mail/letters.d.mts.map +1 -1
- package/resources/print-mail/letters.d.ts +62 -13
- package/resources/print-mail/letters.d.ts.map +1 -1
- package/resources/print-mail/letters.js +32 -0
- package/resources/print-mail/letters.js.map +1 -1
- package/resources/print-mail/letters.mjs +32 -0
- package/resources/print-mail/letters.mjs.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.mts +5 -1
- package/resources/print-mail/mailing-list-imports.d.mts.map +1 -1
- package/resources/print-mail/mailing-list-imports.d.ts +5 -1
- package/resources/print-mail/mailing-list-imports.d.ts.map +1 -1
- package/resources/print-mail/mailing-list-imports.js +4 -0
- package/resources/print-mail/mailing-list-imports.js.map +1 -1
- package/resources/print-mail/mailing-list-imports.mjs +4 -0
- package/resources/print-mail/mailing-list-imports.mjs.map +1 -1
- package/resources/print-mail/mailing-lists.d.mts +5 -1
- package/resources/print-mail/mailing-lists.d.mts.map +1 -1
- package/resources/print-mail/mailing-lists.d.ts +5 -1
- package/resources/print-mail/mailing-lists.d.ts.map +1 -1
- package/resources/print-mail/mailing-lists.js +4 -0
- package/resources/print-mail/mailing-lists.js.map +1 -1
- package/resources/print-mail/mailing-lists.mjs +4 -0
- package/resources/print-mail/mailing-lists.mjs.map +1 -1
- package/resources/print-mail/postcards.d.mts +90 -21
- package/resources/print-mail/postcards.d.mts.map +1 -1
- package/resources/print-mail/postcards.d.ts +90 -21
- package/resources/print-mail/postcards.d.ts.map +1 -1
- package/resources/print-mail/postcards.js +33 -0
- package/resources/print-mail/postcards.js.map +1 -1
- package/resources/print-mail/postcards.mjs +33 -0
- package/resources/print-mail/postcards.mjs.map +1 -1
- package/resources/print-mail/print-mail.d.mts +41 -162
- package/resources/print-mail/print-mail.d.mts.map +1 -1
- package/resources/print-mail/print-mail.d.ts +41 -162
- package/resources/print-mail/print-mail.d.ts.map +1 -1
- package/resources/print-mail/print-mail.js +34 -18
- package/resources/print-mail/print-mail.js.map +1 -1
- package/resources/print-mail/print-mail.mjs +34 -18
- package/resources/print-mail/print-mail.mjs.map +1 -1
- package/resources/print-mail/reports/exports.d.mts +7 -0
- package/resources/print-mail/reports/exports.d.mts.map +1 -1
- package/resources/print-mail/reports/exports.d.ts +7 -0
- package/resources/print-mail/reports/exports.d.ts.map +1 -1
- package/resources/print-mail/reports/exports.js +7 -0
- package/resources/print-mail/reports/exports.js.map +1 -1
- package/resources/print-mail/reports/exports.mjs +7 -0
- package/resources/print-mail/reports/exports.mjs.map +1 -1
- package/resources/print-mail/reports/reports.d.mts +7 -0
- package/resources/print-mail/reports/reports.d.mts.map +1 -1
- package/resources/print-mail/reports/reports.d.ts +7 -0
- package/resources/print-mail/reports/reports.d.ts.map +1 -1
- package/resources/print-mail/reports/reports.js +7 -0
- package/resources/print-mail/reports/reports.js.map +1 -1
- package/resources/print-mail/reports/reports.mjs +7 -0
- package/resources/print-mail/reports/reports.mjs.map +1 -1
- package/resources/print-mail/reports/samples.d.mts +7 -0
- package/resources/print-mail/reports/samples.d.mts.map +1 -1
- package/resources/print-mail/reports/samples.d.ts +7 -0
- package/resources/print-mail/reports/samples.d.ts.map +1 -1
- package/resources/print-mail/reports/samples.js +7 -0
- package/resources/print-mail/reports/samples.js.map +1 -1
- package/resources/print-mail/reports/samples.mjs +7 -0
- package/resources/print-mail/reports/samples.mjs.map +1 -1
- package/resources/print-mail/self-mailers.d.mts +52 -20
- package/resources/print-mail/self-mailers.d.mts.map +1 -1
- package/resources/print-mail/self-mailers.d.ts +52 -20
- package/resources/print-mail/self-mailers.d.ts.map +1 -1
- package/resources/print-mail/self-mailers.js +17 -0
- package/resources/print-mail/self-mailers.js.map +1 -1
- package/resources/print-mail/self-mailers.mjs +17 -0
- package/resources/print-mail/self-mailers.mjs.map +1 -1
- package/resources/print-mail/snap-packs.d.mts +1060 -0
- package/resources/print-mail/snap-packs.d.mts.map +1 -0
- package/resources/print-mail/snap-packs.d.ts +1060 -0
- package/resources/print-mail/snap-packs.d.ts.map +1 -0
- package/resources/print-mail/snap-packs.js +117 -0
- package/resources/print-mail/snap-packs.js.map +1 -0
- package/resources/print-mail/snap-packs.mjs +113 -0
- package/resources/print-mail/snap-packs.mjs.map +1 -0
- package/resources/print-mail/sub-organizations.d.mts +29 -17
- package/resources/print-mail/sub-organizations.d.mts.map +1 -1
- package/resources/print-mail/sub-organizations.d.ts +29 -17
- package/resources/print-mail/sub-organizations.d.ts.map +1 -1
- package/resources/print-mail/sub-organizations.js +26 -14
- package/resources/print-mail/sub-organizations.js.map +1 -1
- package/resources/print-mail/sub-organizations.mjs +26 -14
- package/resources/print-mail/sub-organizations.mjs.map +1 -1
- package/resources/print-mail/targeted-list-builds/filters.d.mts +92 -0
- package/resources/print-mail/targeted-list-builds/filters.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.d.ts +92 -0
- package/resources/print-mail/targeted-list-builds/filters.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.js +60 -0
- package/resources/print-mail/targeted-list-builds/filters.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/filters.mjs +56 -0
- package/resources/print-mail/targeted-list-builds/filters.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.d.mts +3 -0
- package/resources/print-mail/targeted-list-builds/index.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.d.ts +3 -0
- package/resources/print-mail/targeted-list-builds/index.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.js +9 -0
- package/resources/print-mail/targeted-list-builds/index.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/index.mjs +4 -0
- package/resources/print-mail/targeted-list-builds/index.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts +1633 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts +1633 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.js +154 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.js.map +1 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs +149 -0
- package/resources/print-mail/targeted-list-builds/targeted-list-builds.mjs.map +1 -0
- package/resources/print-mail/targeted-list-builds.d.mts +2 -0
- package/resources/print-mail/targeted-list-builds.d.mts.map +1 -0
- package/resources/print-mail/targeted-list-builds.d.ts +2 -0
- package/resources/print-mail/targeted-list-builds.d.ts.map +1 -0
- package/resources/print-mail/targeted-list-builds.js +6 -0
- package/resources/print-mail/targeted-list-builds.js.map +1 -0
- package/resources/print-mail/targeted-list-builds.mjs +3 -0
- package/resources/print-mail/targeted-list-builds.mjs.map +1 -0
- package/resources/print-mail/template-editor-sessions.d.mts +355 -0
- package/resources/print-mail/template-editor-sessions.d.mts.map +1 -0
- package/resources/print-mail/template-editor-sessions.d.ts +355 -0
- package/resources/print-mail/template-editor-sessions.d.ts.map +1 -0
- package/resources/print-mail/template-editor-sessions.js +78 -0
- package/resources/print-mail/template-editor-sessions.js.map +1 -0
- package/resources/print-mail/template-editor-sessions.mjs +74 -0
- package/resources/print-mail/template-editor-sessions.mjs.map +1 -0
- package/resources/print-mail/trackers.d.mts +409 -0
- package/resources/print-mail/trackers.d.mts.map +1 -0
- package/resources/print-mail/trackers.d.ts +409 -0
- package/resources/print-mail/trackers.d.ts.map +1 -0
- package/resources/print-mail/trackers.js +116 -0
- package/resources/print-mail/trackers.js.map +1 -0
- package/resources/print-mail/trackers.mjs +112 -0
- package/resources/print-mail/trackers.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.d.mts +3 -0
- package/resources/print-mail/virtual-mailboxes/index.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.d.ts +3 -0
- package/resources/print-mail/virtual-mailboxes/index.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.js +9 -0
- package/resources/print-mail/virtual-mailboxes/index.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/index.mjs +4 -0
- package/resources/print-mail/virtual-mailboxes/index.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.d.mts +235 -0
- package/resources/print-mail/virtual-mailboxes/items.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.d.ts +235 -0
- package/resources/print-mail/virtual-mailboxes/items.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.js +69 -0
- package/resources/print-mail/virtual-mailboxes/items.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/items.mjs +65 -0
- package/resources/print-mail/virtual-mailboxes/items.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts +334 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts +334 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.d.ts.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js +92 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs +87 -0
- package/resources/print-mail/virtual-mailboxes/virtual-mailboxes.mjs.map +1 -0
- package/resources/print-mail/virtual-mailboxes.d.mts +2 -0
- package/resources/print-mail/virtual-mailboxes.d.mts.map +1 -0
- package/resources/print-mail/virtual-mailboxes.d.ts +2 -0
- package/resources/print-mail/virtual-mailboxes.d.ts.map +1 -0
- package/resources/print-mail/{order-profiles.js → virtual-mailboxes.js} +2 -2
- package/resources/print-mail/virtual-mailboxes.js.map +1 -0
- package/resources/print-mail/virtual-mailboxes.mjs +3 -0
- package/resources/print-mail/virtual-mailboxes.mjs.map +1 -0
- package/src/client.ts +123 -33
- package/src/internal/parse.ts +6 -0
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/internal/utils/log.ts +2 -1
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/address-verification.ts +2190 -24
- package/src/resources/index.ts +24 -5
- package/src/resources/intl-address-verification.ts +1219 -43
- package/src/resources/print-mail/boxes.ts +1011 -99
- package/src/resources/print-mail/campaigns.ts +1449 -59
- package/src/resources/print-mail/cheques.ts +122 -10
- package/src/resources/print-mail/contacts.ts +167 -4
- package/src/resources/print-mail/index.ts +74 -11
- package/src/resources/print-mail/letters.ts +150 -12
- package/src/resources/print-mail/mailing-list-imports.ts +5 -1
- package/src/resources/print-mail/mailing-lists.ts +5 -1
- package/src/resources/print-mail/postcards.ts +208 -20
- package/src/resources/print-mail/print-mail.ts +239 -261
- package/src/resources/print-mail/reports/exports.ts +7 -0
- package/src/resources/print-mail/reports/reports.ts +7 -0
- package/src/resources/print-mail/reports/samples.ts +7 -0
- package/src/resources/print-mail/self-mailers.ts +162 -20
- package/src/resources/print-mail/snap-packs.ts +1484 -0
- package/src/resources/print-mail/sub-organizations.ts +35 -23
- package/src/resources/print-mail/targeted-list-builds/filters.ts +113 -0
- package/src/resources/print-mail/targeted-list-builds/index.ts +16 -0
- package/src/resources/print-mail/targeted-list-builds/targeted-list-builds.ts +2158 -0
- package/{resources/print-mail/order-profiles.mjs → src/resources/print-mail/targeted-list-builds.ts} +2 -2
- package/src/resources/print-mail/template-editor-sessions.ts +435 -0
- package/src/resources/print-mail/trackers.ts +513 -0
- package/src/resources/print-mail/virtual-mailboxes/index.ts +22 -0
- package/src/resources/print-mail/virtual-mailboxes/items.ts +296 -0
- package/src/resources/print-mail/virtual-mailboxes/virtual-mailboxes.ts +434 -0
- package/src/resources/print-mail/{order-profiles.ts → virtual-mailboxes.ts} +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/internal/qs/formats.d.mts +0 -7
- package/internal/qs/formats.d.mts.map +0 -1
- package/internal/qs/formats.d.ts +0 -7
- package/internal/qs/formats.d.ts.map +0 -1
- package/internal/qs/formats.js +0 -13
- package/internal/qs/formats.js.map +0 -1
- package/internal/qs/formats.mjs +0 -9
- package/internal/qs/formats.mjs.map +0 -1
- package/internal/qs/index.d.mts +0 -10
- package/internal/qs/index.d.mts.map +0 -1
- package/internal/qs/index.d.ts +0 -10
- package/internal/qs/index.d.ts.map +0 -1
- package/internal/qs/index.js +0 -14
- package/internal/qs/index.js.map +0 -1
- package/internal/qs/index.mjs +0 -10
- package/internal/qs/index.mjs.map +0 -1
- package/internal/qs/stringify.d.mts +0 -3
- package/internal/qs/stringify.d.mts.map +0 -1
- package/internal/qs/stringify.d.ts +0 -3
- package/internal/qs/stringify.d.ts.map +0 -1
- package/internal/qs/stringify.js +0 -277
- package/internal/qs/stringify.js.map +0 -1
- package/internal/qs/stringify.mjs +0 -274
- package/internal/qs/stringify.mjs.map +0 -1
- package/internal/qs/types.d.mts +0 -57
- package/internal/qs/types.d.mts.map +0 -1
- package/internal/qs/types.d.ts +0 -57
- package/internal/qs/types.d.ts.map +0 -1
- package/internal/qs/types.js +0 -3
- package/internal/qs/types.js.map +0 -1
- package/internal/qs/types.mjs +0 -2
- package/internal/qs/types.mjs.map +0 -1
- package/internal/qs/utils.d.mts +0 -15
- package/internal/qs/utils.d.mts.map +0 -1
- package/internal/qs/utils.d.ts +0 -15
- package/internal/qs/utils.d.ts.map +0 -1
- package/internal/qs/utils.js +0 -230
- package/internal/qs/utils.js.map +0 -1
- package/internal/qs/utils.mjs +0 -217
- package/internal/qs/utils.mjs.map +0 -1
- package/resources/print-mail/order-profiles/cheques.d.mts +0 -388
- package/resources/print-mail/order-profiles/cheques.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/cheques.d.ts +0 -388
- package/resources/print-mail/order-profiles/cheques.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/cheques.js +0 -98
- package/resources/print-mail/order-profiles/cheques.js.map +0 -1
- package/resources/print-mail/order-profiles/cheques.mjs +0 -94
- package/resources/print-mail/order-profiles/cheques.mjs.map +0 -1
- package/resources/print-mail/order-profiles/index.d.mts +0 -6
- package/resources/print-mail/order-profiles/index.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/index.d.ts +0 -6
- package/resources/print-mail/order-profiles/index.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/index.js +0 -15
- package/resources/print-mail/order-profiles/index.js.map +0 -1
- package/resources/print-mail/order-profiles/index.mjs +0 -7
- package/resources/print-mail/order-profiles/index.mjs.map +0 -1
- package/resources/print-mail/order-profiles/letters.d.mts +0 -325
- package/resources/print-mail/order-profiles/letters.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/letters.d.ts +0 -325
- package/resources/print-mail/order-profiles/letters.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/letters.js +0 -105
- package/resources/print-mail/order-profiles/letters.js.map +0 -1
- package/resources/print-mail/order-profiles/letters.mjs +0 -101
- package/resources/print-mail/order-profiles/letters.mjs.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.d.mts +0 -22
- package/resources/print-mail/order-profiles/order-profiles.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.d.ts +0 -22
- package/resources/print-mail/order-profiles/order-profiles.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.js +0 -29
- package/resources/print-mail/order-profiles/order-profiles.js.map +0 -1
- package/resources/print-mail/order-profiles/order-profiles.mjs +0 -24
- package/resources/print-mail/order-profiles/order-profiles.mjs.map +0 -1
- package/resources/print-mail/order-profiles/postcards.d.mts +0 -255
- package/resources/print-mail/order-profiles/postcards.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/postcards.d.ts +0 -255
- package/resources/print-mail/order-profiles/postcards.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/postcards.js +0 -97
- package/resources/print-mail/order-profiles/postcards.js.map +0 -1
- package/resources/print-mail/order-profiles/postcards.mjs +0 -93
- package/resources/print-mail/order-profiles/postcards.mjs.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.d.mts +0 -260
- package/resources/print-mail/order-profiles/self-mailers.d.mts.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.d.ts +0 -260
- package/resources/print-mail/order-profiles/self-mailers.d.ts.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.js +0 -95
- package/resources/print-mail/order-profiles/self-mailers.js.map +0 -1
- package/resources/print-mail/order-profiles/self-mailers.mjs +0 -91
- package/resources/print-mail/order-profiles/self-mailers.mjs.map +0 -1
- package/resources/print-mail/order-profiles.d.mts +0 -2
- package/resources/print-mail/order-profiles.d.mts.map +0 -1
- package/resources/print-mail/order-profiles.d.ts +0 -2
- package/resources/print-mail/order-profiles.d.ts.map +0 -1
- package/resources/print-mail/order-profiles.js.map +0 -1
- package/resources/print-mail/order-profiles.mjs.map +0 -1
- package/src/internal/qs/LICENSE.md +0 -13
- package/src/internal/qs/README.md +0 -3
- package/src/internal/qs/formats.ts +0 -10
- package/src/internal/qs/index.ts +0 -13
- package/src/internal/qs/stringify.ts +0 -385
- package/src/internal/qs/types.ts +0 -71
- package/src/internal/qs/utils.ts +0 -265
- package/src/resources/print-mail/order-profiles/cheques.ts +0 -486
- package/src/resources/print-mail/order-profiles/index.ts +0 -47
- package/src/resources/print-mail/order-profiles/letters.ts +0 -412
- package/src/resources/print-mail/order-profiles/order-profiles.ts +0 -113
- package/src/resources/print-mail/order-profiles/postcards.ts +0 -327
- package/src/resources/print-mail/order-profiles/self-mailers.ts +0 -338
|
@@ -5,7 +5,246 @@ import * as AddressVerificationAPI from './address-verification';
|
|
|
5
5
|
import { APIPromise } from '../core/api-promise';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Standard Address Verification API.
|
|
10
|
+
*
|
|
11
|
+
* Provides endpoints to verify and standardize addresses across US and Canada,
|
|
12
|
+
* supporting both structured and freeform inputs.
|
|
13
|
+
*
|
|
14
|
+
* Note that this uses a different set of lookups than our international API.
|
|
15
|
+
*/
|
|
8
16
|
export class AddressVerification extends APIResource {
|
|
17
|
+
/**
|
|
18
|
+
* Resolves a partial street address into a list of full address candidates,
|
|
19
|
+
* optionally selecting a specific candidate by index and verifying it.
|
|
20
|
+
*
|
|
21
|
+
* **Basic usage** — omit `index`: returns an array of `CompletedAddressItem`
|
|
22
|
+
* results for the given `partialStreet`.
|
|
23
|
+
*
|
|
24
|
+
* **With `index`** — specify `index` to resolve a single candidate. Returns a
|
|
25
|
+
* single `CompletedAddressItem`.
|
|
26
|
+
*
|
|
27
|
+
* **With `index` + `verify=true`** — additionally runs the selected address
|
|
28
|
+
* through the USPS/Canada Post verifier and returns a `StandardVerifiedAddress`.
|
|
29
|
+
*
|
|
30
|
+
* - Uses 1 lookup per call (plus 1 more if geocoding a result).
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* const response =
|
|
35
|
+
* await client.addressVerification.autocomplete({
|
|
36
|
+
* partialStreet: 'partialStreet',
|
|
37
|
+
* });
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
autocomplete(
|
|
41
|
+
params: AddressVerificationAutocompleteParams,
|
|
42
|
+
options?: RequestOptions,
|
|
43
|
+
): APIPromise<AddressVerificationAutocompleteResponse> {
|
|
44
|
+
const {
|
|
45
|
+
filterExact,
|
|
46
|
+
geocode,
|
|
47
|
+
includeDetails,
|
|
48
|
+
index,
|
|
49
|
+
limit,
|
|
50
|
+
properCase,
|
|
51
|
+
query_verifiedOnly,
|
|
52
|
+
verify,
|
|
53
|
+
...body
|
|
54
|
+
} = params;
|
|
55
|
+
return this._client.post('/v1/addver/completions', {
|
|
56
|
+
query: {
|
|
57
|
+
filterExact,
|
|
58
|
+
geocode,
|
|
59
|
+
includeDetails,
|
|
60
|
+
index,
|
|
61
|
+
limit,
|
|
62
|
+
properCase,
|
|
63
|
+
verifiedOnly: query_verifiedOnly,
|
|
64
|
+
verify,
|
|
65
|
+
},
|
|
66
|
+
body,
|
|
67
|
+
...options,
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Verify a batch of US or Canadian addresses in a single request. Each address can
|
|
73
|
+
* be freeform or structured, matching the same input formats accepted by the
|
|
74
|
+
* single verification endpoint.
|
|
75
|
+
*
|
|
76
|
+
* - Uses 1 lookup per address (plus 1 more per address if geocoding).
|
|
77
|
+
* - Requires a secret API key.
|
|
78
|
+
* - Returns results in the same order as the input addresses.
|
|
79
|
+
* - If an individual address fails, its result will contain an `error` field
|
|
80
|
+
* rather than a `verifiedAddress`.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* const response =
|
|
85
|
+
* await client.addressVerification.batchVerification({
|
|
86
|
+
* addresses: [{ address: 'address' }],
|
|
87
|
+
* });
|
|
88
|
+
* ```
|
|
89
|
+
*/
|
|
90
|
+
batchVerification(
|
|
91
|
+
params: AddressVerificationBatchVerificationParams,
|
|
92
|
+
options?: RequestOptions,
|
|
93
|
+
): APIPromise<AddressVerificationBatchVerificationResponse> {
|
|
94
|
+
const { geocode, includeDetails, properCase, ...body } = params;
|
|
95
|
+
return this._client.post('/v1/addver/verifications/batch', {
|
|
96
|
+
query: { geocode, includeDetails, properCase },
|
|
97
|
+
body,
|
|
98
|
+
...options,
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Returns address completion previews for a partial street address, suitable for
|
|
104
|
+
* populating an autocomplete dropdown without consuming a lookup per keystroke.
|
|
105
|
+
*
|
|
106
|
+
* Each result contains a partial address preview (street, city, and — for non-US
|
|
107
|
+
* addresses — only the first 3 digits of the postal code, to avoid revealing the
|
|
108
|
+
* full code before a lookup is charged).
|
|
109
|
+
*
|
|
110
|
+
* - Does not consume a lookup.
|
|
111
|
+
* - Use `POST /completions` to resolve a full address once the user selects a
|
|
112
|
+
* result.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* ```ts
|
|
116
|
+
* const response =
|
|
117
|
+
* await client.addressVerification.getAutocompletePreviews({
|
|
118
|
+
* partialStreet: 'partialStreet',
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
getAutocompletePreviews(
|
|
123
|
+
query: AddressVerificationGetAutocompletePreviewsParams,
|
|
124
|
+
options?: RequestOptions,
|
|
125
|
+
): APIPromise<AddressVerificationGetAutocompletePreviewsResponse> {
|
|
126
|
+
return this._client.get('/v1/addver/completions', { query, ...options });
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Returns your organization's current lookup usage and plan information. Useful
|
|
131
|
+
* for checking how many lookups you have consumed and whether you are on a paid
|
|
132
|
+
* plan.
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* ```ts
|
|
136
|
+
* const response =
|
|
137
|
+
* await client.addressVerification.getLookupInfo();
|
|
138
|
+
* ```
|
|
139
|
+
*/
|
|
140
|
+
getLookupInfo(options?: RequestOptions): APIPromise<AddressVerificationGetLookupInfoResponse> {
|
|
141
|
+
return this._client.get('/v1/addver/', options);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Looks up city, county, and other location metadata for a given US or Canadian
|
|
146
|
+
* postal code or ZIP code.
|
|
147
|
+
*
|
|
148
|
+
* A single postal code may map to multiple cities (e.g. a ZIP that spans several
|
|
149
|
+
* towns), so the response is an array.
|
|
150
|
+
*
|
|
151
|
+
* - Uses 1 lookup.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* ```ts
|
|
155
|
+
* const response =
|
|
156
|
+
* await client.addressVerification.lookupCityOrStateFromPostalOrZipCode(
|
|
157
|
+
* { postalOrZip: 'postalOrZip' },
|
|
158
|
+
* );
|
|
159
|
+
* ```
|
|
160
|
+
*/
|
|
161
|
+
lookupCityOrStateFromPostalOrZipCode(
|
|
162
|
+
body: AddressVerificationLookupCityOrStateFromPostalOrZipCodeParams,
|
|
163
|
+
options?: RequestOptions,
|
|
164
|
+
): APIPromise<AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse> {
|
|
165
|
+
return this._client.post('/v1/addver/city_states', { body, ...options });
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Looks up all ZIP codes that correspond to a given US city and state.
|
|
170
|
+
*
|
|
171
|
+
* - Currently only supported for US addresses (`countryCode: "US"`).
|
|
172
|
+
* - Uses 1 lookup.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* const response =
|
|
177
|
+
* await client.addressVerification.lookupZipCodeFromCityOrState(
|
|
178
|
+
* {
|
|
179
|
+
* city: 'city',
|
|
180
|
+
* countryCode: 'countryCode',
|
|
181
|
+
* state: 'state',
|
|
182
|
+
* },
|
|
183
|
+
* );
|
|
184
|
+
* ```
|
|
185
|
+
*/
|
|
186
|
+
lookupZipCodeFromCityOrState(
|
|
187
|
+
body: AddressVerificationLookupZipCodeFromCityOrStateParams,
|
|
188
|
+
options?: RequestOptions,
|
|
189
|
+
): APIPromise<AddressVerificationLookupZipCodeFromCityOrStateResponse> {
|
|
190
|
+
return this._client.post('/v1/addver/zip_codes', { body, ...options });
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Parses a freeform address string into its individual components (house number,
|
|
195
|
+
* street name, city, state, postal code, etc.).
|
|
196
|
+
*
|
|
197
|
+
* Useful for extracting structured data from a single-line address without running
|
|
198
|
+
* a full verification.
|
|
199
|
+
*
|
|
200
|
+
* - Uses 1 lookup.
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* ```ts
|
|
204
|
+
* const response =
|
|
205
|
+
* await client.addressVerification.parseAnAddress({
|
|
206
|
+
* address: 'address',
|
|
207
|
+
* });
|
|
208
|
+
* ```
|
|
209
|
+
*/
|
|
210
|
+
parseAnAddress(
|
|
211
|
+
body: AddressVerificationParseAnAddressParams,
|
|
212
|
+
options?: RequestOptions,
|
|
213
|
+
): APIPromise<AddressVerificationParseAnAddressResponse> {
|
|
214
|
+
return this._client.post('/v1/addver/parses', { body, ...options });
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* Returns up to 3 verified address suggestions for a given input address.
|
|
219
|
+
*
|
|
220
|
+
* Useful as a fallback when `POST /verifications` returns a `failed` status —
|
|
221
|
+
* suggestions represent the closest matches found and may help the user identify
|
|
222
|
+
* the correct address.
|
|
223
|
+
*
|
|
224
|
+
* Accepts the same freeform or structured input formats as `POST /verifications`.
|
|
225
|
+
*
|
|
226
|
+
* - Uses 1 lookup per call (plus 1 more if geocoding).
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```ts
|
|
230
|
+
* const response =
|
|
231
|
+
* await client.addressVerification.suggestAddresses({
|
|
232
|
+
* address: '1234 Elm St, Los Angeles, CA 90001, US',
|
|
233
|
+
* });
|
|
234
|
+
* ```
|
|
235
|
+
*/
|
|
236
|
+
suggestAddresses(
|
|
237
|
+
params: AddressVerificationSuggestAddressesParams,
|
|
238
|
+
options?: RequestOptions,
|
|
239
|
+
): APIPromise<AddressVerificationSuggestAddressesResponse> {
|
|
240
|
+
const { geocode, includeDetails, properCase, ...body } = params;
|
|
241
|
+
return this._client.post('/v1/addver/suggestions', {
|
|
242
|
+
query: { geocode, includeDetails, properCase },
|
|
243
|
+
body,
|
|
244
|
+
...options,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
|
|
9
248
|
/**
|
|
10
249
|
* 1. **Structured Address** — Verify and standardize a structured address (e.g.,
|
|
11
250
|
* with `line1`, `city`, etc.).
|
|
@@ -52,27 +291,1634 @@ export interface Errors {
|
|
|
52
291
|
*/
|
|
53
292
|
generic?: Array<string>;
|
|
54
293
|
|
|
55
|
-
/**
|
|
56
|
-
* Errors related to the first address line.
|
|
57
|
-
*/
|
|
58
|
-
line1?: Array<string>;
|
|
294
|
+
/**
|
|
295
|
+
* Errors related to the first address line.
|
|
296
|
+
*/
|
|
297
|
+
line1?: Array<string>;
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Errors related to the second address line.
|
|
301
|
+
*/
|
|
302
|
+
line2?: Array<string>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Errors related to the postal or ZIP code.
|
|
306
|
+
*/
|
|
307
|
+
postalOrZip?: Array<string>;
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Errors related to the province or state.
|
|
311
|
+
*/
|
|
312
|
+
provinceOrState?: Array<string>;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* The verification status of an address.
|
|
317
|
+
*/
|
|
318
|
+
export type Status = 'verified' | 'corrected' | 'failed';
|
|
319
|
+
|
|
320
|
+
export interface AddressVerificationAutocompleteResponse {
|
|
321
|
+
data:
|
|
322
|
+
| AddressVerificationAutocompleteResponse.CompletedAddressItem
|
|
323
|
+
| Array<AddressVerificationAutocompleteResponse.UnionMember1>
|
|
324
|
+
| AddressVerificationAutocompleteResponse.StandardVerifiedAddress;
|
|
325
|
+
|
|
326
|
+
message: string;
|
|
327
|
+
|
|
328
|
+
status: 'success' | 'error';
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export namespace AddressVerificationAutocompleteResponse {
|
|
332
|
+
export interface CompletedAddressItem {
|
|
333
|
+
/**
|
|
334
|
+
* The resolved address components.
|
|
335
|
+
*/
|
|
336
|
+
address: CompletedAddressItem.Address;
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Errors encountered during address verification.
|
|
340
|
+
*/
|
|
341
|
+
errors?: AddressVerificationAPI.Errors;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Geocoding result. Only present when `geocode=true` is supplied and an `index` is
|
|
345
|
+
* specified.
|
|
346
|
+
*/
|
|
347
|
+
geocodeResult?: CompletedAddressItem.GeocodeResult;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export namespace CompletedAddressItem {
|
|
351
|
+
/**
|
|
352
|
+
* The resolved address components.
|
|
353
|
+
*/
|
|
354
|
+
export interface Address {
|
|
355
|
+
/**
|
|
356
|
+
* The first line of the address.
|
|
357
|
+
*/
|
|
358
|
+
address: string;
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* The second line of the address.
|
|
362
|
+
*/
|
|
363
|
+
address2?: string;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* The city.
|
|
367
|
+
*/
|
|
368
|
+
city?: string;
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* The ISO 2-letter country code.
|
|
372
|
+
*/
|
|
373
|
+
country?: string;
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* The postal code.
|
|
377
|
+
*/
|
|
378
|
+
pc?: string;
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* The province or state abbreviation.
|
|
382
|
+
*/
|
|
383
|
+
prov?: string;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Geocoding result. Only present when `geocode=true` is supplied and an `index` is
|
|
388
|
+
* specified.
|
|
389
|
+
*/
|
|
390
|
+
export interface GeocodeResult {
|
|
391
|
+
/**
|
|
392
|
+
* A real number from 0.00 to 1.00 which represents an
|
|
393
|
+
* [accuracy score](https://avdocs.postgrid.com/#accuracy-score)
|
|
394
|
+
*/
|
|
395
|
+
accuracy: number;
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* A string representing the
|
|
399
|
+
* [accuracy type](https://avdocs.postgrid.com/#accuracy-type)
|
|
400
|
+
*/
|
|
401
|
+
accuracyType:
|
|
402
|
+
| 'rooftop'
|
|
403
|
+
| 'point'
|
|
404
|
+
| 'range_interpolation'
|
|
405
|
+
| 'nearest_rooftop_match'
|
|
406
|
+
| 'intersection'
|
|
407
|
+
| 'street_center'
|
|
408
|
+
| 'place'
|
|
409
|
+
| 'state';
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
413
|
+
*/
|
|
414
|
+
location: GeocodeResult.Location;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
export namespace GeocodeResult {
|
|
418
|
+
/**
|
|
419
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
420
|
+
*/
|
|
421
|
+
export interface Location {
|
|
422
|
+
lat: number;
|
|
423
|
+
|
|
424
|
+
lng: number;
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface UnionMember1 {
|
|
430
|
+
/**
|
|
431
|
+
* The resolved address components.
|
|
432
|
+
*/
|
|
433
|
+
address: UnionMember1.Address;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* Errors encountered during address verification.
|
|
437
|
+
*/
|
|
438
|
+
errors?: AddressVerificationAPI.Errors;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* Geocoding result. Only present when `geocode=true` is supplied and an `index` is
|
|
442
|
+
* specified.
|
|
443
|
+
*/
|
|
444
|
+
geocodeResult?: UnionMember1.GeocodeResult;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export namespace UnionMember1 {
|
|
448
|
+
/**
|
|
449
|
+
* The resolved address components.
|
|
450
|
+
*/
|
|
451
|
+
export interface Address {
|
|
452
|
+
/**
|
|
453
|
+
* The first line of the address.
|
|
454
|
+
*/
|
|
455
|
+
address: string;
|
|
456
|
+
|
|
457
|
+
/**
|
|
458
|
+
* The second line of the address.
|
|
459
|
+
*/
|
|
460
|
+
address2?: string;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The city.
|
|
464
|
+
*/
|
|
465
|
+
city?: string;
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* The ISO 2-letter country code.
|
|
469
|
+
*/
|
|
470
|
+
country?: string;
|
|
471
|
+
|
|
472
|
+
/**
|
|
473
|
+
* The postal code.
|
|
474
|
+
*/
|
|
475
|
+
pc?: string;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* The province or state abbreviation.
|
|
479
|
+
*/
|
|
480
|
+
prov?: string;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* Geocoding result. Only present when `geocode=true` is supplied and an `index` is
|
|
485
|
+
* specified.
|
|
486
|
+
*/
|
|
487
|
+
export interface GeocodeResult {
|
|
488
|
+
/**
|
|
489
|
+
* A real number from 0.00 to 1.00 which represents an
|
|
490
|
+
* [accuracy score](https://avdocs.postgrid.com/#accuracy-score)
|
|
491
|
+
*/
|
|
492
|
+
accuracy: number;
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* A string representing the
|
|
496
|
+
* [accuracy type](https://avdocs.postgrid.com/#accuracy-type)
|
|
497
|
+
*/
|
|
498
|
+
accuracyType:
|
|
499
|
+
| 'rooftop'
|
|
500
|
+
| 'point'
|
|
501
|
+
| 'range_interpolation'
|
|
502
|
+
| 'nearest_rooftop_match'
|
|
503
|
+
| 'intersection'
|
|
504
|
+
| 'street_center'
|
|
505
|
+
| 'place'
|
|
506
|
+
| 'state';
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
510
|
+
*/
|
|
511
|
+
location: GeocodeResult.Location;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
export namespace GeocodeResult {
|
|
515
|
+
/**
|
|
516
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
517
|
+
*/
|
|
518
|
+
export interface Location {
|
|
519
|
+
lat: number;
|
|
520
|
+
|
|
521
|
+
lng: number;
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface StandardVerifiedAddress {
|
|
527
|
+
/**
|
|
528
|
+
* The city name of the address.
|
|
529
|
+
*/
|
|
530
|
+
city: string;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* The country code of the address.
|
|
534
|
+
*/
|
|
535
|
+
country: string;
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* The first line of the address.
|
|
539
|
+
*/
|
|
540
|
+
line1: string;
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* The postal code or ZIP code of the address.
|
|
544
|
+
*/
|
|
545
|
+
postalOrZip: string;
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* The province or state of the address.
|
|
549
|
+
*/
|
|
550
|
+
provinceOrState: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The country name of the address.
|
|
554
|
+
*/
|
|
555
|
+
countryName?: string;
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
559
|
+
* an additional `details` field that follows the
|
|
560
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
561
|
+
*/
|
|
562
|
+
details?: StandardVerifiedAddress.Details;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* Errors encountered during address verification.
|
|
566
|
+
*/
|
|
567
|
+
errors?: AddressVerificationAPI.Errors;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* The firm name of the address.
|
|
571
|
+
*/
|
|
572
|
+
firmName?: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
576
|
+
* geocodeResult which follows the
|
|
577
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
578
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
579
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
580
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
581
|
+
*/
|
|
582
|
+
geocodeResult?: StandardVerifiedAddress.GeocodeResult;
|
|
583
|
+
|
|
584
|
+
/**
|
|
585
|
+
* The second line of the address.
|
|
586
|
+
*/
|
|
587
|
+
line2?: string;
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* The full name of the province or state.
|
|
591
|
+
*/
|
|
592
|
+
provinceOrStateName?: string;
|
|
593
|
+
|
|
594
|
+
/**
|
|
595
|
+
* The verification status of an address.
|
|
596
|
+
*/
|
|
597
|
+
status?: AddressVerificationAPI.Status;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* The zip plus 4 code of the address.
|
|
601
|
+
*/
|
|
602
|
+
zipPlus4?: string;
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
export namespace StandardVerifiedAddress {
|
|
606
|
+
/**
|
|
607
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
608
|
+
* an additional `details` field that follows the
|
|
609
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
610
|
+
*/
|
|
611
|
+
export interface Details {
|
|
612
|
+
/**
|
|
613
|
+
* PO Box ID
|
|
614
|
+
*/
|
|
615
|
+
boxID?: string;
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* County in the United States (US address only)
|
|
619
|
+
*/
|
|
620
|
+
county?: string;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* FIPS code for county (US address only)
|
|
624
|
+
*/
|
|
625
|
+
countyNum?: string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Delivery installation area name
|
|
629
|
+
*/
|
|
630
|
+
deliveryInstallationAreaName?: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Delivery installation qualifier
|
|
634
|
+
*/
|
|
635
|
+
deliveryInstallationQualifier?: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Delivery installation type
|
|
639
|
+
*/
|
|
640
|
+
deliveryInstallationType?: string;
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Any extra information relevant to the address
|
|
644
|
+
*/
|
|
645
|
+
extraInfo?: string;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* The post-direction of the street (after the street name, US addresses only)
|
|
649
|
+
*/
|
|
650
|
+
postDirection?: string;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* The pre-direction of the street (before the street name, US addresses only)
|
|
654
|
+
*/
|
|
655
|
+
preDirection?: string;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Indicates that the address is residential (US address only)
|
|
659
|
+
*/
|
|
660
|
+
residential?: boolean;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* Rural route number
|
|
664
|
+
*/
|
|
665
|
+
ruralRouteNumber?: string;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* Rural route type
|
|
669
|
+
*/
|
|
670
|
+
ruralRouteType?: string;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* The direction of the street (N, S, E, W, etc)
|
|
674
|
+
*/
|
|
675
|
+
streetDirection?: string;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Name of the street where the address is located
|
|
679
|
+
*/
|
|
680
|
+
streetName?: string;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Street number (e.g. the 20 in 20 Bay St)
|
|
684
|
+
*/
|
|
685
|
+
streetNumber?: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Type of the street (DR, ST, BLVD, etc)
|
|
689
|
+
*/
|
|
690
|
+
streetType?: string;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* The unit number/name
|
|
694
|
+
*/
|
|
695
|
+
suiteID?: string;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* The suite key
|
|
699
|
+
*/
|
|
700
|
+
suiteKey?: string;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* US Census block number
|
|
704
|
+
*/
|
|
705
|
+
usCensusBlockNumber?: string;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* US Census consolidated metropolitan statistical area
|
|
709
|
+
*/
|
|
710
|
+
usCensusCMSA?: string;
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* US Census FIPS code (US address only)
|
|
714
|
+
*/
|
|
715
|
+
usCensusFIPS?: string;
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* US Census metropolitan area
|
|
719
|
+
*/
|
|
720
|
+
usCensusMA?: string;
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* US Census metropolitan statistical area
|
|
724
|
+
*/
|
|
725
|
+
usCensusMSA?: string;
|
|
726
|
+
|
|
727
|
+
/**
|
|
728
|
+
* US Census primary metropolitan statistical area
|
|
729
|
+
*/
|
|
730
|
+
usCensusPMSA?: string;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* US Census tract number
|
|
734
|
+
*/
|
|
735
|
+
usCensusTractNumber?: string;
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* US congressional district number
|
|
739
|
+
*/
|
|
740
|
+
usCongressionalDistrictNumber?: string;
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* True if address location recognizes DST
|
|
744
|
+
*/
|
|
745
|
+
usHasDaylightSavings?: boolean;
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* PostNet barcode digit
|
|
749
|
+
*/
|
|
750
|
+
usMailingCheckDigit?: string;
|
|
751
|
+
|
|
752
|
+
/**
|
|
753
|
+
* 4-character code assigned to mail delivery route within a 5 digit zip code
|
|
754
|
+
*/
|
|
755
|
+
usMailingsCarrierRoute?: string;
|
|
756
|
+
|
|
757
|
+
/**
|
|
758
|
+
* True if US address matches a high-rise default or rural route default in the
|
|
759
|
+
* USPS data
|
|
760
|
+
*/
|
|
761
|
+
usMailingsDefaultFlag?: boolean;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Unique USPS identifier for the delivery point
|
|
765
|
+
*/
|
|
766
|
+
usMailingsDeliveryPoint?: string;
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
770
|
+
*/
|
|
771
|
+
usMailingsDpvConfirmationIndicator?: string;
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* Y if this is a commercial mail receiving agency, N otherwise
|
|
775
|
+
*/
|
|
776
|
+
usMailingsDpvCrmaIndicator?: string;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
780
|
+
*/
|
|
781
|
+
usMailingsDpvFootnote1?: string;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
785
|
+
*/
|
|
786
|
+
usMailingsDpvFootnote2?: string;
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
790
|
+
*/
|
|
791
|
+
usMailingsDpvFootnote3?: string;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* A for ascending, D for descending
|
|
795
|
+
*/
|
|
796
|
+
usMailingsElotAscDesc?: string;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* eLOT sequence number
|
|
800
|
+
*/
|
|
801
|
+
usMailingsElotSequenceNumber?: string;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Y if address is in early warning system database
|
|
805
|
+
*/
|
|
806
|
+
usMailingsEWSFlag?: string;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Y if address converted by LACS
|
|
810
|
+
*/
|
|
811
|
+
usMailingsLACSFlag?: string;
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Corresponds to USPS LACSLink return code
|
|
815
|
+
*/
|
|
816
|
+
usMailingsLACSReturnCode?: string;
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
820
|
+
*/
|
|
821
|
+
usMailingsRecordTypeCode?: string;
|
|
822
|
+
|
|
823
|
+
/**
|
|
824
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
825
|
+
*/
|
|
826
|
+
usMailingsSuiteLinkReturnCode?: string;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* PostNet barcode for the address (US address only)
|
|
830
|
+
*/
|
|
831
|
+
usPostnetBarcode?: string;
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Lower legislative district for the US address
|
|
835
|
+
*/
|
|
836
|
+
usStateLegislativeLower?: string;
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Upper legislative district for the US address
|
|
840
|
+
*/
|
|
841
|
+
usStateLegislativeUpper?: string;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Time zone for the US address area
|
|
845
|
+
*/
|
|
846
|
+
usTimeZone?: string;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Indicates that the address is vacant according to the USPS (US address only)
|
|
850
|
+
*/
|
|
851
|
+
vacant?: boolean;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
856
|
+
* geocodeResult which follows the
|
|
857
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
858
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
859
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
860
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
861
|
+
*/
|
|
862
|
+
export interface GeocodeResult {
|
|
863
|
+
/**
|
|
864
|
+
* A real number from 0.00 to 1.00 which represents an
|
|
865
|
+
* [accuracy score](https://avdocs.postgrid.com/#accuracy-score)
|
|
866
|
+
*/
|
|
867
|
+
accuracy: number;
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* A string representing the
|
|
871
|
+
* [accuracy type](https://avdocs.postgrid.com/#accuracy-type)
|
|
872
|
+
*/
|
|
873
|
+
accuracyType:
|
|
874
|
+
| 'rooftop'
|
|
875
|
+
| 'point'
|
|
876
|
+
| 'range_interpolation'
|
|
877
|
+
| 'nearest_rooftop_match'
|
|
878
|
+
| 'intersection'
|
|
879
|
+
| 'street_center'
|
|
880
|
+
| 'place'
|
|
881
|
+
| 'state';
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
885
|
+
*/
|
|
886
|
+
location: GeocodeResult.Location;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export namespace GeocodeResult {
|
|
890
|
+
/**
|
|
891
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
892
|
+
*/
|
|
893
|
+
export interface Location {
|
|
894
|
+
lat: number;
|
|
895
|
+
|
|
896
|
+
lng: number;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
export interface AddressVerificationBatchVerificationResponse {
|
|
903
|
+
data: AddressVerificationBatchVerificationResponse.Data;
|
|
904
|
+
|
|
905
|
+
message: string;
|
|
906
|
+
|
|
907
|
+
status: 'success' | 'error';
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
export namespace AddressVerificationBatchVerificationResponse {
|
|
911
|
+
export interface Data {
|
|
912
|
+
results: Array<Data.Result>;
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
export namespace Data {
|
|
916
|
+
export interface Result {
|
|
917
|
+
/**
|
|
918
|
+
* An error message for this address. Present when verification failed.
|
|
919
|
+
*/
|
|
920
|
+
error?: string;
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* The verified address result. Present when verification succeeded.
|
|
924
|
+
*/
|
|
925
|
+
verifiedAddress?: Result.VerifiedAddress;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
export namespace Result {
|
|
929
|
+
/**
|
|
930
|
+
* The verified address result. Present when verification succeeded.
|
|
931
|
+
*/
|
|
932
|
+
export interface VerifiedAddress {
|
|
933
|
+
/**
|
|
934
|
+
* The city name of the address.
|
|
935
|
+
*/
|
|
936
|
+
city: string;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* The country code of the address.
|
|
940
|
+
*/
|
|
941
|
+
country: string;
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* The first line of the address.
|
|
945
|
+
*/
|
|
946
|
+
line1: string;
|
|
947
|
+
|
|
948
|
+
/**
|
|
949
|
+
* The postal code or ZIP code of the address.
|
|
950
|
+
*/
|
|
951
|
+
postalOrZip: string;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* The province or state of the address.
|
|
955
|
+
*/
|
|
956
|
+
provinceOrState: string;
|
|
957
|
+
|
|
958
|
+
/**
|
|
959
|
+
* The country name of the address.
|
|
960
|
+
*/
|
|
961
|
+
countryName?: string;
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
965
|
+
* an additional `details` field that follows the
|
|
966
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
967
|
+
*/
|
|
968
|
+
details?: VerifiedAddress.Details;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Errors encountered during address verification.
|
|
972
|
+
*/
|
|
973
|
+
errors?: AddressVerificationAPI.Errors;
|
|
974
|
+
|
|
975
|
+
/**
|
|
976
|
+
* The firm name of the address.
|
|
977
|
+
*/
|
|
978
|
+
firmName?: string;
|
|
979
|
+
|
|
980
|
+
/**
|
|
981
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
982
|
+
* geocodeResult which follows the
|
|
983
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
984
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
985
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
986
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
987
|
+
*/
|
|
988
|
+
geocodeResult?: VerifiedAddress.GeocodeResult;
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* The second line of the address.
|
|
992
|
+
*/
|
|
993
|
+
line2?: string;
|
|
994
|
+
|
|
995
|
+
/**
|
|
996
|
+
* The full name of the province or state.
|
|
997
|
+
*/
|
|
998
|
+
provinceOrStateName?: string;
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
* The verification status of an address.
|
|
1002
|
+
*/
|
|
1003
|
+
status?: AddressVerificationAPI.Status;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* The zip plus 4 code of the address.
|
|
1007
|
+
*/
|
|
1008
|
+
zipPlus4?: string;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
export namespace VerifiedAddress {
|
|
1012
|
+
/**
|
|
1013
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
1014
|
+
* an additional `details` field that follows the
|
|
1015
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
1016
|
+
*/
|
|
1017
|
+
export interface Details {
|
|
1018
|
+
/**
|
|
1019
|
+
* PO Box ID
|
|
1020
|
+
*/
|
|
1021
|
+
boxID?: string;
|
|
1022
|
+
|
|
1023
|
+
/**
|
|
1024
|
+
* County in the United States (US address only)
|
|
1025
|
+
*/
|
|
1026
|
+
county?: string;
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* FIPS code for county (US address only)
|
|
1030
|
+
*/
|
|
1031
|
+
countyNum?: string;
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Delivery installation area name
|
|
1035
|
+
*/
|
|
1036
|
+
deliveryInstallationAreaName?: string;
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Delivery installation qualifier
|
|
1040
|
+
*/
|
|
1041
|
+
deliveryInstallationQualifier?: string;
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Delivery installation type
|
|
1045
|
+
*/
|
|
1046
|
+
deliveryInstallationType?: string;
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Any extra information relevant to the address
|
|
1050
|
+
*/
|
|
1051
|
+
extraInfo?: string;
|
|
1052
|
+
|
|
1053
|
+
/**
|
|
1054
|
+
* The post-direction of the street (after the street name, US addresses only)
|
|
1055
|
+
*/
|
|
1056
|
+
postDirection?: string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* The pre-direction of the street (before the street name, US addresses only)
|
|
1060
|
+
*/
|
|
1061
|
+
preDirection?: string;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Indicates that the address is residential (US address only)
|
|
1065
|
+
*/
|
|
1066
|
+
residential?: boolean;
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Rural route number
|
|
1070
|
+
*/
|
|
1071
|
+
ruralRouteNumber?: string;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Rural route type
|
|
1075
|
+
*/
|
|
1076
|
+
ruralRouteType?: string;
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* The direction of the street (N, S, E, W, etc)
|
|
1080
|
+
*/
|
|
1081
|
+
streetDirection?: string;
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Name of the street where the address is located
|
|
1085
|
+
*/
|
|
1086
|
+
streetName?: string;
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Street number (e.g. the 20 in 20 Bay St)
|
|
1090
|
+
*/
|
|
1091
|
+
streetNumber?: string;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Type of the street (DR, ST, BLVD, etc)
|
|
1095
|
+
*/
|
|
1096
|
+
streetType?: string;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* The unit number/name
|
|
1100
|
+
*/
|
|
1101
|
+
suiteID?: string;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* The suite key
|
|
1105
|
+
*/
|
|
1106
|
+
suiteKey?: string;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* US Census block number
|
|
1110
|
+
*/
|
|
1111
|
+
usCensusBlockNumber?: string;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* US Census consolidated metropolitan statistical area
|
|
1115
|
+
*/
|
|
1116
|
+
usCensusCMSA?: string;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* US Census FIPS code (US address only)
|
|
1120
|
+
*/
|
|
1121
|
+
usCensusFIPS?: string;
|
|
1122
|
+
|
|
1123
|
+
/**
|
|
1124
|
+
* US Census metropolitan area
|
|
1125
|
+
*/
|
|
1126
|
+
usCensusMA?: string;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* US Census metropolitan statistical area
|
|
1130
|
+
*/
|
|
1131
|
+
usCensusMSA?: string;
|
|
1132
|
+
|
|
1133
|
+
/**
|
|
1134
|
+
* US Census primary metropolitan statistical area
|
|
1135
|
+
*/
|
|
1136
|
+
usCensusPMSA?: string;
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* US Census tract number
|
|
1140
|
+
*/
|
|
1141
|
+
usCensusTractNumber?: string;
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* US congressional district number
|
|
1145
|
+
*/
|
|
1146
|
+
usCongressionalDistrictNumber?: string;
|
|
1147
|
+
|
|
1148
|
+
/**
|
|
1149
|
+
* True if address location recognizes DST
|
|
1150
|
+
*/
|
|
1151
|
+
usHasDaylightSavings?: boolean;
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* PostNet barcode digit
|
|
1155
|
+
*/
|
|
1156
|
+
usMailingCheckDigit?: string;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* 4-character code assigned to mail delivery route within a 5 digit zip code
|
|
1160
|
+
*/
|
|
1161
|
+
usMailingsCarrierRoute?: string;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* True if US address matches a high-rise default or rural route default in the
|
|
1165
|
+
* USPS data
|
|
1166
|
+
*/
|
|
1167
|
+
usMailingsDefaultFlag?: boolean;
|
|
1168
|
+
|
|
1169
|
+
/**
|
|
1170
|
+
* Unique USPS identifier for the delivery point
|
|
1171
|
+
*/
|
|
1172
|
+
usMailingsDeliveryPoint?: string;
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1176
|
+
*/
|
|
1177
|
+
usMailingsDpvConfirmationIndicator?: string;
|
|
1178
|
+
|
|
1179
|
+
/**
|
|
1180
|
+
* Y if this is a commercial mail receiving agency, N otherwise
|
|
1181
|
+
*/
|
|
1182
|
+
usMailingsDpvCrmaIndicator?: string;
|
|
1183
|
+
|
|
1184
|
+
/**
|
|
1185
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1186
|
+
*/
|
|
1187
|
+
usMailingsDpvFootnote1?: string;
|
|
1188
|
+
|
|
1189
|
+
/**
|
|
1190
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1191
|
+
*/
|
|
1192
|
+
usMailingsDpvFootnote2?: string;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1196
|
+
*/
|
|
1197
|
+
usMailingsDpvFootnote3?: string;
|
|
1198
|
+
|
|
1199
|
+
/**
|
|
1200
|
+
* A for ascending, D for descending
|
|
1201
|
+
*/
|
|
1202
|
+
usMailingsElotAscDesc?: string;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* eLOT sequence number
|
|
1206
|
+
*/
|
|
1207
|
+
usMailingsElotSequenceNumber?: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Y if address is in early warning system database
|
|
1211
|
+
*/
|
|
1212
|
+
usMailingsEWSFlag?: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* Y if address converted by LACS
|
|
1216
|
+
*/
|
|
1217
|
+
usMailingsLACSFlag?: string;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* Corresponds to USPS LACSLink return code
|
|
1221
|
+
*/
|
|
1222
|
+
usMailingsLACSReturnCode?: string;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1226
|
+
*/
|
|
1227
|
+
usMailingsRecordTypeCode?: string;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1231
|
+
*/
|
|
1232
|
+
usMailingsSuiteLinkReturnCode?: string;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* PostNet barcode for the address (US address only)
|
|
1236
|
+
*/
|
|
1237
|
+
usPostnetBarcode?: string;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Lower legislative district for the US address
|
|
1241
|
+
*/
|
|
1242
|
+
usStateLegislativeLower?: string;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* Upper legislative district for the US address
|
|
1246
|
+
*/
|
|
1247
|
+
usStateLegislativeUpper?: string;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Time zone for the US address area
|
|
1251
|
+
*/
|
|
1252
|
+
usTimeZone?: string;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Indicates that the address is vacant according to the USPS (US address only)
|
|
1256
|
+
*/
|
|
1257
|
+
vacant?: boolean;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
1262
|
+
* geocodeResult which follows the
|
|
1263
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
1264
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
1265
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
1266
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
1267
|
+
*/
|
|
1268
|
+
export interface GeocodeResult {
|
|
1269
|
+
/**
|
|
1270
|
+
* A real number from 0.00 to 1.00 which represents an
|
|
1271
|
+
* [accuracy score](https://avdocs.postgrid.com/#accuracy-score)
|
|
1272
|
+
*/
|
|
1273
|
+
accuracy: number;
|
|
1274
|
+
|
|
1275
|
+
/**
|
|
1276
|
+
* A string representing the
|
|
1277
|
+
* [accuracy type](https://avdocs.postgrid.com/#accuracy-type)
|
|
1278
|
+
*/
|
|
1279
|
+
accuracyType:
|
|
1280
|
+
| 'rooftop'
|
|
1281
|
+
| 'point'
|
|
1282
|
+
| 'range_interpolation'
|
|
1283
|
+
| 'nearest_rooftop_match'
|
|
1284
|
+
| 'intersection'
|
|
1285
|
+
| 'street_center'
|
|
1286
|
+
| 'place'
|
|
1287
|
+
| 'state';
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
1291
|
+
*/
|
|
1292
|
+
location: GeocodeResult.Location;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
export namespace GeocodeResult {
|
|
1296
|
+
/**
|
|
1297
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
1298
|
+
*/
|
|
1299
|
+
export interface Location {
|
|
1300
|
+
lat: number;
|
|
1301
|
+
|
|
1302
|
+
lng: number;
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
export interface AddressVerificationGetAutocompletePreviewsResponse {
|
|
1311
|
+
data: Array<AddressVerificationGetAutocompletePreviewsResponse.Data>;
|
|
1312
|
+
|
|
1313
|
+
message: string;
|
|
1314
|
+
|
|
1315
|
+
status: 'success' | 'error';
|
|
1316
|
+
}
|
|
1317
|
+
|
|
1318
|
+
export namespace AddressVerificationGetAutocompletePreviewsResponse {
|
|
1319
|
+
export interface Data {
|
|
1320
|
+
/**
|
|
1321
|
+
* A partial view of the address, suitable for display in an autocomplete dropdown.
|
|
1322
|
+
*/
|
|
1323
|
+
preview: Data.Preview;
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
export namespace Data {
|
|
1327
|
+
/**
|
|
1328
|
+
* A partial view of the address, suitable for display in an autocomplete dropdown.
|
|
1329
|
+
*/
|
|
1330
|
+
export interface Preview {
|
|
1331
|
+
/**
|
|
1332
|
+
* The street address line.
|
|
1333
|
+
*/
|
|
1334
|
+
address: string;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* The city.
|
|
1338
|
+
*/
|
|
1339
|
+
city?: string;
|
|
1340
|
+
|
|
1341
|
+
/**
|
|
1342
|
+
* For US addresses, the full postal code. For non-US addresses, only the first 3
|
|
1343
|
+
* digits are returned to avoid consuming a lookup.
|
|
1344
|
+
*/
|
|
1345
|
+
pc?: string;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* The province or state abbreviation. Returned instead of `pc` when
|
|
1349
|
+
* `provInsteadOfPC=true`.
|
|
1350
|
+
*/
|
|
1351
|
+
prov?: string;
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
export interface AddressVerificationGetLookupInfoResponse {
|
|
1357
|
+
data: AddressVerificationGetLookupInfoResponse.Data;
|
|
1358
|
+
|
|
1359
|
+
message: string;
|
|
1360
|
+
|
|
1361
|
+
status: 'success' | 'error';
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
export namespace AddressVerificationGetLookupInfoResponse {
|
|
1365
|
+
export interface Data {
|
|
1366
|
+
/**
|
|
1367
|
+
* The maximum number of lookups allowed in the current billing period. `null`
|
|
1368
|
+
* indicates an unlimited plan.
|
|
1369
|
+
*/
|
|
1370
|
+
freeLimit: number | null;
|
|
1371
|
+
|
|
1372
|
+
/**
|
|
1373
|
+
* The number of lookups consumed in the current billing period.
|
|
1374
|
+
*/
|
|
1375
|
+
used: number;
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
export interface AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse {
|
|
1380
|
+
data: Array<AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse.Data>;
|
|
1381
|
+
|
|
1382
|
+
message: string;
|
|
1383
|
+
|
|
1384
|
+
status: 'success' | 'error';
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
export namespace AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse {
|
|
1388
|
+
export interface Data {
|
|
1389
|
+
/**
|
|
1390
|
+
* The city name.
|
|
1391
|
+
*/
|
|
1392
|
+
city: string;
|
|
1393
|
+
|
|
1394
|
+
/**
|
|
1395
|
+
* The ISO 2-letter country code.
|
|
1396
|
+
*/
|
|
1397
|
+
country: string;
|
|
1398
|
+
|
|
1399
|
+
/**
|
|
1400
|
+
* The province or state abbreviation.
|
|
1401
|
+
*/
|
|
1402
|
+
provinceOrState: string;
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* The county name (US addresses only).
|
|
1406
|
+
*/
|
|
1407
|
+
county?: string;
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* The FIPS code for the county (US addresses only).
|
|
1411
|
+
*/
|
|
1412
|
+
countyFIPS?: string;
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* Whether the location is mailable.
|
|
1416
|
+
*/
|
|
1417
|
+
mailable?: boolean;
|
|
1418
|
+
|
|
1419
|
+
/**
|
|
1420
|
+
* The USPS preferred city name for this postal code.
|
|
1421
|
+
*/
|
|
1422
|
+
preferredCity?: string;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* The USPS ZIP code class (e.g. `S` for standard, `P` for PO Box only).
|
|
1426
|
+
*/
|
|
1427
|
+
zipClass?: string;
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
export interface AddressVerificationLookupZipCodeFromCityOrStateResponse {
|
|
1432
|
+
data: AddressVerificationLookupZipCodeFromCityOrStateResponse.Data;
|
|
1433
|
+
|
|
1434
|
+
message: string;
|
|
1435
|
+
|
|
1436
|
+
status: 'success' | 'error';
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
export namespace AddressVerificationLookupZipCodeFromCityOrStateResponse {
|
|
1440
|
+
export interface Data {
|
|
1441
|
+
zipCodes: Array<string>;
|
|
1442
|
+
}
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
export interface AddressVerificationParseAnAddressResponse {
|
|
1446
|
+
data: AddressVerificationParseAnAddressResponse.Data;
|
|
1447
|
+
|
|
1448
|
+
message: string;
|
|
1449
|
+
|
|
1450
|
+
status: 'success' | 'error';
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
export namespace AddressVerificationParseAnAddressResponse {
|
|
1454
|
+
export interface Data {
|
|
1455
|
+
/**
|
|
1456
|
+
* The category of the location (e.g. restaurant).
|
|
1457
|
+
*/
|
|
1458
|
+
category?: string;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* The city name.
|
|
1462
|
+
*/
|
|
1463
|
+
city?: string;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* The borough within a city.
|
|
1467
|
+
*/
|
|
1468
|
+
cityDistrict?: string;
|
|
1469
|
+
|
|
1470
|
+
/**
|
|
1471
|
+
* The country.
|
|
1472
|
+
*/
|
|
1473
|
+
country?: string;
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* The name of the location.
|
|
1477
|
+
*/
|
|
1478
|
+
house?: string;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* The house or street number.
|
|
1482
|
+
*/
|
|
1483
|
+
houseNumber?: string;
|
|
1484
|
+
|
|
1485
|
+
/**
|
|
1486
|
+
* The name of the island.
|
|
1487
|
+
*/
|
|
1488
|
+
island?: string;
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* The floor.
|
|
1492
|
+
*/
|
|
1493
|
+
level?: string;
|
|
1494
|
+
|
|
1495
|
+
/**
|
|
1496
|
+
* Populated if the input query contains a near/in qualifier.
|
|
1497
|
+
*/
|
|
1498
|
+
near?: string;
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* The postal office box.
|
|
1502
|
+
*/
|
|
1503
|
+
poBox?: string;
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* The postal or ZIP code.
|
|
1507
|
+
*/
|
|
1508
|
+
postcode?: string;
|
|
1509
|
+
|
|
1510
|
+
/**
|
|
1511
|
+
* The street name.
|
|
1512
|
+
*/
|
|
1513
|
+
road?: string;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* The state or province.
|
|
1517
|
+
*/
|
|
1518
|
+
state?: string;
|
|
1519
|
+
|
|
1520
|
+
/**
|
|
1521
|
+
* The county.
|
|
1522
|
+
*/
|
|
1523
|
+
stateDistrict?: string;
|
|
1524
|
+
|
|
1525
|
+
/**
|
|
1526
|
+
* The unofficial neighborhood name.
|
|
1527
|
+
*/
|
|
1528
|
+
suburb?: string;
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* The apartment, unit, office, lot, or other secondary unit designator.
|
|
1532
|
+
*/
|
|
1533
|
+
unit?: string;
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
export interface AddressVerificationSuggestAddressesResponse {
|
|
1538
|
+
data: Array<AddressVerificationSuggestAddressesResponse.Data>;
|
|
1539
|
+
|
|
1540
|
+
message: string;
|
|
1541
|
+
|
|
1542
|
+
status: 'success' | 'error';
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
export namespace AddressVerificationSuggestAddressesResponse {
|
|
1546
|
+
export interface Data {
|
|
1547
|
+
/**
|
|
1548
|
+
* The city name of the address.
|
|
1549
|
+
*/
|
|
1550
|
+
city: string;
|
|
1551
|
+
|
|
1552
|
+
/**
|
|
1553
|
+
* The country code of the address.
|
|
1554
|
+
*/
|
|
1555
|
+
country: string;
|
|
1556
|
+
|
|
1557
|
+
/**
|
|
1558
|
+
* The first line of the address.
|
|
1559
|
+
*/
|
|
1560
|
+
line1: string;
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* The postal code or ZIP code of the address.
|
|
1564
|
+
*/
|
|
1565
|
+
postalOrZip: string;
|
|
1566
|
+
|
|
1567
|
+
/**
|
|
1568
|
+
* The province or state of the address.
|
|
1569
|
+
*/
|
|
1570
|
+
provinceOrState: string;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* The country name of the address.
|
|
1574
|
+
*/
|
|
1575
|
+
countryName?: string;
|
|
1576
|
+
|
|
1577
|
+
/**
|
|
1578
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
1579
|
+
* an additional `details` field that follows the
|
|
1580
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
1581
|
+
*/
|
|
1582
|
+
details?: Data.Details;
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
* Errors encountered during address verification.
|
|
1586
|
+
*/
|
|
1587
|
+
errors?: AddressVerificationAPI.Errors;
|
|
1588
|
+
|
|
1589
|
+
/**
|
|
1590
|
+
* The firm name of the address.
|
|
1591
|
+
*/
|
|
1592
|
+
firmName?: string;
|
|
1593
|
+
|
|
1594
|
+
/**
|
|
1595
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
1596
|
+
* geocodeResult which follows the
|
|
1597
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
1598
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
1599
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
1600
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
1601
|
+
*/
|
|
1602
|
+
geocodeResult?: Data.GeocodeResult;
|
|
1603
|
+
|
|
1604
|
+
/**
|
|
1605
|
+
* The second line of the address.
|
|
1606
|
+
*/
|
|
1607
|
+
line2?: string;
|
|
1608
|
+
|
|
1609
|
+
/**
|
|
1610
|
+
* The full name of the province or state.
|
|
1611
|
+
*/
|
|
1612
|
+
provinceOrStateName?: string;
|
|
1613
|
+
|
|
1614
|
+
/**
|
|
1615
|
+
* The verification status of an address.
|
|
1616
|
+
*/
|
|
1617
|
+
status?: AddressVerificationAPI.Status;
|
|
1618
|
+
|
|
1619
|
+
/**
|
|
1620
|
+
* The zip plus 4 code of the address.
|
|
1621
|
+
*/
|
|
1622
|
+
zipPlus4?: string;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
export namespace Data {
|
|
1626
|
+
/**
|
|
1627
|
+
* If you supply `includeDetails=true` as a query parameter, we will also populate
|
|
1628
|
+
* an additional `details` field that follows the
|
|
1629
|
+
* [Address Details](https://avdocs.postgrid.com/#address-details) schema.
|
|
1630
|
+
*/
|
|
1631
|
+
export interface Details {
|
|
1632
|
+
/**
|
|
1633
|
+
* PO Box ID
|
|
1634
|
+
*/
|
|
1635
|
+
boxID?: string;
|
|
1636
|
+
|
|
1637
|
+
/**
|
|
1638
|
+
* County in the United States (US address only)
|
|
1639
|
+
*/
|
|
1640
|
+
county?: string;
|
|
1641
|
+
|
|
1642
|
+
/**
|
|
1643
|
+
* FIPS code for county (US address only)
|
|
1644
|
+
*/
|
|
1645
|
+
countyNum?: string;
|
|
1646
|
+
|
|
1647
|
+
/**
|
|
1648
|
+
* Delivery installation area name
|
|
1649
|
+
*/
|
|
1650
|
+
deliveryInstallationAreaName?: string;
|
|
1651
|
+
|
|
1652
|
+
/**
|
|
1653
|
+
* Delivery installation qualifier
|
|
1654
|
+
*/
|
|
1655
|
+
deliveryInstallationQualifier?: string;
|
|
1656
|
+
|
|
1657
|
+
/**
|
|
1658
|
+
* Delivery installation type
|
|
1659
|
+
*/
|
|
1660
|
+
deliveryInstallationType?: string;
|
|
1661
|
+
|
|
1662
|
+
/**
|
|
1663
|
+
* Any extra information relevant to the address
|
|
1664
|
+
*/
|
|
1665
|
+
extraInfo?: string;
|
|
1666
|
+
|
|
1667
|
+
/**
|
|
1668
|
+
* The post-direction of the street (after the street name, US addresses only)
|
|
1669
|
+
*/
|
|
1670
|
+
postDirection?: string;
|
|
1671
|
+
|
|
1672
|
+
/**
|
|
1673
|
+
* The pre-direction of the street (before the street name, US addresses only)
|
|
1674
|
+
*/
|
|
1675
|
+
preDirection?: string;
|
|
1676
|
+
|
|
1677
|
+
/**
|
|
1678
|
+
* Indicates that the address is residential (US address only)
|
|
1679
|
+
*/
|
|
1680
|
+
residential?: boolean;
|
|
1681
|
+
|
|
1682
|
+
/**
|
|
1683
|
+
* Rural route number
|
|
1684
|
+
*/
|
|
1685
|
+
ruralRouteNumber?: string;
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Rural route type
|
|
1689
|
+
*/
|
|
1690
|
+
ruralRouteType?: string;
|
|
1691
|
+
|
|
1692
|
+
/**
|
|
1693
|
+
* The direction of the street (N, S, E, W, etc)
|
|
1694
|
+
*/
|
|
1695
|
+
streetDirection?: string;
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* Name of the street where the address is located
|
|
1699
|
+
*/
|
|
1700
|
+
streetName?: string;
|
|
1701
|
+
|
|
1702
|
+
/**
|
|
1703
|
+
* Street number (e.g. the 20 in 20 Bay St)
|
|
1704
|
+
*/
|
|
1705
|
+
streetNumber?: string;
|
|
1706
|
+
|
|
1707
|
+
/**
|
|
1708
|
+
* Type of the street (DR, ST, BLVD, etc)
|
|
1709
|
+
*/
|
|
1710
|
+
streetType?: string;
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
* The unit number/name
|
|
1714
|
+
*/
|
|
1715
|
+
suiteID?: string;
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* The suite key
|
|
1719
|
+
*/
|
|
1720
|
+
suiteKey?: string;
|
|
1721
|
+
|
|
1722
|
+
/**
|
|
1723
|
+
* US Census block number
|
|
1724
|
+
*/
|
|
1725
|
+
usCensusBlockNumber?: string;
|
|
1726
|
+
|
|
1727
|
+
/**
|
|
1728
|
+
* US Census consolidated metropolitan statistical area
|
|
1729
|
+
*/
|
|
1730
|
+
usCensusCMSA?: string;
|
|
1731
|
+
|
|
1732
|
+
/**
|
|
1733
|
+
* US Census FIPS code (US address only)
|
|
1734
|
+
*/
|
|
1735
|
+
usCensusFIPS?: string;
|
|
1736
|
+
|
|
1737
|
+
/**
|
|
1738
|
+
* US Census metropolitan area
|
|
1739
|
+
*/
|
|
1740
|
+
usCensusMA?: string;
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
* US Census metropolitan statistical area
|
|
1744
|
+
*/
|
|
1745
|
+
usCensusMSA?: string;
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* US Census primary metropolitan statistical area
|
|
1749
|
+
*/
|
|
1750
|
+
usCensusPMSA?: string;
|
|
1751
|
+
|
|
1752
|
+
/**
|
|
1753
|
+
* US Census tract number
|
|
1754
|
+
*/
|
|
1755
|
+
usCensusTractNumber?: string;
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
* US congressional district number
|
|
1759
|
+
*/
|
|
1760
|
+
usCongressionalDistrictNumber?: string;
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* True if address location recognizes DST
|
|
1764
|
+
*/
|
|
1765
|
+
usHasDaylightSavings?: boolean;
|
|
1766
|
+
|
|
1767
|
+
/**
|
|
1768
|
+
* PostNet barcode digit
|
|
1769
|
+
*/
|
|
1770
|
+
usMailingCheckDigit?: string;
|
|
1771
|
+
|
|
1772
|
+
/**
|
|
1773
|
+
* 4-character code assigned to mail delivery route within a 5 digit zip code
|
|
1774
|
+
*/
|
|
1775
|
+
usMailingsCarrierRoute?: string;
|
|
1776
|
+
|
|
1777
|
+
/**
|
|
1778
|
+
* True if US address matches a high-rise default or rural route default in the
|
|
1779
|
+
* USPS data
|
|
1780
|
+
*/
|
|
1781
|
+
usMailingsDefaultFlag?: boolean;
|
|
1782
|
+
|
|
1783
|
+
/**
|
|
1784
|
+
* Unique USPS identifier for the delivery point
|
|
1785
|
+
*/
|
|
1786
|
+
usMailingsDeliveryPoint?: string;
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1790
|
+
*/
|
|
1791
|
+
usMailingsDpvConfirmationIndicator?: string;
|
|
1792
|
+
|
|
1793
|
+
/**
|
|
1794
|
+
* Y if this is a commercial mail receiving agency, N otherwise
|
|
1795
|
+
*/
|
|
1796
|
+
usMailingsDpvCrmaIndicator?: string;
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1800
|
+
*/
|
|
1801
|
+
usMailingsDpvFootnote1?: string;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1805
|
+
*/
|
|
1806
|
+
usMailingsDpvFootnote2?: string;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1810
|
+
*/
|
|
1811
|
+
usMailingsDpvFootnote3?: string;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* A for ascending, D for descending
|
|
1815
|
+
*/
|
|
1816
|
+
usMailingsElotAscDesc?: string;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* eLOT sequence number
|
|
1820
|
+
*/
|
|
1821
|
+
usMailingsElotSequenceNumber?: string;
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* Y if address is in early warning system database
|
|
1825
|
+
*/
|
|
1826
|
+
usMailingsEWSFlag?: string;
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Y if address converted by LACS
|
|
1830
|
+
*/
|
|
1831
|
+
usMailingsLACSFlag?: string;
|
|
1832
|
+
|
|
1833
|
+
/**
|
|
1834
|
+
* Corresponds to USPS LACSLink return code
|
|
1835
|
+
*/
|
|
1836
|
+
usMailingsLACSReturnCode?: string;
|
|
1837
|
+
|
|
1838
|
+
/**
|
|
1839
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1840
|
+
*/
|
|
1841
|
+
usMailingsRecordTypeCode?: string;
|
|
1842
|
+
|
|
1843
|
+
/**
|
|
1844
|
+
* See [USPS DPV](https://avdocs.postgrid.com/#usps-dpv)
|
|
1845
|
+
*/
|
|
1846
|
+
usMailingsSuiteLinkReturnCode?: string;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* PostNet barcode for the address (US address only)
|
|
1850
|
+
*/
|
|
1851
|
+
usPostnetBarcode?: string;
|
|
1852
|
+
|
|
1853
|
+
/**
|
|
1854
|
+
* Lower legislative district for the US address
|
|
1855
|
+
*/
|
|
1856
|
+
usStateLegislativeLower?: string;
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Upper legislative district for the US address
|
|
1860
|
+
*/
|
|
1861
|
+
usStateLegislativeUpper?: string;
|
|
1862
|
+
|
|
1863
|
+
/**
|
|
1864
|
+
* Time zone for the US address area
|
|
1865
|
+
*/
|
|
1866
|
+
usTimeZone?: string;
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Indicates that the address is vacant according to the USPS (US address only)
|
|
1870
|
+
*/
|
|
1871
|
+
vacant?: boolean;
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
/**
|
|
1875
|
+
* If the `geocode=true` query parameter is supplied, the response will include a
|
|
1876
|
+
* geocodeResult which follows the
|
|
1877
|
+
* [Geocoding](https://avdocs.postgrid.com/#geocoding) schema. You can request this
|
|
1878
|
+
* feature be enabled by emailing `support@postgrid.com`. This includes our
|
|
1879
|
+
* verification, batch verification, suggestions, and POST /completions endpoint.
|
|
1880
|
+
* Note that you must supply country when geocoding to get the result successfully.
|
|
1881
|
+
*/
|
|
1882
|
+
export interface GeocodeResult {
|
|
1883
|
+
/**
|
|
1884
|
+
* A real number from 0.00 to 1.00 which represents an
|
|
1885
|
+
* [accuracy score](https://avdocs.postgrid.com/#accuracy-score)
|
|
1886
|
+
*/
|
|
1887
|
+
accuracy: number;
|
|
1888
|
+
|
|
1889
|
+
/**
|
|
1890
|
+
* A string representing the
|
|
1891
|
+
* [accuracy type](https://avdocs.postgrid.com/#accuracy-type)
|
|
1892
|
+
*/
|
|
1893
|
+
accuracyType:
|
|
1894
|
+
| 'rooftop'
|
|
1895
|
+
| 'point'
|
|
1896
|
+
| 'range_interpolation'
|
|
1897
|
+
| 'nearest_rooftop_match'
|
|
1898
|
+
| 'intersection'
|
|
1899
|
+
| 'street_center'
|
|
1900
|
+
| 'place'
|
|
1901
|
+
| 'state';
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
1905
|
+
*/
|
|
1906
|
+
location: GeocodeResult.Location;
|
|
1907
|
+
}
|
|
59
1908
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1909
|
+
export namespace GeocodeResult {
|
|
1910
|
+
/**
|
|
1911
|
+
* Object that contains `lat`, `lng` properties with number values
|
|
1912
|
+
*/
|
|
1913
|
+
export interface Location {
|
|
1914
|
+
lat: number;
|
|
64
1915
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
1916
|
+
lng: number;
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
}
|
|
69
1920
|
}
|
|
70
1921
|
|
|
71
|
-
/**
|
|
72
|
-
* The verification status of an address.
|
|
73
|
-
*/
|
|
74
|
-
export type Status = 'verified' | 'corrected' | 'failed';
|
|
75
|
-
|
|
76
1922
|
export interface AddressVerificationVerifyResponse {
|
|
77
1923
|
data: AddressVerificationVerifyResponse.Data;
|
|
78
1924
|
|
|
@@ -145,6 +1991,11 @@ export namespace AddressVerificationVerifyResponse {
|
|
|
145
1991
|
*/
|
|
146
1992
|
line2?: string;
|
|
147
1993
|
|
|
1994
|
+
/**
|
|
1995
|
+
* The full name of the province or state.
|
|
1996
|
+
*/
|
|
1997
|
+
provinceOrStateName?: string;
|
|
1998
|
+
|
|
148
1999
|
/**
|
|
149
2000
|
* The verification status of an address.
|
|
150
2001
|
*/
|
|
@@ -263,6 +2114,11 @@ export namespace AddressVerificationVerifyResponse {
|
|
|
263
2114
|
*/
|
|
264
2115
|
usCensusCMSA?: string;
|
|
265
2116
|
|
|
2117
|
+
/**
|
|
2118
|
+
* US Census FIPS code (US address only)
|
|
2119
|
+
*/
|
|
2120
|
+
usCensusFIPS?: string;
|
|
2121
|
+
|
|
266
2122
|
/**
|
|
267
2123
|
* US Census metropolitan area
|
|
268
2124
|
*/
|
|
@@ -374,6 +2230,11 @@ export namespace AddressVerificationVerifyResponse {
|
|
|
374
2230
|
*/
|
|
375
2231
|
usMailingsSuiteLinkReturnCode?: string;
|
|
376
2232
|
|
|
2233
|
+
/**
|
|
2234
|
+
* PostNet barcode for the address (US address only)
|
|
2235
|
+
*/
|
|
2236
|
+
usPostnetBarcode?: string;
|
|
2237
|
+
|
|
377
2238
|
/**
|
|
378
2239
|
* Lower legislative district for the US address
|
|
379
2240
|
*/
|
|
@@ -443,6 +2304,296 @@ export namespace AddressVerificationVerifyResponse {
|
|
|
443
2304
|
}
|
|
444
2305
|
}
|
|
445
2306
|
|
|
2307
|
+
export interface AddressVerificationAutocompleteParams {
|
|
2308
|
+
/**
|
|
2309
|
+
* Body param: The partial street address to complete (e.g. `"22 Bay"`).
|
|
2310
|
+
*/
|
|
2311
|
+
partialStreet: string;
|
|
2312
|
+
|
|
2313
|
+
/**
|
|
2314
|
+
* Query param
|
|
2315
|
+
*/
|
|
2316
|
+
filterExact?: boolean;
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Query param
|
|
2320
|
+
*/
|
|
2321
|
+
geocode?: boolean;
|
|
2322
|
+
|
|
2323
|
+
/**
|
|
2324
|
+
* Query param
|
|
2325
|
+
*/
|
|
2326
|
+
includeDetails?: boolean;
|
|
2327
|
+
|
|
2328
|
+
/**
|
|
2329
|
+
* Query param
|
|
2330
|
+
*/
|
|
2331
|
+
index?: number;
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* Query param
|
|
2335
|
+
*/
|
|
2336
|
+
limit?: number;
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* Query param
|
|
2340
|
+
*/
|
|
2341
|
+
properCase?: boolean;
|
|
2342
|
+
|
|
2343
|
+
/**
|
|
2344
|
+
* Query param
|
|
2345
|
+
*/
|
|
2346
|
+
query_verifiedOnly?: boolean;
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* Query param
|
|
2350
|
+
*/
|
|
2351
|
+
verify?: boolean;
|
|
2352
|
+
|
|
2353
|
+
/**
|
|
2354
|
+
* Body param: Filter results to a specific city.
|
|
2355
|
+
*/
|
|
2356
|
+
cityFilter?: string;
|
|
2357
|
+
|
|
2358
|
+
/**
|
|
2359
|
+
* Body param: Filter results to a specific country code.
|
|
2360
|
+
*/
|
|
2361
|
+
countryFilter?: string;
|
|
2362
|
+
|
|
2363
|
+
/**
|
|
2364
|
+
* Body param: Filter results to a specific postal code prefix.
|
|
2365
|
+
*/
|
|
2366
|
+
pcFilter?: string;
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Body param: Filter results to a specific state or province abbreviation.
|
|
2370
|
+
*/
|
|
2371
|
+
stateFilter?: string;
|
|
2372
|
+
|
|
2373
|
+
/**
|
|
2374
|
+
* Body param: If true, only return addresses that passed USPS/Canada Post
|
|
2375
|
+
* verification.
|
|
2376
|
+
*/
|
|
2377
|
+
body_verifiedOnly?: boolean;
|
|
2378
|
+
}
|
|
2379
|
+
|
|
2380
|
+
export interface AddressVerificationBatchVerificationParams {
|
|
2381
|
+
/**
|
|
2382
|
+
* Body param: Array of addresses to verify. Each item can be a freeform string or
|
|
2383
|
+
* structured address object.
|
|
2384
|
+
*/
|
|
2385
|
+
addresses: Array<
|
|
2386
|
+
| AddressVerificationBatchVerificationParams.StandardFreeformAddressInput
|
|
2387
|
+
| AddressVerificationBatchVerificationParams.StandardStructuredAddressInput
|
|
2388
|
+
>;
|
|
2389
|
+
|
|
2390
|
+
/**
|
|
2391
|
+
* Query param
|
|
2392
|
+
*/
|
|
2393
|
+
geocode?: boolean;
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Query param
|
|
2397
|
+
*/
|
|
2398
|
+
includeDetails?: boolean;
|
|
2399
|
+
|
|
2400
|
+
/**
|
|
2401
|
+
* Query param
|
|
2402
|
+
*/
|
|
2403
|
+
properCase?: boolean;
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
export namespace AddressVerificationBatchVerificationParams {
|
|
2407
|
+
export interface StandardFreeformAddressInput {
|
|
2408
|
+
/**
|
|
2409
|
+
* The address you want to verify, written on a single line.
|
|
2410
|
+
*/
|
|
2411
|
+
address: string;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export interface StandardStructuredAddressInput {
|
|
2415
|
+
address: StandardStructuredAddressInput.Address;
|
|
2416
|
+
}
|
|
2417
|
+
|
|
2418
|
+
export namespace StandardStructuredAddressInput {
|
|
2419
|
+
export interface Address {
|
|
2420
|
+
/**
|
|
2421
|
+
* The city of the address.
|
|
2422
|
+
*/
|
|
2423
|
+
city: string;
|
|
2424
|
+
|
|
2425
|
+
/**
|
|
2426
|
+
* The country of your address, one of `ca` or `us`.
|
|
2427
|
+
*/
|
|
2428
|
+
country: 'ca' | 'us';
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* The first line of the address.
|
|
2432
|
+
*/
|
|
2433
|
+
line1: string;
|
|
2434
|
+
|
|
2435
|
+
/**
|
|
2436
|
+
* The postal code or ZIP code of the address.
|
|
2437
|
+
*/
|
|
2438
|
+
postalOrZip: string;
|
|
2439
|
+
|
|
2440
|
+
/**
|
|
2441
|
+
* The province or state of the address.
|
|
2442
|
+
*/
|
|
2443
|
+
provinceOrState: string;
|
|
2444
|
+
|
|
2445
|
+
/**
|
|
2446
|
+
* The second line of the address.
|
|
2447
|
+
*/
|
|
2448
|
+
line2?: string;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* The optional firm/recipient name.
|
|
2452
|
+
*/
|
|
2453
|
+
recipient?: string;
|
|
2454
|
+
}
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
export interface AddressVerificationGetAutocompletePreviewsParams {
|
|
2459
|
+
partialStreet: string;
|
|
2460
|
+
|
|
2461
|
+
cityFilter?: string;
|
|
2462
|
+
|
|
2463
|
+
countryFilter?: string;
|
|
2464
|
+
|
|
2465
|
+
filterExact?: boolean;
|
|
2466
|
+
|
|
2467
|
+
limit?: number;
|
|
2468
|
+
|
|
2469
|
+
pcFilter?: string;
|
|
2470
|
+
|
|
2471
|
+
properCase?: boolean;
|
|
2472
|
+
|
|
2473
|
+
provInsteadOfPC?: boolean;
|
|
2474
|
+
|
|
2475
|
+
stateFilter?: string;
|
|
2476
|
+
|
|
2477
|
+
verifiedOnly?: boolean;
|
|
2478
|
+
}
|
|
2479
|
+
|
|
2480
|
+
export interface AddressVerificationLookupCityOrStateFromPostalOrZipCodeParams {
|
|
2481
|
+
postalOrZip: string;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
export interface AddressVerificationLookupZipCodeFromCityOrStateParams {
|
|
2485
|
+
/**
|
|
2486
|
+
* The city name.
|
|
2487
|
+
*/
|
|
2488
|
+
city: string;
|
|
2489
|
+
|
|
2490
|
+
/**
|
|
2491
|
+
* The country code. Currently only `US` is supported.
|
|
2492
|
+
*/
|
|
2493
|
+
countryCode: string;
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* The state abbreviation (e.g. `NY`).
|
|
2497
|
+
*/
|
|
2498
|
+
state: string;
|
|
2499
|
+
}
|
|
2500
|
+
|
|
2501
|
+
export interface AddressVerificationParseAnAddressParams {
|
|
2502
|
+
/**
|
|
2503
|
+
* The address you want to verify, written on a single line.
|
|
2504
|
+
*/
|
|
2505
|
+
address: string;
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
export type AddressVerificationSuggestAddressesParams =
|
|
2509
|
+
| AddressVerificationSuggestAddressesParams.StandardFreeformAddressInput
|
|
2510
|
+
| AddressVerificationSuggestAddressesParams.StandardStructuredAddressInput;
|
|
2511
|
+
|
|
2512
|
+
export declare namespace AddressVerificationSuggestAddressesParams {
|
|
2513
|
+
export interface StandardFreeformAddressInput {
|
|
2514
|
+
/**
|
|
2515
|
+
* Body param: The address you want to verify, written on a single line.
|
|
2516
|
+
*/
|
|
2517
|
+
address: string;
|
|
2518
|
+
|
|
2519
|
+
/**
|
|
2520
|
+
* Query param
|
|
2521
|
+
*/
|
|
2522
|
+
geocode?: boolean;
|
|
2523
|
+
|
|
2524
|
+
/**
|
|
2525
|
+
* Query param
|
|
2526
|
+
*/
|
|
2527
|
+
includeDetails?: boolean;
|
|
2528
|
+
|
|
2529
|
+
/**
|
|
2530
|
+
* Query param
|
|
2531
|
+
*/
|
|
2532
|
+
properCase?: boolean;
|
|
2533
|
+
}
|
|
2534
|
+
|
|
2535
|
+
export interface StandardStructuredAddressInput {
|
|
2536
|
+
/**
|
|
2537
|
+
* Body param
|
|
2538
|
+
*/
|
|
2539
|
+
address: StandardStructuredAddressInput.Address;
|
|
2540
|
+
|
|
2541
|
+
/**
|
|
2542
|
+
* Query param
|
|
2543
|
+
*/
|
|
2544
|
+
geocode?: boolean;
|
|
2545
|
+
|
|
2546
|
+
/**
|
|
2547
|
+
* Query param
|
|
2548
|
+
*/
|
|
2549
|
+
includeDetails?: boolean;
|
|
2550
|
+
|
|
2551
|
+
/**
|
|
2552
|
+
* Query param
|
|
2553
|
+
*/
|
|
2554
|
+
properCase?: boolean;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
export namespace StandardStructuredAddressInput {
|
|
2558
|
+
export interface Address {
|
|
2559
|
+
/**
|
|
2560
|
+
* The city of the address.
|
|
2561
|
+
*/
|
|
2562
|
+
city: string;
|
|
2563
|
+
|
|
2564
|
+
/**
|
|
2565
|
+
* The country of your address, one of `ca` or `us`.
|
|
2566
|
+
*/
|
|
2567
|
+
country: 'ca' | 'us';
|
|
2568
|
+
|
|
2569
|
+
/**
|
|
2570
|
+
* The first line of the address.
|
|
2571
|
+
*/
|
|
2572
|
+
line1: string;
|
|
2573
|
+
|
|
2574
|
+
/**
|
|
2575
|
+
* The postal code or ZIP code of the address.
|
|
2576
|
+
*/
|
|
2577
|
+
postalOrZip: string;
|
|
2578
|
+
|
|
2579
|
+
/**
|
|
2580
|
+
* The province or state of the address.
|
|
2581
|
+
*/
|
|
2582
|
+
provinceOrState: string;
|
|
2583
|
+
|
|
2584
|
+
/**
|
|
2585
|
+
* The second line of the address.
|
|
2586
|
+
*/
|
|
2587
|
+
line2?: string;
|
|
2588
|
+
|
|
2589
|
+
/**
|
|
2590
|
+
* The optional firm/recipient name.
|
|
2591
|
+
*/
|
|
2592
|
+
recipient?: string;
|
|
2593
|
+
}
|
|
2594
|
+
}
|
|
2595
|
+
}
|
|
2596
|
+
|
|
446
2597
|
export type AddressVerificationVerifyParams =
|
|
447
2598
|
| AddressVerificationVerifyParams.StandardFreeformAddressInput
|
|
448
2599
|
| AddressVerificationVerifyParams.StandardStructuredAddressInput;
|
|
@@ -455,39 +2606,39 @@ export declare namespace AddressVerificationVerifyParams {
|
|
|
455
2606
|
address: string;
|
|
456
2607
|
|
|
457
2608
|
/**
|
|
458
|
-
* Query param
|
|
2609
|
+
* Query param
|
|
459
2610
|
*/
|
|
460
2611
|
geocode?: boolean;
|
|
461
2612
|
|
|
462
2613
|
/**
|
|
463
|
-
* Query param
|
|
2614
|
+
* Query param
|
|
464
2615
|
*/
|
|
465
2616
|
includeDetails?: boolean;
|
|
466
2617
|
|
|
467
2618
|
/**
|
|
468
|
-
* Query param
|
|
2619
|
+
* Query param
|
|
469
2620
|
*/
|
|
470
2621
|
properCase?: boolean;
|
|
471
2622
|
}
|
|
472
2623
|
|
|
473
2624
|
export interface StandardStructuredAddressInput {
|
|
474
2625
|
/**
|
|
475
|
-
* Body param
|
|
2626
|
+
* Body param
|
|
476
2627
|
*/
|
|
477
2628
|
address: StandardStructuredAddressInput.Address;
|
|
478
2629
|
|
|
479
2630
|
/**
|
|
480
|
-
* Query param
|
|
2631
|
+
* Query param
|
|
481
2632
|
*/
|
|
482
2633
|
geocode?: boolean;
|
|
483
2634
|
|
|
484
2635
|
/**
|
|
485
|
-
* Query param
|
|
2636
|
+
* Query param
|
|
486
2637
|
*/
|
|
487
2638
|
includeDetails?: boolean;
|
|
488
2639
|
|
|
489
2640
|
/**
|
|
490
|
-
* Query param
|
|
2641
|
+
* Query param
|
|
491
2642
|
*/
|
|
492
2643
|
properCase?: boolean;
|
|
493
2644
|
}
|
|
@@ -536,7 +2687,22 @@ export declare namespace AddressVerification {
|
|
|
536
2687
|
export {
|
|
537
2688
|
type Errors as Errors,
|
|
538
2689
|
type Status as Status,
|
|
2690
|
+
type AddressVerificationAutocompleteResponse as AddressVerificationAutocompleteResponse,
|
|
2691
|
+
type AddressVerificationBatchVerificationResponse as AddressVerificationBatchVerificationResponse,
|
|
2692
|
+
type AddressVerificationGetAutocompletePreviewsResponse as AddressVerificationGetAutocompletePreviewsResponse,
|
|
2693
|
+
type AddressVerificationGetLookupInfoResponse as AddressVerificationGetLookupInfoResponse,
|
|
2694
|
+
type AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse as AddressVerificationLookupCityOrStateFromPostalOrZipCodeResponse,
|
|
2695
|
+
type AddressVerificationLookupZipCodeFromCityOrStateResponse as AddressVerificationLookupZipCodeFromCityOrStateResponse,
|
|
2696
|
+
type AddressVerificationParseAnAddressResponse as AddressVerificationParseAnAddressResponse,
|
|
2697
|
+
type AddressVerificationSuggestAddressesResponse as AddressVerificationSuggestAddressesResponse,
|
|
539
2698
|
type AddressVerificationVerifyResponse as AddressVerificationVerifyResponse,
|
|
2699
|
+
type AddressVerificationAutocompleteParams as AddressVerificationAutocompleteParams,
|
|
2700
|
+
type AddressVerificationBatchVerificationParams as AddressVerificationBatchVerificationParams,
|
|
2701
|
+
type AddressVerificationGetAutocompletePreviewsParams as AddressVerificationGetAutocompletePreviewsParams,
|
|
2702
|
+
type AddressVerificationLookupCityOrStateFromPostalOrZipCodeParams as AddressVerificationLookupCityOrStateFromPostalOrZipCodeParams,
|
|
2703
|
+
type AddressVerificationLookupZipCodeFromCityOrStateParams as AddressVerificationLookupZipCodeFromCityOrStateParams,
|
|
2704
|
+
type AddressVerificationParseAnAddressParams as AddressVerificationParseAnAddressParams,
|
|
2705
|
+
type AddressVerificationSuggestAddressesParams as AddressVerificationSuggestAddressesParams,
|
|
540
2706
|
type AddressVerificationVerifyParams as AddressVerificationVerifyParams,
|
|
541
2707
|
};
|
|
542
2708
|
}
|