@augno/sdk 0.1.9 → 0.7.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 +4 -9
- package/README.md +27 -0
- package/api-promise.d.mts +0 -1
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +0 -1
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +0 -1
- package/api-promise.mjs.map +1 -1
- package/client.d.mts +15 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -3
- package/client.d.ts.map +1 -1
- package/client.js +18 -1
- package/client.js.map +1 -1
- package/client.mjs +18 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +0 -1
- package/error.d.mts.map +1 -1
- package/error.d.ts +0 -1
- package/error.d.ts.map +1 -1
- package/error.mjs +0 -1
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +0 -6
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +0 -6
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.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.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +3 -3
- package/resource.d.mts +0 -1
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +0 -1
- package/resource.d.ts.map +1 -1
- package/resource.mjs +0 -1
- package/resource.mjs.map +1 -1
- package/resources/auth/api-keys/actions.d.mts +28 -5
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +28 -5
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +6 -1
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +6 -1
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +144 -72
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +144 -72
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +32 -22
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +32 -22
- package/resources/auth/api-keys/api-keys.mjs.map +1 -1
- package/resources/auth/api-keys/index.d.mts +1 -1
- package/resources/auth/api-keys/index.d.mts.map +1 -1
- package/resources/auth/api-keys/index.d.ts +1 -1
- package/resources/auth/api-keys/index.d.ts.map +1 -1
- package/resources/auth/api-keys/index.mjs.map +1 -1
- package/resources/auth/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys.mjs.map +1 -1
- package/resources/auth/auth.d.mts +1 -1
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +1 -1
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/index.d.mts +1 -1
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -1
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.mjs.map +1 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/catalog/catalog.d.mts +9 -9
- package/resources/catalog/catalog.d.mts.map +1 -1
- package/resources/catalog/catalog.d.ts +9 -9
- package/resources/catalog/catalog.d.ts.map +1 -1
- package/resources/catalog/catalog.mjs.map +1 -1
- package/resources/catalog/index.d.mts +9 -9
- package/resources/catalog/index.d.mts.map +1 -1
- package/resources/catalog/index.d.ts +9 -9
- package/resources/catalog/index.d.ts.map +1 -1
- package/resources/catalog/index.mjs.map +1 -1
- package/resources/catalog/item-categories/index.d.mts +1 -1
- package/resources/catalog/item-categories/index.d.mts.map +1 -1
- package/resources/catalog/item-categories/index.d.ts +1 -1
- package/resources/catalog/item-categories/index.d.ts.map +1 -1
- package/resources/catalog/item-categories/index.mjs.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.mts +107 -65
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +107 -65
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +50 -30
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +50 -30
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +13 -4
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +13 -4
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +13 -4
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +13 -4
- package/resources/catalog/item-categories/properties.mjs.map +1 -1
- package/resources/catalog/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories.mjs.map +1 -1
- package/resources/catalog/items/attributes.d.mts +7 -2
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +7 -2
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +7 -2
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +7 -2
- package/resources/catalog/items/attributes.mjs.map +1 -1
- package/resources/catalog/items/index.d.mts +1 -1
- package/resources/catalog/items/index.d.mts.map +1 -1
- package/resources/catalog/items/index.d.ts +1 -1
- package/resources/catalog/items/index.d.ts.map +1 -1
- package/resources/catalog/items/index.mjs.map +1 -1
- package/resources/catalog/items/items.d.mts +96 -52
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +96 -52
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +32 -21
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +32 -21
- package/resources/catalog/items/items.mjs.map +1 -1
- package/resources/catalog/items.d.mts.map +1 -1
- package/resources/catalog/items.d.ts.map +1 -1
- package/resources/catalog/items.mjs.map +1 -1
- package/resources/catalog/materials.d.mts +156 -94
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +156 -94
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +44 -19
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +44 -19
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +142 -74
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +142 -74
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +49 -20
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +49 -20
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +157 -70
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +157 -70
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +43 -26
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +43 -26
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +205 -94
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +205 -94
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +39 -20
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +39 -20
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +106 -44
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +106 -44
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +41 -21
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +41 -21
- package/resources/catalog/properties/attributes.mjs.map +1 -1
- package/resources/catalog/properties/index.d.mts +2 -2
- package/resources/catalog/properties/index.d.mts.map +1 -1
- package/resources/catalog/properties/index.d.ts +2 -2
- package/resources/catalog/properties/index.d.ts.map +1 -1
- package/resources/catalog/properties/index.mjs.map +1 -1
- package/resources/catalog/properties/properties.d.mts +80 -47
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +80 -47
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +29 -18
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +29 -18
- package/resources/catalog/properties/properties.mjs.map +1 -1
- package/resources/catalog/properties.d.mts.map +1 -1
- package/resources/catalog/properties.d.ts.map +1 -1
- package/resources/catalog/properties.mjs.map +1 -1
- package/resources/catalog/unit-groups/index.d.mts +2 -2
- package/resources/catalog/unit-groups/index.d.mts.map +1 -1
- package/resources/catalog/unit-groups/index.d.ts +2 -2
- package/resources/catalog/unit-groups/index.d.ts.map +1 -1
- package/resources/catalog/unit-groups/index.mjs.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.mts +144 -86
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +144 -86
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +44 -25
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +44 -25
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +88 -54
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +88 -54
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +44 -25
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +44 -25
- package/resources/catalog/unit-groups/units.mjs.map +1 -1
- package/resources/catalog/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups.mjs.map +1 -1
- package/resources/catalog/units.d.mts +145 -85
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +145 -85
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +39 -26
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +39 -26
- package/resources/catalog/units.mjs.map +1 -1
- package/resources/catalog.d.mts.map +1 -1
- package/resources/catalog.d.ts.map +1 -1
- package/resources/catalog.mjs.map +1 -1
- package/resources/core/addresses/actions.d.mts +12 -5
- package/resources/core/addresses/actions.d.mts.map +1 -1
- package/resources/core/addresses/actions.d.ts +12 -5
- package/resources/core/addresses/actions.d.ts.map +1 -1
- package/resources/core/addresses/actions.mjs.map +1 -1
- package/resources/core/addresses/addresses.d.mts +5 -2
- package/resources/core/addresses/addresses.d.mts.map +1 -1
- package/resources/core/addresses/addresses.d.ts +5 -2
- package/resources/core/addresses/addresses.d.ts.map +1 -1
- package/resources/core/addresses/addresses.js.map +1 -1
- package/resources/core/addresses/addresses.mjs.map +1 -1
- package/resources/core/addresses/index.d.mts.map +1 -1
- package/resources/core/addresses/index.d.ts.map +1 -1
- package/resources/core/addresses/index.mjs.map +1 -1
- package/resources/core/addresses.d.mts.map +1 -1
- package/resources/core/addresses.d.ts.map +1 -1
- package/resources/core/addresses.mjs.map +1 -1
- package/resources/core/audit-events.d.mts +96 -37
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +96 -37
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +19 -10
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +19 -10
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +107 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +107 -4
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.js +19 -0
- package/resources/core/core.js.map +1 -1
- package/resources/core/core.mjs +19 -0
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +37 -22
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +37 -22
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +14 -10
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +14 -10
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +5 -5
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +5 -5
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.js.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +107 -54
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +107 -54
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +14 -10
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +14 -10
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +62 -33
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +62 -33
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +28 -13
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +28 -13
- package/resources/core/sandboxes.mjs.map +1 -1
- package/resources/core.d.mts.map +1 -1
- package/resources/core.d.ts.map +1 -1
- package/resources/core.mjs.map +1 -1
- package/resources/finance/finance.d.mts +69 -35
- package/resources/finance/finance.d.mts.map +1 -1
- package/resources/finance/finance.d.ts +69 -35
- package/resources/finance/finance.d.ts.map +1 -1
- package/resources/finance/finance.js +10 -10
- package/resources/finance/finance.js.map +1 -1
- package/resources/finance/finance.mjs +10 -10
- package/resources/finance/finance.mjs.map +1 -1
- package/resources/finance/index.d.mts +2 -2
- package/resources/finance/index.d.mts.map +1 -1
- package/resources/finance/index.d.ts +2 -2
- package/resources/finance/index.d.ts.map +1 -1
- package/resources/finance/index.mjs.map +1 -1
- package/resources/finance/payment-terms.d.mts +82 -43
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +82 -43
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +43 -22
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +43 -22
- package/resources/finance/payment-terms.mjs.map +1 -1
- package/resources/finance.d.mts.map +1 -1
- package/resources/finance.d.ts.map +1 -1
- package/resources/finance.mjs.map +1 -1
- package/resources/identity/account-users/account-users.d.mts +181 -82
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +181 -82
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +55 -25
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +55 -25
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +22 -3
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +22 -3
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +22 -3
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +22 -3
- package/resources/identity/account-users/actions.mjs.map +1 -1
- package/resources/identity/account-users/index.d.mts +1 -1
- package/resources/identity/account-users/index.d.mts.map +1 -1
- package/resources/identity/account-users/index.d.ts +1 -1
- package/resources/identity/account-users/index.d.ts.map +1 -1
- package/resources/identity/account-users/index.mjs.map +1 -1
- package/resources/identity/account-users.d.mts.map +1 -1
- package/resources/identity/account-users.d.ts.map +1 -1
- package/resources/identity/account-users.mjs.map +1 -1
- package/resources/identity/identity.d.mts +2 -2
- package/resources/identity/identity.d.mts.map +1 -1
- package/resources/identity/identity.d.ts +2 -2
- package/resources/identity/identity.d.ts.map +1 -1
- package/resources/identity/identity.mjs.map +1 -1
- package/resources/identity/index.d.mts +2 -2
- package/resources/identity/index.d.mts.map +1 -1
- package/resources/identity/index.d.ts +2 -2
- package/resources/identity/index.d.ts.map +1 -1
- package/resources/identity/index.mjs.map +1 -1
- package/resources/identity/roles.d.mts +103 -60
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +103 -60
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +47 -27
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +47 -27
- package/resources/identity/roles.mjs.map +1 -1
- package/resources/identity.d.mts.map +1 -1
- package/resources/identity.d.ts.map +1 -1
- package/resources/identity.mjs.map +1 -1
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/messaging/announcements/actions.d.mts +76 -0
- package/resources/messaging/announcements/actions.d.mts.map +1 -0
- package/resources/messaging/announcements/actions.d.ts +76 -0
- package/resources/messaging/announcements/actions.d.ts.map +1 -0
- package/resources/messaging/announcements/actions.js +73 -0
- package/resources/messaging/announcements/actions.js.map +1 -0
- package/resources/messaging/announcements/actions.mjs +69 -0
- package/resources/messaging/announcements/actions.mjs.map +1 -0
- package/resources/messaging/announcements/announcements.d.mts +173 -0
- package/resources/messaging/announcements/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements/announcements.d.ts +173 -0
- package/resources/messaging/announcements/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements/announcements.js +52 -0
- package/resources/messaging/announcements/announcements.js.map +1 -0
- package/resources/messaging/announcements/announcements.mjs +47 -0
- package/resources/messaging/announcements/announcements.mjs.map +1 -0
- package/resources/messaging/announcements/index.d.mts +3 -0
- package/resources/messaging/announcements/index.d.mts.map +1 -0
- package/resources/messaging/announcements/index.d.ts +3 -0
- package/resources/messaging/announcements/index.d.ts.map +1 -0
- package/resources/messaging/announcements/index.js +9 -0
- package/resources/messaging/announcements/index.js.map +1 -0
- package/resources/messaging/announcements/index.mjs +4 -0
- package/resources/messaging/announcements/index.mjs.map +1 -0
- package/resources/messaging/announcements.d.mts +2 -0
- package/resources/messaging/announcements.d.mts.map +1 -0
- package/resources/messaging/announcements.d.ts +2 -0
- package/resources/messaging/announcements.d.ts.map +1 -0
- package/resources/messaging/announcements.js +6 -0
- package/resources/messaging/announcements.js.map +1 -0
- package/resources/messaging/announcements.mjs +3 -0
- package/resources/messaging/announcements.mjs.map +1 -0
- package/resources/messaging/blocks.d.mts +674 -0
- package/resources/messaging/blocks.d.mts.map +1 -0
- package/resources/messaging/blocks.d.ts +674 -0
- package/resources/messaging/blocks.d.ts.map +1 -0
- package/resources/messaging/blocks.js +61 -0
- package/resources/messaging/blocks.js.map +1 -0
- package/resources/messaging/blocks.mjs +57 -0
- package/resources/messaging/blocks.mjs.map +1 -0
- package/resources/messaging/conversations/actions.d.mts +422 -0
- package/resources/messaging/conversations/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/actions.d.ts +422 -0
- package/resources/messaging/conversations/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/actions.js +299 -0
- package/resources/messaging/conversations/actions.js.map +1 -0
- package/resources/messaging/conversations/actions.mjs +295 -0
- package/resources/messaging/conversations/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.mts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.d.ts +87 -0
- package/resources/messaging/conversations/attachments/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/actions.js +36 -0
- package/resources/messaging/conversations/attachments/actions.js.map +1 -0
- package/resources/messaging/conversations/attachments/actions.mjs +32 -0
- package/resources/messaging/conversations/attachments/actions.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts +10 -0
- package/resources/messaging/conversations/attachments/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.js +17 -0
- package/resources/messaging/conversations/attachments/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments/attachments.mjs +12 -0
- package/resources/messaging/conversations/attachments/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.mts +3 -0
- package/resources/messaging/conversations/attachments/index.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments/index.d.ts +3 -0
- package/resources/messaging/conversations/attachments/index.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments/index.js +9 -0
- package/resources/messaging/conversations/attachments/index.js.map +1 -0
- package/resources/messaging/conversations/attachments/index.mjs +4 -0
- package/resources/messaging/conversations/attachments/index.mjs.map +1 -0
- package/resources/messaging/conversations/attachments.d.mts +2 -0
- package/resources/messaging/conversations/attachments.d.mts.map +1 -0
- package/resources/messaging/conversations/attachments.d.ts +2 -0
- package/resources/messaging/conversations/attachments.d.ts.map +1 -0
- package/resources/messaging/conversations/attachments.js +6 -0
- package/resources/messaging/conversations/attachments.js.map +1 -0
- package/resources/messaging/conversations/attachments.mjs +3 -0
- package/resources/messaging/conversations/attachments.mjs.map +1 -0
- package/resources/messaging/conversations/conversations.d.mts +1328 -0
- package/resources/messaging/conversations/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations/conversations.d.ts +1328 -0
- package/resources/messaging/conversations/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations/conversations.js +109 -0
- package/resources/messaging/conversations/conversations.js.map +1 -0
- package/resources/messaging/conversations/conversations.mjs +104 -0
- package/resources/messaging/conversations/conversations.mjs.map +1 -0
- package/resources/messaging/conversations/index.d.mts +7 -0
- package/resources/messaging/conversations/index.d.mts.map +1 -0
- package/resources/messaging/conversations/index.d.ts +7 -0
- package/resources/messaging/conversations/index.d.ts.map +1 -0
- package/resources/messaging/conversations/index.js +17 -0
- package/resources/messaging/conversations/index.js.map +1 -0
- package/resources/messaging/conversations/index.mjs +8 -0
- package/resources/messaging/conversations/index.mjs.map +1 -0
- package/resources/messaging/conversations/links.d.mts +149 -0
- package/resources/messaging/conversations/links.d.mts.map +1 -0
- package/resources/messaging/conversations/links.d.ts +149 -0
- package/resources/messaging/conversations/links.d.ts.map +1 -0
- package/resources/messaging/conversations/links.js +72 -0
- package/resources/messaging/conversations/links.js.map +1 -0
- package/resources/messaging/conversations/links.mjs +68 -0
- package/resources/messaging/conversations/links.mjs.map +1 -0
- package/resources/messaging/conversations/messages.d.mts +332 -0
- package/resources/messaging/conversations/messages.d.mts.map +1 -0
- package/resources/messaging/conversations/messages.d.ts +332 -0
- package/resources/messaging/conversations/messages.d.ts.map +1 -0
- package/resources/messaging/conversations/messages.js +60 -0
- package/resources/messaging/conversations/messages.js.map +1 -0
- package/resources/messaging/conversations/messages.mjs +56 -0
- package/resources/messaging/conversations/messages.mjs.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.mts +62 -0
- package/resources/messaging/conversations/participants/actions.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/actions.d.ts +62 -0
- package/resources/messaging/conversations/participants/actions.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/actions.js +35 -0
- package/resources/messaging/conversations/participants/actions.js.map +1 -0
- package/resources/messaging/conversations/participants/actions.mjs +31 -0
- package/resources/messaging/conversations/participants/actions.mjs.map +1 -0
- package/resources/messaging/conversations/participants/index.d.mts +3 -0
- package/resources/messaging/conversations/participants/index.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/index.d.ts +3 -0
- package/resources/messaging/conversations/participants/index.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/index.js +9 -0
- package/resources/messaging/conversations/participants/index.js.map +1 -0
- package/resources/messaging/conversations/participants/index.mjs +4 -0
- package/resources/messaging/conversations/participants/index.mjs.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.mts +100 -0
- package/resources/messaging/conversations/participants/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants/participants.d.ts +100 -0
- package/resources/messaging/conversations/participants/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants/participants.js +64 -0
- package/resources/messaging/conversations/participants/participants.js.map +1 -0
- package/resources/messaging/conversations/participants/participants.mjs +59 -0
- package/resources/messaging/conversations/participants/participants.mjs.map +1 -0
- package/resources/messaging/conversations/participants.d.mts +2 -0
- package/resources/messaging/conversations/participants.d.mts.map +1 -0
- package/resources/messaging/conversations/participants.d.ts +2 -0
- package/resources/messaging/conversations/participants.d.ts.map +1 -0
- package/resources/messaging/conversations/participants.js +6 -0
- package/resources/messaging/conversations/participants.js.map +1 -0
- package/resources/messaging/conversations/participants.mjs +3 -0
- package/resources/messaging/conversations/participants.mjs.map +1 -0
- package/resources/messaging/conversations.d.mts +2 -0
- package/resources/messaging/conversations.d.mts.map +1 -0
- package/resources/messaging/conversations.d.ts +2 -0
- package/resources/messaging/conversations.d.ts.map +1 -0
- package/resources/messaging/conversations.js +6 -0
- package/resources/messaging/conversations.js.map +1 -0
- package/resources/messaging/conversations.mjs +3 -0
- package/resources/messaging/conversations.mjs.map +1 -0
- package/resources/messaging/email-domains/actions.d.mts +27 -0
- package/resources/messaging/email-domains/actions.d.mts.map +1 -0
- package/resources/messaging/email-domains/actions.d.ts +27 -0
- package/resources/messaging/email-domains/actions.d.ts.map +1 -0
- package/resources/messaging/email-domains/actions.js +32 -0
- package/resources/messaging/email-domains/actions.js.map +1 -0
- package/resources/messaging/email-domains/actions.mjs +28 -0
- package/resources/messaging/email-domains/actions.mjs.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.mts +136 -0
- package/resources/messaging/email-domains/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains/email-domains.d.ts +136 -0
- package/resources/messaging/email-domains/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains/email-domains.js +70 -0
- package/resources/messaging/email-domains/email-domains.js.map +1 -0
- package/resources/messaging/email-domains/email-domains.mjs +65 -0
- package/resources/messaging/email-domains/email-domains.mjs.map +1 -0
- package/resources/messaging/email-domains/index.d.mts +3 -0
- package/resources/messaging/email-domains/index.d.mts.map +1 -0
- package/resources/messaging/email-domains/index.d.ts +3 -0
- package/resources/messaging/email-domains/index.d.ts.map +1 -0
- package/resources/messaging/email-domains/index.js +9 -0
- package/resources/messaging/email-domains/index.js.map +1 -0
- package/resources/messaging/email-domains/index.mjs +4 -0
- package/resources/messaging/email-domains/index.mjs.map +1 -0
- package/resources/messaging/email-domains.d.mts +2 -0
- package/resources/messaging/email-domains.d.mts.map +1 -0
- package/resources/messaging/email-domains.d.ts +2 -0
- package/resources/messaging/email-domains.d.ts.map +1 -0
- package/resources/messaging/email-domains.js +6 -0
- package/resources/messaging/email-domains.js.map +1 -0
- package/resources/messaging/email-domains.mjs +3 -0
- package/resources/messaging/email-domains.mjs.map +1 -0
- package/resources/messaging/email-inboxes.d.mts +327 -0
- package/resources/messaging/email-inboxes.d.mts.map +1 -0
- package/resources/messaging/email-inboxes.d.ts +327 -0
- package/resources/messaging/email-inboxes.d.ts.map +1 -0
- package/resources/messaging/email-inboxes.js +101 -0
- package/resources/messaging/email-inboxes.js.map +1 -0
- package/resources/messaging/email-inboxes.mjs +97 -0
- package/resources/messaging/email-inboxes.mjs.map +1 -0
- package/resources/messaging/groups/groups.d.mts +159 -0
- package/resources/messaging/groups/groups.d.mts.map +1 -0
- package/resources/messaging/groups/groups.d.ts +159 -0
- package/resources/messaging/groups/groups.d.ts.map +1 -0
- package/resources/messaging/groups/groups.js +107 -0
- package/resources/messaging/groups/groups.js.map +1 -0
- package/resources/messaging/groups/groups.mjs +102 -0
- package/resources/messaging/groups/groups.mjs.map +1 -0
- package/resources/messaging/groups/index.d.mts +3 -0
- package/resources/messaging/groups/index.d.mts.map +1 -0
- package/resources/messaging/groups/index.d.ts +3 -0
- package/resources/messaging/groups/index.d.ts.map +1 -0
- package/resources/messaging/groups/index.js +9 -0
- package/resources/messaging/groups/index.js.map +1 -0
- package/resources/messaging/groups/index.mjs +4 -0
- package/resources/messaging/groups/index.mjs.map +1 -0
- package/resources/messaging/groups/members.d.mts +83 -0
- package/resources/messaging/groups/members.d.mts.map +1 -0
- package/resources/messaging/groups/members.d.ts +83 -0
- package/resources/messaging/groups/members.d.ts.map +1 -0
- package/resources/messaging/groups/members.js +51 -0
- package/resources/messaging/groups/members.js.map +1 -0
- package/resources/messaging/groups/members.mjs +47 -0
- package/resources/messaging/groups/members.mjs.map +1 -0
- package/resources/messaging/groups.d.mts +2 -0
- package/resources/messaging/groups.d.mts.map +1 -0
- package/resources/messaging/groups.d.ts +2 -0
- package/resources/messaging/groups.d.ts.map +1 -0
- package/resources/messaging/groups.js +6 -0
- package/resources/messaging/groups.js.map +1 -0
- package/resources/messaging/groups.mjs +3 -0
- package/resources/messaging/groups.mjs.map +1 -0
- package/resources/messaging/index.d.mts +11 -0
- package/resources/messaging/index.d.mts.map +1 -0
- package/resources/messaging/index.d.ts +11 -0
- package/resources/messaging/index.d.ts.map +1 -0
- package/resources/messaging/index.js +25 -0
- package/resources/messaging/index.js.map +1 -0
- package/resources/messaging/index.mjs +12 -0
- package/resources/messaging/index.mjs.map +1 -0
- package/resources/messaging/messages/actions.d.mts +95 -0
- package/resources/messaging/messages/actions.d.mts.map +1 -0
- package/resources/messaging/messages/actions.d.ts +95 -0
- package/resources/messaging/messages/actions.d.ts.map +1 -0
- package/resources/messaging/messages/actions.js +79 -0
- package/resources/messaging/messages/actions.js.map +1 -0
- package/resources/messaging/messages/actions.mjs +75 -0
- package/resources/messaging/messages/actions.mjs.map +1 -0
- package/resources/messaging/messages/index.d.mts +3 -0
- package/resources/messaging/messages/index.d.mts.map +1 -0
- package/resources/messaging/messages/index.d.ts +3 -0
- package/resources/messaging/messages/index.d.ts.map +1 -0
- package/resources/messaging/messages/index.js +9 -0
- package/resources/messaging/messages/index.js.map +1 -0
- package/resources/messaging/messages/index.mjs +4 -0
- package/resources/messaging/messages/index.mjs.map +1 -0
- package/resources/messaging/messages/messages.d.mts +61 -0
- package/resources/messaging/messages/messages.d.mts.map +1 -0
- package/resources/messaging/messages/messages.d.ts +61 -0
- package/resources/messaging/messages/messages.d.ts.map +1 -0
- package/resources/messaging/messages/messages.js +40 -0
- package/resources/messaging/messages/messages.js.map +1 -0
- package/resources/messaging/messages/messages.mjs +35 -0
- package/resources/messaging/messages/messages.mjs.map +1 -0
- package/resources/messaging/messages.d.mts +2 -0
- package/resources/messaging/messages.d.mts.map +1 -0
- package/resources/messaging/messages.d.ts +2 -0
- package/resources/messaging/messages.d.ts.map +1 -0
- package/resources/messaging/messages.js +6 -0
- package/resources/messaging/messages.js.map +1 -0
- package/resources/messaging/messages.mjs +3 -0
- package/resources/messaging/messages.mjs.map +1 -0
- package/resources/messaging/messaging.d.mts +103 -0
- package/resources/messaging/messaging.d.mts.map +1 -0
- package/resources/messaging/messaging.d.ts +103 -0
- package/resources/messaging/messaging.d.ts.map +1 -0
- package/resources/messaging/messaging.js +65 -0
- package/resources/messaging/messaging.js.map +1 -0
- package/resources/messaging/messaging.mjs +60 -0
- package/resources/messaging/messaging.mjs.map +1 -0
- package/resources/messaging/notifications/actions.d.mts +92 -0
- package/resources/messaging/notifications/actions.d.mts.map +1 -0
- package/resources/messaging/notifications/actions.d.ts +92 -0
- package/resources/messaging/notifications/actions.d.ts.map +1 -0
- package/resources/messaging/notifications/actions.js +89 -0
- package/resources/messaging/notifications/actions.js.map +1 -0
- package/resources/messaging/notifications/actions.mjs +85 -0
- package/resources/messaging/notifications/actions.mjs.map +1 -0
- package/resources/messaging/notifications/index.d.mts +3 -0
- package/resources/messaging/notifications/index.d.mts.map +1 -0
- package/resources/messaging/notifications/index.d.ts +3 -0
- package/resources/messaging/notifications/index.d.ts.map +1 -0
- package/resources/messaging/notifications/index.js +9 -0
- package/resources/messaging/notifications/index.js.map +1 -0
- package/resources/messaging/notifications/index.mjs +4 -0
- package/resources/messaging/notifications/index.mjs.map +1 -0
- package/resources/messaging/notifications/notifications.d.mts +440 -0
- package/resources/messaging/notifications/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications/notifications.d.ts +440 -0
- package/resources/messaging/notifications/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications/notifications.js +104 -0
- package/resources/messaging/notifications/notifications.js.map +1 -0
- package/resources/messaging/notifications/notifications.mjs +99 -0
- package/resources/messaging/notifications/notifications.mjs.map +1 -0
- package/resources/messaging/notifications.d.mts +2 -0
- package/resources/messaging/notifications.d.mts.map +1 -0
- package/resources/messaging/notifications.d.ts +2 -0
- package/resources/messaging/notifications.d.ts.map +1 -0
- package/resources/messaging/notifications.js +6 -0
- package/resources/messaging/notifications.js.map +1 -0
- package/resources/messaging/notifications.mjs +3 -0
- package/resources/messaging/notifications.mjs.map +1 -0
- package/resources/messaging/preferences.d.mts +180 -0
- package/resources/messaging/preferences.d.mts.map +1 -0
- package/resources/messaging/preferences.d.ts +180 -0
- package/resources/messaging/preferences.d.ts.map +1 -0
- package/resources/messaging/preferences.js +47 -0
- package/resources/messaging/preferences.js.map +1 -0
- package/resources/messaging/preferences.mjs +43 -0
- package/resources/messaging/preferences.mjs.map +1 -0
- package/resources/messaging.d.mts +2 -0
- package/resources/messaging.d.mts.map +1 -0
- package/resources/messaging.d.ts +2 -0
- package/resources/messaging.d.ts.map +1 -0
- package/resources/messaging.js +6 -0
- package/resources/messaging.js.map +1 -0
- package/resources/messaging.mjs +3 -0
- package/resources/messaging.mjs.map +1 -0
- package/resources/operations/carriers/carriers.d.mts +102 -63
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +102 -63
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +41 -21
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +41 -21
- package/resources/operations/carriers/carriers.mjs.map +1 -1
- package/resources/operations/carriers/index.d.mts +2 -2
- package/resources/operations/carriers/index.d.mts.map +1 -1
- package/resources/operations/carriers/index.d.ts +2 -2
- package/resources/operations/carriers/index.d.ts.map +1 -1
- package/resources/operations/carriers/index.mjs.map +1 -1
- package/resources/operations/carriers/service-levels.d.mts +127 -68
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +127 -68
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +49 -30
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +49 -30
- package/resources/operations/carriers/service-levels.mjs.map +1 -1
- package/resources/operations/carriers.d.mts.map +1 -1
- package/resources/operations/carriers.d.ts.map +1 -1
- package/resources/operations/carriers.mjs.map +1 -1
- package/resources/operations/index.d.mts +4 -4
- package/resources/operations/index.d.mts.map +1 -1
- package/resources/operations/index.d.ts +4 -4
- package/resources/operations/index.d.ts.map +1 -1
- package/resources/operations/index.mjs.map +1 -1
- package/resources/operations/location-types.d.mts +37 -18
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +37 -18
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +16 -12
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +16 -12
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +142 -66
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +142 -66
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +34 -20
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +34 -20
- package/resources/operations/locations.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/operations/scanning-stations.d.mts +155 -71
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +155 -71
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +42 -23
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +42 -23
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +127 -81
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +127 -81
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +38 -26
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +38 -26
- package/resources/operations/shipping-terms.mjs.map +1 -1
- package/resources/operations.d.mts.map +1 -1
- package/resources/operations.d.ts.map +1 -1
- package/resources/operations.mjs.map +1 -1
- package/resources/sales/account-groups.d.mts +121 -80
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +121 -80
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +40 -21
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +40 -21
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +42 -24
- package/resources/sales/account-statuses.d.mts.map +1 -1
- package/resources/sales/account-statuses.d.ts +42 -24
- package/resources/sales/account-statuses.d.ts.map +1 -1
- package/resources/sales/account-statuses.js +16 -13
- package/resources/sales/account-statuses.js.map +1 -1
- package/resources/sales/account-statuses.mjs +16 -13
- package/resources/sales/account-statuses.mjs.map +1 -1
- package/resources/sales/addresses.d.mts +102 -40
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +102 -40
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +44 -19
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +44 -19
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/contacts/actions.d.mts +120 -0
- package/resources/sales/contacts/actions.d.mts.map +1 -0
- package/resources/sales/contacts/actions.d.ts +120 -0
- package/resources/sales/contacts/actions.d.ts.map +1 -0
- package/resources/sales/contacts/actions.js +38 -0
- package/resources/sales/contacts/actions.js.map +1 -0
- package/resources/sales/contacts/actions.mjs +34 -0
- package/resources/sales/contacts/actions.mjs.map +1 -0
- package/resources/sales/contacts/contacts.d.mts +10 -0
- package/resources/sales/contacts/contacts.d.mts.map +1 -0
- package/resources/sales/contacts/contacts.d.ts +10 -0
- package/resources/sales/contacts/contacts.d.ts.map +1 -0
- package/resources/sales/contacts/contacts.js +17 -0
- package/resources/sales/contacts/contacts.js.map +1 -0
- package/resources/sales/contacts/contacts.mjs +12 -0
- package/resources/sales/contacts/contacts.mjs.map +1 -0
- package/resources/sales/contacts/index.d.mts +3 -0
- package/resources/sales/contacts/index.d.mts.map +1 -0
- package/resources/sales/contacts/index.d.ts +3 -0
- package/resources/sales/contacts/index.d.ts.map +1 -0
- package/resources/sales/contacts/index.js +9 -0
- package/resources/sales/contacts/index.js.map +1 -0
- package/resources/sales/contacts/index.mjs +4 -0
- package/resources/sales/contacts/index.mjs.map +1 -0
- package/resources/sales/contacts.d.mts +2 -0
- package/resources/sales/contacts.d.mts.map +1 -0
- package/resources/sales/contacts.d.ts +2 -0
- package/resources/sales/contacts.d.ts.map +1 -0
- package/resources/sales/contacts.js +6 -0
- package/resources/sales/contacts.js.map +1 -0
- package/resources/sales/contacts.mjs +3 -0
- package/resources/sales/contacts.mjs.map +1 -0
- package/resources/sales/customers/actions.d.mts +17 -5
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +17 -5
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +8 -2
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +8 -2
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +483 -722
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +483 -722
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +68 -30
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +68 -30
- package/resources/sales/customers/customers.mjs.map +1 -1
- package/resources/sales/customers/index.d.mts +1 -1
- package/resources/sales/customers/index.d.mts.map +1 -1
- package/resources/sales/customers/index.d.ts +1 -1
- package/resources/sales/customers/index.d.ts.map +1 -1
- package/resources/sales/customers/index.js.map +1 -1
- package/resources/sales/customers/index.mjs.map +1 -1
- package/resources/sales/customers.d.mts.map +1 -1
- package/resources/sales/customers.d.ts.map +1 -1
- package/resources/sales/customers.mjs.map +1 -1
- package/resources/sales/index.d.mts +7 -6
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +7 -6
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js +5 -3
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs +1 -0
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +36 -22
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +36 -22
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +14 -10
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +14 -10
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +882 -9
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +882 -9
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +50 -3
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +50 -3
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +12 -8
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +12 -8
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js +4 -0
- package/resources/sales/sales.js.map +1 -1
- package/resources/sales/sales.mjs +4 -0
- package/resources/sales/sales.mjs.map +1 -1
- package/resources/sales.d.mts.map +1 -1
- package/resources/sales.d.ts.map +1 -1
- package/resources/sales.mjs.map +1 -1
- package/resources/settings/index.d.mts +3 -0
- package/resources/settings/index.d.mts.map +1 -0
- package/resources/settings/index.d.ts +3 -0
- package/resources/settings/index.d.ts.map +1 -0
- package/resources/settings/index.js +9 -0
- package/resources/settings/index.js.map +1 -0
- package/resources/settings/index.mjs +4 -0
- package/resources/settings/index.mjs.map +1 -0
- package/resources/settings/integrations.d.mts +246 -0
- package/resources/settings/integrations.d.mts.map +1 -0
- package/resources/settings/integrations.d.ts +246 -0
- package/resources/settings/integrations.d.ts.map +1 -0
- package/resources/settings/integrations.js +88 -0
- package/resources/settings/integrations.js.map +1 -0
- package/resources/settings/integrations.mjs +84 -0
- package/resources/settings/integrations.mjs.map +1 -0
- package/resources/settings/settings.d.mts +10 -0
- package/resources/settings/settings.d.mts.map +1 -0
- package/resources/settings/settings.d.ts +10 -0
- package/resources/settings/settings.d.ts.map +1 -0
- package/resources/settings/settings.js +17 -0
- package/resources/settings/settings.js.map +1 -0
- package/resources/settings/settings.mjs +12 -0
- package/resources/settings/settings.mjs.map +1 -0
- package/resources/settings.d.mts +2 -0
- package/resources/settings.d.mts.map +1 -0
- package/resources/settings.d.ts +2 -0
- package/resources/settings.d.ts.map +1 -0
- package/resources/settings.js +6 -0
- package/resources/settings.js.map +1 -0
- package/resources/settings.mjs +3 -0
- package/resources/settings.mjs.map +1 -0
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/client.ts +35 -5
- package/src/resources/auth/api-keys/actions.ts +30 -5
- package/src/resources/auth/api-keys/api-keys.ts +152 -80
- package/src/resources/auth/api-keys/index.ts +1 -1
- package/src/resources/auth/auth.ts +1 -1
- package/src/resources/auth/index.ts +1 -1
- package/src/resources/catalog/catalog.ts +18 -18
- package/src/resources/catalog/index.ts +18 -18
- package/src/resources/catalog/item-categories/index.ts +2 -2
- package/src/resources/catalog/item-categories/item-categories.ts +128 -86
- package/src/resources/catalog/item-categories/properties.ts +13 -4
- package/src/resources/catalog/items/attributes.ts +7 -2
- package/src/resources/catalog/items/index.ts +2 -2
- package/src/resources/catalog/items/items.ts +119 -75
- package/src/resources/catalog/materials.ts +181 -119
- package/src/resources/catalog/parts.ts +160 -92
- package/src/resources/catalog/product-lines.ts +172 -85
- package/src/resources/catalog/products.ts +223 -112
- package/src/resources/catalog/properties/attributes.ts +120 -58
- package/src/resources/catalog/properties/index.ts +4 -4
- package/src/resources/catalog/properties/properties.ts +94 -61
- package/src/resources/catalog/unit-groups/index.ts +4 -4
- package/src/resources/catalog/unit-groups/unit-groups.ts +157 -99
- package/src/resources/catalog/unit-groups/units.ts +107 -73
- package/src/resources/catalog/units.ts +158 -98
- package/src/resources/core/addresses/actions.ts +12 -5
- package/src/resources/core/addresses/addresses.ts +5 -2
- package/src/resources/core/audit-events.ts +251 -56
- package/src/resources/core/core.ts +605 -5
- package/src/resources/core/email-logs.ts +45 -30
- package/src/resources/core/index.ts +6 -6
- package/src/resources/core/request-logs.ts +125 -70
- package/src/resources/core/sandboxes.ts +67 -38
- package/src/resources/finance/finance.ts +78 -44
- package/src/resources/finance/index.ts +4 -4
- package/src/resources/finance/payment-terms.ts +95 -56
- package/src/resources/identity/account-users/account-users.ts +196 -97
- package/src/resources/identity/account-users/actions.ts +22 -3
- package/src/resources/identity/account-users/index.ts +2 -2
- package/src/resources/identity/identity.ts +4 -4
- package/src/resources/identity/index.ts +4 -4
- package/src/resources/identity/roles.ts +113 -70
- package/src/resources/index.ts +5 -3
- package/src/resources/messaging/announcements/actions.ts +119 -0
- package/src/resources/messaging/announcements/announcements.ts +234 -0
- package/src/resources/messaging/announcements/index.ts +10 -0
- package/src/resources/messaging/announcements.ts +3 -0
- package/src/resources/messaging/blocks.ts +826 -0
- package/src/resources/messaging/conversations/actions.ts +766 -0
- package/src/resources/messaging/conversations/attachments/actions.ts +116 -0
- package/src/resources/messaging/conversations/attachments/attachments.ts +25 -0
- package/src/resources/messaging/conversations/attachments/index.ts +9 -0
- package/src/resources/messaging/conversations/attachments.ts +3 -0
- package/src/resources/messaging/conversations/conversations.ts +2452 -0
- package/src/resources/messaging/conversations/index.ts +80 -0
- package/src/resources/messaging/conversations/links.ts +690 -0
- package/src/resources/messaging/conversations/messages.ts +906 -0
- package/src/resources/messaging/conversations/participants/actions.ts +92 -0
- package/src/resources/messaging/conversations/participants/index.ts +10 -0
- package/src/resources/messaging/conversations/participants/participants.ts +150 -0
- package/src/resources/messaging/conversations/participants.ts +3 -0
- package/src/resources/messaging/conversations.ts +3 -0
- package/src/resources/messaging/email-domains/actions.ts +32 -0
- package/src/resources/messaging/email-domains/email-domains.ts +170 -0
- package/src/resources/messaging/email-domains/index.ts +10 -0
- package/src/resources/messaging/email-domains.ts +3 -0
- package/src/resources/messaging/email-inboxes.ts +408 -0
- package/src/resources/messaging/groups/groups.ts +208 -0
- package/src/resources/messaging/groups/index.ts +17 -0
- package/src/resources/messaging/groups/members.ts +112 -0
- package/src/resources/messaging/groups.ts +3 -0
- package/src/resources/messaging/index.ts +115 -0
- package/src/resources/messaging/messages/actions.ts +184 -0
- package/src/resources/messaging/messages/index.ts +10 -0
- package/src/resources/messaging/messages/messages.ts +107 -0
- package/src/resources/messaging/messages.ts +3 -0
- package/src/resources/messaging/messaging.ts +351 -0
- package/src/resources/messaging/notifications/actions.ts +139 -0
- package/src/resources/messaging/notifications/index.ts +24 -0
- package/src/resources/messaging/notifications/notifications.ts +1051 -0
- package/src/resources/messaging/notifications.ts +3 -0
- package/src/resources/messaging/preferences.ts +215 -0
- package/src/resources/messaging.ts +3 -0
- package/src/resources/operations/carriers/carriers.ts +110 -71
- package/src/resources/operations/carriers/index.ts +4 -4
- package/src/resources/operations/carriers/service-levels.ts +148 -89
- package/src/resources/operations/index.ts +8 -8
- package/src/resources/operations/location-types.ts +42 -23
- package/src/resources/operations/locations.ts +153 -77
- package/src/resources/operations/operations.ts +8 -8
- package/src/resources/operations/scanning-stations.ts +173 -89
- package/src/resources/operations/shipping-terms.ts +144 -98
- package/src/resources/sales/account-groups.ts +132 -91
- package/src/resources/sales/account-statuses.ts +49 -31
- package/src/resources/sales/addresses.ts +110 -48
- package/src/resources/sales/contacts/actions.ts +150 -0
- package/src/resources/sales/contacts/contacts.ts +27 -0
- package/src/resources/sales/contacts/index.ts +10 -0
- package/src/resources/sales/contacts.ts +3 -0
- package/src/resources/sales/customers/actions.ts +19 -4
- package/src/resources/sales/customers/customers.ts +547 -884
- package/src/resources/sales/customers/index.ts +2 -15
- package/src/resources/sales/index.ts +24 -19
- package/src/resources/sales/priorities.ts +44 -30
- package/src/resources/sales/sales-orders.ts +1115 -22
- package/src/resources/sales/sales.ts +46 -32
- package/src/resources/settings/index.ts +13 -0
- package/src/resources/settings/integrations.ts +299 -0
- package/src/resources/settings/settings.ts +33 -0
- package/src/resources/settings.ts +3 -0
- package/src/version.ts +1 -1
- package/uploads.d.mts +0 -1
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +0 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +0 -1
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as BlocksAPI from '../../messaging/blocks';
|
|
4
5
|
import * as AccountGroupsAPI from '../account-groups';
|
|
5
6
|
import * as AddressesAPI from '../addresses';
|
|
6
7
|
import * as PrioritiesAPI from '../priorities';
|
|
@@ -19,32 +20,27 @@ export class Customers extends APIResource {
|
|
|
19
20
|
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
20
21
|
|
|
21
22
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
23
|
+
* Returns a paginated list of customers for the current account.
|
|
24
|
+
*
|
|
25
|
+
* This endpoint requires the permission: `customers:read`.
|
|
24
26
|
*
|
|
25
27
|
* @example
|
|
26
28
|
* ```ts
|
|
27
|
-
* const
|
|
28
|
-
* bill_to_address: { name: 'Acme Inc.', country: 'US' },
|
|
29
|
-
* customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
|
|
30
|
-
* default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
31
|
-
* default_payment_term_id:
|
|
32
|
-
* 'pytm_018694d6601ea771cd1b52e890',
|
|
33
|
-
* default_shipping_term_id:
|
|
34
|
-
* 'shtm_014341ab4bb5bf94d5b6936f86',
|
|
35
|
-
* name: 'Acme Inc.',
|
|
36
|
-
* ship_to_address: { name: 'Acme Inc.', country: 'US' },
|
|
37
|
-
* });
|
|
29
|
+
* const listCustomer = await client.sales.customers.list();
|
|
38
30
|
* ```
|
|
39
31
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
32
|
+
list(
|
|
33
|
+
query: CustomerListParams | null | undefined = {},
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<ListCustomer> {
|
|
36
|
+
return this._client.get('/v1/sales/customers', { query, ...options });
|
|
43
37
|
}
|
|
44
38
|
|
|
45
39
|
/**
|
|
46
40
|
* Returns a customer by ID.
|
|
47
41
|
*
|
|
42
|
+
* This endpoint requires the permissions: `customers:read`, `suppliers:read`.
|
|
43
|
+
*
|
|
48
44
|
* @example
|
|
49
45
|
* ```ts
|
|
50
46
|
* const customer = await client.sales.customers.retrieve(
|
|
@@ -61,13 +57,67 @@ export class Customers extends APIResource {
|
|
|
61
57
|
}
|
|
62
58
|
|
|
63
59
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
60
|
+
* Creates a customer account with its default addresses, fulfillment settings, and
|
|
61
|
+
* order policies.
|
|
62
|
+
*
|
|
63
|
+
* If `number` is omitted, the next sequential customer number is assigned
|
|
64
|
+
* automatically.
|
|
65
|
+
*
|
|
66
|
+
* This endpoint requires the permission: `customers:create`.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* ```ts
|
|
70
|
+
* const customer = await client.sales.customers.create({
|
|
71
|
+
* bill_to_address: {
|
|
72
|
+
* name: 'Acme Inc.',
|
|
73
|
+
* street_line_1: '123 Main St',
|
|
74
|
+
* locality: 'New York',
|
|
75
|
+
* state: 'NY',
|
|
76
|
+
* postal_code: '10001',
|
|
77
|
+
* country: 'US',
|
|
78
|
+
* },
|
|
79
|
+
* customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
|
|
80
|
+
* default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
81
|
+
* default_payment_term_id:
|
|
82
|
+
* 'pytm_018694d6601ea771cd1b52e890',
|
|
83
|
+
* default_shipping_term_id:
|
|
84
|
+
* 'shtm_014341ab4bb5bf94d5b6936f86',
|
|
85
|
+
* name: 'Acme Inc.',
|
|
86
|
+
* ship_to_address: {
|
|
87
|
+
* name: 'Acme Inc.',
|
|
88
|
+
* street_line_1: '123 Main St',
|
|
89
|
+
* locality: 'New York',
|
|
90
|
+
* state: 'NY',
|
|
91
|
+
* postal_code: '10001',
|
|
92
|
+
* country: 'US',
|
|
93
|
+
* },
|
|
94
|
+
* note: 'Key enterprise account',
|
|
95
|
+
* });
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
|
|
99
|
+
const { include, ...body } = params;
|
|
100
|
+
return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Partially updates a customer account.
|
|
105
|
+
*
|
|
106
|
+
* Only the fields provided in the request are changed. Nullable fields can be set
|
|
107
|
+
* to `null` to clear their current value.
|
|
108
|
+
*
|
|
109
|
+
* This endpoint requires the permission: `customers:update`.
|
|
66
110
|
*
|
|
67
111
|
* @example
|
|
68
112
|
* ```ts
|
|
69
113
|
* const customer = await client.sales.customers.update(
|
|
70
114
|
* 'ac_0170df1ac58e4d24c66fc89f5f',
|
|
115
|
+
* {
|
|
116
|
+
* default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
117
|
+
* freight_policy: 'billed_freight',
|
|
118
|
+
* name: 'Acme Corp Updated',
|
|
119
|
+
* note: 'Updated account notes',
|
|
120
|
+
* },
|
|
71
121
|
* );
|
|
72
122
|
* ```
|
|
73
123
|
*/
|
|
@@ -81,23 +131,12 @@ export class Customers extends APIResource {
|
|
|
81
131
|
}
|
|
82
132
|
|
|
83
133
|
/**
|
|
84
|
-
*
|
|
134
|
+
* Deletes a customer.
|
|
85
135
|
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
list(
|
|
92
|
-
query: CustomerListParams | null | undefined = {},
|
|
93
|
-
options?: RequestOptions,
|
|
94
|
-
): APIPromise<ListCustomer> {
|
|
95
|
-
return this._client.get('/v1/sales/customers', { query, ...options });
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Deletes a customer and associated account relations, addresses, and account
|
|
100
|
-
* users.
|
|
136
|
+
* Fails with a conflict error if any sales orders still reference the customer;
|
|
137
|
+
* delete or reassign those orders, or merge the customer into another first.
|
|
138
|
+
*
|
|
139
|
+
* This endpoint requires the permission: `customers:delete`.
|
|
101
140
|
*
|
|
102
141
|
* @example
|
|
103
142
|
* ```ts
|
|
@@ -112,77 +151,11 @@ export class Customers extends APIResource {
|
|
|
112
151
|
}
|
|
113
152
|
|
|
114
153
|
/**
|
|
115
|
-
*
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
*/
|
|
121
|
-
id: string;
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* When the account user was created.
|
|
125
|
-
*/
|
|
126
|
-
created_at: string;
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Department resource.
|
|
130
|
-
*/
|
|
131
|
-
department: Department | null;
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
* Email address.
|
|
135
|
-
*/
|
|
136
|
-
email: string | null;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Profile image URL.
|
|
140
|
-
*/
|
|
141
|
-
image_url: string | null;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* When the user last used this account.
|
|
145
|
-
*/
|
|
146
|
-
last_used_at: string | null;
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Display name.
|
|
150
|
-
*/
|
|
151
|
-
name: string | null;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* Resource type identifier.
|
|
155
|
-
*/
|
|
156
|
-
object: 'account_user';
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Role resource.
|
|
160
|
-
*/
|
|
161
|
-
role: APIKeysAPI.Role | null;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Account user status.
|
|
165
|
-
*/
|
|
166
|
-
status: 'active' | 'disabled' | 'removed';
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* When the account user was last updated.
|
|
170
|
-
*/
|
|
171
|
-
updated_at: string;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Underlying user ID.
|
|
175
|
-
*/
|
|
176
|
-
user_id: string;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Username.
|
|
180
|
-
*/
|
|
181
|
-
username: string | null;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Carrier resource.
|
|
154
|
+
* A shipping carrier configured for fulfilling orders.
|
|
155
|
+
*
|
|
156
|
+
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
157
|
+
* through Shippo for live rating and label purchase; other carriers represent
|
|
158
|
+
* self-managed shipping methods such as will call or local delivery.
|
|
186
159
|
*/
|
|
187
160
|
export interface Carrier {
|
|
188
161
|
/**
|
|
@@ -191,12 +164,20 @@ export interface Carrier {
|
|
|
191
164
|
id: string;
|
|
192
165
|
|
|
193
166
|
/**
|
|
194
|
-
*
|
|
167
|
+
* Your account number with this carrier, used to connect UPS and USPS accounts.
|
|
195
168
|
*/
|
|
196
169
|
account_number: string | null;
|
|
197
170
|
|
|
198
171
|
/**
|
|
199
|
-
*
|
|
172
|
+
* Well-known carrier identifier, set only for recognized carriers and absent for
|
|
173
|
+
* custom ones.
|
|
174
|
+
*
|
|
175
|
+
* - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
|
|
176
|
+
* rating and labels).
|
|
177
|
+
* - `will_call`: customer picks the order up; no carrier shipment.
|
|
178
|
+
* - `delivery`: delivered by your own vehicles/drivers.
|
|
179
|
+
* - `ltl`, `ltl1`: less-than-truckload freight carriers.
|
|
180
|
+
* - `freight_collect`: freight billed to and arranged by the receiver.
|
|
200
181
|
*/
|
|
201
182
|
code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
|
|
202
183
|
|
|
@@ -206,7 +187,8 @@ export interface Carrier {
|
|
|
206
187
|
created_at: string;
|
|
207
188
|
|
|
208
189
|
/**
|
|
209
|
-
*
|
|
190
|
+
* Whether customers can see and select this carrier at checkout in the customer
|
|
191
|
+
* portal.
|
|
210
192
|
*/
|
|
211
193
|
customer_portal_visibility: 'visible' | 'hidden';
|
|
212
194
|
|
|
@@ -216,7 +198,7 @@ export interface Carrier {
|
|
|
216
198
|
deleted_at: string | null;
|
|
217
199
|
|
|
218
200
|
/**
|
|
219
|
-
*
|
|
201
|
+
* Human-readable name for the carrier, unique among your account's carriers.
|
|
220
202
|
*/
|
|
221
203
|
name: string;
|
|
222
204
|
|
|
@@ -241,67 +223,24 @@ export interface Carrier {
|
|
|
241
223
|
updated_at: string;
|
|
242
224
|
}
|
|
243
225
|
|
|
244
|
-
/**
|
|
245
|
-
* Material consumed by a production step.
|
|
246
|
-
*/
|
|
247
|
-
export interface Consumption {
|
|
248
|
-
/**
|
|
249
|
-
* Consumption ID.
|
|
250
|
-
*/
|
|
251
|
-
id: string;
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Item is an inventory item (product, material, or part).
|
|
255
|
-
*/
|
|
256
|
-
consumed_item: ItemsAPI.Item | null;
|
|
257
|
-
|
|
258
|
-
/**
|
|
259
|
-
* Creation timestamp.
|
|
260
|
-
*/
|
|
261
|
-
created_at: string;
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Instructions for how this material is consumed.
|
|
265
|
-
*/
|
|
266
|
-
instructions: string | null;
|
|
267
|
-
|
|
268
|
-
/**
|
|
269
|
-
* Resource type identifier.
|
|
270
|
-
*/
|
|
271
|
-
object: 'consumption';
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Value with an associated unit.
|
|
275
|
-
*/
|
|
276
|
-
quantity: ItemsAPI.Quantity | null;
|
|
277
|
-
|
|
278
|
-
/**
|
|
279
|
-
* Last updated timestamp.
|
|
280
|
-
*/
|
|
281
|
-
updated_at: string;
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Value with an associated unit.
|
|
285
|
-
*/
|
|
286
|
-
waste_quantity: ItemsAPI.Quantity | null;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
226
|
/**
|
|
290
227
|
* Request to create a customer.
|
|
291
228
|
*/
|
|
292
229
|
export interface CreateCustomerRequest {
|
|
293
230
|
/**
|
|
294
|
-
*
|
|
231
|
+
* Address details used to create an address, either directly or inline on another
|
|
232
|
+
* resource.
|
|
295
233
|
*/
|
|
296
234
|
bill_to_address: AddressesAPI.AddressInput;
|
|
297
235
|
|
|
298
236
|
/**
|
|
299
|
-
*
|
|
237
|
+
* ID of the account group of type `type_group` that categorizes this customer (for
|
|
238
|
+
* example "Distributors").
|
|
300
239
|
*/
|
|
301
240
|
customer_type_group_id: string;
|
|
302
241
|
|
|
303
242
|
/**
|
|
304
|
-
*
|
|
243
|
+
* ID of the default carrier for this customer's shipments.
|
|
305
244
|
*/
|
|
306
245
|
default_carrier_id: string;
|
|
307
246
|
|
|
@@ -316,43 +255,52 @@ export interface CreateCustomerRequest {
|
|
|
316
255
|
default_shipping_term_id: string;
|
|
317
256
|
|
|
318
257
|
/**
|
|
319
|
-
*
|
|
258
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
320
259
|
*/
|
|
321
260
|
name: string;
|
|
322
261
|
|
|
323
262
|
/**
|
|
324
|
-
*
|
|
263
|
+
* Address details used to create an address, either directly or inline on another
|
|
264
|
+
* resource.
|
|
325
265
|
*/
|
|
326
266
|
ship_to_address: AddressesAPI.AddressInput;
|
|
327
267
|
|
|
328
268
|
/**
|
|
329
|
-
* Carrier billing account number
|
|
269
|
+
* Carrier billing account number charged when `carrier_billing_type` is
|
|
270
|
+
* `third_party`.
|
|
330
271
|
*/
|
|
331
272
|
carrier_billing_account?: string;
|
|
332
273
|
|
|
333
274
|
/**
|
|
334
|
-
*
|
|
275
|
+
* Who pays the carrier for shipments.
|
|
276
|
+
*
|
|
277
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
278
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
335
279
|
*/
|
|
336
280
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
337
281
|
|
|
338
282
|
/**
|
|
339
|
-
*
|
|
283
|
+
* How sales commission applies to this customer's orders.
|
|
284
|
+
*
|
|
285
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
286
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
287
|
+
* orders.
|
|
340
288
|
*/
|
|
341
289
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
342
290
|
|
|
343
291
|
/**
|
|
344
|
-
*
|
|
345
|
-
* requests.
|
|
292
|
+
* A value with an associated unit, used in create and update requests.
|
|
346
293
|
*/
|
|
347
294
|
credit_limit?: QuantityInput;
|
|
348
295
|
|
|
349
296
|
/**
|
|
350
|
-
*
|
|
297
|
+
* IDs of the account groups of type `pricing_group` to assign to this customer,
|
|
298
|
+
* used to apply pricing rules.
|
|
351
299
|
*/
|
|
352
300
|
customer_price_group_ids?: Array<string>;
|
|
353
301
|
|
|
354
302
|
/**
|
|
355
|
-
*
|
|
303
|
+
* Priority applied to new orders for this customer.
|
|
356
304
|
*/
|
|
357
305
|
default_priority?: 'low' | 'normal' | 'high';
|
|
358
306
|
|
|
@@ -362,12 +310,13 @@ export interface CreateCustomerRequest {
|
|
|
362
310
|
default_sales_rep_id?: string;
|
|
363
311
|
|
|
364
312
|
/**
|
|
365
|
-
*
|
|
313
|
+
* ID of the default carrier service level.
|
|
366
314
|
*/
|
|
367
315
|
default_service_level_id?: string;
|
|
368
316
|
|
|
369
317
|
/**
|
|
370
|
-
* EDI
|
|
318
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
319
|
+
* documents with this customer.
|
|
371
320
|
*/
|
|
372
321
|
edi_status?: 'enabled' | 'disabled';
|
|
373
322
|
|
|
@@ -377,17 +326,25 @@ export interface CreateCustomerRequest {
|
|
|
377
326
|
email?: string;
|
|
378
327
|
|
|
379
328
|
/**
|
|
380
|
-
*
|
|
329
|
+
* Whether this customer is billed for freight on their orders.
|
|
330
|
+
*
|
|
331
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
332
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
333
|
+
* order.
|
|
381
334
|
*/
|
|
382
335
|
freight_policy?: 'free_freight' | 'billed_freight';
|
|
383
336
|
|
|
384
337
|
/**
|
|
385
|
-
*
|
|
338
|
+
* Free-form note about the customer.
|
|
386
339
|
*/
|
|
387
340
|
note?: string;
|
|
388
341
|
|
|
389
342
|
/**
|
|
390
|
-
*
|
|
343
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
344
|
+
* `id`.
|
|
345
|
+
*
|
|
346
|
+
* Must be unique within your account. If omitted, the next sequential number is
|
|
347
|
+
* assigned automatically.
|
|
391
348
|
*/
|
|
392
349
|
number?: string;
|
|
393
350
|
|
|
@@ -397,7 +354,12 @@ export interface CreateCustomerRequest {
|
|
|
397
354
|
phone?: string;
|
|
398
355
|
|
|
399
356
|
/**
|
|
400
|
-
* Account status code.
|
|
357
|
+
* Account status code, controlling whether the customer can transact.
|
|
358
|
+
*
|
|
359
|
+
* - `normal`: standard active account with no restrictions.
|
|
360
|
+
* - `preferred`: active account flagged as preferred.
|
|
361
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
362
|
+
* - `hold_all`: all activity is on hold.
|
|
401
363
|
*/
|
|
402
364
|
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
403
365
|
|
|
@@ -408,7 +370,8 @@ export interface CreateCustomerRequest {
|
|
|
408
370
|
}
|
|
409
371
|
|
|
410
372
|
/**
|
|
411
|
-
*
|
|
373
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
374
|
+
* and order policies.
|
|
412
375
|
*/
|
|
413
376
|
export interface Customer {
|
|
414
377
|
/**
|
|
@@ -417,7 +380,8 @@ export interface Customer {
|
|
|
417
380
|
id: string;
|
|
418
381
|
|
|
419
382
|
/**
|
|
420
|
-
*
|
|
383
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
384
|
+
* invoices, and shipments.
|
|
421
385
|
*/
|
|
422
386
|
bill_to_address: APIKeysAPI.Address | null;
|
|
423
387
|
|
|
@@ -427,7 +391,11 @@ export interface Customer {
|
|
|
427
391
|
child_accounts: ListCustomer | null;
|
|
428
392
|
|
|
429
393
|
/**
|
|
430
|
-
*
|
|
394
|
+
* How sales commission applies to this customer's orders.
|
|
395
|
+
*
|
|
396
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
397
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
398
|
+
* orders.
|
|
431
399
|
*/
|
|
432
400
|
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
433
401
|
|
|
@@ -452,7 +420,8 @@ export interface Customer {
|
|
|
452
420
|
defaults: CustomerDefaults | null;
|
|
453
421
|
|
|
454
422
|
/**
|
|
455
|
-
* EDI
|
|
423
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
424
|
+
* documents with this customer.
|
|
456
425
|
*/
|
|
457
426
|
edi_status: 'enabled' | 'disabled';
|
|
458
427
|
|
|
@@ -462,12 +431,12 @@ export interface Customer {
|
|
|
462
431
|
freight_preferences: CustomerFreightPreferences | null;
|
|
463
432
|
|
|
464
433
|
/**
|
|
465
|
-
*
|
|
434
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
466
435
|
*/
|
|
467
436
|
name: string;
|
|
468
437
|
|
|
469
438
|
/**
|
|
470
|
-
*
|
|
439
|
+
* Free-form note about the customer.
|
|
471
440
|
*/
|
|
472
441
|
note: string | null;
|
|
473
442
|
|
|
@@ -477,7 +446,8 @@ export interface Customer {
|
|
|
477
446
|
notification_preferences: CustomerNotificationPreferences | null;
|
|
478
447
|
|
|
479
448
|
/**
|
|
480
|
-
*
|
|
449
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
450
|
+
* `id`.
|
|
481
451
|
*/
|
|
482
452
|
number: string;
|
|
483
453
|
|
|
@@ -487,7 +457,8 @@ export interface Customer {
|
|
|
487
457
|
object: 'customer';
|
|
488
458
|
|
|
489
459
|
/**
|
|
490
|
-
*
|
|
460
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
461
|
+
* and order policies.
|
|
491
462
|
*/
|
|
492
463
|
parent_account: Customer | null;
|
|
493
464
|
|
|
@@ -497,22 +468,33 @@ export interface Customer {
|
|
|
497
468
|
price_groups: AccountGroupsAPI.ListAccountGroup | null;
|
|
498
469
|
|
|
499
470
|
/**
|
|
500
|
-
*
|
|
471
|
+
* The customer's position in the account hierarchy.
|
|
472
|
+
*
|
|
473
|
+
* - `standalone`: no parent or child accounts.
|
|
474
|
+
* - `parent`: has one or more child accounts (see `child_accounts`).
|
|
475
|
+
* - `child`: belongs to a parent account (see `parent_account`).
|
|
501
476
|
*/
|
|
502
477
|
relationship_type: 'standalone' | 'parent' | 'child';
|
|
503
478
|
|
|
504
479
|
/**
|
|
505
|
-
*
|
|
480
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
481
|
+
* invoices, and shipments.
|
|
506
482
|
*/
|
|
507
483
|
ship_to_address: APIKeysAPI.Address | null;
|
|
508
484
|
|
|
509
485
|
/**
|
|
510
|
-
* Account status code.
|
|
486
|
+
* Account status code, controlling whether the customer can transact.
|
|
487
|
+
*
|
|
488
|
+
* - `normal`: standard active account with no restrictions.
|
|
489
|
+
* - `preferred`: active account flagged as preferred.
|
|
490
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
491
|
+
* - `hold_all`: all activity is on hold.
|
|
511
492
|
*/
|
|
512
493
|
status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
513
494
|
|
|
514
495
|
/**
|
|
515
|
-
*
|
|
496
|
+
* A named grouping of customer accounts, used for pricing rules or to categorize
|
|
497
|
+
* accounts.
|
|
516
498
|
*/
|
|
517
499
|
type: AccountGroupsAPI.AccountGroup | null;
|
|
518
500
|
|
|
@@ -557,22 +539,27 @@ export interface CustomerDefaults {
|
|
|
557
539
|
object: 'customer_defaults';
|
|
558
540
|
|
|
559
541
|
/**
|
|
560
|
-
*
|
|
542
|
+
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
543
|
+
* customers, sales orders, purchase orders, and invoices.
|
|
561
544
|
*/
|
|
562
545
|
payment_term: PaymentTerm | null;
|
|
563
546
|
|
|
564
547
|
/**
|
|
565
|
-
* Priority level used
|
|
548
|
+
* Priority level used to order work on sales orders, purchase orders, and picks.
|
|
566
549
|
*/
|
|
567
550
|
priority: PrioritiesAPI.Priority | null;
|
|
568
551
|
|
|
569
552
|
/**
|
|
570
|
-
*
|
|
553
|
+
* A user's membership in an account, carrying the account-specific status, role,
|
|
554
|
+
* and department.
|
|
555
|
+
*
|
|
556
|
+
* Profile fields (name, email, username, image URL) live on the expandable `user`
|
|
557
|
+
* sub-resource, which is shared across every account the user belongs to.
|
|
571
558
|
*/
|
|
572
|
-
sales_rep: AccountUser | null;
|
|
559
|
+
sales_rep: BlocksAPI.AccountUser | null;
|
|
573
560
|
|
|
574
561
|
/**
|
|
575
|
-
*
|
|
562
|
+
* A shipping term defining how freight charges are calculated for an order.
|
|
576
563
|
*/
|
|
577
564
|
shipping_term: ShippingTerm | null;
|
|
578
565
|
}
|
|
@@ -582,17 +569,24 @@ export interface CustomerDefaults {
|
|
|
582
569
|
*/
|
|
583
570
|
export interface CustomerFreightPreferences {
|
|
584
571
|
/**
|
|
585
|
-
* Carrier billing account number
|
|
572
|
+
* Carrier billing account number charged when `billing_type` is `third_party`.
|
|
586
573
|
*/
|
|
587
574
|
billing_account: string | null;
|
|
588
575
|
|
|
589
576
|
/**
|
|
590
|
-
*
|
|
577
|
+
* Who pays the carrier for shipments.
|
|
578
|
+
*
|
|
579
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
580
|
+
* - `third_party`: a third party is billed, using `billing_account`.
|
|
591
581
|
*/
|
|
592
582
|
billing_type: 'sender' | 'third_party' | null;
|
|
593
583
|
|
|
594
584
|
/**
|
|
595
|
-
*
|
|
585
|
+
* A shipping carrier configured for fulfilling orders.
|
|
586
|
+
*
|
|
587
|
+
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
588
|
+
* through Shippo for live rating and label purchase; other carriers represent
|
|
589
|
+
* self-managed shipping methods such as will call or local delivery.
|
|
596
590
|
*/
|
|
597
591
|
carrier: Carrier | null;
|
|
598
592
|
|
|
@@ -607,7 +601,11 @@ export interface CustomerFreightPreferences {
|
|
|
607
601
|
service_level: ServiceLevel | null;
|
|
608
602
|
|
|
609
603
|
/**
|
|
610
|
-
* Freight policy.
|
|
604
|
+
* Freight policy applied to this customer's orders.
|
|
605
|
+
*
|
|
606
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
607
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden
|
|
608
|
+
* elsewhere.
|
|
611
609
|
*/
|
|
612
610
|
status: 'free_freight' | 'billed_freight';
|
|
613
611
|
}
|
|
@@ -628,63 +626,33 @@ export interface CustomerNotificationPreferences {
|
|
|
628
626
|
}
|
|
629
627
|
|
|
630
628
|
/**
|
|
631
|
-
*
|
|
629
|
+
* List represents a paginated list of resources.
|
|
632
630
|
*/
|
|
633
|
-
export interface
|
|
634
|
-
/**
|
|
635
|
-
* Department ID.
|
|
636
|
-
*/
|
|
637
|
-
id: string;
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* Creation timestamp.
|
|
641
|
-
*/
|
|
642
|
-
created_at: string;
|
|
643
|
-
|
|
644
|
-
/**
|
|
645
|
-
* Location resource.
|
|
646
|
-
*/
|
|
647
|
-
location: Location | null;
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* List represents a paginated list of resources.
|
|
651
|
-
*/
|
|
652
|
-
machines: ListMachine | null;
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Display name.
|
|
656
|
-
*/
|
|
657
|
-
name: string;
|
|
658
|
-
|
|
631
|
+
export interface ListCustomer {
|
|
659
632
|
/**
|
|
660
|
-
*
|
|
633
|
+
* Resources in this page.
|
|
661
634
|
*/
|
|
662
|
-
|
|
635
|
+
data: Array<Customer>;
|
|
663
636
|
|
|
664
637
|
/**
|
|
665
638
|
* Resource type identifier.
|
|
666
639
|
*/
|
|
667
|
-
object: '
|
|
668
|
-
|
|
669
|
-
/**
|
|
670
|
-
* List represents a paginated list of resources.
|
|
671
|
-
*/
|
|
672
|
-
scanning_stations: ListScanningStation | null;
|
|
640
|
+
object: 'list';
|
|
673
641
|
|
|
674
642
|
/**
|
|
675
|
-
*
|
|
643
|
+
* PageInfo contains URL-based pagination metadata.
|
|
676
644
|
*/
|
|
677
|
-
|
|
645
|
+
page_info: APIKeysAPI.PageInfo;
|
|
678
646
|
}
|
|
679
647
|
|
|
680
648
|
/**
|
|
681
649
|
* List represents a paginated list of resources.
|
|
682
650
|
*/
|
|
683
|
-
export interface
|
|
651
|
+
export interface ListServiceLevel {
|
|
684
652
|
/**
|
|
685
653
|
* Resources in this page.
|
|
686
654
|
*/
|
|
687
|
-
data: Array<
|
|
655
|
+
data: Array<ServiceLevel>;
|
|
688
656
|
|
|
689
657
|
/**
|
|
690
658
|
* Resource type identifier.
|
|
@@ -698,238 +666,100 @@ export interface ListConsumption {
|
|
|
698
666
|
}
|
|
699
667
|
|
|
700
668
|
/**
|
|
701
|
-
*
|
|
669
|
+
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
670
|
+
* customers, sales orders, purchase orders, and invoices.
|
|
702
671
|
*/
|
|
703
|
-
export interface
|
|
672
|
+
export interface PaymentTerm {
|
|
704
673
|
/**
|
|
705
|
-
*
|
|
674
|
+
* Payment term ID.
|
|
706
675
|
*/
|
|
707
|
-
|
|
676
|
+
id: string;
|
|
708
677
|
|
|
709
678
|
/**
|
|
710
|
-
*
|
|
679
|
+
* Creation timestamp.
|
|
711
680
|
*/
|
|
712
|
-
|
|
681
|
+
created_at: string;
|
|
713
682
|
|
|
714
683
|
/**
|
|
715
|
-
*
|
|
684
|
+
* Display name (e.g. `Net 30`).
|
|
716
685
|
*/
|
|
717
|
-
|
|
718
|
-
}
|
|
686
|
+
name: string;
|
|
719
687
|
|
|
720
|
-
/**
|
|
721
|
-
* List represents a paginated list of resources.
|
|
722
|
-
*/
|
|
723
|
-
export interface ListLocation {
|
|
724
688
|
/**
|
|
725
|
-
*
|
|
689
|
+
* Resource type identifier.
|
|
726
690
|
*/
|
|
727
|
-
|
|
691
|
+
object: 'payment_term';
|
|
728
692
|
|
|
729
693
|
/**
|
|
730
|
-
*
|
|
694
|
+
* Owner describes the provenance of a resource.
|
|
731
695
|
*/
|
|
732
|
-
|
|
696
|
+
owner: APIKeysAPI.Owner | null;
|
|
733
697
|
|
|
734
698
|
/**
|
|
735
|
-
*
|
|
699
|
+
* Lifecycle status of the payment term.
|
|
736
700
|
*/
|
|
737
|
-
|
|
738
|
-
}
|
|
701
|
+
status: 'active' | 'inactive';
|
|
739
702
|
|
|
740
|
-
/**
|
|
741
|
-
* List represents a paginated list of resources.
|
|
742
|
-
*/
|
|
743
|
-
export interface ListMachine {
|
|
744
703
|
/**
|
|
745
|
-
*
|
|
704
|
+
* Last-updated timestamp.
|
|
746
705
|
*/
|
|
747
|
-
|
|
706
|
+
updated_at: string;
|
|
707
|
+
}
|
|
748
708
|
|
|
709
|
+
/**
|
|
710
|
+
* A value with an associated unit, used in create and update requests.
|
|
711
|
+
*/
|
|
712
|
+
export interface QuantityInput {
|
|
749
713
|
/**
|
|
750
|
-
*
|
|
714
|
+
* ID of the unit of measure for the value.
|
|
751
715
|
*/
|
|
752
|
-
|
|
716
|
+
unit_id: string;
|
|
753
717
|
|
|
754
718
|
/**
|
|
755
|
-
*
|
|
719
|
+
* Decimal value, as a string to preserve precision.
|
|
756
720
|
*/
|
|
757
|
-
|
|
721
|
+
value: string;
|
|
758
722
|
}
|
|
759
723
|
|
|
760
724
|
/**
|
|
761
|
-
*
|
|
725
|
+
* Shipping service level for a carrier.
|
|
762
726
|
*/
|
|
763
|
-
export interface
|
|
727
|
+
export interface ServiceLevel {
|
|
764
728
|
/**
|
|
765
|
-
*
|
|
729
|
+
* Service level ID.
|
|
766
730
|
*/
|
|
767
|
-
|
|
731
|
+
id: string;
|
|
768
732
|
|
|
769
733
|
/**
|
|
770
|
-
*
|
|
734
|
+
* Creation timestamp.
|
|
771
735
|
*/
|
|
772
|
-
|
|
736
|
+
created_at: string;
|
|
773
737
|
|
|
774
738
|
/**
|
|
775
|
-
*
|
|
739
|
+
* Whether customers can see and select this service level at checkout in the
|
|
740
|
+
* customer portal.
|
|
776
741
|
*/
|
|
777
|
-
|
|
778
|
-
}
|
|
742
|
+
customer_portal_visibility: 'visible' | 'hidden';
|
|
779
743
|
|
|
780
|
-
/**
|
|
781
|
-
* List represents a paginated list of resources.
|
|
782
|
-
*/
|
|
783
|
-
export interface ListScanningStation {
|
|
784
744
|
/**
|
|
785
|
-
*
|
|
745
|
+
* Whether this is the carrier's default service level, pre-selected when the
|
|
746
|
+
* carrier is chosen.
|
|
747
|
+
*
|
|
748
|
+
* Each carrier has at most one default; setting a new default clears the previous
|
|
749
|
+
* one.
|
|
786
750
|
*/
|
|
787
|
-
|
|
751
|
+
is_default: boolean;
|
|
788
752
|
|
|
789
753
|
/**
|
|
790
|
-
*
|
|
791
|
-
|
|
792
|
-
object: 'list';
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* PageInfo contains URL-based pagination metadata.
|
|
796
|
-
*/
|
|
797
|
-
page_info: APIKeysAPI.PageInfo;
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
/**
|
|
801
|
-
* List represents a paginated list of resources.
|
|
802
|
-
*/
|
|
803
|
-
export interface ListServiceLevel {
|
|
804
|
-
/**
|
|
805
|
-
* Resources in this page.
|
|
806
|
-
*/
|
|
807
|
-
data: Array<ServiceLevel>;
|
|
808
|
-
|
|
809
|
-
/**
|
|
810
|
-
* Resource type identifier.
|
|
811
|
-
*/
|
|
812
|
-
object: 'list';
|
|
813
|
-
|
|
814
|
-
/**
|
|
815
|
-
* PageInfo contains URL-based pagination metadata.
|
|
816
|
-
*/
|
|
817
|
-
page_info: APIKeysAPI.PageInfo;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Location resource.
|
|
822
|
-
*/
|
|
823
|
-
export interface Location {
|
|
824
|
-
/**
|
|
825
|
-
* Location ID.
|
|
826
|
-
*/
|
|
827
|
-
id: string;
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
* List represents a paginated list of resources.
|
|
831
|
-
*/
|
|
832
|
-
children: ListLocation | null;
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* Creation timestamp.
|
|
836
|
-
*/
|
|
837
|
-
created_at: string;
|
|
838
|
-
|
|
839
|
-
/**
|
|
840
|
-
* Display name.
|
|
841
|
-
*/
|
|
842
|
-
name: string;
|
|
843
|
-
|
|
844
|
-
/**
|
|
845
|
-
* Resource type identifier.
|
|
846
|
-
*/
|
|
847
|
-
object: 'location';
|
|
848
|
-
|
|
849
|
-
/**
|
|
850
|
-
* Location resource.
|
|
851
|
-
*/
|
|
852
|
-
parent: Location | null;
|
|
853
|
-
|
|
854
|
-
/**
|
|
855
|
-
* Location type code.
|
|
856
|
-
*/
|
|
857
|
-
type: 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
|
|
858
|
-
|
|
859
|
-
/**
|
|
860
|
-
* Last-updated timestamp.
|
|
861
|
-
*/
|
|
862
|
-
updated_at: string;
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
/**
|
|
866
|
-
* Machine within an account.
|
|
867
|
-
*/
|
|
868
|
-
export interface Machine {
|
|
869
|
-
/**
|
|
870
|
-
* Machine ID.
|
|
871
|
-
*/
|
|
872
|
-
id: string;
|
|
873
|
-
|
|
874
|
-
/**
|
|
875
|
-
* Creation timestamp.
|
|
876
|
-
*/
|
|
877
|
-
created_at: string;
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* Department resource.
|
|
881
|
-
*/
|
|
882
|
-
department: Department | null;
|
|
883
|
-
|
|
884
|
-
/**
|
|
885
|
-
* Display name.
|
|
886
|
-
*/
|
|
887
|
-
name: string;
|
|
888
|
-
|
|
889
|
-
/**
|
|
890
|
-
* Notes.
|
|
891
|
-
*/
|
|
892
|
-
notes: string | null;
|
|
893
|
-
|
|
894
|
-
/**
|
|
895
|
-
* Resource type identifier.
|
|
896
|
-
*/
|
|
897
|
-
object: 'machine';
|
|
898
|
-
|
|
899
|
-
/**
|
|
900
|
-
* Serial number.
|
|
901
|
-
*/
|
|
902
|
-
serial_number: string;
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* Last updated timestamp.
|
|
906
|
-
*/
|
|
907
|
-
updated_at: string;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
/**
|
|
911
|
-
* Payment term resource.
|
|
912
|
-
*/
|
|
913
|
-
export interface PaymentTerm {
|
|
914
|
-
/**
|
|
915
|
-
* Payment term ID.
|
|
916
|
-
*/
|
|
917
|
-
id: string;
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* Creation timestamp.
|
|
921
|
-
*/
|
|
922
|
-
created_at: string;
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* Display name.
|
|
754
|
+
* Human-readable name for the service level, shown to customers at checkout when
|
|
755
|
+
* the service level is visible.
|
|
926
756
|
*/
|
|
927
757
|
name: string;
|
|
928
758
|
|
|
929
759
|
/**
|
|
930
760
|
* Resource type identifier.
|
|
931
761
|
*/
|
|
932
|
-
object: '
|
|
762
|
+
object: 'service_level';
|
|
933
763
|
|
|
934
764
|
/**
|
|
935
765
|
* Owner describes the provenance of a resource.
|
|
@@ -937,44 +767,12 @@ export interface PaymentTerm {
|
|
|
937
767
|
owner: APIKeysAPI.Owner | null;
|
|
938
768
|
|
|
939
769
|
/**
|
|
940
|
-
*
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
/**
|
|
945
|
-
* Last-updated timestamp.
|
|
946
|
-
*/
|
|
947
|
-
updated_at: string;
|
|
948
|
-
}
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* Production output of a production step.
|
|
952
|
-
*/
|
|
953
|
-
export interface ProductionOutput {
|
|
954
|
-
/**
|
|
955
|
-
* Production ID.
|
|
956
|
-
*/
|
|
957
|
-
id: string;
|
|
958
|
-
|
|
959
|
-
/**
|
|
960
|
-
* Creation timestamp.
|
|
961
|
-
*/
|
|
962
|
-
created_at: string;
|
|
963
|
-
|
|
964
|
-
/**
|
|
965
|
-
* Resource type identifier.
|
|
966
|
-
*/
|
|
967
|
-
object: 'production';
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Item is an inventory item (product, material, or part).
|
|
971
|
-
*/
|
|
972
|
-
produced_item: ItemsAPI.Item | null;
|
|
973
|
-
|
|
974
|
-
/**
|
|
975
|
-
* Value with an associated unit.
|
|
770
|
+
* Carrier-specific code identifying this service level (e.g. `fedex_ground`,
|
|
771
|
+
* `ups_next_day_air`).
|
|
772
|
+
*
|
|
773
|
+
* Values are carrier-defined, so any non-empty string is accepted.
|
|
976
774
|
*/
|
|
977
|
-
|
|
775
|
+
service_level_token: string;
|
|
978
776
|
|
|
979
777
|
/**
|
|
980
778
|
* Last updated timestamp.
|
|
@@ -983,422 +781,392 @@ export interface ProductionOutput {
|
|
|
983
781
|
}
|
|
984
782
|
|
|
985
783
|
/**
|
|
986
|
-
*
|
|
784
|
+
* A shipping term defining how freight charges are calculated for an order.
|
|
987
785
|
*/
|
|
988
|
-
export interface
|
|
786
|
+
export interface ShippingTerm {
|
|
989
787
|
/**
|
|
990
|
-
*
|
|
788
|
+
* Shipping term ID.
|
|
991
789
|
*/
|
|
992
790
|
id: string;
|
|
993
791
|
|
|
994
792
|
/**
|
|
995
|
-
*
|
|
996
|
-
*/
|
|
997
|
-
allowances: string;
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* List represents a paginated list of resources.
|
|
1001
|
-
*/
|
|
1002
|
-
consumptions: ListConsumption | null;
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* Creation timestamp.
|
|
793
|
+
* When this shipping term was created.
|
|
1006
794
|
*/
|
|
1007
795
|
created_at: string;
|
|
1008
796
|
|
|
1009
797
|
/**
|
|
1010
|
-
*
|
|
798
|
+
* Value with an associated unit.
|
|
1011
799
|
*/
|
|
1012
|
-
|
|
800
|
+
flat_rate: ItemsAPI.Quantity | null;
|
|
1013
801
|
|
|
1014
802
|
/**
|
|
1015
803
|
* List represents a paginated list of resources.
|
|
1016
804
|
*/
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
* Rate resource.
|
|
1021
|
-
*/
|
|
1022
|
-
labor_rate: ItemsAPI.Rate | null;
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
* Rate resource.
|
|
1026
|
-
*/
|
|
1027
|
-
labor_time: ItemsAPI.Rate | null;
|
|
1028
|
-
|
|
1029
|
-
/**
|
|
1030
|
-
* Leveling factor as a decimal string.
|
|
1031
|
-
*/
|
|
1032
|
-
leveling_factor: string;
|
|
805
|
+
free_shipping_service_levels: ListServiceLevel | null;
|
|
1033
806
|
|
|
1034
807
|
/**
|
|
1035
|
-
*
|
|
808
|
+
* Value with an associated unit.
|
|
1036
809
|
*/
|
|
1037
|
-
|
|
810
|
+
minimum_order_value: ItemsAPI.Quantity | null;
|
|
1038
811
|
|
|
1039
812
|
/**
|
|
1040
|
-
*
|
|
813
|
+
* Human-readable name for the shipping term, used to identify it when assigning
|
|
814
|
+
* shipping terms to customers and orders.
|
|
1041
815
|
*/
|
|
1042
816
|
name: string;
|
|
1043
817
|
|
|
1044
|
-
/**
|
|
1045
|
-
* Notes.
|
|
1046
|
-
*/
|
|
1047
|
-
notes: string | null;
|
|
1048
|
-
|
|
1049
818
|
/**
|
|
1050
819
|
* Resource type identifier.
|
|
1051
820
|
*/
|
|
1052
|
-
object: '
|
|
1053
|
-
|
|
1054
|
-
/**
|
|
1055
|
-
* List represents a paginated list of resources.
|
|
1056
|
-
*/
|
|
1057
|
-
out_steps: ListProductionStep | null;
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* Rate resource.
|
|
1061
|
-
*/
|
|
1062
|
-
overhead_rate: ItemsAPI.Rate | null;
|
|
821
|
+
object: 'shipping_term';
|
|
1063
822
|
|
|
1064
823
|
/**
|
|
1065
|
-
*
|
|
824
|
+
* Owner describes the provenance of a resource.
|
|
1066
825
|
*/
|
|
1067
|
-
|
|
826
|
+
owner: APIKeysAPI.Owner | null;
|
|
1068
827
|
|
|
1069
828
|
/**
|
|
1070
|
-
*
|
|
829
|
+
* Freight pricing model applied by this shipping term.
|
|
830
|
+
*
|
|
831
|
+
* - `free_freight`: no shipping cost to the buyer.
|
|
832
|
+
* - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
|
|
833
|
+
* `flat_rate`).
|
|
834
|
+
* - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
|
|
835
|
+
* rate.
|
|
1071
836
|
*/
|
|
1072
|
-
|
|
837
|
+
type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
|
|
1073
838
|
|
|
1074
839
|
/**
|
|
1075
|
-
*
|
|
840
|
+
* When this shipping term was last updated.
|
|
1076
841
|
*/
|
|
1077
842
|
updated_at: string;
|
|
1078
843
|
}
|
|
1079
844
|
|
|
1080
845
|
/**
|
|
1081
|
-
*
|
|
1082
|
-
* requests.
|
|
1083
|
-
*/
|
|
1084
|
-
export interface QuantityInput {
|
|
1085
|
-
/**
|
|
1086
|
-
* The unit ID for the value.
|
|
1087
|
-
*/
|
|
1088
|
-
unit_id: string;
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* The decimal value.
|
|
1092
|
-
*/
|
|
1093
|
-
value: string;
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
/**
|
|
1097
|
-
* Scanning station resource.
|
|
846
|
+
* Request to partially update a customer.
|
|
1098
847
|
*/
|
|
1099
|
-
export interface
|
|
1100
|
-
/**
|
|
1101
|
-
* Scanning station ID.
|
|
1102
|
-
*/
|
|
1103
|
-
id: string;
|
|
1104
|
-
|
|
1105
|
-
/**
|
|
1106
|
-
* Creation timestamp.
|
|
1107
|
-
*/
|
|
1108
|
-
created_at: string;
|
|
1109
|
-
|
|
1110
|
-
/**
|
|
1111
|
-
* Department resource.
|
|
1112
|
-
*/
|
|
1113
|
-
department: Department | null;
|
|
1114
|
-
|
|
1115
|
-
/**
|
|
1116
|
-
* Label size code.
|
|
1117
|
-
*/
|
|
1118
|
-
label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
|
|
1119
|
-
|
|
1120
|
-
/**
|
|
1121
|
-
* Label type code.
|
|
1122
|
-
*/
|
|
1123
|
-
label_type: 'tag' | 'traveler' | null;
|
|
1124
|
-
|
|
1125
|
-
/**
|
|
1126
|
-
* Display name.
|
|
1127
|
-
*/
|
|
1128
|
-
name: string;
|
|
1129
|
-
|
|
1130
|
-
/**
|
|
1131
|
-
* Notes.
|
|
1132
|
-
*/
|
|
1133
|
-
notes: string | null;
|
|
1134
|
-
|
|
1135
|
-
/**
|
|
1136
|
-
* Resource type identifier.
|
|
1137
|
-
*/
|
|
1138
|
-
object: 'scanning_station';
|
|
1139
|
-
|
|
1140
|
-
/**
|
|
1141
|
-
* Operator requirement behavior for this station.
|
|
1142
|
-
*/
|
|
1143
|
-
operator_requirement: 'none' | 'material_check';
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
* List represents a paginated list of resources.
|
|
1147
|
-
*/
|
|
1148
|
-
production_steps: ListProductionStep | null;
|
|
1149
|
-
|
|
1150
|
-
/**
|
|
1151
|
-
* Scanning station type.
|
|
1152
|
-
*/
|
|
1153
|
-
type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
|
|
1154
|
-
|
|
848
|
+
export interface UpdateCustomerRequest {
|
|
1155
849
|
/**
|
|
1156
|
-
*
|
|
850
|
+
* ID of an existing address to use as the default billing address.
|
|
1157
851
|
*/
|
|
1158
|
-
|
|
1159
|
-
}
|
|
852
|
+
bill_to_address_id?: string | null;
|
|
1160
853
|
|
|
1161
|
-
/**
|
|
1162
|
-
* Shipping service level for a carrier.
|
|
1163
|
-
*/
|
|
1164
|
-
export interface ServiceLevel {
|
|
1165
854
|
/**
|
|
1166
|
-
*
|
|
855
|
+
* Carrier billing account number charged when `carrier_billing_type` is
|
|
856
|
+
* `third_party`.
|
|
1167
857
|
*/
|
|
1168
|
-
|
|
858
|
+
carrier_billing_account?: string | null;
|
|
1169
859
|
|
|
1170
860
|
/**
|
|
1171
|
-
*
|
|
861
|
+
* Who pays the carrier for shipments.
|
|
862
|
+
*
|
|
863
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
864
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1172
865
|
*/
|
|
1173
|
-
|
|
866
|
+
carrier_billing_type?: 'sender' | 'third_party';
|
|
1174
867
|
|
|
1175
868
|
/**
|
|
1176
|
-
*
|
|
869
|
+
* How sales commission applies to this customer's orders.
|
|
870
|
+
*
|
|
871
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
872
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
873
|
+
* orders.
|
|
1177
874
|
*/
|
|
1178
|
-
|
|
875
|
+
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1179
876
|
|
|
1180
877
|
/**
|
|
1181
|
-
*
|
|
878
|
+
* A value with an associated unit, used in create and update requests.
|
|
1182
879
|
*/
|
|
1183
|
-
|
|
880
|
+
credit_limit?: QuantityInput | null;
|
|
1184
881
|
|
|
1185
882
|
/**
|
|
1186
|
-
*
|
|
883
|
+
* IDs of the account groups of type `pricing_group` to assign to this customer,
|
|
884
|
+
* used to apply pricing rules.
|
|
885
|
+
*
|
|
886
|
+
* When provided, replaces the customer's full set of existing price groups.
|
|
1187
887
|
*/
|
|
1188
|
-
|
|
888
|
+
customer_price_group_ids?: Array<string>;
|
|
1189
889
|
|
|
1190
890
|
/**
|
|
1191
|
-
*
|
|
891
|
+
* ID of the account group of type `type_group` that categorizes this customer (for
|
|
892
|
+
* example "Distributors").
|
|
1192
893
|
*/
|
|
1193
|
-
|
|
894
|
+
customer_type_group_id?: string;
|
|
1194
895
|
|
|
1195
896
|
/**
|
|
1196
|
-
*
|
|
897
|
+
* ID of the default carrier for this customer's shipments.
|
|
1197
898
|
*/
|
|
1198
|
-
|
|
899
|
+
default_carrier_id?: string;
|
|
1199
900
|
|
|
1200
901
|
/**
|
|
1201
|
-
*
|
|
902
|
+
* Default payment term ID.
|
|
1202
903
|
*/
|
|
1203
|
-
|
|
904
|
+
default_payment_term_id?: string;
|
|
1204
905
|
|
|
1205
906
|
/**
|
|
1206
|
-
*
|
|
907
|
+
* Priority applied to new orders for this customer.
|
|
1207
908
|
*/
|
|
1208
|
-
|
|
1209
|
-
}
|
|
909
|
+
default_priority?: 'low' | 'normal' | 'high';
|
|
1210
910
|
|
|
1211
|
-
/**
|
|
1212
|
-
* ShippingTerm resource.
|
|
1213
|
-
*/
|
|
1214
|
-
export interface ShippingTerm {
|
|
1215
911
|
/**
|
|
1216
|
-
*
|
|
912
|
+
* The ID of the account user to assign as the default sales rep.
|
|
1217
913
|
*/
|
|
1218
|
-
|
|
914
|
+
default_sales_rep_id?: string | null;
|
|
1219
915
|
|
|
1220
916
|
/**
|
|
1221
|
-
*
|
|
917
|
+
* ID of the default carrier service level.
|
|
1222
918
|
*/
|
|
1223
|
-
|
|
919
|
+
default_service_level_id?: string | null;
|
|
1224
920
|
|
|
1225
921
|
/**
|
|
1226
|
-
*
|
|
922
|
+
* Default shipping term ID.
|
|
1227
923
|
*/
|
|
1228
|
-
|
|
924
|
+
default_shipping_term_id?: string;
|
|
1229
925
|
|
|
1230
926
|
/**
|
|
1231
|
-
*
|
|
927
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
928
|
+
* documents with this customer.
|
|
1232
929
|
*/
|
|
1233
|
-
|
|
930
|
+
edi_status?: 'enabled' | 'disabled';
|
|
1234
931
|
|
|
1235
932
|
/**
|
|
1236
|
-
*
|
|
933
|
+
* Email address.
|
|
1237
934
|
*/
|
|
1238
|
-
|
|
935
|
+
email?: string | null;
|
|
1239
936
|
|
|
1240
937
|
/**
|
|
1241
|
-
*
|
|
938
|
+
* Whether this customer is billed for freight on their orders.
|
|
939
|
+
*
|
|
940
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
941
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
942
|
+
* order.
|
|
1242
943
|
*/
|
|
1243
|
-
|
|
944
|
+
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1244
945
|
|
|
1245
946
|
/**
|
|
1246
|
-
*
|
|
947
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
1247
948
|
*/
|
|
1248
|
-
|
|
949
|
+
name?: string;
|
|
1249
950
|
|
|
1250
951
|
/**
|
|
1251
|
-
*
|
|
952
|
+
* Free-form note about the customer.
|
|
1252
953
|
*/
|
|
1253
|
-
|
|
954
|
+
note?: string | null;
|
|
1254
955
|
|
|
1255
956
|
/**
|
|
1256
|
-
*
|
|
957
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
958
|
+
* `id`.
|
|
959
|
+
*
|
|
960
|
+
* Must be unique within your account.
|
|
1257
961
|
*/
|
|
1258
|
-
|
|
962
|
+
number?: string;
|
|
1259
963
|
|
|
1260
964
|
/**
|
|
1261
|
-
*
|
|
965
|
+
* Phone number.
|
|
1262
966
|
*/
|
|
1263
|
-
|
|
1264
|
-
}
|
|
967
|
+
phone?: string | null;
|
|
1265
968
|
|
|
1266
|
-
/**
|
|
1267
|
-
* Request to partially update a customer.
|
|
1268
|
-
*/
|
|
1269
|
-
export interface UpdateCustomerRequest {
|
|
1270
969
|
/**
|
|
1271
|
-
*
|
|
970
|
+
* ID of an existing address to use as the default shipping address.
|
|
1272
971
|
*/
|
|
1273
|
-
|
|
972
|
+
ship_to_address_id?: string | null;
|
|
1274
973
|
|
|
1275
974
|
/**
|
|
1276
|
-
*
|
|
975
|
+
* Account status code, controlling whether the customer can transact.
|
|
976
|
+
*
|
|
977
|
+
* - `normal`: standard active account with no restrictions.
|
|
978
|
+
* - `preferred`: active account flagged as preferred.
|
|
979
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
980
|
+
* - `hold_all`: all activity is on hold.
|
|
1277
981
|
*/
|
|
1278
|
-
|
|
982
|
+
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1279
983
|
|
|
1280
984
|
/**
|
|
1281
|
-
*
|
|
985
|
+
* Website URL.
|
|
1282
986
|
*/
|
|
1283
|
-
|
|
987
|
+
url?: string | null;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
export interface CustomerDeleteResponse {}
|
|
1284
991
|
|
|
992
|
+
export interface CustomerListParams {
|
|
1285
993
|
/**
|
|
1286
|
-
*
|
|
994
|
+
* Filter by default carrier IDs.
|
|
1287
995
|
*/
|
|
1288
|
-
|
|
996
|
+
carrier_ids?: Array<string>;
|
|
1289
997
|
|
|
1290
998
|
/**
|
|
1291
|
-
*
|
|
1292
|
-
*
|
|
999
|
+
* Filter to customers with any address in this city (exact match).
|
|
1000
|
+
*
|
|
1001
|
+
* When combined with `state` or `postal_code`, a single address must match all
|
|
1002
|
+
* provided values.
|
|
1293
1003
|
*/
|
|
1294
|
-
|
|
1004
|
+
city?: string;
|
|
1295
1005
|
|
|
1296
1006
|
/**
|
|
1297
|
-
*
|
|
1007
|
+
* Filter by commission policy.
|
|
1298
1008
|
*/
|
|
1299
|
-
|
|
1009
|
+
commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
|
|
1300
1010
|
|
|
1301
1011
|
/**
|
|
1302
|
-
*
|
|
1012
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
1013
|
+
*
|
|
1014
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
1015
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
1016
|
+
* page.
|
|
1303
1017
|
*/
|
|
1304
|
-
|
|
1018
|
+
cursor?: string;
|
|
1305
1019
|
|
|
1306
1020
|
/**
|
|
1307
|
-
*
|
|
1021
|
+
* Filter by customer type group IDs (the account group of type `type_group`
|
|
1022
|
+
* returned in the customer's `type` field).
|
|
1308
1023
|
*/
|
|
1309
|
-
|
|
1024
|
+
customer_group_ids?: Array<string>;
|
|
1310
1025
|
|
|
1311
1026
|
/**
|
|
1312
|
-
*
|
|
1027
|
+
* Filter to customers created at or before this timestamp (inclusive).
|
|
1313
1028
|
*/
|
|
1314
|
-
|
|
1029
|
+
end_date?: string;
|
|
1315
1030
|
|
|
1316
1031
|
/**
|
|
1317
|
-
*
|
|
1032
|
+
* Filter by freight policy.
|
|
1318
1033
|
*/
|
|
1319
|
-
|
|
1034
|
+
freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
|
|
1320
1035
|
|
|
1321
1036
|
/**
|
|
1322
|
-
*
|
|
1037
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1038
|
+
* `null`.
|
|
1323
1039
|
*/
|
|
1324
|
-
|
|
1040
|
+
include?: Array<
|
|
1041
|
+
| 'bill_to_address'
|
|
1042
|
+
| 'ship_to_address'
|
|
1043
|
+
| 'type'
|
|
1044
|
+
| 'parent_account'
|
|
1045
|
+
| 'freight_preferences.carrier'
|
|
1046
|
+
| 'freight_preferences.carrier.service_levels'
|
|
1047
|
+
| 'freight_preferences.service_level'
|
|
1048
|
+
| 'defaults.payment_term'
|
|
1049
|
+
| 'defaults.shipping_term'
|
|
1050
|
+
| 'defaults.sales_rep'
|
|
1051
|
+
| 'defaults.sales_rep.user'
|
|
1052
|
+
| 'defaults.priority'
|
|
1053
|
+
| 'contact_info'
|
|
1054
|
+
| 'freight_preferences'
|
|
1055
|
+
| 'defaults'
|
|
1056
|
+
| 'notification_preferences'
|
|
1057
|
+
| 'price_groups'
|
|
1058
|
+
| 'child_accounts'
|
|
1059
|
+
| 'credit_limit'
|
|
1060
|
+
| 'credit_limit.unit'
|
|
1061
|
+
>;
|
|
1325
1062
|
|
|
1326
1063
|
/**
|
|
1327
|
-
*
|
|
1064
|
+
* Maximum number of results to return in a single page.
|
|
1328
1065
|
*/
|
|
1329
|
-
|
|
1066
|
+
limit?: number;
|
|
1330
1067
|
|
|
1331
1068
|
/**
|
|
1332
|
-
*
|
|
1069
|
+
* Filter by whether the customer has child accounts.
|
|
1333
1070
|
*/
|
|
1334
|
-
|
|
1071
|
+
parent_account_status?: 'parent' | 'non_parent';
|
|
1335
1072
|
|
|
1336
1073
|
/**
|
|
1337
|
-
*
|
|
1074
|
+
* Filter by default payment term IDs.
|
|
1338
1075
|
*/
|
|
1339
|
-
|
|
1076
|
+
payment_term_ids?: Array<string>;
|
|
1340
1077
|
|
|
1341
1078
|
/**
|
|
1342
|
-
*
|
|
1079
|
+
* Filter to customers with any address in this postal code (exact match).
|
|
1343
1080
|
*/
|
|
1344
|
-
|
|
1081
|
+
postal_code?: string;
|
|
1345
1082
|
|
|
1346
1083
|
/**
|
|
1347
|
-
*
|
|
1084
|
+
* Filter to customers that belong to any of these pricing groups.
|
|
1348
1085
|
*/
|
|
1349
|
-
|
|
1086
|
+
pricing_group_ids?: Array<string>;
|
|
1350
1087
|
|
|
1351
1088
|
/**
|
|
1352
|
-
*
|
|
1089
|
+
* Free-text search term used to filter results.
|
|
1090
|
+
*
|
|
1091
|
+
* Which fields are matched against the term varies by endpoint.
|
|
1353
1092
|
*/
|
|
1354
|
-
|
|
1093
|
+
q?: string;
|
|
1355
1094
|
|
|
1356
1095
|
/**
|
|
1357
|
-
*
|
|
1096
|
+
* Filter by default sales rep IDs.
|
|
1358
1097
|
*/
|
|
1359
|
-
|
|
1098
|
+
sales_rep_ids?: Array<string>;
|
|
1360
1099
|
|
|
1361
1100
|
/**
|
|
1362
|
-
*
|
|
1101
|
+
* Filter by default service level IDs.
|
|
1363
1102
|
*/
|
|
1364
|
-
|
|
1103
|
+
service_level_ids?: Array<string>;
|
|
1365
1104
|
|
|
1366
1105
|
/**
|
|
1367
|
-
*
|
|
1106
|
+
* Filter by default shipping term IDs.
|
|
1368
1107
|
*/
|
|
1369
|
-
|
|
1108
|
+
shipping_term_ids?: Array<string>;
|
|
1370
1109
|
|
|
1371
1110
|
/**
|
|
1372
|
-
*
|
|
1111
|
+
* Filter to customers created at or after this timestamp (inclusive).
|
|
1373
1112
|
*/
|
|
1374
|
-
|
|
1113
|
+
start_date?: string;
|
|
1375
1114
|
|
|
1376
1115
|
/**
|
|
1377
|
-
*
|
|
1116
|
+
* Filter to customers with any address in this state (exact match).
|
|
1378
1117
|
*/
|
|
1379
|
-
|
|
1118
|
+
state?: string;
|
|
1380
1119
|
|
|
1381
1120
|
/**
|
|
1382
|
-
*
|
|
1121
|
+
* Filter by account status codes.
|
|
1383
1122
|
*/
|
|
1384
|
-
|
|
1123
|
+
status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
|
|
1385
1124
|
}
|
|
1386
1125
|
|
|
1387
|
-
export interface
|
|
1126
|
+
export interface CustomerRetrieveParams {
|
|
1127
|
+
/**
|
|
1128
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1129
|
+
* `null`.
|
|
1130
|
+
*/
|
|
1131
|
+
include?: Array<
|
|
1132
|
+
| 'bill_to_address'
|
|
1133
|
+
| 'ship_to_address'
|
|
1134
|
+
| 'type'
|
|
1135
|
+
| 'parent_account'
|
|
1136
|
+
| 'freight_preferences.carrier'
|
|
1137
|
+
| 'freight_preferences.carrier.service_levels'
|
|
1138
|
+
| 'freight_preferences.service_level'
|
|
1139
|
+
| 'defaults.payment_term'
|
|
1140
|
+
| 'defaults.shipping_term'
|
|
1141
|
+
| 'defaults.sales_rep'
|
|
1142
|
+
| 'defaults.sales_rep.user'
|
|
1143
|
+
| 'defaults.priority'
|
|
1144
|
+
| 'contact_info'
|
|
1145
|
+
| 'freight_preferences'
|
|
1146
|
+
| 'defaults'
|
|
1147
|
+
| 'notification_preferences'
|
|
1148
|
+
| 'price_groups'
|
|
1149
|
+
| 'child_accounts'
|
|
1150
|
+
| 'credit_limit'
|
|
1151
|
+
| 'credit_limit.unit'
|
|
1152
|
+
>;
|
|
1153
|
+
}
|
|
1388
1154
|
|
|
1389
1155
|
export interface CustomerCreateParams {
|
|
1390
1156
|
/**
|
|
1391
|
-
* Body param:
|
|
1157
|
+
* Body param: Address details used to create an address, either directly or inline
|
|
1158
|
+
* on another resource.
|
|
1392
1159
|
*/
|
|
1393
1160
|
bill_to_address: AddressesAPI.AddressInput;
|
|
1394
1161
|
|
|
1395
1162
|
/**
|
|
1396
|
-
* Body param:
|
|
1163
|
+
* Body param: ID of the account group of type `type_group` that categorizes this
|
|
1164
|
+
* customer (for example "Distributors").
|
|
1397
1165
|
*/
|
|
1398
1166
|
customer_type_group_id: string;
|
|
1399
1167
|
|
|
1400
1168
|
/**
|
|
1401
|
-
* Body param:
|
|
1169
|
+
* Body param: ID of the default carrier for this customer's shipments.
|
|
1402
1170
|
*/
|
|
1403
1171
|
default_carrier_id: string;
|
|
1404
1172
|
|
|
@@ -1413,12 +1181,14 @@ export interface CustomerCreateParams {
|
|
|
1413
1181
|
default_shipping_term_id: string;
|
|
1414
1182
|
|
|
1415
1183
|
/**
|
|
1416
|
-
* Body param:
|
|
1184
|
+
* Body param: The customer's business name, as shown throughout the app and on
|
|
1185
|
+
* documents.
|
|
1417
1186
|
*/
|
|
1418
1187
|
name: string;
|
|
1419
1188
|
|
|
1420
1189
|
/**
|
|
1421
|
-
* Body param:
|
|
1190
|
+
* Body param: Address details used to create an address, either directly or inline
|
|
1191
|
+
* on another resource.
|
|
1422
1192
|
*/
|
|
1423
1193
|
ship_to_address: AddressesAPI.AddressInput;
|
|
1424
1194
|
|
|
@@ -1432,10 +1202,12 @@ export interface CustomerCreateParams {
|
|
|
1432
1202
|
| 'type'
|
|
1433
1203
|
| 'parent_account'
|
|
1434
1204
|
| 'freight_preferences.carrier'
|
|
1205
|
+
| 'freight_preferences.carrier.service_levels'
|
|
1435
1206
|
| 'freight_preferences.service_level'
|
|
1436
1207
|
| 'defaults.payment_term'
|
|
1437
1208
|
| 'defaults.shipping_term'
|
|
1438
1209
|
| 'defaults.sales_rep'
|
|
1210
|
+
| 'defaults.sales_rep.user'
|
|
1439
1211
|
| 'defaults.priority'
|
|
1440
1212
|
| 'contact_info'
|
|
1441
1213
|
| 'freight_preferences'
|
|
@@ -1444,36 +1216,45 @@ export interface CustomerCreateParams {
|
|
|
1444
1216
|
| 'price_groups'
|
|
1445
1217
|
| 'child_accounts'
|
|
1446
1218
|
| 'credit_limit'
|
|
1219
|
+
| 'credit_limit.unit'
|
|
1447
1220
|
>;
|
|
1448
1221
|
|
|
1449
1222
|
/**
|
|
1450
|
-
* Body param: Carrier billing account number
|
|
1223
|
+
* Body param: Carrier billing account number charged when `carrier_billing_type`
|
|
1224
|
+
* is `third_party`.
|
|
1451
1225
|
*/
|
|
1452
1226
|
carrier_billing_account?: string;
|
|
1453
1227
|
|
|
1454
1228
|
/**
|
|
1455
|
-
* Body param:
|
|
1229
|
+
* Body param: Who pays the carrier for shipments.
|
|
1230
|
+
*
|
|
1231
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
1232
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1456
1233
|
*/
|
|
1457
1234
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
1458
1235
|
|
|
1459
1236
|
/**
|
|
1460
|
-
* Body param:
|
|
1237
|
+
* Body param: How sales commission applies to this customer's orders.
|
|
1238
|
+
*
|
|
1239
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
1240
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
1241
|
+
* orders.
|
|
1461
1242
|
*/
|
|
1462
1243
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1463
1244
|
|
|
1464
1245
|
/**
|
|
1465
|
-
* Body param:
|
|
1466
|
-
* create/update requests.
|
|
1246
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
1467
1247
|
*/
|
|
1468
1248
|
credit_limit?: QuantityInput;
|
|
1469
1249
|
|
|
1470
1250
|
/**
|
|
1471
|
-
* Body param:
|
|
1251
|
+
* Body param: IDs of the account groups of type `pricing_group` to assign to this
|
|
1252
|
+
* customer, used to apply pricing rules.
|
|
1472
1253
|
*/
|
|
1473
1254
|
customer_price_group_ids?: Array<string>;
|
|
1474
1255
|
|
|
1475
1256
|
/**
|
|
1476
|
-
* Body param:
|
|
1257
|
+
* Body param: Priority applied to new orders for this customer.
|
|
1477
1258
|
*/
|
|
1478
1259
|
default_priority?: 'low' | 'normal' | 'high';
|
|
1479
1260
|
|
|
@@ -1483,12 +1264,13 @@ export interface CustomerCreateParams {
|
|
|
1483
1264
|
default_sales_rep_id?: string;
|
|
1484
1265
|
|
|
1485
1266
|
/**
|
|
1486
|
-
* Body param:
|
|
1267
|
+
* Body param: ID of the default carrier service level.
|
|
1487
1268
|
*/
|
|
1488
1269
|
default_service_level_id?: string;
|
|
1489
1270
|
|
|
1490
1271
|
/**
|
|
1491
|
-
* Body param: EDI
|
|
1272
|
+
* Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
|
|
1273
|
+
* orders and documents with this customer.
|
|
1492
1274
|
*/
|
|
1493
1275
|
edi_status?: 'enabled' | 'disabled';
|
|
1494
1276
|
|
|
@@ -1498,17 +1280,25 @@ export interface CustomerCreateParams {
|
|
|
1498
1280
|
email?: string;
|
|
1499
1281
|
|
|
1500
1282
|
/**
|
|
1501
|
-
* Body param:
|
|
1283
|
+
* Body param: Whether this customer is billed for freight on their orders.
|
|
1284
|
+
*
|
|
1285
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
1286
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
1287
|
+
* order.
|
|
1502
1288
|
*/
|
|
1503
1289
|
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1504
1290
|
|
|
1505
1291
|
/**
|
|
1506
|
-
* Body param:
|
|
1292
|
+
* Body param: Free-form note about the customer.
|
|
1507
1293
|
*/
|
|
1508
1294
|
note?: string;
|
|
1509
1295
|
|
|
1510
1296
|
/**
|
|
1511
|
-
* Body param:
|
|
1297
|
+
* Body param: Human-readable customer number used to identify the account,
|
|
1298
|
+
* distinct from the `id`.
|
|
1299
|
+
*
|
|
1300
|
+
* Must be unique within your account. If omitted, the next sequential number is
|
|
1301
|
+
* assigned automatically.
|
|
1512
1302
|
*/
|
|
1513
1303
|
number?: string;
|
|
1514
1304
|
|
|
@@ -1518,7 +1308,12 @@ export interface CustomerCreateParams {
|
|
|
1518
1308
|
phone?: string;
|
|
1519
1309
|
|
|
1520
1310
|
/**
|
|
1521
|
-
* Body param: Account status code.
|
|
1311
|
+
* Body param: Account status code, controlling whether the customer can transact.
|
|
1312
|
+
*
|
|
1313
|
+
* - `normal`: standard active account with no restrictions.
|
|
1314
|
+
* - `preferred`: active account flagged as preferred.
|
|
1315
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
1316
|
+
* - `hold_all`: all activity is on hold.
|
|
1522
1317
|
*/
|
|
1523
1318
|
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1524
1319
|
|
|
@@ -1528,32 +1323,6 @@ export interface CustomerCreateParams {
|
|
|
1528
1323
|
url?: string;
|
|
1529
1324
|
}
|
|
1530
1325
|
|
|
1531
|
-
export interface CustomerRetrieveParams {
|
|
1532
|
-
/**
|
|
1533
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1534
|
-
* `null`.
|
|
1535
|
-
*/
|
|
1536
|
-
include?: Array<
|
|
1537
|
-
| 'bill_to_address'
|
|
1538
|
-
| 'ship_to_address'
|
|
1539
|
-
| 'type'
|
|
1540
|
-
| 'parent_account'
|
|
1541
|
-
| 'freight_preferences.carrier'
|
|
1542
|
-
| 'freight_preferences.service_level'
|
|
1543
|
-
| 'defaults.payment_term'
|
|
1544
|
-
| 'defaults.shipping_term'
|
|
1545
|
-
| 'defaults.sales_rep'
|
|
1546
|
-
| 'defaults.priority'
|
|
1547
|
-
| 'contact_info'
|
|
1548
|
-
| 'freight_preferences'
|
|
1549
|
-
| 'defaults'
|
|
1550
|
-
| 'notification_preferences'
|
|
1551
|
-
| 'price_groups'
|
|
1552
|
-
| 'child_accounts'
|
|
1553
|
-
| 'credit_limit'
|
|
1554
|
-
>;
|
|
1555
|
-
}
|
|
1556
|
-
|
|
1557
1326
|
export interface CustomerUpdateParams {
|
|
1558
1327
|
/**
|
|
1559
1328
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
@@ -1565,10 +1334,12 @@ export interface CustomerUpdateParams {
|
|
|
1565
1334
|
| 'type'
|
|
1566
1335
|
| 'parent_account'
|
|
1567
1336
|
| 'freight_preferences.carrier'
|
|
1337
|
+
| 'freight_preferences.carrier.service_levels'
|
|
1568
1338
|
| 'freight_preferences.service_level'
|
|
1569
1339
|
| 'defaults.payment_term'
|
|
1570
1340
|
| 'defaults.shipping_term'
|
|
1571
1341
|
| 'defaults.sales_rep'
|
|
1342
|
+
| 'defaults.sales_rep.user'
|
|
1572
1343
|
| 'defaults.priority'
|
|
1573
1344
|
| 'contact_info'
|
|
1574
1345
|
| 'freight_preferences'
|
|
@@ -1577,46 +1348,58 @@ export interface CustomerUpdateParams {
|
|
|
1577
1348
|
| 'price_groups'
|
|
1578
1349
|
| 'child_accounts'
|
|
1579
1350
|
| 'credit_limit'
|
|
1351
|
+
| 'credit_limit.unit'
|
|
1580
1352
|
>;
|
|
1581
1353
|
|
|
1582
1354
|
/**
|
|
1583
|
-
* Body param:
|
|
1355
|
+
* Body param: ID of an existing address to use as the default billing address.
|
|
1584
1356
|
*/
|
|
1585
1357
|
bill_to_address_id?: string | null;
|
|
1586
1358
|
|
|
1587
1359
|
/**
|
|
1588
|
-
* Body param: Carrier billing account number
|
|
1360
|
+
* Body param: Carrier billing account number charged when `carrier_billing_type`
|
|
1361
|
+
* is `third_party`.
|
|
1589
1362
|
*/
|
|
1590
1363
|
carrier_billing_account?: string | null;
|
|
1591
1364
|
|
|
1592
1365
|
/**
|
|
1593
|
-
* Body param:
|
|
1366
|
+
* Body param: Who pays the carrier for shipments.
|
|
1367
|
+
*
|
|
1368
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
1369
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1594
1370
|
*/
|
|
1595
1371
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
1596
1372
|
|
|
1597
1373
|
/**
|
|
1598
|
-
* Body param:
|
|
1374
|
+
* Body param: How sales commission applies to this customer's orders.
|
|
1375
|
+
*
|
|
1376
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
1377
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
1378
|
+
* orders.
|
|
1599
1379
|
*/
|
|
1600
1380
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1601
1381
|
|
|
1602
1382
|
/**
|
|
1603
|
-
* Body param:
|
|
1604
|
-
* create/update requests.
|
|
1383
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
1605
1384
|
*/
|
|
1606
1385
|
credit_limit?: QuantityInput | null;
|
|
1607
1386
|
|
|
1608
1387
|
/**
|
|
1609
|
-
* Body param:
|
|
1388
|
+
* Body param: IDs of the account groups of type `pricing_group` to assign to this
|
|
1389
|
+
* customer, used to apply pricing rules.
|
|
1390
|
+
*
|
|
1391
|
+
* When provided, replaces the customer's full set of existing price groups.
|
|
1610
1392
|
*/
|
|
1611
1393
|
customer_price_group_ids?: Array<string>;
|
|
1612
1394
|
|
|
1613
1395
|
/**
|
|
1614
|
-
* Body param:
|
|
1396
|
+
* Body param: ID of the account group of type `type_group` that categorizes this
|
|
1397
|
+
* customer (for example "Distributors").
|
|
1615
1398
|
*/
|
|
1616
1399
|
customer_type_group_id?: string;
|
|
1617
1400
|
|
|
1618
1401
|
/**
|
|
1619
|
-
* Body param:
|
|
1402
|
+
* Body param: ID of the default carrier for this customer's shipments.
|
|
1620
1403
|
*/
|
|
1621
1404
|
default_carrier_id?: string;
|
|
1622
1405
|
|
|
@@ -1626,7 +1409,7 @@ export interface CustomerUpdateParams {
|
|
|
1626
1409
|
default_payment_term_id?: string;
|
|
1627
1410
|
|
|
1628
1411
|
/**
|
|
1629
|
-
* Body param:
|
|
1412
|
+
* Body param: Priority applied to new orders for this customer.
|
|
1630
1413
|
*/
|
|
1631
1414
|
default_priority?: 'low' | 'normal' | 'high';
|
|
1632
1415
|
|
|
@@ -1636,7 +1419,7 @@ export interface CustomerUpdateParams {
|
|
|
1636
1419
|
default_sales_rep_id?: string | null;
|
|
1637
1420
|
|
|
1638
1421
|
/**
|
|
1639
|
-
* Body param:
|
|
1422
|
+
* Body param: ID of the default carrier service level.
|
|
1640
1423
|
*/
|
|
1641
1424
|
default_service_level_id?: string | null;
|
|
1642
1425
|
|
|
@@ -1646,213 +1429,93 @@ export interface CustomerUpdateParams {
|
|
|
1646
1429
|
default_shipping_term_id?: string;
|
|
1647
1430
|
|
|
1648
1431
|
/**
|
|
1649
|
-
* Body param: EDI
|
|
1432
|
+
* Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
|
|
1433
|
+
* orders and documents with this customer.
|
|
1650
1434
|
*/
|
|
1651
1435
|
edi_status?: 'enabled' | 'disabled';
|
|
1652
1436
|
|
|
1653
1437
|
/**
|
|
1654
|
-
* Body param: Email address.
|
|
1438
|
+
* Body param: Email address.
|
|
1655
1439
|
*/
|
|
1656
1440
|
email?: string | null;
|
|
1657
1441
|
|
|
1658
1442
|
/**
|
|
1659
|
-
* Body param:
|
|
1443
|
+
* Body param: Whether this customer is billed for freight on their orders.
|
|
1444
|
+
*
|
|
1445
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
1446
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
1447
|
+
* order.
|
|
1660
1448
|
*/
|
|
1661
1449
|
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1662
1450
|
|
|
1663
1451
|
/**
|
|
1664
|
-
* Body param:
|
|
1452
|
+
* Body param: The customer's business name, as shown throughout the app and on
|
|
1453
|
+
* documents.
|
|
1665
1454
|
*/
|
|
1666
1455
|
name?: string;
|
|
1667
1456
|
|
|
1668
1457
|
/**
|
|
1669
|
-
* Body param:
|
|
1458
|
+
* Body param: Free-form note about the customer.
|
|
1670
1459
|
*/
|
|
1671
1460
|
note?: string | null;
|
|
1672
1461
|
|
|
1673
1462
|
/**
|
|
1674
|
-
* Body param:
|
|
1463
|
+
* Body param: Human-readable customer number used to identify the account,
|
|
1464
|
+
* distinct from the `id`.
|
|
1465
|
+
*
|
|
1466
|
+
* Must be unique within your account.
|
|
1675
1467
|
*/
|
|
1676
1468
|
number?: string;
|
|
1677
1469
|
|
|
1678
1470
|
/**
|
|
1679
|
-
* Body param: Phone number.
|
|
1471
|
+
* Body param: Phone number.
|
|
1680
1472
|
*/
|
|
1681
1473
|
phone?: string | null;
|
|
1682
1474
|
|
|
1683
1475
|
/**
|
|
1684
|
-
* Body param:
|
|
1476
|
+
* Body param: ID of an existing address to use as the default shipping address.
|
|
1685
1477
|
*/
|
|
1686
1478
|
ship_to_address_id?: string | null;
|
|
1687
1479
|
|
|
1688
1480
|
/**
|
|
1689
|
-
* Body param: Account status code.
|
|
1481
|
+
* Body param: Account status code, controlling whether the customer can transact.
|
|
1482
|
+
*
|
|
1483
|
+
* - `normal`: standard active account with no restrictions.
|
|
1484
|
+
* - `preferred`: active account flagged as preferred.
|
|
1485
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
1486
|
+
* - `hold_all`: all activity is on hold.
|
|
1690
1487
|
*/
|
|
1691
1488
|
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1692
1489
|
|
|
1693
1490
|
/**
|
|
1694
|
-
* Body param: Website URL.
|
|
1491
|
+
* Body param: Website URL.
|
|
1695
1492
|
*/
|
|
1696
1493
|
url?: string | null;
|
|
1697
1494
|
}
|
|
1698
1495
|
|
|
1699
|
-
export interface CustomerListParams {
|
|
1700
|
-
/**
|
|
1701
|
-
* Filter by carrier IDs.
|
|
1702
|
-
*/
|
|
1703
|
-
carrier_ids?: Array<string>;
|
|
1704
|
-
|
|
1705
|
-
/**
|
|
1706
|
-
* Filter by city.
|
|
1707
|
-
*/
|
|
1708
|
-
city?: string;
|
|
1709
|
-
|
|
1710
|
-
/**
|
|
1711
|
-
* Filter by commission status codes.
|
|
1712
|
-
*/
|
|
1713
|
-
commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* Cursor token used to retrieve the next or previous page of results.
|
|
1717
|
-
*/
|
|
1718
|
-
cursor?: string;
|
|
1719
|
-
|
|
1720
|
-
/**
|
|
1721
|
-
* Filter by customer group IDs.
|
|
1722
|
-
*/
|
|
1723
|
-
customer_group_ids?: Array<string>;
|
|
1724
|
-
|
|
1725
|
-
/**
|
|
1726
|
-
* Filter by end date (created before).
|
|
1727
|
-
*/
|
|
1728
|
-
end_date?: string;
|
|
1729
|
-
|
|
1730
|
-
/**
|
|
1731
|
-
* Filter by freight status codes.
|
|
1732
|
-
*/
|
|
1733
|
-
freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
|
|
1734
|
-
|
|
1735
|
-
/**
|
|
1736
|
-
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1737
|
-
* `null`.
|
|
1738
|
-
*/
|
|
1739
|
-
include?: Array<
|
|
1740
|
-
| 'bill_to_address'
|
|
1741
|
-
| 'ship_to_address'
|
|
1742
|
-
| 'type'
|
|
1743
|
-
| 'parent_account'
|
|
1744
|
-
| 'freight_preferences.carrier'
|
|
1745
|
-
| 'freight_preferences.service_level'
|
|
1746
|
-
| 'defaults.payment_term'
|
|
1747
|
-
| 'defaults.shipping_term'
|
|
1748
|
-
| 'defaults.sales_rep'
|
|
1749
|
-
| 'defaults.priority'
|
|
1750
|
-
| 'contact_info'
|
|
1751
|
-
| 'freight_preferences'
|
|
1752
|
-
| 'defaults'
|
|
1753
|
-
| 'notification_preferences'
|
|
1754
|
-
| 'price_groups'
|
|
1755
|
-
| 'child_accounts'
|
|
1756
|
-
| 'credit_limit'
|
|
1757
|
-
>;
|
|
1758
|
-
|
|
1759
|
-
/**
|
|
1760
|
-
* Maximum number of results per page (default: 100, max: 1000).
|
|
1761
|
-
*/
|
|
1762
|
-
limit?: number;
|
|
1763
|
-
|
|
1764
|
-
/**
|
|
1765
|
-
* Filter by whether the customer has child accounts.
|
|
1766
|
-
*/
|
|
1767
|
-
parent_account_status?: 'parent' | 'non_parent';
|
|
1768
|
-
|
|
1769
|
-
/**
|
|
1770
|
-
* Filter by payment term IDs.
|
|
1771
|
-
*/
|
|
1772
|
-
payment_term_ids?: Array<string>;
|
|
1773
|
-
|
|
1774
|
-
/**
|
|
1775
|
-
* Filter by postal code.
|
|
1776
|
-
*/
|
|
1777
|
-
postal_code?: string;
|
|
1778
|
-
|
|
1779
|
-
/**
|
|
1780
|
-
* Filter by pricing group IDs.
|
|
1781
|
-
*/
|
|
1782
|
-
pricing_group_ids?: Array<string>;
|
|
1783
|
-
|
|
1784
|
-
/**
|
|
1785
|
-
* Search query used to filter results.
|
|
1786
|
-
*/
|
|
1787
|
-
q?: string;
|
|
1788
|
-
|
|
1789
|
-
/**
|
|
1790
|
-
* Filter by sales rep IDs.
|
|
1791
|
-
*/
|
|
1792
|
-
sales_rep_ids?: Array<string>;
|
|
1793
|
-
|
|
1794
|
-
/**
|
|
1795
|
-
* Filter by service level IDs.
|
|
1796
|
-
*/
|
|
1797
|
-
service_level_ids?: Array<string>;
|
|
1798
|
-
|
|
1799
|
-
/**
|
|
1800
|
-
* Filter by shipping term IDs.
|
|
1801
|
-
*/
|
|
1802
|
-
shipping_term_ids?: Array<string>;
|
|
1803
|
-
|
|
1804
|
-
/**
|
|
1805
|
-
* Filter by start date (created after).
|
|
1806
|
-
*/
|
|
1807
|
-
start_date?: string;
|
|
1808
|
-
|
|
1809
|
-
/**
|
|
1810
|
-
* Filter by state.
|
|
1811
|
-
*/
|
|
1812
|
-
state?: string;
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
* Filter by status codes.
|
|
1816
|
-
*/
|
|
1817
|
-
status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
1496
|
Customers.Actions = Actions;
|
|
1821
1497
|
|
|
1822
1498
|
export declare namespace Customers {
|
|
1823
1499
|
export {
|
|
1824
|
-
type AccountUser as AccountUser,
|
|
1825
1500
|
type Carrier as Carrier,
|
|
1826
|
-
type Consumption as Consumption,
|
|
1827
1501
|
type CreateCustomerRequest as CreateCustomerRequest,
|
|
1828
1502
|
type Customer as Customer,
|
|
1829
1503
|
type CustomerContactInfo as CustomerContactInfo,
|
|
1830
1504
|
type CustomerDefaults as CustomerDefaults,
|
|
1831
1505
|
type CustomerFreightPreferences as CustomerFreightPreferences,
|
|
1832
1506
|
type CustomerNotificationPreferences as CustomerNotificationPreferences,
|
|
1833
|
-
type Department as Department,
|
|
1834
|
-
type ListConsumption as ListConsumption,
|
|
1835
1507
|
type ListCustomer as ListCustomer,
|
|
1836
|
-
type ListLocation as ListLocation,
|
|
1837
|
-
type ListMachine as ListMachine,
|
|
1838
|
-
type ListProductionStep as ListProductionStep,
|
|
1839
|
-
type ListScanningStation as ListScanningStation,
|
|
1840
1508
|
type ListServiceLevel as ListServiceLevel,
|
|
1841
|
-
type Location as Location,
|
|
1842
|
-
type Machine as Machine,
|
|
1843
1509
|
type PaymentTerm as PaymentTerm,
|
|
1844
|
-
type ProductionOutput as ProductionOutput,
|
|
1845
|
-
type ProductionStep as ProductionStep,
|
|
1846
1510
|
type QuantityInput as QuantityInput,
|
|
1847
|
-
type ScanningStation as ScanningStation,
|
|
1848
1511
|
type ServiceLevel as ServiceLevel,
|
|
1849
1512
|
type ShippingTerm as ShippingTerm,
|
|
1850
1513
|
type UpdateCustomerRequest as UpdateCustomerRequest,
|
|
1851
1514
|
type CustomerDeleteResponse as CustomerDeleteResponse,
|
|
1852
|
-
type
|
|
1515
|
+
type CustomerListParams as CustomerListParams,
|
|
1853
1516
|
type CustomerRetrieveParams as CustomerRetrieveParams,
|
|
1517
|
+
type CustomerCreateParams as CustomerCreateParams,
|
|
1854
1518
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
1855
|
-
type CustomerListParams as CustomerListParams,
|
|
1856
1519
|
};
|
|
1857
1520
|
|
|
1858
1521
|
export {
|