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
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import * as BoxesAPI from "./boxes.mjs";
|
|
3
2
|
import * as ContactsAPI from "./contacts.mjs";
|
|
4
|
-
import * as PrintMailAPI from "./print-mail.mjs";
|
|
5
3
|
import { APIPromise } from "../../core/api-promise.mjs";
|
|
6
4
|
import { PagePromise, SkipLimit, type SkipLimitParams } from "../../core/pagination.mjs";
|
|
7
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
@@ -41,7 +39,7 @@ export declare class Boxes extends APIResource {
|
|
|
41
39
|
* });
|
|
42
40
|
* ```
|
|
43
41
|
*/
|
|
44
|
-
create(body: BoxCreateParams, options?: RequestOptions): APIPromise<
|
|
42
|
+
create(body: BoxCreateParams, options?: RequestOptions): APIPromise<BoxCreateResponse>;
|
|
45
43
|
/**
|
|
46
44
|
* Retrieve a box by ID.
|
|
47
45
|
*
|
|
@@ -50,19 +48,19 @@ export declare class Boxes extends APIResource {
|
|
|
50
48
|
* const box = await client.printMail.boxes.retrieve('id');
|
|
51
49
|
* ```
|
|
52
50
|
*/
|
|
53
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
51
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<BoxRetrieveResponse>;
|
|
54
52
|
/**
|
|
55
53
|
* List all boxes.
|
|
56
54
|
*
|
|
57
55
|
* @example
|
|
58
56
|
* ```ts
|
|
59
57
|
* // Automatically fetches more pages as needed.
|
|
60
|
-
* for await (const
|
|
58
|
+
* for await (const boxListResponse of client.printMail.boxes.list()) {
|
|
61
59
|
* // ...
|
|
62
60
|
* }
|
|
63
61
|
* ```
|
|
64
62
|
*/
|
|
65
|
-
list(query?: BoxListParams | null | undefined, options?: RequestOptions): PagePromise<
|
|
63
|
+
list(query?: BoxListParams | null | undefined, options?: RequestOptions): PagePromise<BoxListResponsesSkipLimit, BoxListResponse>;
|
|
66
64
|
/**
|
|
67
65
|
* Cancel a box by ID (cannot be undone).
|
|
68
66
|
*
|
|
@@ -71,10 +69,26 @@ export declare class Boxes extends APIResource {
|
|
|
71
69
|
* const box = await client.printMail.boxes.delete('id');
|
|
72
70
|
* ```
|
|
73
71
|
*/
|
|
74
|
-
delete(id: string, options?: RequestOptions): APIPromise<
|
|
72
|
+
delete(id: string, options?: RequestOptions): APIPromise<BoxDeleteResponse>;
|
|
73
|
+
/**
|
|
74
|
+
* Progresses a box's `status` to the next stage. This is only available in test
|
|
75
|
+
* mode and can be used to simulate how a live order would progress through the
|
|
76
|
+
* different statuses.
|
|
77
|
+
*
|
|
78
|
+
* Note: this will fail with an `invalid_progression_error` if the status is one of
|
|
79
|
+
* `completed` or `cancelled`.
|
|
80
|
+
*
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const response = await client.printMail.boxes.progressions(
|
|
84
|
+
* 'id',
|
|
85
|
+
* );
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
progressions(id: string, options?: RequestOptions): APIPromise<BoxProgressionsResponse>;
|
|
75
89
|
}
|
|
76
|
-
export type
|
|
77
|
-
export interface
|
|
90
|
+
export type BoxListResponsesSkipLimit = SkipLimit<BoxListResponse>;
|
|
91
|
+
export interface BoxCreateResponse {
|
|
78
92
|
/**
|
|
79
93
|
* A unique ID prefixed with box\_
|
|
80
94
|
*/
|
|
@@ -82,7 +96,7 @@ export interface Box {
|
|
|
82
96
|
/**
|
|
83
97
|
* The cheques inside this box (in read mode).
|
|
84
98
|
*/
|
|
85
|
-
cheques: Array<
|
|
99
|
+
cheques: Array<BoxCreateResponse.Cheque>;
|
|
86
100
|
/**
|
|
87
101
|
* The UTC time at which this resource was created.
|
|
88
102
|
*/
|
|
@@ -99,7 +113,7 @@ export interface Box {
|
|
|
99
113
|
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
100
114
|
* See `OrderMailingClass` for more details.
|
|
101
115
|
*/
|
|
102
|
-
mailingClass:
|
|
116
|
+
mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
103
117
|
/**
|
|
104
118
|
* Always "box".
|
|
105
119
|
*/
|
|
@@ -113,7 +127,7 @@ export interface Box {
|
|
|
113
127
|
/**
|
|
114
128
|
* See `OrderStatus` for more details on the status of this order.
|
|
115
129
|
*/
|
|
116
|
-
status:
|
|
130
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
117
131
|
/**
|
|
118
132
|
* The recipient of this order. This will be provided even if you delete the
|
|
119
133
|
* underlying contact.
|
|
@@ -127,7 +141,7 @@ export interface Box {
|
|
|
127
141
|
* The cancellation details of this order. Populated if the order has been
|
|
128
142
|
* cancelled.
|
|
129
143
|
*/
|
|
130
|
-
cancellation?: Cancellation;
|
|
144
|
+
cancellation?: BoxCreateResponse.Cancellation;
|
|
131
145
|
/**
|
|
132
146
|
* An optional string describing this resource. Will be visible in the API and the
|
|
133
147
|
* dashboard.
|
|
@@ -142,7 +156,7 @@ export interface Box {
|
|
|
142
156
|
* US-printed and US-destined orders. This is the most detailed way to track
|
|
143
157
|
* non-express/certified orders.
|
|
144
158
|
*/
|
|
145
|
-
imbStatus?:
|
|
159
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
146
160
|
/**
|
|
147
161
|
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
148
162
|
* through. Only populated when an `imbStatus` is present.
|
|
@@ -180,70 +194,705 @@ export interface Box {
|
|
|
180
194
|
*/
|
|
181
195
|
url?: string;
|
|
182
196
|
}
|
|
183
|
-
export declare namespace
|
|
197
|
+
export declare namespace BoxCreateResponse {
|
|
198
|
+
interface Cheque {
|
|
199
|
+
/**
|
|
200
|
+
* The amount on the cheque.
|
|
201
|
+
*/
|
|
202
|
+
amount: number;
|
|
203
|
+
/**
|
|
204
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
205
|
+
*/
|
|
206
|
+
bankAccount: string;
|
|
207
|
+
from: ContactsAPI.Contact;
|
|
208
|
+
/**
|
|
209
|
+
* The cheque number.
|
|
210
|
+
*/
|
|
211
|
+
number: number;
|
|
212
|
+
to: ContactsAPI.Contact;
|
|
213
|
+
/**
|
|
214
|
+
* A URL to a logo for the cheque (optional).
|
|
215
|
+
*/
|
|
216
|
+
logoURL?: string;
|
|
217
|
+
/**
|
|
218
|
+
* The memo text on the cheque (optional).
|
|
219
|
+
*/
|
|
220
|
+
memo?: string;
|
|
221
|
+
/**
|
|
222
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
223
|
+
* documents (optional).
|
|
224
|
+
*/
|
|
225
|
+
mergeVariables?: {
|
|
226
|
+
[key: string]: unknown;
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* An optional message template to be printed on or with the cheque.
|
|
230
|
+
*/
|
|
231
|
+
messageTemplate?: string;
|
|
232
|
+
}
|
|
233
|
+
/**
|
|
234
|
+
* The cancellation details of this order. Populated if the order has been
|
|
235
|
+
* cancelled.
|
|
236
|
+
*/
|
|
237
|
+
interface Cancellation {
|
|
238
|
+
/**
|
|
239
|
+
* The reason for the cancellation.
|
|
240
|
+
*/
|
|
241
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
242
|
+
/**
|
|
243
|
+
* The user ID who cancelled the order.
|
|
244
|
+
*/
|
|
245
|
+
cancelledByUser?: string;
|
|
246
|
+
/**
|
|
247
|
+
* An optional note provided by the user who cancelled the order.
|
|
248
|
+
*/
|
|
249
|
+
note?: string;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
export interface BoxRetrieveResponse {
|
|
253
|
+
/**
|
|
254
|
+
* A unique ID prefixed with box\_
|
|
255
|
+
*/
|
|
256
|
+
id: string;
|
|
257
|
+
/**
|
|
258
|
+
* The cheques inside this box (in read mode).
|
|
259
|
+
*/
|
|
260
|
+
cheques: Array<BoxRetrieveResponse.Cheque>;
|
|
261
|
+
/**
|
|
262
|
+
* The UTC time at which this resource was created.
|
|
263
|
+
*/
|
|
264
|
+
createdAt: string;
|
|
265
|
+
/**
|
|
266
|
+
* The contact of the 'from' field in read mode should be a fully expanded Contact.
|
|
267
|
+
*/
|
|
268
|
+
from: ContactsAPI.Contact;
|
|
269
|
+
/**
|
|
270
|
+
* `true` if this is a live mode resource else `false`.
|
|
271
|
+
*/
|
|
272
|
+
live: boolean;
|
|
273
|
+
/**
|
|
274
|
+
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
275
|
+
* See `OrderMailingClass` for more details.
|
|
276
|
+
*/
|
|
277
|
+
mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
278
|
+
/**
|
|
279
|
+
* Always "box".
|
|
280
|
+
*/
|
|
281
|
+
object: 'box';
|
|
282
|
+
/**
|
|
283
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
284
|
+
* date. For example, if this is a date on Tuesday, the order will transition to
|
|
285
|
+
* `printing` on Wednesday at midnight eastern time.
|
|
286
|
+
*/
|
|
287
|
+
sendDate: string;
|
|
288
|
+
/**
|
|
289
|
+
* See `OrderStatus` for more details on the status of this order.
|
|
290
|
+
*/
|
|
291
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
292
|
+
/**
|
|
293
|
+
* The recipient of this order. This will be provided even if you delete the
|
|
294
|
+
* underlying contact.
|
|
295
|
+
*/
|
|
296
|
+
to: ContactsAPI.Contact;
|
|
297
|
+
/**
|
|
298
|
+
* The UTC time at which this resource was last updated.
|
|
299
|
+
*/
|
|
300
|
+
updatedAt: string;
|
|
184
301
|
/**
|
|
185
|
-
*
|
|
302
|
+
* The cancellation details of this order. Populated if the order has been
|
|
303
|
+
* cancelled.
|
|
304
|
+
*/
|
|
305
|
+
cancellation?: BoxRetrieveResponse.Cancellation;
|
|
306
|
+
/**
|
|
307
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
308
|
+
* dashboard.
|
|
309
|
+
*/
|
|
310
|
+
description?: string;
|
|
311
|
+
/**
|
|
312
|
+
* The last date that the IMB status was updated. See `imbStatus` for more details.
|
|
313
|
+
*/
|
|
314
|
+
imbDate?: string;
|
|
315
|
+
/**
|
|
316
|
+
* The Intelligent Mail Barcode (IMB) status of this order. Only populated for
|
|
317
|
+
* US-printed and US-destined orders. This is the most detailed way to track
|
|
318
|
+
* non-express/certified orders.
|
|
319
|
+
*/
|
|
320
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
321
|
+
/**
|
|
322
|
+
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
323
|
+
* through. Only populated when an `imbStatus` is present.
|
|
324
|
+
*/
|
|
325
|
+
imbZIPCode?: string;
|
|
326
|
+
/**
|
|
327
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
328
|
+
* order with. The keys in this object should match the variable names in the
|
|
329
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
330
|
+
* PDFs uploaded with the order.
|
|
331
|
+
*/
|
|
332
|
+
mergeVariables?: {
|
|
333
|
+
[key: string]: unknown;
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* See the section on Metadata.
|
|
337
|
+
*/
|
|
338
|
+
metadata?: {
|
|
339
|
+
[key: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* The tracking number of this order. Populated after an express/certified order
|
|
343
|
+
* has been processed for delivery.
|
|
344
|
+
*/
|
|
345
|
+
trackingNumber?: string;
|
|
346
|
+
/**
|
|
347
|
+
* PostGrid renders a PDF preview for all orders. This should be inspected to
|
|
348
|
+
* ensure that the order is correct before it is sent out because it shows what
|
|
349
|
+
* will be printed and mailed to the recipient. Once the PDF preview is generated,
|
|
350
|
+
* this field will be returned by all `GET` endpoints which produce this order.
|
|
186
351
|
*
|
|
187
|
-
*
|
|
352
|
+
* This URL is a signed link to the PDF preview. It will expire after a short
|
|
353
|
+
* period of time. If you need to access this URL after it has expired, you can
|
|
354
|
+
* regenerate it by calling the `GET` endpoint again.
|
|
188
355
|
*/
|
|
189
|
-
|
|
356
|
+
url?: string;
|
|
357
|
+
}
|
|
358
|
+
export declare namespace BoxRetrieveResponse {
|
|
359
|
+
interface Cheque {
|
|
360
|
+
/**
|
|
361
|
+
* The amount on the cheque.
|
|
362
|
+
*/
|
|
363
|
+
amount: number;
|
|
364
|
+
/**
|
|
365
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
366
|
+
*/
|
|
367
|
+
bankAccount: string;
|
|
190
368
|
from: ContactsAPI.Contact;
|
|
369
|
+
/**
|
|
370
|
+
* The cheque number.
|
|
371
|
+
*/
|
|
372
|
+
number: number;
|
|
191
373
|
to: ContactsAPI.Contact;
|
|
374
|
+
/**
|
|
375
|
+
* A URL to a logo for the cheque (optional).
|
|
376
|
+
*/
|
|
377
|
+
logoURL?: string;
|
|
378
|
+
/**
|
|
379
|
+
* The memo text on the cheque (optional).
|
|
380
|
+
*/
|
|
381
|
+
memo?: string;
|
|
382
|
+
/**
|
|
383
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
384
|
+
* documents (optional).
|
|
385
|
+
*/
|
|
386
|
+
mergeVariables?: {
|
|
387
|
+
[key: string]: unknown;
|
|
388
|
+
};
|
|
389
|
+
/**
|
|
390
|
+
* An optional message template to be printed on or with the cheque.
|
|
391
|
+
*/
|
|
392
|
+
messageTemplate?: string;
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* The cancellation details of this order. Populated if the order has been
|
|
396
|
+
* cancelled.
|
|
397
|
+
*/
|
|
398
|
+
interface Cancellation {
|
|
399
|
+
/**
|
|
400
|
+
* The reason for the cancellation.
|
|
401
|
+
*/
|
|
402
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
403
|
+
/**
|
|
404
|
+
* The user ID who cancelled the order.
|
|
405
|
+
*/
|
|
406
|
+
cancelledByUser?: string;
|
|
407
|
+
/**
|
|
408
|
+
* An optional note provided by the user who cancelled the order.
|
|
409
|
+
*/
|
|
410
|
+
note?: string;
|
|
192
411
|
}
|
|
193
412
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
413
|
+
export interface BoxListResponse {
|
|
414
|
+
/**
|
|
415
|
+
* A unique ID prefixed with box\_
|
|
416
|
+
*/
|
|
417
|
+
id: string;
|
|
418
|
+
/**
|
|
419
|
+
* The cheques inside this box (in read mode).
|
|
420
|
+
*/
|
|
421
|
+
cheques: Array<BoxListResponse.Cheque>;
|
|
422
|
+
/**
|
|
423
|
+
* The UTC time at which this resource was created.
|
|
424
|
+
*/
|
|
425
|
+
createdAt: string;
|
|
426
|
+
/**
|
|
427
|
+
* The contact of the 'from' field in read mode should be a fully expanded Contact.
|
|
428
|
+
*/
|
|
429
|
+
from: ContactsAPI.Contact;
|
|
430
|
+
/**
|
|
431
|
+
* `true` if this is a live mode resource else `false`.
|
|
432
|
+
*/
|
|
433
|
+
live: boolean;
|
|
434
|
+
/**
|
|
435
|
+
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
436
|
+
* See `OrderMailingClass` for more details.
|
|
437
|
+
*/
|
|
438
|
+
mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
439
|
+
/**
|
|
440
|
+
* Always "box".
|
|
441
|
+
*/
|
|
442
|
+
object: 'box';
|
|
443
|
+
/**
|
|
444
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
445
|
+
* date. For example, if this is a date on Tuesday, the order will transition to
|
|
446
|
+
* `printing` on Wednesday at midnight eastern time.
|
|
447
|
+
*/
|
|
448
|
+
sendDate: string;
|
|
449
|
+
/**
|
|
450
|
+
* See `OrderStatus` for more details on the status of this order.
|
|
451
|
+
*/
|
|
452
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
453
|
+
/**
|
|
454
|
+
* The recipient of this order. This will be provided even if you delete the
|
|
455
|
+
* underlying contact.
|
|
456
|
+
*/
|
|
457
|
+
to: ContactsAPI.Contact;
|
|
198
458
|
/**
|
|
199
|
-
* The
|
|
459
|
+
* The UTC time at which this resource was last updated.
|
|
200
460
|
*/
|
|
201
|
-
|
|
461
|
+
updatedAt: string;
|
|
202
462
|
/**
|
|
203
|
-
* The
|
|
463
|
+
* The cancellation details of this order. Populated if the order has been
|
|
464
|
+
* cancelled.
|
|
204
465
|
*/
|
|
205
|
-
|
|
466
|
+
cancellation?: BoxListResponse.Cancellation;
|
|
206
467
|
/**
|
|
207
|
-
*
|
|
468
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
469
|
+
* dashboard.
|
|
208
470
|
*/
|
|
209
|
-
|
|
471
|
+
description?: string;
|
|
210
472
|
/**
|
|
211
|
-
*
|
|
473
|
+
* The last date that the IMB status was updated. See `imbStatus` for more details.
|
|
212
474
|
*/
|
|
213
|
-
|
|
475
|
+
imbDate?: string;
|
|
214
476
|
/**
|
|
215
|
-
* The
|
|
477
|
+
* The Intelligent Mail Barcode (IMB) status of this order. Only populated for
|
|
478
|
+
* US-printed and US-destined orders. This is the most detailed way to track
|
|
479
|
+
* non-express/certified orders.
|
|
216
480
|
*/
|
|
217
|
-
|
|
481
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
218
482
|
/**
|
|
219
|
-
*
|
|
220
|
-
*
|
|
483
|
+
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
484
|
+
* through. Only populated when an `imbStatus` is present.
|
|
485
|
+
*/
|
|
486
|
+
imbZIPCode?: string;
|
|
487
|
+
/**
|
|
488
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
489
|
+
* order with. The keys in this object should match the variable names in the
|
|
490
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
491
|
+
* PDFs uploaded with the order.
|
|
221
492
|
*/
|
|
222
493
|
mergeVariables?: {
|
|
223
494
|
[key: string]: unknown;
|
|
224
495
|
};
|
|
225
496
|
/**
|
|
226
|
-
*
|
|
497
|
+
* See the section on Metadata.
|
|
227
498
|
*/
|
|
228
|
-
|
|
499
|
+
metadata?: {
|
|
500
|
+
[key: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
/**
|
|
503
|
+
* The tracking number of this order. Populated after an express/certified order
|
|
504
|
+
* has been processed for delivery.
|
|
505
|
+
*/
|
|
506
|
+
trackingNumber?: string;
|
|
507
|
+
/**
|
|
508
|
+
* PostGrid renders a PDF preview for all orders. This should be inspected to
|
|
509
|
+
* ensure that the order is correct before it is sent out because it shows what
|
|
510
|
+
* will be printed and mailed to the recipient. Once the PDF preview is generated,
|
|
511
|
+
* this field will be returned by all `GET` endpoints which produce this order.
|
|
512
|
+
*
|
|
513
|
+
* This URL is a signed link to the PDF preview. It will expire after a short
|
|
514
|
+
* period of time. If you need to access this URL after it has expired, you can
|
|
515
|
+
* regenerate it by calling the `GET` endpoint again.
|
|
516
|
+
*/
|
|
517
|
+
url?: string;
|
|
229
518
|
}
|
|
230
|
-
export
|
|
519
|
+
export declare namespace BoxListResponse {
|
|
520
|
+
interface Cheque {
|
|
521
|
+
/**
|
|
522
|
+
* The amount on the cheque.
|
|
523
|
+
*/
|
|
524
|
+
amount: number;
|
|
525
|
+
/**
|
|
526
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
527
|
+
*/
|
|
528
|
+
bankAccount: string;
|
|
529
|
+
from: ContactsAPI.Contact;
|
|
530
|
+
/**
|
|
531
|
+
* The cheque number.
|
|
532
|
+
*/
|
|
533
|
+
number: number;
|
|
534
|
+
to: ContactsAPI.Contact;
|
|
535
|
+
/**
|
|
536
|
+
* A URL to a logo for the cheque (optional).
|
|
537
|
+
*/
|
|
538
|
+
logoURL?: string;
|
|
539
|
+
/**
|
|
540
|
+
* The memo text on the cheque (optional).
|
|
541
|
+
*/
|
|
542
|
+
memo?: string;
|
|
543
|
+
/**
|
|
544
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
545
|
+
* documents (optional).
|
|
546
|
+
*/
|
|
547
|
+
mergeVariables?: {
|
|
548
|
+
[key: string]: unknown;
|
|
549
|
+
};
|
|
550
|
+
/**
|
|
551
|
+
* An optional message template to be printed on or with the cheque.
|
|
552
|
+
*/
|
|
553
|
+
messageTemplate?: string;
|
|
554
|
+
}
|
|
231
555
|
/**
|
|
232
|
-
* The
|
|
556
|
+
* The cancellation details of this order. Populated if the order has been
|
|
557
|
+
* cancelled.
|
|
233
558
|
*/
|
|
234
|
-
|
|
559
|
+
interface Cancellation {
|
|
560
|
+
/**
|
|
561
|
+
* The reason for the cancellation.
|
|
562
|
+
*/
|
|
563
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
564
|
+
/**
|
|
565
|
+
* The user ID who cancelled the order.
|
|
566
|
+
*/
|
|
567
|
+
cancelledByUser?: string;
|
|
568
|
+
/**
|
|
569
|
+
* An optional note provided by the user who cancelled the order.
|
|
570
|
+
*/
|
|
571
|
+
note?: string;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
export interface BoxDeleteResponse {
|
|
235
575
|
/**
|
|
236
|
-
*
|
|
576
|
+
* A unique ID prefixed with box\_
|
|
237
577
|
*/
|
|
238
|
-
|
|
578
|
+
id: string;
|
|
239
579
|
/**
|
|
240
|
-
*
|
|
580
|
+
* The cheques inside this box (in read mode).
|
|
241
581
|
*/
|
|
242
|
-
|
|
582
|
+
cheques: Array<BoxDeleteResponse.Cheque>;
|
|
583
|
+
/**
|
|
584
|
+
* The UTC time at which this resource was created.
|
|
585
|
+
*/
|
|
586
|
+
createdAt: string;
|
|
587
|
+
/**
|
|
588
|
+
* The contact of the 'from' field in read mode should be a fully expanded Contact.
|
|
589
|
+
*/
|
|
590
|
+
from: ContactsAPI.Contact;
|
|
591
|
+
/**
|
|
592
|
+
* `true` if this is a live mode resource else `false`.
|
|
593
|
+
*/
|
|
594
|
+
live: boolean;
|
|
595
|
+
/**
|
|
596
|
+
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
597
|
+
* See `OrderMailingClass` for more details.
|
|
598
|
+
*/
|
|
599
|
+
mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
600
|
+
/**
|
|
601
|
+
* Always "box".
|
|
602
|
+
*/
|
|
603
|
+
object: 'box';
|
|
604
|
+
/**
|
|
605
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
606
|
+
* date. For example, if this is a date on Tuesday, the order will transition to
|
|
607
|
+
* `printing` on Wednesday at midnight eastern time.
|
|
608
|
+
*/
|
|
609
|
+
sendDate: string;
|
|
610
|
+
/**
|
|
611
|
+
* See `OrderStatus` for more details on the status of this order.
|
|
612
|
+
*/
|
|
613
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
614
|
+
/**
|
|
615
|
+
* The recipient of this order. This will be provided even if you delete the
|
|
616
|
+
* underlying contact.
|
|
617
|
+
*/
|
|
618
|
+
to: ContactsAPI.Contact;
|
|
619
|
+
/**
|
|
620
|
+
* The UTC time at which this resource was last updated.
|
|
621
|
+
*/
|
|
622
|
+
updatedAt: string;
|
|
623
|
+
/**
|
|
624
|
+
* The cancellation details of this order. Populated if the order has been
|
|
625
|
+
* cancelled.
|
|
626
|
+
*/
|
|
627
|
+
cancellation?: BoxDeleteResponse.Cancellation;
|
|
628
|
+
/**
|
|
629
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
630
|
+
* dashboard.
|
|
631
|
+
*/
|
|
632
|
+
description?: string;
|
|
633
|
+
/**
|
|
634
|
+
* The last date that the IMB status was updated. See `imbStatus` for more details.
|
|
635
|
+
*/
|
|
636
|
+
imbDate?: string;
|
|
637
|
+
/**
|
|
638
|
+
* The Intelligent Mail Barcode (IMB) status of this order. Only populated for
|
|
639
|
+
* US-printed and US-destined orders. This is the most detailed way to track
|
|
640
|
+
* non-express/certified orders.
|
|
641
|
+
*/
|
|
642
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
643
|
+
/**
|
|
644
|
+
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
645
|
+
* through. Only populated when an `imbStatus` is present.
|
|
646
|
+
*/
|
|
647
|
+
imbZIPCode?: string;
|
|
648
|
+
/**
|
|
649
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
650
|
+
* order with. The keys in this object should match the variable names in the
|
|
651
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
652
|
+
* PDFs uploaded with the order.
|
|
653
|
+
*/
|
|
654
|
+
mergeVariables?: {
|
|
655
|
+
[key: string]: unknown;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* See the section on Metadata.
|
|
659
|
+
*/
|
|
660
|
+
metadata?: {
|
|
661
|
+
[key: string]: unknown;
|
|
662
|
+
};
|
|
663
|
+
/**
|
|
664
|
+
* The tracking number of this order. Populated after an express/certified order
|
|
665
|
+
* has been processed for delivery.
|
|
666
|
+
*/
|
|
667
|
+
trackingNumber?: string;
|
|
668
|
+
/**
|
|
669
|
+
* PostGrid renders a PDF preview for all orders. This should be inspected to
|
|
670
|
+
* ensure that the order is correct before it is sent out because it shows what
|
|
671
|
+
* will be printed and mailed to the recipient. Once the PDF preview is generated,
|
|
672
|
+
* this field will be returned by all `GET` endpoints which produce this order.
|
|
673
|
+
*
|
|
674
|
+
* This URL is a signed link to the PDF preview. It will expire after a short
|
|
675
|
+
* period of time. If you need to access this URL after it has expired, you can
|
|
676
|
+
* regenerate it by calling the `GET` endpoint again.
|
|
677
|
+
*/
|
|
678
|
+
url?: string;
|
|
679
|
+
}
|
|
680
|
+
export declare namespace BoxDeleteResponse {
|
|
681
|
+
interface Cheque {
|
|
682
|
+
/**
|
|
683
|
+
* The amount on the cheque.
|
|
684
|
+
*/
|
|
685
|
+
amount: number;
|
|
686
|
+
/**
|
|
687
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
688
|
+
*/
|
|
689
|
+
bankAccount: string;
|
|
690
|
+
from: ContactsAPI.Contact;
|
|
691
|
+
/**
|
|
692
|
+
* The cheque number.
|
|
693
|
+
*/
|
|
694
|
+
number: number;
|
|
695
|
+
to: ContactsAPI.Contact;
|
|
696
|
+
/**
|
|
697
|
+
* A URL to a logo for the cheque (optional).
|
|
698
|
+
*/
|
|
699
|
+
logoURL?: string;
|
|
700
|
+
/**
|
|
701
|
+
* The memo text on the cheque (optional).
|
|
702
|
+
*/
|
|
703
|
+
memo?: string;
|
|
704
|
+
/**
|
|
705
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
706
|
+
* documents (optional).
|
|
707
|
+
*/
|
|
708
|
+
mergeVariables?: {
|
|
709
|
+
[key: string]: unknown;
|
|
710
|
+
};
|
|
711
|
+
/**
|
|
712
|
+
* An optional message template to be printed on or with the cheque.
|
|
713
|
+
*/
|
|
714
|
+
messageTemplate?: string;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* The cancellation details of this order. Populated if the order has been
|
|
718
|
+
* cancelled.
|
|
719
|
+
*/
|
|
720
|
+
interface Cancellation {
|
|
721
|
+
/**
|
|
722
|
+
* The reason for the cancellation.
|
|
723
|
+
*/
|
|
724
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
725
|
+
/**
|
|
726
|
+
* The user ID who cancelled the order.
|
|
727
|
+
*/
|
|
728
|
+
cancelledByUser?: string;
|
|
729
|
+
/**
|
|
730
|
+
* An optional note provided by the user who cancelled the order.
|
|
731
|
+
*/
|
|
732
|
+
note?: string;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
export interface BoxProgressionsResponse {
|
|
736
|
+
/**
|
|
737
|
+
* A unique ID prefixed with box\_
|
|
738
|
+
*/
|
|
739
|
+
id: string;
|
|
740
|
+
/**
|
|
741
|
+
* The cheques inside this box (in read mode).
|
|
742
|
+
*/
|
|
743
|
+
cheques: Array<BoxProgressionsResponse.Cheque>;
|
|
744
|
+
/**
|
|
745
|
+
* The UTC time at which this resource was created.
|
|
746
|
+
*/
|
|
747
|
+
createdAt: string;
|
|
748
|
+
/**
|
|
749
|
+
* The contact of the 'from' field in read mode should be a fully expanded Contact.
|
|
750
|
+
*/
|
|
751
|
+
from: ContactsAPI.Contact;
|
|
752
|
+
/**
|
|
753
|
+
* `true` if this is a live mode resource else `false`.
|
|
754
|
+
*/
|
|
755
|
+
live: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* The mailing class of this order. This determines the speed and cost of delivery.
|
|
758
|
+
* See `OrderMailingClass` for more details.
|
|
759
|
+
*/
|
|
760
|
+
mailingClass: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
761
|
+
/**
|
|
762
|
+
* Always "box".
|
|
763
|
+
*/
|
|
764
|
+
object: 'box';
|
|
765
|
+
/**
|
|
766
|
+
* This order will transition from `ready` to `printing` on the day after this
|
|
767
|
+
* date. For example, if this is a date on Tuesday, the order will transition to
|
|
768
|
+
* `printing` on Wednesday at midnight eastern time.
|
|
769
|
+
*/
|
|
770
|
+
sendDate: string;
|
|
771
|
+
/**
|
|
772
|
+
* See `OrderStatus` for more details on the status of this order.
|
|
773
|
+
*/
|
|
774
|
+
status: 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
775
|
+
/**
|
|
776
|
+
* The recipient of this order. This will be provided even if you delete the
|
|
777
|
+
* underlying contact.
|
|
778
|
+
*/
|
|
779
|
+
to: ContactsAPI.Contact;
|
|
780
|
+
/**
|
|
781
|
+
* The UTC time at which this resource was last updated.
|
|
782
|
+
*/
|
|
783
|
+
updatedAt: string;
|
|
784
|
+
/**
|
|
785
|
+
* The cancellation details of this order. Populated if the order has been
|
|
786
|
+
* cancelled.
|
|
787
|
+
*/
|
|
788
|
+
cancellation?: BoxProgressionsResponse.Cancellation;
|
|
789
|
+
/**
|
|
790
|
+
* An optional string describing this resource. Will be visible in the API and the
|
|
791
|
+
* dashboard.
|
|
792
|
+
*/
|
|
793
|
+
description?: string;
|
|
794
|
+
/**
|
|
795
|
+
* The last date that the IMB status was updated. See `imbStatus` for more details.
|
|
796
|
+
*/
|
|
797
|
+
imbDate?: string;
|
|
798
|
+
/**
|
|
799
|
+
* The Intelligent Mail Barcode (IMB) status of this order. Only populated for
|
|
800
|
+
* US-printed and US-destined orders. This is the most detailed way to track
|
|
801
|
+
* non-express/certified orders.
|
|
802
|
+
*/
|
|
803
|
+
imbStatus?: 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
804
|
+
/**
|
|
805
|
+
* The most recent ZIP code of the USPS facility that the order has been processed
|
|
806
|
+
* through. Only populated when an `imbStatus` is present.
|
|
807
|
+
*/
|
|
808
|
+
imbZIPCode?: string;
|
|
809
|
+
/**
|
|
810
|
+
* These will be merged with the variables in the template or HTML you create this
|
|
811
|
+
* order with. The keys in this object should match the variable names in the
|
|
812
|
+
* template _exactly_ as they are case-sensitive. Note that these _do not_ apply to
|
|
813
|
+
* PDFs uploaded with the order.
|
|
814
|
+
*/
|
|
815
|
+
mergeVariables?: {
|
|
816
|
+
[key: string]: unknown;
|
|
817
|
+
};
|
|
818
|
+
/**
|
|
819
|
+
* See the section on Metadata.
|
|
820
|
+
*/
|
|
821
|
+
metadata?: {
|
|
822
|
+
[key: string]: unknown;
|
|
823
|
+
};
|
|
824
|
+
/**
|
|
825
|
+
* The tracking number of this order. Populated after an express/certified order
|
|
826
|
+
* has been processed for delivery.
|
|
827
|
+
*/
|
|
828
|
+
trackingNumber?: string;
|
|
829
|
+
/**
|
|
830
|
+
* PostGrid renders a PDF preview for all orders. This should be inspected to
|
|
831
|
+
* ensure that the order is correct before it is sent out because it shows what
|
|
832
|
+
* will be printed and mailed to the recipient. Once the PDF preview is generated,
|
|
833
|
+
* this field will be returned by all `GET` endpoints which produce this order.
|
|
834
|
+
*
|
|
835
|
+
* This URL is a signed link to the PDF preview. It will expire after a short
|
|
836
|
+
* period of time. If you need to access this URL after it has expired, you can
|
|
837
|
+
* regenerate it by calling the `GET` endpoint again.
|
|
838
|
+
*/
|
|
839
|
+
url?: string;
|
|
840
|
+
}
|
|
841
|
+
export declare namespace BoxProgressionsResponse {
|
|
842
|
+
interface Cheque {
|
|
843
|
+
/**
|
|
844
|
+
* The amount on the cheque.
|
|
845
|
+
*/
|
|
846
|
+
amount: number;
|
|
847
|
+
/**
|
|
848
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
849
|
+
*/
|
|
850
|
+
bankAccount: string;
|
|
851
|
+
from: ContactsAPI.Contact;
|
|
852
|
+
/**
|
|
853
|
+
* The cheque number.
|
|
854
|
+
*/
|
|
855
|
+
number: number;
|
|
856
|
+
to: ContactsAPI.Contact;
|
|
857
|
+
/**
|
|
858
|
+
* A URL to a logo for the cheque (optional).
|
|
859
|
+
*/
|
|
860
|
+
logoURL?: string;
|
|
861
|
+
/**
|
|
862
|
+
* The memo text on the cheque (optional).
|
|
863
|
+
*/
|
|
864
|
+
memo?: string;
|
|
865
|
+
/**
|
|
866
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
867
|
+
* documents (optional).
|
|
868
|
+
*/
|
|
869
|
+
mergeVariables?: {
|
|
870
|
+
[key: string]: unknown;
|
|
871
|
+
};
|
|
872
|
+
/**
|
|
873
|
+
* An optional message template to be printed on or with the cheque.
|
|
874
|
+
*/
|
|
875
|
+
messageTemplate?: string;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* The cancellation details of this order. Populated if the order has been
|
|
879
|
+
* cancelled.
|
|
880
|
+
*/
|
|
881
|
+
interface Cancellation {
|
|
882
|
+
/**
|
|
883
|
+
* The reason for the cancellation.
|
|
884
|
+
*/
|
|
885
|
+
reason: 'user_initiated' | 'invalid_content' | 'invalid_order_mailing_class';
|
|
886
|
+
/**
|
|
887
|
+
* The user ID who cancelled the order.
|
|
888
|
+
*/
|
|
889
|
+
cancelledByUser?: string;
|
|
890
|
+
/**
|
|
891
|
+
* An optional note provided by the user who cancelled the order.
|
|
892
|
+
*/
|
|
893
|
+
note?: string;
|
|
894
|
+
}
|
|
243
895
|
}
|
|
244
|
-
export type OrderImbStatus = 'entered_mail_stream' | 'out_for_delivery' | 'returned_to_sender';
|
|
245
|
-
export type OrderMailingClass = 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
246
|
-
export type OrderStatus = 'ready' | 'printing' | 'processed_for_delivery' | 'completed' | 'cancelled';
|
|
247
896
|
export interface BoxCreateParams {
|
|
248
897
|
/**
|
|
249
898
|
* The cheques to be mailed in the box. Only 100 cheques can be included in a box
|
|
@@ -254,14 +903,14 @@ export interface BoxCreateParams {
|
|
|
254
903
|
* The 'from' (sender) of the entire box. Accepts inline ContactCreate or a
|
|
255
904
|
* contactID.
|
|
256
905
|
*/
|
|
257
|
-
from:
|
|
906
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
258
907
|
/**
|
|
259
908
|
* The recipient of this order. You can either supply the contact information
|
|
260
909
|
* inline here or provide a contact ID. PostGrid will automatically deduplicate
|
|
261
910
|
* contacts regardless of whether you provide the information inline here or call
|
|
262
911
|
* the contact creation endpoint.
|
|
263
912
|
*/
|
|
264
|
-
to:
|
|
913
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
265
914
|
/**
|
|
266
915
|
* An optional string describing this resource. Will be visible in the API and the
|
|
267
916
|
* dashboard.
|
|
@@ -271,7 +920,7 @@ export interface BoxCreateParams {
|
|
|
271
920
|
* The mailing class of this order. If not provided, automatically set to
|
|
272
921
|
* `first_class`.
|
|
273
922
|
*/
|
|
274
|
-
mailingClass?:
|
|
923
|
+
mailingClass?: 'first_class' | 'standard_class' | 'express' | 'certified' | 'certified_return_receipt' | 'registered' | 'usps_first_class' | 'usps_standard_class' | 'usps_eddm' | 'usps_express_2_day' | 'usps_express_3_day' | 'usps_first_class_certified' | 'usps_first_class_certified_return_receipt' | 'usps_first_class_registered' | 'usps_express_3_day_signature_confirmation' | 'usps_express_3_day_certified' | 'usps_express_3_day_certified_return_receipt' | 'ca_post_lettermail' | 'ca_post_personalized' | 'ca_post_neighbourhood_mail' | 'ups_express_overnight' | 'ups_express_2_day' | 'ups_express_3_day' | 'royal_mail_first_class' | 'royal_mail_second_class' | 'au_post_second_class';
|
|
275
924
|
/**
|
|
276
925
|
* These will be merged with the variables in the template or HTML you create this
|
|
277
926
|
* order with. The keys in this object should match the variable names in the
|
|
@@ -294,15 +943,40 @@ export interface BoxCreateParams {
|
|
|
294
943
|
sendDate?: string;
|
|
295
944
|
}
|
|
296
945
|
export declare namespace BoxCreateParams {
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
946
|
+
interface Cheque {
|
|
947
|
+
/**
|
|
948
|
+
* The amount on the cheque.
|
|
949
|
+
*/
|
|
950
|
+
amount: number;
|
|
951
|
+
/**
|
|
952
|
+
* The bank account (ID or reference) from which the cheque amount is drawn.
|
|
953
|
+
*/
|
|
954
|
+
bankAccount: string;
|
|
955
|
+
from: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
956
|
+
/**
|
|
957
|
+
* The cheque number.
|
|
958
|
+
*/
|
|
959
|
+
number: number;
|
|
960
|
+
to: ContactsAPI.ContactCreateWithFirstName | ContactsAPI.ContactCreateWithCompanyName | string;
|
|
961
|
+
/**
|
|
962
|
+
* A URL to a logo for the cheque (optional).
|
|
963
|
+
*/
|
|
964
|
+
logoURL?: string;
|
|
965
|
+
/**
|
|
966
|
+
* The memo text on the cheque (optional).
|
|
967
|
+
*/
|
|
968
|
+
memo?: string;
|
|
969
|
+
/**
|
|
970
|
+
* A set of dynamic merge variables for customizing the cheque or accompanying
|
|
971
|
+
* documents (optional).
|
|
972
|
+
*/
|
|
973
|
+
mergeVariables?: {
|
|
974
|
+
[key: string]: unknown;
|
|
975
|
+
};
|
|
976
|
+
/**
|
|
977
|
+
* An optional message template to be printed on or with the cheque.
|
|
978
|
+
*/
|
|
979
|
+
messageTemplate?: string;
|
|
306
980
|
}
|
|
307
981
|
}
|
|
308
982
|
export interface BoxListParams extends SkipLimitParams {
|
|
@@ -316,6 +990,6 @@ export interface BoxListParams extends SkipLimitParams {
|
|
|
316
990
|
search?: string;
|
|
317
991
|
}
|
|
318
992
|
export declare namespace Boxes {
|
|
319
|
-
export { type
|
|
993
|
+
export { type BoxCreateResponse as BoxCreateResponse, type BoxRetrieveResponse as BoxRetrieveResponse, type BoxListResponse as BoxListResponse, type BoxDeleteResponse as BoxDeleteResponse, type BoxProgressionsResponse as BoxProgressionsResponse, type BoxListResponsesSkipLimit as BoxListResponsesSkipLimit, type BoxCreateParams as BoxCreateParams, type BoxListParams as BoxListParams, };
|
|
320
994
|
}
|
|
321
995
|
//# sourceMappingURL=boxes.d.mts.map
|