@augno/sdk 0.1.6 → 0.7.0
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 +5 -4
- 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 +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -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 +13 -18
- 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 +26 -5
- package/resources/auth/api-keys/actions.d.mts.map +1 -1
- package/resources/auth/api-keys/actions.d.ts +26 -5
- package/resources/auth/api-keys/actions.d.ts.map +1 -1
- package/resources/auth/api-keys/actions.js +4 -1
- package/resources/auth/api-keys/actions.js.map +1 -1
- package/resources/auth/api-keys/actions.mjs +4 -1
- package/resources/auth/api-keys/actions.mjs.map +1 -1
- package/resources/auth/api-keys/api-keys.d.mts +134 -70
- package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
- package/resources/auth/api-keys/api-keys.d.ts +134 -70
- package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
- package/resources/auth/api-keys/api-keys.js +24 -22
- package/resources/auth/api-keys/api-keys.js.map +1 -1
- package/resources/auth/api-keys/api-keys.mjs +24 -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 +95 -66
- package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
- package/resources/catalog/item-categories/item-categories.d.ts +95 -66
- package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
- package/resources/catalog/item-categories/item-categories.js +37 -30
- package/resources/catalog/item-categories/item-categories.js.map +1 -1
- package/resources/catalog/item-categories/item-categories.mjs +37 -30
- package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
- package/resources/catalog/item-categories/properties.d.mts +9 -4
- package/resources/catalog/item-categories/properties.d.mts.map +1 -1
- package/resources/catalog/item-categories/properties.d.ts +9 -4
- package/resources/catalog/item-categories/properties.d.ts.map +1 -1
- package/resources/catalog/item-categories/properties.js +9 -4
- package/resources/catalog/item-categories/properties.js.map +1 -1
- package/resources/catalog/item-categories/properties.mjs +9 -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 +3 -2
- package/resources/catalog/items/attributes.d.mts.map +1 -1
- package/resources/catalog/items/attributes.d.ts +3 -2
- package/resources/catalog/items/attributes.d.ts.map +1 -1
- package/resources/catalog/items/attributes.js +3 -2
- package/resources/catalog/items/attributes.js.map +1 -1
- package/resources/catalog/items/attributes.mjs +3 -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 +88 -52
- package/resources/catalog/items/items.d.mts.map +1 -1
- package/resources/catalog/items/items.d.ts +88 -52
- package/resources/catalog/items/items.d.ts.map +1 -1
- package/resources/catalog/items/items.js +24 -21
- package/resources/catalog/items/items.js.map +1 -1
- package/resources/catalog/items/items.mjs +24 -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 +142 -95
- package/resources/catalog/materials.d.mts.map +1 -1
- package/resources/catalog/materials.d.ts +142 -95
- package/resources/catalog/materials.d.ts.map +1 -1
- package/resources/catalog/materials.js +28 -19
- package/resources/catalog/materials.js.map +1 -1
- package/resources/catalog/materials.mjs +28 -19
- package/resources/catalog/materials.mjs.map +1 -1
- package/resources/catalog/parts.d.mts +131 -81
- package/resources/catalog/parts.d.mts.map +1 -1
- package/resources/catalog/parts.d.ts +131 -81
- package/resources/catalog/parts.d.ts.map +1 -1
- package/resources/catalog/parts.js +34 -21
- package/resources/catalog/parts.js.map +1 -1
- package/resources/catalog/parts.mjs +34 -21
- package/resources/catalog/parts.mjs.map +1 -1
- package/resources/catalog/product-lines.d.mts +145 -71
- package/resources/catalog/product-lines.d.mts.map +1 -1
- package/resources/catalog/product-lines.d.ts +145 -71
- package/resources/catalog/product-lines.d.ts.map +1 -1
- package/resources/catalog/product-lines.js +30 -26
- package/resources/catalog/product-lines.js.map +1 -1
- package/resources/catalog/product-lines.mjs +30 -26
- package/resources/catalog/product-lines.mjs.map +1 -1
- package/resources/catalog/products.d.mts +196 -104
- package/resources/catalog/products.d.mts.map +1 -1
- package/resources/catalog/products.d.ts +196 -104
- package/resources/catalog/products.d.ts.map +1 -1
- package/resources/catalog/products.js +24 -21
- package/resources/catalog/products.js.map +1 -1
- package/resources/catalog/products.mjs +24 -21
- package/resources/catalog/products.mjs.map +1 -1
- package/resources/catalog/properties/attributes.d.mts +97 -48
- package/resources/catalog/properties/attributes.d.mts.map +1 -1
- package/resources/catalog/properties/attributes.d.ts +97 -48
- package/resources/catalog/properties/attributes.d.ts.map +1 -1
- package/resources/catalog/properties/attributes.js +27 -20
- package/resources/catalog/properties/attributes.js.map +1 -1
- package/resources/catalog/properties/attributes.mjs +27 -20
- 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 +70 -48
- package/resources/catalog/properties/properties.d.mts.map +1 -1
- package/resources/catalog/properties/properties.d.ts +70 -48
- package/resources/catalog/properties/properties.d.ts.map +1 -1
- package/resources/catalog/properties/properties.js +18 -18
- package/resources/catalog/properties/properties.js.map +1 -1
- package/resources/catalog/properties/properties.mjs +18 -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 +123 -85
- package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.d.ts +123 -85
- package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.js +25 -25
- package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
- package/resources/catalog/unit-groups/unit-groups.mjs +25 -25
- package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
- package/resources/catalog/unit-groups/units.d.mts +75 -59
- package/resources/catalog/unit-groups/units.d.mts.map +1 -1
- package/resources/catalog/unit-groups/units.d.ts +75 -59
- package/resources/catalog/unit-groups/units.d.ts.map +1 -1
- package/resources/catalog/unit-groups/units.js +31 -30
- package/resources/catalog/unit-groups/units.js.map +1 -1
- package/resources/catalog/unit-groups/units.mjs +31 -30
- 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 +100 -64
- package/resources/catalog/units.d.mts.map +1 -1
- package/resources/catalog/units.d.ts +100 -64
- package/resources/catalog/units.d.ts.map +1 -1
- package/resources/catalog/units.js +25 -25
- package/resources/catalog/units.js.map +1 -1
- package/resources/catalog/units.mjs +25 -25
- 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 +78 -34
- package/resources/core/audit-events.d.mts.map +1 -1
- package/resources/core/audit-events.d.ts +78 -34
- package/resources/core/audit-events.d.ts.map +1 -1
- package/resources/core/audit-events.js +13 -10
- package/resources/core/audit-events.js.map +1 -1
- package/resources/core/audit-events.mjs +13 -10
- package/resources/core/audit-events.mjs.map +1 -1
- package/resources/core/core.d.mts +4 -4
- package/resources/core/core.d.mts.map +1 -1
- package/resources/core/core.d.ts +4 -4
- package/resources/core/core.d.ts.map +1 -1
- package/resources/core/core.mjs.map +1 -1
- package/resources/core/email-logs.d.mts +31 -21
- package/resources/core/email-logs.d.mts.map +1 -1
- package/resources/core/email-logs.d.ts +31 -21
- package/resources/core/email-logs.d.ts.map +1 -1
- package/resources/core/email-logs.js +10 -10
- package/resources/core/email-logs.js.map +1 -1
- package/resources/core/email-logs.mjs +10 -10
- package/resources/core/email-logs.mjs.map +1 -1
- package/resources/core/index.d.mts +4 -4
- package/resources/core/index.d.mts.map +1 -1
- package/resources/core/index.d.ts +4 -4
- package/resources/core/index.d.ts.map +1 -1
- package/resources/core/index.mjs.map +1 -1
- package/resources/core/request-logs.d.mts +95 -41
- package/resources/core/request-logs.d.mts.map +1 -1
- package/resources/core/request-logs.d.ts +95 -41
- package/resources/core/request-logs.d.ts.map +1 -1
- package/resources/core/request-logs.js +10 -10
- package/resources/core/request-logs.js.map +1 -1
- package/resources/core/request-logs.mjs +10 -10
- package/resources/core/request-logs.mjs.map +1 -1
- package/resources/core/sandboxes.d.mts +53 -32
- package/resources/core/sandboxes.d.mts.map +1 -1
- package/resources/core/sandboxes.d.ts +53 -32
- package/resources/core/sandboxes.d.ts.map +1 -1
- package/resources/core/sandboxes.js +20 -13
- package/resources/core/sandboxes.js.map +1 -1
- package/resources/core/sandboxes.mjs +20 -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 +72 -44
- package/resources/finance/payment-terms.d.mts.map +1 -1
- package/resources/finance/payment-terms.d.ts +72 -44
- package/resources/finance/payment-terms.d.ts.map +1 -1
- package/resources/finance/payment-terms.js +32 -22
- package/resources/finance/payment-terms.js.map +1 -1
- package/resources/finance/payment-terms.mjs +32 -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 +175 -93
- package/resources/identity/account-users/account-users.d.mts.map +1 -1
- package/resources/identity/account-users/account-users.d.ts +175 -93
- package/resources/identity/account-users/account-users.d.ts.map +1 -1
- package/resources/identity/account-users/account-users.js +43 -30
- package/resources/identity/account-users/account-users.js.map +1 -1
- package/resources/identity/account-users/account-users.mjs +43 -30
- package/resources/identity/account-users/account-users.mjs.map +1 -1
- package/resources/identity/account-users/actions.d.mts +13 -3
- package/resources/identity/account-users/actions.d.mts.map +1 -1
- package/resources/identity/account-users/actions.d.ts +13 -3
- package/resources/identity/account-users/actions.d.ts.map +1 -1
- package/resources/identity/account-users/actions.js +13 -3
- package/resources/identity/account-users/actions.js.map +1 -1
- package/resources/identity/account-users/actions.mjs +13 -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 +84 -61
- package/resources/identity/roles.d.mts.map +1 -1
- package/resources/identity/roles.d.ts +84 -61
- package/resources/identity/roles.d.ts.map +1 -1
- package/resources/identity/roles.js +29 -27
- package/resources/identity/roles.js.map +1 -1
- package/resources/identity/roles.mjs +29 -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 +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/operations/carriers/carriers.d.mts +101 -64
- package/resources/operations/carriers/carriers.d.mts.map +1 -1
- package/resources/operations/carriers/carriers.d.ts +101 -64
- package/resources/operations/carriers/carriers.d.ts.map +1 -1
- package/resources/operations/carriers/carriers.js +28 -24
- package/resources/operations/carriers/carriers.js.map +1 -1
- package/resources/operations/carriers/carriers.mjs +28 -24
- 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 +113 -69
- package/resources/operations/carriers/service-levels.d.mts.map +1 -1
- package/resources/operations/carriers/service-levels.d.ts +113 -69
- package/resources/operations/carriers/service-levels.d.ts.map +1 -1
- package/resources/operations/carriers/service-levels.js +34 -30
- package/resources/operations/carriers/service-levels.js.map +1 -1
- package/resources/operations/carriers/service-levels.mjs +34 -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 +33 -18
- package/resources/operations/location-types.d.mts.map +1 -1
- package/resources/operations/location-types.d.ts +33 -18
- package/resources/operations/location-types.d.ts.map +1 -1
- package/resources/operations/location-types.js +12 -12
- package/resources/operations/location-types.js.map +1 -1
- package/resources/operations/location-types.mjs +12 -12
- package/resources/operations/location-types.mjs.map +1 -1
- package/resources/operations/locations.d.mts +132 -67
- package/resources/operations/locations.d.mts.map +1 -1
- package/resources/operations/locations.d.ts +132 -67
- package/resources/operations/locations.d.ts.map +1 -1
- package/resources/operations/locations.js +23 -20
- package/resources/operations/locations.js.map +1 -1
- package/resources/operations/locations.mjs +23 -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 +143 -72
- package/resources/operations/scanning-stations.d.mts.map +1 -1
- package/resources/operations/scanning-stations.d.ts +143 -72
- package/resources/operations/scanning-stations.d.ts.map +1 -1
- package/resources/operations/scanning-stations.js +31 -25
- package/resources/operations/scanning-stations.js.map +1 -1
- package/resources/operations/scanning-stations.mjs +31 -25
- package/resources/operations/scanning-stations.mjs.map +1 -1
- package/resources/operations/shipping-terms.d.mts +121 -86
- package/resources/operations/shipping-terms.d.mts.map +1 -1
- package/resources/operations/shipping-terms.d.ts +121 -86
- package/resources/operations/shipping-terms.d.ts.map +1 -1
- package/resources/operations/shipping-terms.js +27 -26
- package/resources/operations/shipping-terms.js.map +1 -1
- package/resources/operations/shipping-terms.mjs +27 -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 +149 -66
- package/resources/sales/account-groups.d.mts.map +1 -1
- package/resources/sales/account-groups.d.ts +149 -66
- package/resources/sales/account-groups.d.ts.map +1 -1
- package/resources/sales/account-groups.js +29 -21
- package/resources/sales/account-groups.js.map +1 -1
- package/resources/sales/account-groups.mjs +29 -21
- package/resources/sales/account-groups.mjs.map +1 -1
- package/resources/sales/account-statuses.d.mts +41 -23
- package/resources/sales/account-statuses.d.mts.map +1 -1
- package/resources/sales/account-statuses.d.ts +41 -23
- 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 +96 -50
- package/resources/sales/addresses.d.mts.map +1 -1
- package/resources/sales/addresses.d.ts +96 -50
- package/resources/sales/addresses.d.ts.map +1 -1
- package/resources/sales/addresses.js +28 -19
- package/resources/sales/addresses.js.map +1 -1
- package/resources/sales/addresses.mjs +28 -19
- package/resources/sales/addresses.mjs.map +1 -1
- package/resources/sales/customers/actions.d.mts +15 -5
- package/resources/sales/customers/actions.d.mts.map +1 -1
- package/resources/sales/customers/actions.d.ts +15 -5
- package/resources/sales/customers/actions.d.ts.map +1 -1
- package/resources/sales/customers/actions.js +6 -2
- package/resources/sales/customers/actions.js.map +1 -1
- package/resources/sales/customers/actions.mjs +6 -2
- package/resources/sales/customers/actions.mjs.map +1 -1
- package/resources/sales/customers/customers.d.mts +583 -288
- package/resources/sales/customers/customers.d.mts.map +1 -1
- package/resources/sales/customers/customers.d.ts +583 -288
- package/resources/sales/customers/customers.d.ts.map +1 -1
- package/resources/sales/customers/customers.js +52 -30
- package/resources/sales/customers/customers.js.map +1 -1
- package/resources/sales/customers/customers.mjs +52 -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 +6 -6
- package/resources/sales/index.d.mts.map +1 -1
- package/resources/sales/index.d.ts +6 -6
- package/resources/sales/index.d.ts.map +1 -1
- package/resources/sales/index.js.map +1 -1
- package/resources/sales/index.mjs.map +1 -1
- package/resources/sales/priorities.d.mts +31 -21
- package/resources/sales/priorities.d.mts.map +1 -1
- package/resources/sales/priorities.d.ts +31 -21
- package/resources/sales/priorities.d.ts.map +1 -1
- package/resources/sales/priorities.js +10 -10
- package/resources/sales/priorities.js.map +1 -1
- package/resources/sales/priorities.mjs +10 -10
- package/resources/sales/priorities.mjs.map +1 -1
- package/resources/sales/sales-orders.d.mts +877 -7
- package/resources/sales/sales-orders.d.mts.map +1 -1
- package/resources/sales/sales-orders.d.ts +877 -7
- package/resources/sales/sales-orders.d.ts.map +1 -1
- package/resources/sales/sales-orders.js +45 -3
- package/resources/sales/sales-orders.js.map +1 -1
- package/resources/sales/sales-orders.mjs +45 -3
- package/resources/sales/sales-orders.mjs.map +1 -1
- package/resources/sales/sales.d.mts +8 -8
- package/resources/sales/sales.d.mts.map +1 -1
- package/resources/sales/sales.d.ts +8 -8
- package/resources/sales/sales.d.ts.map +1 -1
- package/resources/sales/sales.js.map +1 -1
- 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 +238 -0
- package/resources/settings/integrations.d.mts.map +1 -0
- package/resources/settings/integrations.d.ts +238 -0
- package/resources/settings/integrations.d.ts.map +1 -0
- package/resources/settings/integrations.js +80 -0
- package/resources/settings/integrations.js.map +1 -0
- package/resources/settings/integrations.mjs +76 -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 +13 -3
- package/src/resources/auth/api-keys/actions.ts +28 -5
- package/src/resources/auth/api-keys/api-keys.ts +142 -78
- 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 +115 -86
- package/src/resources/catalog/item-categories/properties.ts +9 -4
- package/src/resources/catalog/items/attributes.ts +3 -2
- package/src/resources/catalog/items/index.ts +2 -2
- package/src/resources/catalog/items/items.ts +111 -75
- package/src/resources/catalog/materials.ts +167 -120
- package/src/resources/catalog/parts.ts +149 -99
- package/src/resources/catalog/product-lines.ts +159 -85
- package/src/resources/catalog/products.ts +211 -119
- package/src/resources/catalog/properties/attributes.ts +109 -82
- package/src/resources/catalog/properties/index.ts +4 -4
- package/src/resources/catalog/properties/properties.ts +83 -61
- package/src/resources/catalog/unit-groups/index.ts +4 -4
- package/src/resources/catalog/unit-groups/unit-groups.ts +140 -102
- package/src/resources/catalog/unit-groups/units.ts +94 -78
- package/src/resources/catalog/units.ts +113 -77
- 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 +154 -47
- package/src/resources/core/core.ts +5 -5
- package/src/resources/core/email-logs.ts +39 -29
- package/src/resources/core/index.ts +5 -5
- package/src/resources/core/request-logs.ts +113 -57
- package/src/resources/core/sandboxes.ts +58 -37
- package/src/resources/finance/finance.ts +78 -44
- package/src/resources/finance/index.ts +4 -4
- package/src/resources/finance/payment-terms.ts +84 -56
- package/src/resources/identity/account-users/account-users.ts +190 -105
- package/src/resources/identity/account-users/actions.ts +13 -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 +92 -69
- package/src/resources/index.ts +3 -2
- package/src/resources/operations/carriers/carriers.ts +109 -72
- package/src/resources/operations/carriers/index.ts +4 -4
- package/src/resources/operations/carriers/service-levels.ts +133 -89
- package/src/resources/operations/index.ts +8 -8
- package/src/resources/operations/location-types.ts +38 -23
- package/src/resources/operations/locations.ts +141 -76
- package/src/resources/operations/operations.ts +8 -8
- package/src/resources/operations/scanning-stations.ts +159 -88
- package/src/resources/operations/shipping-terms.ts +135 -100
- package/src/resources/sales/account-groups.ts +159 -76
- package/src/resources/sales/account-statuses.ts +48 -30
- package/src/resources/sales/addresses.ts +104 -58
- package/src/resources/sales/customers/actions.ts +15 -4
- package/src/resources/sales/customers/customers.ts +655 -347
- package/src/resources/sales/customers/index.ts +4 -2
- package/src/resources/sales/index.ts +25 -6
- package/src/resources/sales/priorities.ts +39 -29
- package/src/resources/sales/sales-orders.ts +1113 -21
- package/src/resources/sales/sales.ts +44 -6
- package/src/resources/settings/index.ts +13 -0
- package/src/resources/settings/integrations.ts +291 -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
|
@@ -19,28 +19,18 @@ export class Customers extends APIResource {
|
|
|
19
19
|
actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* provided.
|
|
22
|
+
* Returns a paginated list of customers for the current account.
|
|
24
23
|
*
|
|
25
24
|
* @example
|
|
26
25
|
* ```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
|
-
* note: 'Key enterprise account',
|
|
38
|
-
* });
|
|
26
|
+
* const listCustomer = await client.sales.customers.list();
|
|
39
27
|
* ```
|
|
40
28
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
list(
|
|
30
|
+
query: CustomerListParams | null | undefined = {},
|
|
31
|
+
options?: RequestOptions,
|
|
32
|
+
): APIPromise<ListCustomer> {
|
|
33
|
+
return this._client.get('/v1/sales/customers', { query, ...options });
|
|
44
34
|
}
|
|
45
35
|
|
|
46
36
|
/**
|
|
@@ -62,8 +52,52 @@ export class Customers extends APIResource {
|
|
|
62
52
|
}
|
|
63
53
|
|
|
64
54
|
/**
|
|
65
|
-
*
|
|
66
|
-
*
|
|
55
|
+
* Creates a customer account with its default addresses, fulfillment settings, and
|
|
56
|
+
* order policies.
|
|
57
|
+
*
|
|
58
|
+
* If `number` is omitted, the next sequential customer number is assigned
|
|
59
|
+
* automatically.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const customer = await client.sales.customers.create({
|
|
64
|
+
* bill_to_address: {
|
|
65
|
+
* name: 'Acme Inc.',
|
|
66
|
+
* street_line_1: '123 Main St',
|
|
67
|
+
* locality: 'New York',
|
|
68
|
+
* state: 'NY',
|
|
69
|
+
* postal_code: '10001',
|
|
70
|
+
* country: 'US',
|
|
71
|
+
* },
|
|
72
|
+
* customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
|
|
73
|
+
* default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
74
|
+
* default_payment_term_id:
|
|
75
|
+
* 'pytm_018694d6601ea771cd1b52e890',
|
|
76
|
+
* default_shipping_term_id:
|
|
77
|
+
* 'shtm_014341ab4bb5bf94d5b6936f86',
|
|
78
|
+
* name: 'Acme Inc.',
|
|
79
|
+
* ship_to_address: {
|
|
80
|
+
* name: 'Acme Inc.',
|
|
81
|
+
* street_line_1: '123 Main St',
|
|
82
|
+
* locality: 'New York',
|
|
83
|
+
* state: 'NY',
|
|
84
|
+
* postal_code: '10001',
|
|
85
|
+
* country: 'US',
|
|
86
|
+
* },
|
|
87
|
+
* note: 'Key enterprise account',
|
|
88
|
+
* });
|
|
89
|
+
* ```
|
|
90
|
+
*/
|
|
91
|
+
create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
|
|
92
|
+
const { include, ...body } = params;
|
|
93
|
+
return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Partially updates a customer account.
|
|
98
|
+
*
|
|
99
|
+
* Only the fields provided in the request are changed. Nullable fields can be set
|
|
100
|
+
* to `null` to clear their current value.
|
|
67
101
|
*
|
|
68
102
|
* @example
|
|
69
103
|
* ```ts
|
|
@@ -73,6 +107,7 @@ export class Customers extends APIResource {
|
|
|
73
107
|
* default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
|
|
74
108
|
* freight_policy: 'billed_freight',
|
|
75
109
|
* name: 'Acme Corp Updated',
|
|
110
|
+
* note: 'Updated account notes',
|
|
76
111
|
* },
|
|
77
112
|
* );
|
|
78
113
|
* ```
|
|
@@ -87,23 +122,10 @@ export class Customers extends APIResource {
|
|
|
87
122
|
}
|
|
88
123
|
|
|
89
124
|
/**
|
|
90
|
-
*
|
|
125
|
+
* Deletes a customer.
|
|
91
126
|
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* const listCustomer = await client.sales.customers.list();
|
|
95
|
-
* ```
|
|
96
|
-
*/
|
|
97
|
-
list(
|
|
98
|
-
query: CustomerListParams | null | undefined = {},
|
|
99
|
-
options?: RequestOptions,
|
|
100
|
-
): APIPromise<ListCustomer> {
|
|
101
|
-
return this._client.get('/v1/sales/customers', { query, ...options });
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* Deletes a customer and associated account relations, addresses, and account
|
|
106
|
-
* users.
|
|
127
|
+
* Fails with a conflict error if any sales orders still reference the customer;
|
|
128
|
+
* delete or reassign those orders, or merge the customer into another first.
|
|
107
129
|
*
|
|
108
130
|
* @example
|
|
109
131
|
* ```ts
|
|
@@ -118,7 +140,11 @@ export class Customers extends APIResource {
|
|
|
118
140
|
}
|
|
119
141
|
|
|
120
142
|
/**
|
|
121
|
-
*
|
|
143
|
+
* A user's membership in an account, carrying the account-specific status, role,
|
|
144
|
+
* and department.
|
|
145
|
+
*
|
|
146
|
+
* Profile fields (name, email, username, image URL) live on the expandable `user`
|
|
147
|
+
* sub-resource, which is shared across every account the user belongs to.
|
|
122
148
|
*/
|
|
123
149
|
export interface AccountUser {
|
|
124
150
|
/**
|
|
@@ -132,42 +158,33 @@ export interface AccountUser {
|
|
|
132
158
|
created_at: string;
|
|
133
159
|
|
|
134
160
|
/**
|
|
135
|
-
*
|
|
161
|
+
* A functional area of a production operation, such as fabrication or packaging,
|
|
162
|
+
* that groups scanning stations and machines.
|
|
136
163
|
*/
|
|
137
164
|
department: Department | null;
|
|
138
165
|
|
|
139
166
|
/**
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
142
|
-
email: string | null;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Profile image URL.
|
|
146
|
-
*/
|
|
147
|
-
image_url: string | null;
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* When the user last used this account.
|
|
167
|
+
* When the user last accessed this account.
|
|
151
168
|
*/
|
|
152
169
|
last_used_at: string | null;
|
|
153
170
|
|
|
154
|
-
/**
|
|
155
|
-
* Display name.
|
|
156
|
-
*/
|
|
157
|
-
name: string | null;
|
|
158
|
-
|
|
159
171
|
/**
|
|
160
172
|
* Resource type identifier.
|
|
161
173
|
*/
|
|
162
174
|
object: 'account_user';
|
|
163
175
|
|
|
164
176
|
/**
|
|
165
|
-
*
|
|
177
|
+
* A named set of permissions that can be assigned to users to control what they
|
|
178
|
+
* can access.
|
|
166
179
|
*/
|
|
167
180
|
role: APIKeysAPI.Role | null;
|
|
168
181
|
|
|
169
182
|
/**
|
|
170
183
|
* Account user status.
|
|
184
|
+
*
|
|
185
|
+
* - `active`: the user can access the account.
|
|
186
|
+
* - `disabled`: the user is locked out of the account.
|
|
187
|
+
* - `removed`: the user has been removed (soft-deleted) from the account.
|
|
171
188
|
*/
|
|
172
189
|
status: 'active' | 'disabled' | 'removed';
|
|
173
190
|
|
|
@@ -177,13 +194,20 @@ export interface AccountUser {
|
|
|
177
194
|
updated_at: string;
|
|
178
195
|
|
|
179
196
|
/**
|
|
180
|
-
*
|
|
197
|
+
* A user's global profile, shared across every account they belong to.
|
|
198
|
+
*
|
|
199
|
+
* Account-specific settings (status, role, department) live on the account user
|
|
200
|
+
* resource that links the user to each account.
|
|
181
201
|
*/
|
|
182
|
-
|
|
202
|
+
user: User | null;
|
|
183
203
|
}
|
|
184
204
|
|
|
185
205
|
/**
|
|
186
|
-
*
|
|
206
|
+
* A shipping carrier configured for fulfilling orders.
|
|
207
|
+
*
|
|
208
|
+
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
209
|
+
* through Shippo for live rating and label purchase; other carriers represent
|
|
210
|
+
* self-managed shipping methods such as will call or local delivery.
|
|
187
211
|
*/
|
|
188
212
|
export interface Carrier {
|
|
189
213
|
/**
|
|
@@ -192,12 +216,20 @@ export interface Carrier {
|
|
|
192
216
|
id: string;
|
|
193
217
|
|
|
194
218
|
/**
|
|
195
|
-
*
|
|
219
|
+
* Your account number with this carrier, used to connect UPS and USPS accounts.
|
|
196
220
|
*/
|
|
197
221
|
account_number: string | null;
|
|
198
222
|
|
|
199
223
|
/**
|
|
200
|
-
*
|
|
224
|
+
* Well-known carrier identifier, set only for recognized carriers and absent for
|
|
225
|
+
* custom ones.
|
|
226
|
+
*
|
|
227
|
+
* - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
|
|
228
|
+
* rating and labels).
|
|
229
|
+
* - `will_call`: customer picks the order up; no carrier shipment.
|
|
230
|
+
* - `delivery`: delivered by your own vehicles/drivers.
|
|
231
|
+
* - `ltl`, `ltl1`: less-than-truckload freight carriers.
|
|
232
|
+
* - `freight_collect`: freight billed to and arranged by the receiver.
|
|
201
233
|
*/
|
|
202
234
|
code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
|
|
203
235
|
|
|
@@ -207,7 +239,8 @@ export interface Carrier {
|
|
|
207
239
|
created_at: string;
|
|
208
240
|
|
|
209
241
|
/**
|
|
210
|
-
*
|
|
242
|
+
* Whether customers can see and select this carrier at checkout in the customer
|
|
243
|
+
* portal.
|
|
211
244
|
*/
|
|
212
245
|
customer_portal_visibility: 'visible' | 'hidden';
|
|
213
246
|
|
|
@@ -217,7 +250,7 @@ export interface Carrier {
|
|
|
217
250
|
deleted_at: string | null;
|
|
218
251
|
|
|
219
252
|
/**
|
|
220
|
-
*
|
|
253
|
+
* Human-readable name for the carrier, unique among your account's carriers.
|
|
221
254
|
*/
|
|
222
255
|
name: string;
|
|
223
256
|
|
|
@@ -244,6 +277,10 @@ export interface Carrier {
|
|
|
244
277
|
|
|
245
278
|
/**
|
|
246
279
|
* Material consumed by a production step.
|
|
280
|
+
*
|
|
281
|
+
* Each consumption records one input item and how much of it the step uses.
|
|
282
|
+
* Consumptions also determine the production flow: when another step produces the
|
|
283
|
+
* consumed item, the two steps are linked upstream/downstream automatically.
|
|
247
284
|
*/
|
|
248
285
|
export interface Consumption {
|
|
249
286
|
/**
|
|
@@ -292,17 +329,19 @@ export interface Consumption {
|
|
|
292
329
|
*/
|
|
293
330
|
export interface CreateCustomerRequest {
|
|
294
331
|
/**
|
|
295
|
-
*
|
|
332
|
+
* Address details used to create an address, either directly or inline on another
|
|
333
|
+
* resource.
|
|
296
334
|
*/
|
|
297
335
|
bill_to_address: AddressesAPI.AddressInput;
|
|
298
336
|
|
|
299
337
|
/**
|
|
300
|
-
*
|
|
338
|
+
* ID of the account group of type `type_group` that categorizes this customer (for
|
|
339
|
+
* example "Distributors").
|
|
301
340
|
*/
|
|
302
341
|
customer_type_group_id: string;
|
|
303
342
|
|
|
304
343
|
/**
|
|
305
|
-
*
|
|
344
|
+
* ID of the default carrier for this customer's shipments.
|
|
306
345
|
*/
|
|
307
346
|
default_carrier_id: string;
|
|
308
347
|
|
|
@@ -317,43 +356,52 @@ export interface CreateCustomerRequest {
|
|
|
317
356
|
default_shipping_term_id: string;
|
|
318
357
|
|
|
319
358
|
/**
|
|
320
|
-
*
|
|
359
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
321
360
|
*/
|
|
322
361
|
name: string;
|
|
323
362
|
|
|
324
363
|
/**
|
|
325
|
-
*
|
|
364
|
+
* Address details used to create an address, either directly or inline on another
|
|
365
|
+
* resource.
|
|
326
366
|
*/
|
|
327
367
|
ship_to_address: AddressesAPI.AddressInput;
|
|
328
368
|
|
|
329
369
|
/**
|
|
330
|
-
* Carrier billing account number
|
|
370
|
+
* Carrier billing account number charged when `carrier_billing_type` is
|
|
371
|
+
* `third_party`.
|
|
331
372
|
*/
|
|
332
373
|
carrier_billing_account?: string;
|
|
333
374
|
|
|
334
375
|
/**
|
|
335
|
-
*
|
|
376
|
+
* Who pays the carrier for shipments.
|
|
377
|
+
*
|
|
378
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
379
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
336
380
|
*/
|
|
337
381
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
338
382
|
|
|
339
383
|
/**
|
|
340
|
-
*
|
|
384
|
+
* How sales commission applies to this customer's orders.
|
|
385
|
+
*
|
|
386
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
387
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
388
|
+
* orders.
|
|
341
389
|
*/
|
|
342
390
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
343
391
|
|
|
344
392
|
/**
|
|
345
|
-
*
|
|
346
|
-
* requests.
|
|
393
|
+
* A value with an associated unit, used in create and update requests.
|
|
347
394
|
*/
|
|
348
395
|
credit_limit?: QuantityInput;
|
|
349
396
|
|
|
350
397
|
/**
|
|
351
|
-
*
|
|
398
|
+
* IDs of the account groups of type `pricing_group` to assign to this customer,
|
|
399
|
+
* used to apply pricing rules.
|
|
352
400
|
*/
|
|
353
401
|
customer_price_group_ids?: Array<string>;
|
|
354
402
|
|
|
355
403
|
/**
|
|
356
|
-
*
|
|
404
|
+
* Priority applied to new orders for this customer.
|
|
357
405
|
*/
|
|
358
406
|
default_priority?: 'low' | 'normal' | 'high';
|
|
359
407
|
|
|
@@ -363,12 +411,13 @@ export interface CreateCustomerRequest {
|
|
|
363
411
|
default_sales_rep_id?: string;
|
|
364
412
|
|
|
365
413
|
/**
|
|
366
|
-
*
|
|
414
|
+
* ID of the default carrier service level.
|
|
367
415
|
*/
|
|
368
416
|
default_service_level_id?: string;
|
|
369
417
|
|
|
370
418
|
/**
|
|
371
|
-
* EDI
|
|
419
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
420
|
+
* documents with this customer.
|
|
372
421
|
*/
|
|
373
422
|
edi_status?: 'enabled' | 'disabled';
|
|
374
423
|
|
|
@@ -378,17 +427,25 @@ export interface CreateCustomerRequest {
|
|
|
378
427
|
email?: string;
|
|
379
428
|
|
|
380
429
|
/**
|
|
381
|
-
*
|
|
430
|
+
* Whether this customer is billed for freight on their orders.
|
|
431
|
+
*
|
|
432
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
433
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
434
|
+
* order.
|
|
382
435
|
*/
|
|
383
436
|
freight_policy?: 'free_freight' | 'billed_freight';
|
|
384
437
|
|
|
385
438
|
/**
|
|
386
|
-
*
|
|
439
|
+
* Free-form note about the customer.
|
|
387
440
|
*/
|
|
388
441
|
note?: string;
|
|
389
442
|
|
|
390
443
|
/**
|
|
391
|
-
*
|
|
444
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
445
|
+
* `id`.
|
|
446
|
+
*
|
|
447
|
+
* Must be unique within your account. If omitted, the next sequential number is
|
|
448
|
+
* assigned automatically.
|
|
392
449
|
*/
|
|
393
450
|
number?: string;
|
|
394
451
|
|
|
@@ -398,7 +455,12 @@ export interface CreateCustomerRequest {
|
|
|
398
455
|
phone?: string;
|
|
399
456
|
|
|
400
457
|
/**
|
|
401
|
-
* Account status code.
|
|
458
|
+
* Account status code, controlling whether the customer can transact.
|
|
459
|
+
*
|
|
460
|
+
* - `normal`: standard active account with no restrictions.
|
|
461
|
+
* - `preferred`: active account flagged as preferred.
|
|
462
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
463
|
+
* - `hold_all`: all activity is on hold.
|
|
402
464
|
*/
|
|
403
465
|
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
404
466
|
|
|
@@ -409,7 +471,8 @@ export interface CreateCustomerRequest {
|
|
|
409
471
|
}
|
|
410
472
|
|
|
411
473
|
/**
|
|
412
|
-
*
|
|
474
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
475
|
+
* and order policies.
|
|
413
476
|
*/
|
|
414
477
|
export interface Customer {
|
|
415
478
|
/**
|
|
@@ -418,7 +481,8 @@ export interface Customer {
|
|
|
418
481
|
id: string;
|
|
419
482
|
|
|
420
483
|
/**
|
|
421
|
-
*
|
|
484
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
485
|
+
* invoices, and shipments.
|
|
422
486
|
*/
|
|
423
487
|
bill_to_address: APIKeysAPI.Address | null;
|
|
424
488
|
|
|
@@ -428,7 +492,11 @@ export interface Customer {
|
|
|
428
492
|
child_accounts: ListCustomer | null;
|
|
429
493
|
|
|
430
494
|
/**
|
|
431
|
-
*
|
|
495
|
+
* How sales commission applies to this customer's orders.
|
|
496
|
+
*
|
|
497
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
498
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
499
|
+
* orders.
|
|
432
500
|
*/
|
|
433
501
|
commission_policy: 'commission_applied' | 'commission_exempt';
|
|
434
502
|
|
|
@@ -453,7 +521,8 @@ export interface Customer {
|
|
|
453
521
|
defaults: CustomerDefaults | null;
|
|
454
522
|
|
|
455
523
|
/**
|
|
456
|
-
* EDI
|
|
524
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
525
|
+
* documents with this customer.
|
|
457
526
|
*/
|
|
458
527
|
edi_status: 'enabled' | 'disabled';
|
|
459
528
|
|
|
@@ -463,12 +532,12 @@ export interface Customer {
|
|
|
463
532
|
freight_preferences: CustomerFreightPreferences | null;
|
|
464
533
|
|
|
465
534
|
/**
|
|
466
|
-
*
|
|
535
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
467
536
|
*/
|
|
468
537
|
name: string;
|
|
469
538
|
|
|
470
539
|
/**
|
|
471
|
-
*
|
|
540
|
+
* Free-form note about the customer.
|
|
472
541
|
*/
|
|
473
542
|
note: string | null;
|
|
474
543
|
|
|
@@ -478,7 +547,8 @@ export interface Customer {
|
|
|
478
547
|
notification_preferences: CustomerNotificationPreferences | null;
|
|
479
548
|
|
|
480
549
|
/**
|
|
481
|
-
*
|
|
550
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
551
|
+
* `id`.
|
|
482
552
|
*/
|
|
483
553
|
number: string;
|
|
484
554
|
|
|
@@ -488,7 +558,8 @@ export interface Customer {
|
|
|
488
558
|
object: 'customer';
|
|
489
559
|
|
|
490
560
|
/**
|
|
491
|
-
*
|
|
561
|
+
* A business you sell to, with its contact details, default fulfillment settings,
|
|
562
|
+
* and order policies.
|
|
492
563
|
*/
|
|
493
564
|
parent_account: Customer | null;
|
|
494
565
|
|
|
@@ -498,22 +569,33 @@ export interface Customer {
|
|
|
498
569
|
price_groups: AccountGroupsAPI.ListAccountGroup | null;
|
|
499
570
|
|
|
500
571
|
/**
|
|
501
|
-
*
|
|
572
|
+
* The customer's position in the account hierarchy.
|
|
573
|
+
*
|
|
574
|
+
* - `standalone`: no parent or child accounts.
|
|
575
|
+
* - `parent`: has one or more child accounts (see `child_accounts`).
|
|
576
|
+
* - `child`: belongs to a parent account (see `parent_account`).
|
|
502
577
|
*/
|
|
503
578
|
relationship_type: 'standalone' | 'parent' | 'child';
|
|
504
579
|
|
|
505
580
|
/**
|
|
506
|
-
*
|
|
581
|
+
* A saved address that can be used for billing and shipping on sales orders,
|
|
582
|
+
* invoices, and shipments.
|
|
507
583
|
*/
|
|
508
584
|
ship_to_address: APIKeysAPI.Address | null;
|
|
509
585
|
|
|
510
586
|
/**
|
|
511
|
-
* Account status code.
|
|
587
|
+
* Account status code, controlling whether the customer can transact.
|
|
588
|
+
*
|
|
589
|
+
* - `normal`: standard active account with no restrictions.
|
|
590
|
+
* - `preferred`: active account flagged as preferred.
|
|
591
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
592
|
+
* - `hold_all`: all activity is on hold.
|
|
512
593
|
*/
|
|
513
594
|
status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
514
595
|
|
|
515
596
|
/**
|
|
516
|
-
*
|
|
597
|
+
* A named grouping of customer accounts, used for pricing rules or to categorize
|
|
598
|
+
* accounts.
|
|
517
599
|
*/
|
|
518
600
|
type: AccountGroupsAPI.AccountGroup | null;
|
|
519
601
|
|
|
@@ -558,22 +640,27 @@ export interface CustomerDefaults {
|
|
|
558
640
|
object: 'customer_defaults';
|
|
559
641
|
|
|
560
642
|
/**
|
|
561
|
-
*
|
|
643
|
+
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
644
|
+
* customers, sales orders, purchase orders, and invoices.
|
|
562
645
|
*/
|
|
563
646
|
payment_term: PaymentTerm | null;
|
|
564
647
|
|
|
565
648
|
/**
|
|
566
|
-
* Priority level used
|
|
649
|
+
* Priority level used to order work on sales orders, purchase orders, and picks.
|
|
567
650
|
*/
|
|
568
651
|
priority: PrioritiesAPI.Priority | null;
|
|
569
652
|
|
|
570
653
|
/**
|
|
571
|
-
*
|
|
654
|
+
* A user's membership in an account, carrying the account-specific status, role,
|
|
655
|
+
* and department.
|
|
656
|
+
*
|
|
657
|
+
* Profile fields (name, email, username, image URL) live on the expandable `user`
|
|
658
|
+
* sub-resource, which is shared across every account the user belongs to.
|
|
572
659
|
*/
|
|
573
660
|
sales_rep: AccountUser | null;
|
|
574
661
|
|
|
575
662
|
/**
|
|
576
|
-
*
|
|
663
|
+
* A shipping term defining how freight charges are calculated for an order.
|
|
577
664
|
*/
|
|
578
665
|
shipping_term: ShippingTerm | null;
|
|
579
666
|
}
|
|
@@ -583,17 +670,24 @@ export interface CustomerDefaults {
|
|
|
583
670
|
*/
|
|
584
671
|
export interface CustomerFreightPreferences {
|
|
585
672
|
/**
|
|
586
|
-
* Carrier billing account number
|
|
673
|
+
* Carrier billing account number charged when `billing_type` is `third_party`.
|
|
587
674
|
*/
|
|
588
675
|
billing_account: string | null;
|
|
589
676
|
|
|
590
677
|
/**
|
|
591
|
-
*
|
|
678
|
+
* Who pays the carrier for shipments.
|
|
679
|
+
*
|
|
680
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
681
|
+
* - `third_party`: a third party is billed, using `billing_account`.
|
|
592
682
|
*/
|
|
593
683
|
billing_type: 'sender' | 'third_party' | null;
|
|
594
684
|
|
|
595
685
|
/**
|
|
596
|
-
*
|
|
686
|
+
* A shipping carrier configured for fulfilling orders.
|
|
687
|
+
*
|
|
688
|
+
* Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
|
|
689
|
+
* through Shippo for live rating and label purchase; other carriers represent
|
|
690
|
+
* self-managed shipping methods such as will call or local delivery.
|
|
597
691
|
*/
|
|
598
692
|
carrier: Carrier | null;
|
|
599
693
|
|
|
@@ -608,7 +702,11 @@ export interface CustomerFreightPreferences {
|
|
|
608
702
|
service_level: ServiceLevel | null;
|
|
609
703
|
|
|
610
704
|
/**
|
|
611
|
-
* Freight policy.
|
|
705
|
+
* Freight policy applied to this customer's orders.
|
|
706
|
+
*
|
|
707
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
708
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden
|
|
709
|
+
* elsewhere.
|
|
612
710
|
*/
|
|
613
711
|
status: 'free_freight' | 'billed_freight';
|
|
614
712
|
}
|
|
@@ -629,7 +727,8 @@ export interface CustomerNotificationPreferences {
|
|
|
629
727
|
}
|
|
630
728
|
|
|
631
729
|
/**
|
|
632
|
-
*
|
|
730
|
+
* A functional area of a production operation, such as fabrication or packaging,
|
|
731
|
+
* that groups scanning stations and machines.
|
|
633
732
|
*/
|
|
634
733
|
export interface Department {
|
|
635
734
|
/**
|
|
@@ -643,7 +742,8 @@ export interface Department {
|
|
|
643
742
|
created_at: string;
|
|
644
743
|
|
|
645
744
|
/**
|
|
646
|
-
*
|
|
745
|
+
* A physical storage location, such as a warehouse, aisle, or bin, arranged in a
|
|
746
|
+
* parent-child hierarchy.
|
|
647
747
|
*/
|
|
648
748
|
location: Location | null;
|
|
649
749
|
|
|
@@ -653,12 +753,14 @@ export interface Department {
|
|
|
653
753
|
machines: ListMachine | null;
|
|
654
754
|
|
|
655
755
|
/**
|
|
656
|
-
* Display name.
|
|
756
|
+
* Display name of the department.
|
|
757
|
+
*
|
|
758
|
+
* Unique within the account.
|
|
657
759
|
*/
|
|
658
760
|
name: string;
|
|
659
761
|
|
|
660
762
|
/**
|
|
661
|
-
*
|
|
763
|
+
* Free-form notes about the department.
|
|
662
764
|
*/
|
|
663
765
|
notes: string | null;
|
|
664
766
|
|
|
@@ -819,7 +921,8 @@ export interface ListServiceLevel {
|
|
|
819
921
|
}
|
|
820
922
|
|
|
821
923
|
/**
|
|
822
|
-
*
|
|
924
|
+
* A physical storage location, such as a warehouse, aisle, or bin, arranged in a
|
|
925
|
+
* parent-child hierarchy.
|
|
823
926
|
*/
|
|
824
927
|
export interface Location {
|
|
825
928
|
/**
|
|
@@ -838,7 +941,7 @@ export interface Location {
|
|
|
838
941
|
created_at: string;
|
|
839
942
|
|
|
840
943
|
/**
|
|
841
|
-
* Display name.
|
|
944
|
+
* Display name of the location.
|
|
842
945
|
*/
|
|
843
946
|
name: string;
|
|
844
947
|
|
|
@@ -848,14 +951,22 @@ export interface Location {
|
|
|
848
951
|
object: 'location';
|
|
849
952
|
|
|
850
953
|
/**
|
|
851
|
-
*
|
|
954
|
+
* A physical storage location, such as a warehouse, aisle, or bin, arranged in a
|
|
955
|
+
* parent-child hierarchy.
|
|
852
956
|
*/
|
|
853
957
|
parent: Location | null;
|
|
854
958
|
|
|
855
959
|
/**
|
|
856
|
-
* Location type code.
|
|
960
|
+
* Location type code, identifying this location's level in the storage hierarchy.
|
|
961
|
+
*
|
|
962
|
+
* - `building`: a building-level location.
|
|
963
|
+
* - `section`: a section within a building.
|
|
964
|
+
* - `aisle`: an aisle within a section.
|
|
965
|
+
* - `rack`: a rack within an aisle.
|
|
966
|
+
* - `shelf`: a shelf within a rack.
|
|
967
|
+
* - `bin`: a bin within a shelf.
|
|
857
968
|
*/
|
|
858
|
-
type:
|
|
969
|
+
type: LocationTypeCode;
|
|
859
970
|
|
|
860
971
|
/**
|
|
861
972
|
* Last-updated timestamp.
|
|
@@ -863,8 +974,11 @@ export interface Location {
|
|
|
863
974
|
updated_at: string;
|
|
864
975
|
}
|
|
865
976
|
|
|
977
|
+
export type LocationTypeCode = 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
|
|
978
|
+
|
|
866
979
|
/**
|
|
867
|
-
*
|
|
980
|
+
* A piece of production equipment, such as a CNC router or press, assigned to a
|
|
981
|
+
* department.
|
|
868
982
|
*/
|
|
869
983
|
export interface Machine {
|
|
870
984
|
/**
|
|
@@ -878,17 +992,20 @@ export interface Machine {
|
|
|
878
992
|
created_at: string;
|
|
879
993
|
|
|
880
994
|
/**
|
|
881
|
-
*
|
|
995
|
+
* A functional area of a production operation, such as fabrication or packaging,
|
|
996
|
+
* that groups scanning stations and machines.
|
|
882
997
|
*/
|
|
883
998
|
department: Department | null;
|
|
884
999
|
|
|
885
1000
|
/**
|
|
886
|
-
* Display name.
|
|
1001
|
+
* Display name of the machine.
|
|
1002
|
+
*
|
|
1003
|
+
* Unique within the account.
|
|
887
1004
|
*/
|
|
888
1005
|
name: string;
|
|
889
1006
|
|
|
890
1007
|
/**
|
|
891
|
-
*
|
|
1008
|
+
* Free-form notes about the machine.
|
|
892
1009
|
*/
|
|
893
1010
|
notes: string | null;
|
|
894
1011
|
|
|
@@ -898,7 +1015,7 @@ export interface Machine {
|
|
|
898
1015
|
object: 'machine';
|
|
899
1016
|
|
|
900
1017
|
/**
|
|
901
|
-
* Serial number.
|
|
1018
|
+
* Serial number of the machine.
|
|
902
1019
|
*/
|
|
903
1020
|
serial_number: string;
|
|
904
1021
|
|
|
@@ -909,7 +1026,8 @@ export interface Machine {
|
|
|
909
1026
|
}
|
|
910
1027
|
|
|
911
1028
|
/**
|
|
912
|
-
*
|
|
1029
|
+
* A payment term describing when payment is due (e.g. `Net 30`), assignable to
|
|
1030
|
+
* customers, sales orders, purchase orders, and invoices.
|
|
913
1031
|
*/
|
|
914
1032
|
export interface PaymentTerm {
|
|
915
1033
|
/**
|
|
@@ -923,7 +1041,7 @@ export interface PaymentTerm {
|
|
|
923
1041
|
created_at: string;
|
|
924
1042
|
|
|
925
1043
|
/**
|
|
926
|
-
* Display name.
|
|
1044
|
+
* Display name (e.g. `Net 30`).
|
|
927
1045
|
*/
|
|
928
1046
|
name: string;
|
|
929
1047
|
|
|
@@ -938,7 +1056,7 @@ export interface PaymentTerm {
|
|
|
938
1056
|
owner: APIKeysAPI.Owner | null;
|
|
939
1057
|
|
|
940
1058
|
/**
|
|
941
|
-
*
|
|
1059
|
+
* Lifecycle status of the payment term.
|
|
942
1060
|
*/
|
|
943
1061
|
status: 'active' | 'inactive';
|
|
944
1062
|
|
|
@@ -949,7 +1067,7 @@ export interface PaymentTerm {
|
|
|
949
1067
|
}
|
|
950
1068
|
|
|
951
1069
|
/**
|
|
952
|
-
*
|
|
1070
|
+
* The output of a production step: the item it produces and the quantity produced.
|
|
953
1071
|
*/
|
|
954
1072
|
export interface ProductionOutput {
|
|
955
1073
|
/**
|
|
@@ -984,7 +1102,8 @@ export interface ProductionOutput {
|
|
|
984
1102
|
}
|
|
985
1103
|
|
|
986
1104
|
/**
|
|
987
|
-
*
|
|
1105
|
+
* A single stage of work in an item's production flow, with its output, material
|
|
1106
|
+
* inputs, cost rates, and graph connections.
|
|
988
1107
|
*/
|
|
989
1108
|
export interface ProductionStep {
|
|
990
1109
|
/**
|
|
@@ -993,7 +1112,11 @@ export interface ProductionStep {
|
|
|
993
1112
|
id: string;
|
|
994
1113
|
|
|
995
1114
|
/**
|
|
996
|
-
*
|
|
1115
|
+
* Allowance correction factor applied to labor time in cost calculations, as a
|
|
1116
|
+
* decimal string.
|
|
1117
|
+
*
|
|
1118
|
+
* Effective labor time per unit is
|
|
1119
|
+
* `labor_time × (1 + leveling_factor) × (1 + allowances)`.
|
|
997
1120
|
*/
|
|
998
1121
|
allowances: string;
|
|
999
1122
|
|
|
@@ -1008,7 +1131,8 @@ export interface ProductionStep {
|
|
|
1008
1131
|
created_at: string;
|
|
1009
1132
|
|
|
1010
1133
|
/**
|
|
1011
|
-
*
|
|
1134
|
+
* A functional area of a production operation, such as fabrication or packaging,
|
|
1135
|
+
* that groups scanning stations and machines.
|
|
1012
1136
|
*/
|
|
1013
1137
|
department: Department | null;
|
|
1014
1138
|
|
|
@@ -1018,17 +1142,23 @@ export interface ProductionStep {
|
|
|
1018
1142
|
in_steps: ListProductionStep | null;
|
|
1019
1143
|
|
|
1020
1144
|
/**
|
|
1021
|
-
*
|
|
1145
|
+
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
1146
|
+
* throughput per hour.
|
|
1022
1147
|
*/
|
|
1023
1148
|
labor_rate: ItemsAPI.Rate | null;
|
|
1024
1149
|
|
|
1025
1150
|
/**
|
|
1026
|
-
*
|
|
1151
|
+
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
1152
|
+
* throughput per hour.
|
|
1027
1153
|
*/
|
|
1028
1154
|
labor_time: ItemsAPI.Rate | null;
|
|
1029
1155
|
|
|
1030
1156
|
/**
|
|
1031
|
-
* Leveling factor as a
|
|
1157
|
+
* Leveling correction factor applied to labor time in cost calculations, as a
|
|
1158
|
+
* decimal string.
|
|
1159
|
+
*
|
|
1160
|
+
* Effective labor time per unit is
|
|
1161
|
+
* `labor_time × (1 + leveling_factor) × (1 + allowances)`.
|
|
1032
1162
|
*/
|
|
1033
1163
|
leveling_factor: string;
|
|
1034
1164
|
|
|
@@ -1038,12 +1168,12 @@ export interface ProductionStep {
|
|
|
1038
1168
|
machines: ListMachine | null;
|
|
1039
1169
|
|
|
1040
1170
|
/**
|
|
1041
|
-
* Display name.
|
|
1171
|
+
* Display name of the step.
|
|
1042
1172
|
*/
|
|
1043
1173
|
name: string;
|
|
1044
1174
|
|
|
1045
1175
|
/**
|
|
1046
|
-
*
|
|
1176
|
+
* Free-form notes about the step.
|
|
1047
1177
|
*/
|
|
1048
1178
|
notes: string | null;
|
|
1049
1179
|
|
|
@@ -1058,17 +1188,19 @@ export interface ProductionStep {
|
|
|
1058
1188
|
out_steps: ListProductionStep | null;
|
|
1059
1189
|
|
|
1060
1190
|
/**
|
|
1061
|
-
*
|
|
1191
|
+
* Value expressed as a ratio of two units, such as a price per kilogram or a
|
|
1192
|
+
* throughput per hour.
|
|
1062
1193
|
*/
|
|
1063
1194
|
overhead_rate: ItemsAPI.Rate | null;
|
|
1064
1195
|
|
|
1065
1196
|
/**
|
|
1066
|
-
*
|
|
1197
|
+
* The output of a production step: the item it produces and the quantity produced.
|
|
1067
1198
|
*/
|
|
1068
1199
|
production: ProductionOutput | null;
|
|
1069
1200
|
|
|
1070
1201
|
/**
|
|
1071
|
-
*
|
|
1202
|
+
* A station on the production floor where operators scan batches to perform a
|
|
1203
|
+
* batch operation, such as initializing or moving a batch.
|
|
1072
1204
|
*/
|
|
1073
1205
|
scanning_station: ScanningStation | null;
|
|
1074
1206
|
|
|
@@ -1079,23 +1211,23 @@ export interface ProductionStep {
|
|
|
1079
1211
|
}
|
|
1080
1212
|
|
|
1081
1213
|
/**
|
|
1082
|
-
*
|
|
1083
|
-
* requests.
|
|
1214
|
+
* A value with an associated unit, used in create and update requests.
|
|
1084
1215
|
*/
|
|
1085
1216
|
export interface QuantityInput {
|
|
1086
1217
|
/**
|
|
1087
|
-
*
|
|
1218
|
+
* ID of the unit of measure for the value.
|
|
1088
1219
|
*/
|
|
1089
1220
|
unit_id: string;
|
|
1090
1221
|
|
|
1091
1222
|
/**
|
|
1092
|
-
*
|
|
1223
|
+
* Decimal value, as a string to preserve precision.
|
|
1093
1224
|
*/
|
|
1094
1225
|
value: string;
|
|
1095
1226
|
}
|
|
1096
1227
|
|
|
1097
1228
|
/**
|
|
1098
|
-
*
|
|
1229
|
+
* A station on the production floor where operators scan batches to perform a
|
|
1230
|
+
* batch operation, such as initializing or moving a batch.
|
|
1099
1231
|
*/
|
|
1100
1232
|
export interface ScanningStation {
|
|
1101
1233
|
/**
|
|
@@ -1109,27 +1241,35 @@ export interface ScanningStation {
|
|
|
1109
1241
|
created_at: string;
|
|
1110
1242
|
|
|
1111
1243
|
/**
|
|
1112
|
-
*
|
|
1244
|
+
* A functional area of a production operation, such as fabrication or packaging,
|
|
1245
|
+
* that groups scanning stations and machines.
|
|
1113
1246
|
*/
|
|
1114
1247
|
department: Department | null;
|
|
1115
1248
|
|
|
1116
1249
|
/**
|
|
1117
|
-
*
|
|
1250
|
+
* Size of the labels printed at this station, given as width-by-height (for
|
|
1251
|
+
* example, `1x1`).
|
|
1118
1252
|
*/
|
|
1119
1253
|
label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
|
|
1120
1254
|
|
|
1121
1255
|
/**
|
|
1122
|
-
*
|
|
1256
|
+
* Type of label printed at this station.
|
|
1257
|
+
*
|
|
1258
|
+
* - `tag`: a label attached to the physical product.
|
|
1259
|
+
* - `traveler`: a routing sheet that accompanies the batch through every
|
|
1260
|
+
* production step.
|
|
1123
1261
|
*/
|
|
1124
1262
|
label_type: 'tag' | 'traveler' | null;
|
|
1125
1263
|
|
|
1126
1264
|
/**
|
|
1127
|
-
* Display name.
|
|
1265
|
+
* Display name of the scanning station.
|
|
1266
|
+
*
|
|
1267
|
+
* Unique within the account.
|
|
1128
1268
|
*/
|
|
1129
1269
|
name: string;
|
|
1130
1270
|
|
|
1131
1271
|
/**
|
|
1132
|
-
*
|
|
1272
|
+
* Free-form notes about the scanning station.
|
|
1133
1273
|
*/
|
|
1134
1274
|
notes: string | null;
|
|
1135
1275
|
|
|
@@ -1139,7 +1279,10 @@ export interface ScanningStation {
|
|
|
1139
1279
|
object: 'scanning_station';
|
|
1140
1280
|
|
|
1141
1281
|
/**
|
|
1142
|
-
*
|
|
1282
|
+
* Whether operators must perform a material check at this station.
|
|
1283
|
+
*
|
|
1284
|
+
* - `none`: no additional operator check is required.
|
|
1285
|
+
* - `material_check`: a material check is expected before the operation.
|
|
1143
1286
|
*/
|
|
1144
1287
|
operator_requirement: 'none' | 'material_check';
|
|
1145
1288
|
|
|
@@ -1149,7 +1292,12 @@ export interface ScanningStation {
|
|
|
1149
1292
|
production_steps: ListProductionStep | null;
|
|
1150
1293
|
|
|
1151
1294
|
/**
|
|
1152
|
-
* Scanning station type.
|
|
1295
|
+
* Scanning station type, determining which batch operation the station performs.
|
|
1296
|
+
*
|
|
1297
|
+
* - `init_batch`: initializes a new batch.
|
|
1298
|
+
* - `merge_batch`: merges multiple batches into one.
|
|
1299
|
+
* - `move_batch`: moves a batch to another location or step.
|
|
1300
|
+
* - `split_batch`: splits a batch into multiple batches.
|
|
1153
1301
|
*/
|
|
1154
1302
|
type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
|
|
1155
1303
|
|
|
@@ -1174,17 +1322,23 @@ export interface ServiceLevel {
|
|
|
1174
1322
|
created_at: string;
|
|
1175
1323
|
|
|
1176
1324
|
/**
|
|
1177
|
-
*
|
|
1325
|
+
* Whether customers can see and select this service level at checkout in the
|
|
1326
|
+
* customer portal.
|
|
1178
1327
|
*/
|
|
1179
1328
|
customer_portal_visibility: 'visible' | 'hidden';
|
|
1180
1329
|
|
|
1181
1330
|
/**
|
|
1182
|
-
*
|
|
1331
|
+
* Whether this is the carrier's default service level, pre-selected when the
|
|
1332
|
+
* carrier is chosen.
|
|
1333
|
+
*
|
|
1334
|
+
* Each carrier has at most one default; setting a new default clears the previous
|
|
1335
|
+
* one.
|
|
1183
1336
|
*/
|
|
1184
1337
|
is_default: boolean;
|
|
1185
1338
|
|
|
1186
1339
|
/**
|
|
1187
|
-
*
|
|
1340
|
+
* Human-readable name for the service level, shown to customers at checkout when
|
|
1341
|
+
* the service level is visible.
|
|
1188
1342
|
*/
|
|
1189
1343
|
name: string;
|
|
1190
1344
|
|
|
@@ -1199,7 +1353,10 @@ export interface ServiceLevel {
|
|
|
1199
1353
|
owner: APIKeysAPI.Owner | null;
|
|
1200
1354
|
|
|
1201
1355
|
/**
|
|
1202
|
-
*
|
|
1356
|
+
* Carrier-specific code identifying this service level (e.g. `fedex_ground`,
|
|
1357
|
+
* `ups_next_day_air`).
|
|
1358
|
+
*
|
|
1359
|
+
* Values are carrier-defined, so any non-empty string is accepted.
|
|
1203
1360
|
*/
|
|
1204
1361
|
service_level_token: string;
|
|
1205
1362
|
|
|
@@ -1210,7 +1367,7 @@ export interface ServiceLevel {
|
|
|
1210
1367
|
}
|
|
1211
1368
|
|
|
1212
1369
|
/**
|
|
1213
|
-
*
|
|
1370
|
+
* A shipping term defining how freight charges are calculated for an order.
|
|
1214
1371
|
*/
|
|
1215
1372
|
export interface ShippingTerm {
|
|
1216
1373
|
/**
|
|
@@ -1239,7 +1396,8 @@ export interface ShippingTerm {
|
|
|
1239
1396
|
minimum_order_value: ItemsAPI.Quantity | null;
|
|
1240
1397
|
|
|
1241
1398
|
/**
|
|
1242
|
-
*
|
|
1399
|
+
* Human-readable name for the shipping term, used to identify it when assigning
|
|
1400
|
+
* shipping terms to customers and orders.
|
|
1243
1401
|
*/
|
|
1244
1402
|
name: string;
|
|
1245
1403
|
|
|
@@ -1254,7 +1412,13 @@ export interface ShippingTerm {
|
|
|
1254
1412
|
owner: APIKeysAPI.Owner | null;
|
|
1255
1413
|
|
|
1256
1414
|
/**
|
|
1257
|
-
*
|
|
1415
|
+
* Freight pricing model applied by this shipping term.
|
|
1416
|
+
*
|
|
1417
|
+
* - `free_freight`: no shipping cost to the buyer.
|
|
1418
|
+
* - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
|
|
1419
|
+
* `flat_rate`).
|
|
1420
|
+
* - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
|
|
1421
|
+
* rate.
|
|
1258
1422
|
*/
|
|
1259
1423
|
type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
|
|
1260
1424
|
|
|
@@ -1269,43 +1433,54 @@ export interface ShippingTerm {
|
|
|
1269
1433
|
*/
|
|
1270
1434
|
export interface UpdateCustomerRequest {
|
|
1271
1435
|
/**
|
|
1272
|
-
*
|
|
1436
|
+
* ID of an existing address to use as the default billing address.
|
|
1273
1437
|
*/
|
|
1274
1438
|
bill_to_address_id?: string | null;
|
|
1275
1439
|
|
|
1276
1440
|
/**
|
|
1277
|
-
* Carrier billing account number
|
|
1441
|
+
* Carrier billing account number charged when `carrier_billing_type` is
|
|
1442
|
+
* `third_party`.
|
|
1278
1443
|
*/
|
|
1279
1444
|
carrier_billing_account?: string | null;
|
|
1280
1445
|
|
|
1281
1446
|
/**
|
|
1282
|
-
*
|
|
1447
|
+
* Who pays the carrier for shipments.
|
|
1448
|
+
*
|
|
1449
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
1450
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1283
1451
|
*/
|
|
1284
1452
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
1285
1453
|
|
|
1286
1454
|
/**
|
|
1287
|
-
*
|
|
1455
|
+
* How sales commission applies to this customer's orders.
|
|
1456
|
+
*
|
|
1457
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
1458
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
1459
|
+
* orders.
|
|
1288
1460
|
*/
|
|
1289
1461
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1290
1462
|
|
|
1291
1463
|
/**
|
|
1292
|
-
*
|
|
1293
|
-
* requests.
|
|
1464
|
+
* A value with an associated unit, used in create and update requests.
|
|
1294
1465
|
*/
|
|
1295
1466
|
credit_limit?: QuantityInput | null;
|
|
1296
1467
|
|
|
1297
1468
|
/**
|
|
1298
|
-
*
|
|
1469
|
+
* IDs of the account groups of type `pricing_group` to assign to this customer,
|
|
1470
|
+
* used to apply pricing rules.
|
|
1471
|
+
*
|
|
1472
|
+
* When provided, replaces the customer's full set of existing price groups.
|
|
1299
1473
|
*/
|
|
1300
1474
|
customer_price_group_ids?: Array<string>;
|
|
1301
1475
|
|
|
1302
1476
|
/**
|
|
1303
|
-
*
|
|
1477
|
+
* ID of the account group of type `type_group` that categorizes this customer (for
|
|
1478
|
+
* example "Distributors").
|
|
1304
1479
|
*/
|
|
1305
1480
|
customer_type_group_id?: string;
|
|
1306
1481
|
|
|
1307
1482
|
/**
|
|
1308
|
-
*
|
|
1483
|
+
* ID of the default carrier for this customer's shipments.
|
|
1309
1484
|
*/
|
|
1310
1485
|
default_carrier_id?: string;
|
|
1311
1486
|
|
|
@@ -1315,7 +1490,7 @@ export interface UpdateCustomerRequest {
|
|
|
1315
1490
|
default_payment_term_id?: string;
|
|
1316
1491
|
|
|
1317
1492
|
/**
|
|
1318
|
-
*
|
|
1493
|
+
* Priority applied to new orders for this customer.
|
|
1319
1494
|
*/
|
|
1320
1495
|
default_priority?: 'low' | 'normal' | 'high';
|
|
1321
1496
|
|
|
@@ -1325,7 +1500,7 @@ export interface UpdateCustomerRequest {
|
|
|
1325
1500
|
default_sales_rep_id?: string | null;
|
|
1326
1501
|
|
|
1327
1502
|
/**
|
|
1328
|
-
*
|
|
1503
|
+
* ID of the default carrier service level.
|
|
1329
1504
|
*/
|
|
1330
1505
|
default_service_level_id?: string | null;
|
|
1331
1506
|
|
|
@@ -1335,97 +1510,171 @@ export interface UpdateCustomerRequest {
|
|
|
1335
1510
|
default_shipping_term_id?: string;
|
|
1336
1511
|
|
|
1337
1512
|
/**
|
|
1338
|
-
* EDI
|
|
1513
|
+
* Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
|
|
1514
|
+
* documents with this customer.
|
|
1339
1515
|
*/
|
|
1340
1516
|
edi_status?: 'enabled' | 'disabled';
|
|
1341
1517
|
|
|
1342
1518
|
/**
|
|
1343
|
-
* Email address.
|
|
1519
|
+
* Email address.
|
|
1344
1520
|
*/
|
|
1345
1521
|
email?: string | null;
|
|
1346
1522
|
|
|
1347
1523
|
/**
|
|
1348
|
-
*
|
|
1524
|
+
* Whether this customer is billed for freight on their orders.
|
|
1525
|
+
*
|
|
1526
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
1527
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
1528
|
+
* order.
|
|
1349
1529
|
*/
|
|
1350
1530
|
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1351
1531
|
|
|
1352
1532
|
/**
|
|
1353
|
-
*
|
|
1533
|
+
* The customer's business name, as shown throughout the app and on documents.
|
|
1354
1534
|
*/
|
|
1355
1535
|
name?: string;
|
|
1356
1536
|
|
|
1357
1537
|
/**
|
|
1358
|
-
*
|
|
1538
|
+
* Free-form note about the customer.
|
|
1359
1539
|
*/
|
|
1360
1540
|
note?: string | null;
|
|
1361
1541
|
|
|
1362
1542
|
/**
|
|
1363
|
-
*
|
|
1543
|
+
* Human-readable customer number used to identify the account, distinct from the
|
|
1544
|
+
* `id`.
|
|
1545
|
+
*
|
|
1546
|
+
* Must be unique within your account.
|
|
1364
1547
|
*/
|
|
1365
1548
|
number?: string;
|
|
1366
1549
|
|
|
1367
1550
|
/**
|
|
1368
|
-
* Phone number.
|
|
1551
|
+
* Phone number.
|
|
1369
1552
|
*/
|
|
1370
1553
|
phone?: string | null;
|
|
1371
1554
|
|
|
1372
1555
|
/**
|
|
1373
|
-
*
|
|
1556
|
+
* ID of an existing address to use as the default shipping address.
|
|
1374
1557
|
*/
|
|
1375
1558
|
ship_to_address_id?: string | null;
|
|
1376
1559
|
|
|
1377
1560
|
/**
|
|
1378
|
-
* Account status code.
|
|
1561
|
+
* Account status code, controlling whether the customer can transact.
|
|
1562
|
+
*
|
|
1563
|
+
* - `normal`: standard active account with no restrictions.
|
|
1564
|
+
* - `preferred`: active account flagged as preferred.
|
|
1565
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
1566
|
+
* - `hold_all`: all activity is on hold.
|
|
1379
1567
|
*/
|
|
1380
1568
|
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1381
1569
|
|
|
1382
1570
|
/**
|
|
1383
|
-
* Website URL.
|
|
1571
|
+
* Website URL.
|
|
1384
1572
|
*/
|
|
1385
1573
|
url?: string | null;
|
|
1386
1574
|
}
|
|
1387
1575
|
|
|
1576
|
+
/**
|
|
1577
|
+
* A user's global profile, shared across every account they belong to.
|
|
1578
|
+
*
|
|
1579
|
+
* Account-specific settings (status, role, department) live on the account user
|
|
1580
|
+
* resource that links the user to each account.
|
|
1581
|
+
*/
|
|
1582
|
+
export interface User {
|
|
1583
|
+
/**
|
|
1584
|
+
* User ID.
|
|
1585
|
+
*/
|
|
1586
|
+
id: string;
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Creation timestamp.
|
|
1590
|
+
*/
|
|
1591
|
+
created_at: string;
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
* Email address.
|
|
1595
|
+
*/
|
|
1596
|
+
email: string | null;
|
|
1597
|
+
|
|
1598
|
+
/**
|
|
1599
|
+
* When the user verified their email address.
|
|
1600
|
+
*/
|
|
1601
|
+
email_verified_at: string | null;
|
|
1602
|
+
|
|
1603
|
+
/**
|
|
1604
|
+
* URL of the user's profile image.
|
|
1605
|
+
*/
|
|
1606
|
+
image_url: string | null;
|
|
1607
|
+
|
|
1608
|
+
/**
|
|
1609
|
+
* User's full display name.
|
|
1610
|
+
*/
|
|
1611
|
+
name: string | null;
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Resource type identifier.
|
|
1615
|
+
*/
|
|
1616
|
+
object: 'user';
|
|
1617
|
+
|
|
1618
|
+
/**
|
|
1619
|
+
* Last updated timestamp.
|
|
1620
|
+
*/
|
|
1621
|
+
updated_at: string;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Username.
|
|
1625
|
+
*/
|
|
1626
|
+
username: string | null;
|
|
1627
|
+
}
|
|
1628
|
+
|
|
1388
1629
|
export interface CustomerDeleteResponse {}
|
|
1389
1630
|
|
|
1390
|
-
export interface
|
|
1631
|
+
export interface CustomerListParams {
|
|
1391
1632
|
/**
|
|
1392
|
-
*
|
|
1633
|
+
* Filter by default carrier IDs.
|
|
1393
1634
|
*/
|
|
1394
|
-
|
|
1635
|
+
carrier_ids?: Array<string>;
|
|
1395
1636
|
|
|
1396
1637
|
/**
|
|
1397
|
-
*
|
|
1638
|
+
* Filter to customers with any address in this city (exact match).
|
|
1639
|
+
*
|
|
1640
|
+
* When combined with `state` or `postal_code`, a single address must match all
|
|
1641
|
+
* provided values.
|
|
1398
1642
|
*/
|
|
1399
|
-
|
|
1643
|
+
city?: string;
|
|
1400
1644
|
|
|
1401
1645
|
/**
|
|
1402
|
-
*
|
|
1646
|
+
* Filter by commission policy.
|
|
1403
1647
|
*/
|
|
1404
|
-
|
|
1648
|
+
commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
|
|
1405
1649
|
|
|
1406
1650
|
/**
|
|
1407
|
-
*
|
|
1651
|
+
* Opaque cursor token identifying where the page of results starts.
|
|
1652
|
+
*
|
|
1653
|
+
* Use the `cursor` value embedded in a previous response's `next_page_url` or
|
|
1654
|
+
* `previous_page_url` to fetch the adjacent page. Omit to start from the first
|
|
1655
|
+
* page.
|
|
1408
1656
|
*/
|
|
1409
|
-
|
|
1657
|
+
cursor?: string;
|
|
1410
1658
|
|
|
1411
1659
|
/**
|
|
1412
|
-
*
|
|
1660
|
+
* Filter by customer type group IDs (the account group of type `type_group`
|
|
1661
|
+
* returned in the customer's `type` field).
|
|
1413
1662
|
*/
|
|
1414
|
-
|
|
1663
|
+
customer_group_ids?: Array<string>;
|
|
1415
1664
|
|
|
1416
1665
|
/**
|
|
1417
|
-
*
|
|
1666
|
+
* Filter to customers created at or before this timestamp (inclusive).
|
|
1418
1667
|
*/
|
|
1419
|
-
|
|
1668
|
+
end_date?: string;
|
|
1420
1669
|
|
|
1421
1670
|
/**
|
|
1422
|
-
*
|
|
1671
|
+
* Filter by freight policy.
|
|
1423
1672
|
*/
|
|
1424
|
-
|
|
1673
|
+
freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
|
|
1425
1674
|
|
|
1426
1675
|
/**
|
|
1427
|
-
*
|
|
1428
|
-
*
|
|
1676
|
+
* Sub-objects to expand in the response. When omitted, sub-objects are returned as
|
|
1677
|
+
* `null`.
|
|
1429
1678
|
*/
|
|
1430
1679
|
include?: Array<
|
|
1431
1680
|
| 'bill_to_address'
|
|
@@ -1437,6 +1686,7 @@ export interface CustomerCreateParams {
|
|
|
1437
1686
|
| 'defaults.payment_term'
|
|
1438
1687
|
| 'defaults.shipping_term'
|
|
1439
1688
|
| 'defaults.sales_rep'
|
|
1689
|
+
| 'defaults.sales_rep.user'
|
|
1440
1690
|
| 'defaults.priority'
|
|
1441
1691
|
| 'contact_info'
|
|
1442
1692
|
| 'freight_preferences'
|
|
@@ -1448,85 +1698,66 @@ export interface CustomerCreateParams {
|
|
|
1448
1698
|
>;
|
|
1449
1699
|
|
|
1450
1700
|
/**
|
|
1451
|
-
*
|
|
1452
|
-
*/
|
|
1453
|
-
carrier_billing_account?: string;
|
|
1454
|
-
|
|
1455
|
-
/**
|
|
1456
|
-
* Body param: Carrier billing type.
|
|
1701
|
+
* Maximum number of results to return in a single page.
|
|
1457
1702
|
*/
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
/**
|
|
1461
|
-
* Body param: Commission policy.
|
|
1462
|
-
*/
|
|
1463
|
-
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1464
|
-
|
|
1465
|
-
/**
|
|
1466
|
-
* Body param: QuantityInput represents a value with an associated unit for
|
|
1467
|
-
* create/update requests.
|
|
1468
|
-
*/
|
|
1469
|
-
credit_limit?: QuantityInput;
|
|
1470
|
-
|
|
1471
|
-
/**
|
|
1472
|
-
* Body param: Price group IDs.
|
|
1473
|
-
*/
|
|
1474
|
-
customer_price_group_ids?: Array<string>;
|
|
1703
|
+
limit?: number;
|
|
1475
1704
|
|
|
1476
1705
|
/**
|
|
1477
|
-
*
|
|
1706
|
+
* Filter by whether the customer has child accounts.
|
|
1478
1707
|
*/
|
|
1479
|
-
|
|
1708
|
+
parent_account_status?: 'parent' | 'non_parent';
|
|
1480
1709
|
|
|
1481
1710
|
/**
|
|
1482
|
-
*
|
|
1711
|
+
* Filter by default payment term IDs.
|
|
1483
1712
|
*/
|
|
1484
|
-
|
|
1713
|
+
payment_term_ids?: Array<string>;
|
|
1485
1714
|
|
|
1486
1715
|
/**
|
|
1487
|
-
*
|
|
1716
|
+
* Filter to customers with any address in this postal code (exact match).
|
|
1488
1717
|
*/
|
|
1489
|
-
|
|
1718
|
+
postal_code?: string;
|
|
1490
1719
|
|
|
1491
1720
|
/**
|
|
1492
|
-
*
|
|
1721
|
+
* Filter to customers that belong to any of these pricing groups.
|
|
1493
1722
|
*/
|
|
1494
|
-
|
|
1723
|
+
pricing_group_ids?: Array<string>;
|
|
1495
1724
|
|
|
1496
1725
|
/**
|
|
1497
|
-
*
|
|
1726
|
+
* Free-text search term used to filter results.
|
|
1727
|
+
*
|
|
1728
|
+
* Which fields are matched against the term varies by endpoint.
|
|
1498
1729
|
*/
|
|
1499
|
-
|
|
1730
|
+
q?: string;
|
|
1500
1731
|
|
|
1501
1732
|
/**
|
|
1502
|
-
*
|
|
1733
|
+
* Filter by default sales rep IDs.
|
|
1503
1734
|
*/
|
|
1504
|
-
|
|
1735
|
+
sales_rep_ids?: Array<string>;
|
|
1505
1736
|
|
|
1506
1737
|
/**
|
|
1507
|
-
*
|
|
1738
|
+
* Filter by default service level IDs.
|
|
1508
1739
|
*/
|
|
1509
|
-
|
|
1740
|
+
service_level_ids?: Array<string>;
|
|
1510
1741
|
|
|
1511
1742
|
/**
|
|
1512
|
-
*
|
|
1743
|
+
* Filter by default shipping term IDs.
|
|
1513
1744
|
*/
|
|
1514
|
-
|
|
1745
|
+
shipping_term_ids?: Array<string>;
|
|
1515
1746
|
|
|
1516
1747
|
/**
|
|
1517
|
-
*
|
|
1748
|
+
* Filter to customers created at or after this timestamp (inclusive).
|
|
1518
1749
|
*/
|
|
1519
|
-
|
|
1750
|
+
start_date?: string;
|
|
1520
1751
|
|
|
1521
1752
|
/**
|
|
1522
|
-
*
|
|
1753
|
+
* Filter to customers with any address in this state (exact match).
|
|
1523
1754
|
*/
|
|
1524
|
-
|
|
1755
|
+
state?: string;
|
|
1525
1756
|
|
|
1526
1757
|
/**
|
|
1527
|
-
*
|
|
1758
|
+
* Filter by account status codes.
|
|
1528
1759
|
*/
|
|
1529
|
-
|
|
1760
|
+
status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
|
|
1530
1761
|
}
|
|
1531
1762
|
|
|
1532
1763
|
export interface CustomerRetrieveParams {
|
|
@@ -1544,6 +1775,7 @@ export interface CustomerRetrieveParams {
|
|
|
1544
1775
|
| 'defaults.payment_term'
|
|
1545
1776
|
| 'defaults.shipping_term'
|
|
1546
1777
|
| 'defaults.sales_rep'
|
|
1778
|
+
| 'defaults.sales_rep.user'
|
|
1547
1779
|
| 'defaults.priority'
|
|
1548
1780
|
| 'contact_info'
|
|
1549
1781
|
| 'freight_preferences'
|
|
@@ -1555,7 +1787,46 @@ export interface CustomerRetrieveParams {
|
|
|
1555
1787
|
>;
|
|
1556
1788
|
}
|
|
1557
1789
|
|
|
1558
|
-
export interface
|
|
1790
|
+
export interface CustomerCreateParams {
|
|
1791
|
+
/**
|
|
1792
|
+
* Body param: Address details used to create an address, either directly or inline
|
|
1793
|
+
* on another resource.
|
|
1794
|
+
*/
|
|
1795
|
+
bill_to_address: AddressesAPI.AddressInput;
|
|
1796
|
+
|
|
1797
|
+
/**
|
|
1798
|
+
* Body param: ID of the account group of type `type_group` that categorizes this
|
|
1799
|
+
* customer (for example "Distributors").
|
|
1800
|
+
*/
|
|
1801
|
+
customer_type_group_id: string;
|
|
1802
|
+
|
|
1803
|
+
/**
|
|
1804
|
+
* Body param: ID of the default carrier for this customer's shipments.
|
|
1805
|
+
*/
|
|
1806
|
+
default_carrier_id: string;
|
|
1807
|
+
|
|
1808
|
+
/**
|
|
1809
|
+
* Body param: Default payment term ID.
|
|
1810
|
+
*/
|
|
1811
|
+
default_payment_term_id: string;
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* Body param: Default shipping term ID.
|
|
1815
|
+
*/
|
|
1816
|
+
default_shipping_term_id: string;
|
|
1817
|
+
|
|
1818
|
+
/**
|
|
1819
|
+
* Body param: The customer's business name, as shown throughout the app and on
|
|
1820
|
+
* documents.
|
|
1821
|
+
*/
|
|
1822
|
+
name: string;
|
|
1823
|
+
|
|
1824
|
+
/**
|
|
1825
|
+
* Body param: Address details used to create an address, either directly or inline
|
|
1826
|
+
* on another resource.
|
|
1827
|
+
*/
|
|
1828
|
+
ship_to_address: AddressesAPI.AddressInput;
|
|
1829
|
+
|
|
1559
1830
|
/**
|
|
1560
1831
|
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
1561
1832
|
* are returned as `null`.
|
|
@@ -1570,6 +1841,7 @@ export interface CustomerUpdateParams {
|
|
|
1570
1841
|
| 'defaults.payment_term'
|
|
1571
1842
|
| 'defaults.shipping_term'
|
|
1572
1843
|
| 'defaults.sales_rep'
|
|
1844
|
+
| 'defaults.sales_rep.user'
|
|
1573
1845
|
| 'defaults.priority'
|
|
1574
1846
|
| 'contact_info'
|
|
1575
1847
|
| 'freight_preferences'
|
|
@@ -1581,241 +1853,275 @@ export interface CustomerUpdateParams {
|
|
|
1581
1853
|
>;
|
|
1582
1854
|
|
|
1583
1855
|
/**
|
|
1584
|
-
* Body param:
|
|
1585
|
-
|
|
1586
|
-
bill_to_address_id?: string | null;
|
|
1587
|
-
|
|
1588
|
-
/**
|
|
1589
|
-
* Body param: Carrier billing account number.
|
|
1856
|
+
* Body param: Carrier billing account number charged when `carrier_billing_type`
|
|
1857
|
+
* is `third_party`.
|
|
1590
1858
|
*/
|
|
1591
|
-
carrier_billing_account?: string
|
|
1859
|
+
carrier_billing_account?: string;
|
|
1592
1860
|
|
|
1593
1861
|
/**
|
|
1594
|
-
* Body param:
|
|
1862
|
+
* Body param: Who pays the carrier for shipments.
|
|
1863
|
+
*
|
|
1864
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
1865
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1595
1866
|
*/
|
|
1596
1867
|
carrier_billing_type?: 'sender' | 'third_party';
|
|
1597
1868
|
|
|
1598
1869
|
/**
|
|
1599
|
-
* Body param:
|
|
1870
|
+
* Body param: How sales commission applies to this customer's orders.
|
|
1871
|
+
*
|
|
1872
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
1873
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
1874
|
+
* orders.
|
|
1600
1875
|
*/
|
|
1601
1876
|
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1602
1877
|
|
|
1603
1878
|
/**
|
|
1604
|
-
* Body param:
|
|
1605
|
-
* create/update requests.
|
|
1879
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
1606
1880
|
*/
|
|
1607
|
-
credit_limit?: QuantityInput
|
|
1881
|
+
credit_limit?: QuantityInput;
|
|
1608
1882
|
|
|
1609
1883
|
/**
|
|
1610
|
-
* Body param:
|
|
1884
|
+
* Body param: IDs of the account groups of type `pricing_group` to assign to this
|
|
1885
|
+
* customer, used to apply pricing rules.
|
|
1611
1886
|
*/
|
|
1612
1887
|
customer_price_group_ids?: Array<string>;
|
|
1613
1888
|
|
|
1614
1889
|
/**
|
|
1615
|
-
* Body param:
|
|
1616
|
-
*/
|
|
1617
|
-
customer_type_group_id?: string;
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* Body param: Default carrier ID.
|
|
1621
|
-
*/
|
|
1622
|
-
default_carrier_id?: string;
|
|
1623
|
-
|
|
1624
|
-
/**
|
|
1625
|
-
* Body param: Default payment term ID.
|
|
1890
|
+
* Body param: Priority applied to new orders for this customer.
|
|
1626
1891
|
*/
|
|
1627
|
-
|
|
1892
|
+
default_priority?: 'low' | 'normal' | 'high';
|
|
1628
1893
|
|
|
1629
1894
|
/**
|
|
1630
|
-
* Body param:
|
|
1895
|
+
* Body param: The ID of the account user to assign as the default sales rep.
|
|
1631
1896
|
*/
|
|
1632
|
-
|
|
1897
|
+
default_sales_rep_id?: string;
|
|
1633
1898
|
|
|
1634
1899
|
/**
|
|
1635
|
-
* Body param:
|
|
1900
|
+
* Body param: ID of the default carrier service level.
|
|
1636
1901
|
*/
|
|
1637
|
-
|
|
1902
|
+
default_service_level_id?: string;
|
|
1638
1903
|
|
|
1639
1904
|
/**
|
|
1640
|
-
* Body param:
|
|
1905
|
+
* Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
|
|
1906
|
+
* orders and documents with this customer.
|
|
1641
1907
|
*/
|
|
1642
|
-
|
|
1908
|
+
edi_status?: 'enabled' | 'disabled';
|
|
1643
1909
|
|
|
1644
1910
|
/**
|
|
1645
|
-
* Body param:
|
|
1911
|
+
* Body param: Email address.
|
|
1646
1912
|
*/
|
|
1647
|
-
|
|
1913
|
+
email?: string;
|
|
1648
1914
|
|
|
1649
1915
|
/**
|
|
1650
|
-
* Body param:
|
|
1916
|
+
* Body param: Whether this customer is billed for freight on their orders.
|
|
1917
|
+
*
|
|
1918
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
1919
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
1920
|
+
* order.
|
|
1651
1921
|
*/
|
|
1652
|
-
|
|
1922
|
+
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1653
1923
|
|
|
1654
1924
|
/**
|
|
1655
|
-
* Body param:
|
|
1925
|
+
* Body param: Free-form note about the customer.
|
|
1656
1926
|
*/
|
|
1657
|
-
|
|
1927
|
+
note?: string;
|
|
1658
1928
|
|
|
1659
1929
|
/**
|
|
1660
|
-
* Body param:
|
|
1930
|
+
* Body param: Human-readable customer number used to identify the account,
|
|
1931
|
+
* distinct from the `id`.
|
|
1932
|
+
*
|
|
1933
|
+
* Must be unique within your account. If omitted, the next sequential number is
|
|
1934
|
+
* assigned automatically.
|
|
1661
1935
|
*/
|
|
1662
|
-
|
|
1936
|
+
number?: string;
|
|
1663
1937
|
|
|
1664
1938
|
/**
|
|
1665
|
-
* Body param:
|
|
1939
|
+
* Body param: Phone number.
|
|
1666
1940
|
*/
|
|
1667
|
-
|
|
1941
|
+
phone?: string;
|
|
1668
1942
|
|
|
1669
1943
|
/**
|
|
1670
|
-
* Body param:
|
|
1944
|
+
* Body param: Account status code, controlling whether the customer can transact.
|
|
1945
|
+
*
|
|
1946
|
+
* - `normal`: standard active account with no restrictions.
|
|
1947
|
+
* - `preferred`: active account flagged as preferred.
|
|
1948
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
1949
|
+
* - `hold_all`: all activity is on hold.
|
|
1671
1950
|
*/
|
|
1672
|
-
|
|
1951
|
+
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1673
1952
|
|
|
1674
1953
|
/**
|
|
1675
|
-
* Body param:
|
|
1954
|
+
* Body param: Website URL.
|
|
1676
1955
|
*/
|
|
1677
|
-
|
|
1956
|
+
url?: string;
|
|
1957
|
+
}
|
|
1678
1958
|
|
|
1959
|
+
export interface CustomerUpdateParams {
|
|
1679
1960
|
/**
|
|
1680
|
-
*
|
|
1961
|
+
* Query param: Sub-objects to expand in the response. When omitted, sub-objects
|
|
1962
|
+
* are returned as `null`.
|
|
1681
1963
|
*/
|
|
1682
|
-
|
|
1964
|
+
include?: Array<
|
|
1965
|
+
| 'bill_to_address'
|
|
1966
|
+
| 'ship_to_address'
|
|
1967
|
+
| 'type'
|
|
1968
|
+
| 'parent_account'
|
|
1969
|
+
| 'freight_preferences.carrier'
|
|
1970
|
+
| 'freight_preferences.service_level'
|
|
1971
|
+
| 'defaults.payment_term'
|
|
1972
|
+
| 'defaults.shipping_term'
|
|
1973
|
+
| 'defaults.sales_rep'
|
|
1974
|
+
| 'defaults.sales_rep.user'
|
|
1975
|
+
| 'defaults.priority'
|
|
1976
|
+
| 'contact_info'
|
|
1977
|
+
| 'freight_preferences'
|
|
1978
|
+
| 'defaults'
|
|
1979
|
+
| 'notification_preferences'
|
|
1980
|
+
| 'price_groups'
|
|
1981
|
+
| 'child_accounts'
|
|
1982
|
+
| 'credit_limit'
|
|
1983
|
+
>;
|
|
1683
1984
|
|
|
1684
1985
|
/**
|
|
1685
|
-
* Body param:
|
|
1986
|
+
* Body param: ID of an existing address to use as the default billing address.
|
|
1686
1987
|
*/
|
|
1687
|
-
|
|
1988
|
+
bill_to_address_id?: string | null;
|
|
1688
1989
|
|
|
1689
1990
|
/**
|
|
1690
|
-
* Body param:
|
|
1991
|
+
* Body param: Carrier billing account number charged when `carrier_billing_type`
|
|
1992
|
+
* is `third_party`.
|
|
1691
1993
|
*/
|
|
1692
|
-
|
|
1994
|
+
carrier_billing_account?: string | null;
|
|
1693
1995
|
|
|
1694
1996
|
/**
|
|
1695
|
-
* Body param:
|
|
1997
|
+
* Body param: Who pays the carrier for shipments.
|
|
1998
|
+
*
|
|
1999
|
+
* - `sender`: the shipper (you) pays the carrier.
|
|
2000
|
+
* - `third_party`: a third party is billed, using `carrier_billing_account`.
|
|
1696
2001
|
*/
|
|
1697
|
-
|
|
1698
|
-
}
|
|
2002
|
+
carrier_billing_type?: 'sender' | 'third_party';
|
|
1699
2003
|
|
|
1700
|
-
export interface CustomerListParams {
|
|
1701
2004
|
/**
|
|
1702
|
-
*
|
|
2005
|
+
* Body param: How sales commission applies to this customer's orders.
|
|
2006
|
+
*
|
|
2007
|
+
* - `commission_exempt`: this customer's orders are exempt from sales commission.
|
|
2008
|
+
* - `commission_applied`: sales commission is calculated on this customer's
|
|
2009
|
+
* orders.
|
|
1703
2010
|
*/
|
|
1704
|
-
|
|
2011
|
+
commission_policy?: 'commission_applied' | 'commission_exempt';
|
|
1705
2012
|
|
|
1706
2013
|
/**
|
|
1707
|
-
*
|
|
2014
|
+
* Body param: A value with an associated unit, used in create and update requests.
|
|
1708
2015
|
*/
|
|
1709
|
-
|
|
2016
|
+
credit_limit?: QuantityInput | null;
|
|
1710
2017
|
|
|
1711
2018
|
/**
|
|
1712
|
-
*
|
|
2019
|
+
* Body param: IDs of the account groups of type `pricing_group` to assign to this
|
|
2020
|
+
* customer, used to apply pricing rules.
|
|
2021
|
+
*
|
|
2022
|
+
* When provided, replaces the customer's full set of existing price groups.
|
|
1713
2023
|
*/
|
|
1714
|
-
|
|
2024
|
+
customer_price_group_ids?: Array<string>;
|
|
1715
2025
|
|
|
1716
2026
|
/**
|
|
1717
|
-
*
|
|
2027
|
+
* Body param: ID of the account group of type `type_group` that categorizes this
|
|
2028
|
+
* customer (for example "Distributors").
|
|
1718
2029
|
*/
|
|
1719
|
-
|
|
2030
|
+
customer_type_group_id?: string;
|
|
1720
2031
|
|
|
1721
2032
|
/**
|
|
1722
|
-
*
|
|
2033
|
+
* Body param: ID of the default carrier for this customer's shipments.
|
|
1723
2034
|
*/
|
|
1724
|
-
|
|
2035
|
+
default_carrier_id?: string;
|
|
1725
2036
|
|
|
1726
2037
|
/**
|
|
1727
|
-
*
|
|
2038
|
+
* Body param: Default payment term ID.
|
|
1728
2039
|
*/
|
|
1729
|
-
|
|
2040
|
+
default_payment_term_id?: string;
|
|
1730
2041
|
|
|
1731
2042
|
/**
|
|
1732
|
-
*
|
|
2043
|
+
* Body param: Priority applied to new orders for this customer.
|
|
1733
2044
|
*/
|
|
1734
|
-
|
|
2045
|
+
default_priority?: 'low' | 'normal' | 'high';
|
|
1735
2046
|
|
|
1736
2047
|
/**
|
|
1737
|
-
*
|
|
1738
|
-
* `null`.
|
|
2048
|
+
* Body param: The ID of the account user to assign as the default sales rep.
|
|
1739
2049
|
*/
|
|
1740
|
-
|
|
1741
|
-
| 'bill_to_address'
|
|
1742
|
-
| 'ship_to_address'
|
|
1743
|
-
| 'type'
|
|
1744
|
-
| 'parent_account'
|
|
1745
|
-
| 'freight_preferences.carrier'
|
|
1746
|
-
| 'freight_preferences.service_level'
|
|
1747
|
-
| 'defaults.payment_term'
|
|
1748
|
-
| 'defaults.shipping_term'
|
|
1749
|
-
| 'defaults.sales_rep'
|
|
1750
|
-
| 'defaults.priority'
|
|
1751
|
-
| 'contact_info'
|
|
1752
|
-
| 'freight_preferences'
|
|
1753
|
-
| 'defaults'
|
|
1754
|
-
| 'notification_preferences'
|
|
1755
|
-
| 'price_groups'
|
|
1756
|
-
| 'child_accounts'
|
|
1757
|
-
| 'credit_limit'
|
|
1758
|
-
>;
|
|
2050
|
+
default_sales_rep_id?: string | null;
|
|
1759
2051
|
|
|
1760
2052
|
/**
|
|
1761
|
-
*
|
|
2053
|
+
* Body param: ID of the default carrier service level.
|
|
1762
2054
|
*/
|
|
1763
|
-
|
|
2055
|
+
default_service_level_id?: string | null;
|
|
1764
2056
|
|
|
1765
2057
|
/**
|
|
1766
|
-
*
|
|
2058
|
+
* Body param: Default shipping term ID.
|
|
1767
2059
|
*/
|
|
1768
|
-
|
|
2060
|
+
default_shipping_term_id?: string;
|
|
1769
2061
|
|
|
1770
2062
|
/**
|
|
1771
|
-
*
|
|
2063
|
+
* Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
|
|
2064
|
+
* orders and documents with this customer.
|
|
1772
2065
|
*/
|
|
1773
|
-
|
|
2066
|
+
edi_status?: 'enabled' | 'disabled';
|
|
1774
2067
|
|
|
1775
2068
|
/**
|
|
1776
|
-
*
|
|
2069
|
+
* Body param: Email address.
|
|
1777
2070
|
*/
|
|
1778
|
-
|
|
2071
|
+
email?: string | null;
|
|
1779
2072
|
|
|
1780
2073
|
/**
|
|
1781
|
-
*
|
|
2074
|
+
* Body param: Whether this customer is billed for freight on their orders.
|
|
2075
|
+
*
|
|
2076
|
+
* - `free_freight`: the customer is not billed for freight.
|
|
2077
|
+
* - `billed_freight`: freight is billed to the customer, unless overridden on the
|
|
2078
|
+
* order.
|
|
1782
2079
|
*/
|
|
1783
|
-
|
|
2080
|
+
freight_policy?: 'free_freight' | 'billed_freight';
|
|
1784
2081
|
|
|
1785
2082
|
/**
|
|
1786
|
-
*
|
|
2083
|
+
* Body param: The customer's business name, as shown throughout the app and on
|
|
2084
|
+
* documents.
|
|
1787
2085
|
*/
|
|
1788
|
-
|
|
2086
|
+
name?: string;
|
|
1789
2087
|
|
|
1790
2088
|
/**
|
|
1791
|
-
*
|
|
2089
|
+
* Body param: Free-form note about the customer.
|
|
1792
2090
|
*/
|
|
1793
|
-
|
|
2091
|
+
note?: string | null;
|
|
1794
2092
|
|
|
1795
2093
|
/**
|
|
1796
|
-
*
|
|
2094
|
+
* Body param: Human-readable customer number used to identify the account,
|
|
2095
|
+
* distinct from the `id`.
|
|
2096
|
+
*
|
|
2097
|
+
* Must be unique within your account.
|
|
1797
2098
|
*/
|
|
1798
|
-
|
|
2099
|
+
number?: string;
|
|
1799
2100
|
|
|
1800
2101
|
/**
|
|
1801
|
-
*
|
|
2102
|
+
* Body param: Phone number.
|
|
1802
2103
|
*/
|
|
1803
|
-
|
|
2104
|
+
phone?: string | null;
|
|
1804
2105
|
|
|
1805
2106
|
/**
|
|
1806
|
-
*
|
|
2107
|
+
* Body param: ID of an existing address to use as the default shipping address.
|
|
1807
2108
|
*/
|
|
1808
|
-
|
|
2109
|
+
ship_to_address_id?: string | null;
|
|
1809
2110
|
|
|
1810
2111
|
/**
|
|
1811
|
-
*
|
|
2112
|
+
* Body param: Account status code, controlling whether the customer can transact.
|
|
2113
|
+
*
|
|
2114
|
+
* - `normal`: standard active account with no restrictions.
|
|
2115
|
+
* - `preferred`: active account flagged as preferred.
|
|
2116
|
+
* - `hold_shipment`: orders can be placed, but shipments are held.
|
|
2117
|
+
* - `hold_all`: all activity is on hold.
|
|
1812
2118
|
*/
|
|
1813
|
-
|
|
2119
|
+
status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
|
|
1814
2120
|
|
|
1815
2121
|
/**
|
|
1816
|
-
*
|
|
2122
|
+
* Body param: Website URL.
|
|
1817
2123
|
*/
|
|
1818
|
-
|
|
2124
|
+
url?: string | null;
|
|
1819
2125
|
}
|
|
1820
2126
|
|
|
1821
2127
|
Customers.Actions = Actions;
|
|
@@ -1840,6 +2146,7 @@ export declare namespace Customers {
|
|
|
1840
2146
|
type ListScanningStation as ListScanningStation,
|
|
1841
2147
|
type ListServiceLevel as ListServiceLevel,
|
|
1842
2148
|
type Location as Location,
|
|
2149
|
+
type LocationTypeCode as LocationTypeCode,
|
|
1843
2150
|
type Machine as Machine,
|
|
1844
2151
|
type PaymentTerm as PaymentTerm,
|
|
1845
2152
|
type ProductionOutput as ProductionOutput,
|
|
@@ -1849,11 +2156,12 @@ export declare namespace Customers {
|
|
|
1849
2156
|
type ServiceLevel as ServiceLevel,
|
|
1850
2157
|
type ShippingTerm as ShippingTerm,
|
|
1851
2158
|
type UpdateCustomerRequest as UpdateCustomerRequest,
|
|
2159
|
+
type User as User,
|
|
1852
2160
|
type CustomerDeleteResponse as CustomerDeleteResponse,
|
|
1853
|
-
type
|
|
2161
|
+
type CustomerListParams as CustomerListParams,
|
|
1854
2162
|
type CustomerRetrieveParams as CustomerRetrieveParams,
|
|
2163
|
+
type CustomerCreateParams as CustomerCreateParams,
|
|
1855
2164
|
type CustomerUpdateParams as CustomerUpdateParams,
|
|
1856
|
-
type CustomerListParams as CustomerListParams,
|
|
1857
2165
|
};
|
|
1858
2166
|
|
|
1859
2167
|
export {
|