@gradientedge/commercetools-utils 5.9.1 → 5.10.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/dist/cjs/api/CommercetoolsApi.d.ts +1252 -0
- package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -0
- package/dist/cjs/api/CommercetoolsApi.js +2106 -0
- package/dist/cjs/api/CommercetoolsApi.js.map +1 -0
- package/dist/cjs/api/index.d.ts +3 -0
- package/dist/cjs/api/index.d.ts.map +1 -0
- package/dist/cjs/api/index.js +19 -0
- package/dist/cjs/api/index.js.map +1 -0
- package/dist/cjs/api/types.d.ts +33 -0
- package/dist/cjs/api/types.d.ts.map +1 -0
- package/dist/cjs/api/types.js +3 -0
- package/dist/cjs/api/types.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuth.d.ts +182 -0
- package/dist/cjs/auth/CommercetoolsAuth.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuth.js +238 -0
- package/dist/cjs/auth/CommercetoolsAuth.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.d.ts +83 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.js +169 -0
- package/dist/cjs/auth/CommercetoolsAuthApi.js.map +1 -0
- package/dist/cjs/auth/CommercetoolsGrant.d.ts +66 -0
- package/dist/cjs/auth/CommercetoolsGrant.d.ts.map +1 -0
- package/dist/cjs/auth/CommercetoolsGrant.js +99 -0
- package/dist/cjs/auth/CommercetoolsGrant.js.map +1 -0
- package/dist/cjs/auth/constants.d.ts +7 -0
- package/dist/cjs/auth/constants.d.ts.map +1 -0
- package/dist/cjs/auth/constants.js +31 -0
- package/dist/cjs/auth/constants.js.map +1 -0
- package/dist/cjs/auth/index.d.ts +4 -0
- package/dist/cjs/auth/index.d.ts.map +1 -0
- package/dist/cjs/auth/index.js +19 -0
- package/dist/cjs/auth/index.js.map +1 -0
- package/dist/cjs/auth/scopes.d.ts +11 -0
- package/dist/cjs/auth/scopes.d.ts.map +1 -0
- package/dist/cjs/auth/scopes.js +30 -0
- package/dist/cjs/auth/scopes.js.map +1 -0
- package/dist/cjs/auth/types.d.ts +118 -0
- package/dist/cjs/auth/types.d.ts.map +1 -0
- package/dist/cjs/auth/types.js +28 -0
- package/dist/cjs/auth/types.js.map +1 -0
- package/dist/{typings → cjs}/auth/utils.d.ts +1 -0
- package/dist/cjs/auth/utils.d.ts.map +1 -0
- package/dist/cjs/auth/utils.js +14 -0
- package/dist/cjs/auth/utils.js.map +1 -0
- package/dist/cjs/constants.d.ts +33 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +46 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/error/CommercetoolsError.d.ts +33 -0
- package/dist/cjs/error/CommercetoolsError.d.ts.map +1 -0
- package/dist/cjs/error/CommercetoolsError.js +110 -0
- package/dist/cjs/error/CommercetoolsError.js.map +1 -0
- package/dist/cjs/error/index.d.ts +2 -0
- package/dist/cjs/error/index.d.ts.map +1 -0
- package/dist/cjs/error/index.js +18 -0
- package/dist/cjs/error/index.js.map +1 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/index.d.ts.map +1 -0
- package/dist/cjs/index.js +26 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/models/associate-role.d.ts +319 -0
- package/dist/cjs/models/associate-role.d.ts.map +1 -0
- package/dist/cjs/models/associate-role.js +8 -0
- package/dist/cjs/models/associate-role.js.map +1 -0
- package/dist/cjs/models/attribute-group.d.ts +253 -0
- package/dist/cjs/models/attribute-group.d.ts.map +1 -0
- package/dist/cjs/models/attribute-group.js +8 -0
- package/dist/cjs/models/attribute-group.js.map +1 -0
- package/dist/cjs/models/business-unit.d.ts +1197 -0
- package/dist/cjs/models/business-unit.d.ts.map +1 -0
- package/dist/cjs/models/business-unit.js +8 -0
- package/dist/cjs/models/business-unit.js.map +1 -0
- package/dist/cjs/models/cart-discount.d.ts +716 -0
- package/dist/cjs/models/cart-discount.d.ts.map +1 -0
- package/dist/cjs/models/cart-discount.js +8 -0
- package/dist/cjs/models/cart-discount.js.map +1 -0
- package/dist/cjs/models/cart.d.ts +3350 -0
- package/dist/cjs/models/cart.d.ts.map +1 -0
- package/dist/cjs/models/cart.js +8 -0
- package/dist/cjs/models/cart.js.map +1 -0
- package/dist/cjs/models/category.d.ts +634 -0
- package/dist/cjs/models/category.d.ts.map +1 -0
- package/dist/cjs/models/category.js +8 -0
- package/dist/cjs/models/category.js.map +1 -0
- package/dist/cjs/models/channel.d.ts +379 -0
- package/dist/cjs/models/channel.d.ts.map +1 -0
- package/dist/cjs/models/channel.js +8 -0
- package/dist/cjs/models/channel.js.map +1 -0
- package/dist/cjs/models/common.d.ts +1096 -0
- package/dist/cjs/models/common.d.ts.map +1 -0
- package/dist/cjs/models/common.js +8 -0
- package/dist/cjs/models/common.js.map +1 -0
- package/dist/cjs/models/custom-object.d.ts +151 -0
- package/dist/cjs/models/custom-object.d.ts.map +1 -0
- package/dist/cjs/models/custom-object.js +8 -0
- package/dist/cjs/models/custom-object.js.map +1 -0
- package/dist/cjs/models/customer-group.d.ts +235 -0
- package/dist/cjs/models/customer-group.d.ts.map +1 -0
- package/dist/cjs/models/customer-group.js +8 -0
- package/dist/cjs/models/customer-group.js.map +1 -0
- package/dist/cjs/models/customer.d.ts +1221 -0
- package/dist/cjs/models/customer.d.ts.map +1 -0
- package/dist/cjs/models/customer.js +8 -0
- package/dist/cjs/models/customer.js.map +1 -0
- package/dist/cjs/models/discount-code.d.ts +439 -0
- package/dist/cjs/models/discount-code.d.ts.map +1 -0
- package/dist/cjs/models/discount-code.js +8 -0
- package/dist/cjs/models/discount-code.js.map +1 -0
- package/dist/cjs/models/error.d.ts +3062 -0
- package/dist/cjs/models/error.d.ts.map +1 -0
- package/dist/cjs/models/error.js +8 -0
- package/dist/cjs/models/error.js.map +1 -0
- package/dist/cjs/models/extension.d.ts +335 -0
- package/dist/cjs/models/extension.d.ts.map +1 -0
- package/dist/cjs/models/extension.js +8 -0
- package/dist/cjs/models/extension.js.map +1 -0
- package/dist/cjs/models/graph-ql.d.ts +63 -0
- package/dist/cjs/models/graph-ql.d.ts.map +1 -0
- package/dist/cjs/models/graph-ql.js +8 -0
- package/dist/cjs/models/graph-ql.js.map +1 -0
- package/dist/cjs/models/index.d.ts +42 -0
- package/dist/cjs/models/index.d.ts.map +1 -0
- package/dist/cjs/models/index.js +58 -0
- package/dist/cjs/models/index.js.map +1 -0
- package/dist/cjs/models/inventory.d.ts +327 -0
- package/dist/cjs/models/inventory.d.ts.map +1 -0
- package/dist/cjs/models/inventory.js +8 -0
- package/dist/cjs/models/inventory.js.map +1 -0
- package/dist/cjs/models/me.d.ts +2483 -0
- package/dist/cjs/models/me.d.ts.map +1 -0
- package/dist/cjs/models/me.js +8 -0
- package/dist/cjs/models/me.js.map +1 -0
- package/dist/cjs/models/message.d.ts +15095 -0
- package/dist/cjs/models/message.d.ts.map +1 -0
- package/dist/cjs/models/message.js +8 -0
- package/dist/cjs/models/message.js.map +1 -0
- package/dist/cjs/models/order-edit.d.ts +1645 -0
- package/dist/cjs/models/order-edit.d.ts.map +1 -0
- package/dist/cjs/models/order-edit.js +8 -0
- package/dist/cjs/models/order-edit.js.map +1 -0
- package/dist/{typings → cjs}/models/order.d.ts +1490 -15
- package/dist/cjs/models/order.d.ts.map +1 -0
- package/dist/cjs/models/order.js +8 -0
- package/dist/cjs/models/order.js.map +1 -0
- package/dist/cjs/models/payment.d.ts +734 -0
- package/dist/cjs/models/payment.d.ts.map +1 -0
- package/dist/cjs/models/payment.js +8 -0
- package/dist/cjs/models/payment.js.map +1 -0
- package/dist/cjs/models/product-discount.d.ts +461 -0
- package/dist/cjs/models/product-discount.d.ts.map +1 -0
- package/dist/cjs/models/product-discount.js +8 -0
- package/dist/cjs/models/product-discount.js.map +1 -0
- package/dist/cjs/models/product-selection.d.ts +638 -0
- package/dist/cjs/models/product-selection.d.ts.map +1 -0
- package/dist/cjs/models/product-selection.js +8 -0
- package/dist/cjs/models/product-selection.js.map +1 -0
- package/dist/cjs/models/product-type.d.ts +774 -0
- package/dist/cjs/models/product-type.d.ts.map +1 -0
- package/dist/cjs/models/product-type.js +8 -0
- package/dist/cjs/models/product-type.js.map +1 -0
- package/dist/cjs/models/product.d.ts +2282 -0
- package/dist/cjs/models/product.d.ts.map +1 -0
- package/dist/cjs/models/product.js +8 -0
- package/dist/cjs/models/product.js.map +1 -0
- package/dist/cjs/models/project.d.ts +381 -0
- package/dist/cjs/models/project.d.ts.map +1 -0
- package/dist/cjs/models/project.js +8 -0
- package/dist/cjs/models/project.js.map +1 -0
- package/dist/cjs/models/quote-request.d.ts +430 -0
- package/dist/cjs/models/quote-request.d.ts.map +1 -0
- package/dist/cjs/models/quote-request.js +8 -0
- package/dist/cjs/models/quote-request.js.map +1 -0
- package/dist/cjs/models/quote.d.ts +458 -0
- package/dist/cjs/models/quote.d.ts.map +1 -0
- package/dist/cjs/models/quote.js +8 -0
- package/dist/cjs/models/quote.js.map +1 -0
- package/dist/cjs/models/review.d.ts +435 -0
- package/dist/cjs/models/review.d.ts.map +1 -0
- package/dist/cjs/models/review.js +8 -0
- package/dist/cjs/models/review.js.map +1 -0
- package/dist/cjs/models/scalar-types.d.ts +9 -0
- package/dist/cjs/models/scalar-types.d.ts.map +1 -0
- package/dist/cjs/models/scalar-types.js +8 -0
- package/dist/cjs/models/scalar-types.js.map +1 -0
- package/dist/cjs/models/shipping-method.d.ts +569 -0
- package/dist/cjs/models/shipping-method.d.ts.map +1 -0
- package/dist/cjs/models/shipping-method.js +8 -0
- package/dist/cjs/models/shipping-method.js.map +1 -0
- package/dist/cjs/models/shopping-list.d.ts +844 -0
- package/dist/cjs/models/shopping-list.d.ts.map +1 -0
- package/dist/cjs/models/shopping-list.js +8 -0
- package/dist/cjs/models/shopping-list.js.map +1 -0
- package/dist/cjs/models/staged-quote.d.ts +338 -0
- package/dist/cjs/models/staged-quote.d.ts.map +1 -0
- package/dist/cjs/models/staged-quote.js +8 -0
- package/dist/cjs/models/staged-quote.js.map +1 -0
- package/dist/cjs/models/standalone-price.d.ts +410 -0
- package/dist/cjs/models/standalone-price.d.ts.map +1 -0
- package/dist/cjs/models/standalone-price.js +8 -0
- package/dist/cjs/models/standalone-price.js.map +1 -0
- package/dist/cjs/models/state.d.ts +341 -0
- package/dist/cjs/models/state.d.ts.map +1 -0
- package/dist/cjs/models/state.js +8 -0
- package/dist/cjs/models/state.js.map +1 -0
- package/dist/cjs/models/store-country.d.ts +14 -0
- package/dist/cjs/models/store-country.d.ts.map +1 -0
- package/dist/cjs/models/store-country.js +8 -0
- package/dist/cjs/models/store-country.js.map +1 -0
- package/dist/cjs/models/store.d.ts +547 -0
- package/dist/cjs/models/store.d.ts.map +1 -0
- package/dist/cjs/models/store.js +8 -0
- package/dist/cjs/models/store.js.map +1 -0
- package/dist/cjs/models/subscription.d.ts +717 -0
- package/dist/cjs/models/subscription.d.ts.map +1 -0
- package/dist/cjs/models/subscription.js +8 -0
- package/dist/cjs/models/subscription.js.map +1 -0
- package/dist/cjs/models/tax-category.d.ts +376 -0
- package/dist/cjs/models/tax-category.d.ts.map +1 -0
- package/dist/cjs/models/tax-category.js +8 -0
- package/dist/cjs/models/tax-category.js.map +1 -0
- package/dist/cjs/models/type.d.ts +645 -0
- package/dist/cjs/models/type.d.ts.map +1 -0
- package/dist/cjs/models/type.js +8 -0
- package/dist/cjs/models/type.js.map +1 -0
- package/dist/cjs/models/zone.d.ts +234 -0
- package/dist/cjs/models/zone.d.ts.map +1 -0
- package/dist/cjs/models/zone.js +8 -0
- package/dist/cjs/models/zone.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/cjs/request/index.d.ts +3 -0
- package/dist/cjs/request/index.d.ts.map +1 -0
- package/dist/cjs/request/index.js +19 -0
- package/dist/cjs/request/index.js.map +1 -0
- package/dist/cjs/request/is-retryable-error.d.ts +6 -0
- package/dist/cjs/request/is-retryable-error.d.ts.map +1 -0
- package/dist/cjs/request/is-retryable-error.js +28 -0
- package/dist/cjs/request/is-retryable-error.js.map +1 -0
- package/dist/{typings → cjs}/request/request-executor.d.ts +3 -2
- package/dist/cjs/request/request-executor.d.ts.map +1 -0
- package/dist/cjs/request/request-executor.js +23 -0
- package/dist/cjs/request/request-executor.js.map +1 -0
- package/dist/{typings → cjs}/request/request.d.ts +3 -2
- package/dist/cjs/request/request.d.ts.map +1 -0
- package/dist/cjs/request/request.js +84 -0
- package/dist/cjs/request/request.js.map +1 -0
- package/dist/cjs/request/transform-error.d.ts +7 -0
- package/dist/cjs/request/transform-error.d.ts.map +1 -0
- package/dist/cjs/request/transform-error.js +16 -0
- package/dist/cjs/request/transform-error.js.map +1 -0
- package/dist/{typings → cjs}/types.d.ts +39 -1
- package/dist/cjs/types.d.ts.map +1 -0
- package/dist/cjs/types.js +16 -0
- package/dist/cjs/types.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/convert-error.d.ts +2 -1
- package/dist/cjs/utils/axios/convert-error.d.ts.map +1 -0
- package/dist/cjs/utils/axios/convert-error.js +28 -0
- package/dist/cjs/utils/axios/convert-error.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/convert-response.d.ts +2 -1
- package/dist/cjs/utils/axios/convert-response.d.ts.map +1 -0
- package/dist/cjs/utils/axios/convert-response.js +23 -0
- package/dist/cjs/utils/axios/convert-response.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/create-instance.d.ts +5 -0
- package/dist/cjs/utils/axios/create-instance.d.ts.map +1 -0
- package/dist/cjs/utils/axios/create-instance.js +30 -0
- package/dist/cjs/utils/axios/create-instance.js.map +1 -0
- package/dist/{typings → cjs}/utils/axios/extract-headers.d.ts +1 -0
- package/dist/cjs/utils/axios/extract-headers.d.ts.map +1 -0
- package/dist/cjs/utils/axios/extract-headers.js +23 -0
- package/dist/cjs/utils/axios/extract-headers.js.map +1 -0
- package/dist/cjs/utils/axios/index.d.ts +5 -0
- package/dist/cjs/utils/axios/index.d.ts.map +1 -0
- package/dist/cjs/utils/axios/index.js +21 -0
- package/dist/cjs/utils/axios/index.js.map +1 -0
- package/dist/cjs/utils/calculate-delay.d.ts +7 -0
- package/dist/cjs/utils/calculate-delay.d.ts.map +1 -0
- package/dist/cjs/utils/calculate-delay.js +30 -0
- package/dist/cjs/utils/calculate-delay.js.map +1 -0
- package/dist/cjs/utils/ensure-non-empty-string.d.ts +16 -0
- package/dist/cjs/utils/ensure-non-empty-string.d.ts.map +1 -0
- package/dist/cjs/utils/ensure-non-empty-string.js +16 -0
- package/dist/cjs/utils/ensure-non-empty-string.js.map +1 -0
- package/dist/cjs/utils/format.d.ts +11 -0
- package/dist/cjs/utils/format.d.ts.map +1 -0
- package/dist/cjs/utils/format.js +48 -0
- package/dist/cjs/utils/format.js.map +1 -0
- package/dist/cjs/utils/get-attribute-value.d.ts +17 -0
- package/dist/cjs/utils/get-attribute-value.d.ts.map +1 -0
- package/dist/cjs/utils/get-attribute-value.js +19 -0
- package/dist/cjs/utils/get-attribute-value.js.map +1 -0
- package/dist/cjs/utils/index.d.ts +9 -0
- package/dist/cjs/utils/index.d.ts.map +1 -0
- package/dist/cjs/utils/index.js +25 -0
- package/dist/cjs/utils/index.js.map +1 -0
- package/dist/cjs/utils/mask.d.ts +28 -0
- package/dist/cjs/utils/mask.d.ts.map +1 -0
- package/dist/cjs/utils/mask.js +63 -0
- package/dist/cjs/utils/mask.js.map +1 -0
- package/dist/cjs/utils/plain-clone.d.ts +14 -0
- package/dist/cjs/utils/plain-clone.d.ts.map +1 -0
- package/dist/cjs/utils/plain-clone.js +41 -0
- package/dist/cjs/utils/plain-clone.js.map +1 -0
- package/dist/cjs/utils/retry-on-conflict.d.ts +99 -0
- package/dist/cjs/utils/retry-on-conflict.d.ts.map +1 -0
- package/dist/cjs/utils/retry-on-conflict.js +109 -0
- package/dist/cjs/utils/retry-on-conflict.js.map +1 -0
- package/dist/cjs/utils/useragent.d.ts +10 -0
- package/dist/cjs/utils/useragent.d.ts.map +1 -0
- package/dist/cjs/utils/useragent.js +21 -0
- package/dist/cjs/utils/useragent.js.map +1 -0
- package/dist/mjs/api/CommercetoolsApi.d.ts +1252 -0
- package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -0
- package/dist/mjs/api/CommercetoolsApi.js +2102 -0
- package/dist/mjs/api/CommercetoolsApi.js.map +1 -0
- package/dist/mjs/api/index.d.ts +3 -0
- package/dist/mjs/api/index.d.ts.map +1 -0
- package/dist/mjs/api/index.js +3 -0
- package/dist/mjs/api/index.js.map +1 -0
- package/dist/mjs/api/types.d.ts +33 -0
- package/dist/mjs/api/types.d.ts.map +1 -0
- package/dist/mjs/api/types.js +2 -0
- package/dist/mjs/api/types.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuth.d.ts +182 -0
- package/dist/mjs/auth/CommercetoolsAuth.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuth.js +234 -0
- package/dist/mjs/auth/CommercetoolsAuth.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.d.ts +83 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.js +165 -0
- package/dist/mjs/auth/CommercetoolsAuthApi.js.map +1 -0
- package/dist/mjs/auth/CommercetoolsGrant.d.ts +66 -0
- package/dist/mjs/auth/CommercetoolsGrant.d.ts.map +1 -0
- package/dist/mjs/auth/CommercetoolsGrant.js +95 -0
- package/dist/mjs/auth/CommercetoolsGrant.js.map +1 -0
- package/dist/mjs/auth/constants.d.ts +7 -0
- package/dist/mjs/auth/constants.d.ts.map +1 -0
- package/dist/mjs/auth/constants.js +28 -0
- package/dist/mjs/auth/constants.js.map +1 -0
- package/dist/mjs/auth/index.d.ts +4 -0
- package/dist/mjs/auth/index.d.ts.map +1 -0
- package/dist/mjs/auth/index.js +3 -0
- package/dist/mjs/auth/index.js.map +1 -0
- package/dist/mjs/auth/scopes.d.ts +11 -0
- package/dist/mjs/auth/scopes.d.ts.map +1 -0
- package/dist/mjs/auth/scopes.js +25 -0
- package/dist/mjs/auth/scopes.js.map +1 -0
- package/dist/mjs/auth/types.d.ts +118 -0
- package/dist/mjs/auth/types.d.ts.map +1 -0
- package/dist/mjs/auth/types.js +25 -0
- package/dist/mjs/auth/types.js.map +1 -0
- package/dist/mjs/auth/utils.d.ts +2 -0
- package/dist/mjs/auth/utils.d.ts.map +1 -0
- package/dist/mjs/auth/utils.js +10 -0
- package/dist/mjs/auth/utils.js.map +1 -0
- package/dist/mjs/constants.d.ts +33 -0
- package/dist/mjs/constants.d.ts.map +1 -0
- package/dist/mjs/constants.js +43 -0
- package/dist/mjs/constants.js.map +1 -0
- package/dist/mjs/error/CommercetoolsError.d.ts +33 -0
- package/dist/mjs/error/CommercetoolsError.d.ts.map +1 -0
- package/dist/mjs/error/CommercetoolsError.js +103 -0
- package/dist/mjs/error/CommercetoolsError.js.map +1 -0
- package/dist/mjs/error/index.d.ts +2 -0
- package/dist/mjs/error/index.d.ts.map +1 -0
- package/dist/mjs/error/index.js +2 -0
- package/dist/mjs/error/index.js.map +1 -0
- package/dist/mjs/index.d.ts +8 -0
- package/dist/mjs/index.d.ts.map +1 -0
- package/dist/mjs/index.js +8 -0
- package/dist/mjs/index.js.map +1 -0
- package/dist/mjs/models/associate-role.d.ts +319 -0
- package/dist/mjs/models/associate-role.d.ts.map +1 -0
- package/dist/mjs/models/associate-role.js +7 -0
- package/dist/mjs/models/associate-role.js.map +1 -0
- package/dist/mjs/models/attribute-group.d.ts +253 -0
- package/dist/mjs/models/attribute-group.d.ts.map +1 -0
- package/dist/mjs/models/attribute-group.js +7 -0
- package/dist/mjs/models/attribute-group.js.map +1 -0
- package/dist/mjs/models/business-unit.d.ts +1197 -0
- package/dist/mjs/models/business-unit.d.ts.map +1 -0
- package/dist/mjs/models/business-unit.js +7 -0
- package/dist/mjs/models/business-unit.js.map +1 -0
- package/dist/mjs/models/cart-discount.d.ts +716 -0
- package/dist/mjs/models/cart-discount.d.ts.map +1 -0
- package/dist/mjs/models/cart-discount.js +7 -0
- package/dist/mjs/models/cart-discount.js.map +1 -0
- package/dist/mjs/models/cart.d.ts +3350 -0
- package/dist/mjs/models/cart.d.ts.map +1 -0
- package/dist/mjs/models/cart.js +7 -0
- package/dist/mjs/models/cart.js.map +1 -0
- package/dist/mjs/models/category.d.ts +634 -0
- package/dist/mjs/models/category.d.ts.map +1 -0
- package/dist/mjs/models/category.js +7 -0
- package/dist/mjs/models/category.js.map +1 -0
- package/dist/mjs/models/channel.d.ts +379 -0
- package/dist/mjs/models/channel.d.ts.map +1 -0
- package/dist/mjs/models/channel.js +7 -0
- package/dist/mjs/models/channel.js.map +1 -0
- package/dist/mjs/models/common.d.ts +1096 -0
- package/dist/mjs/models/common.d.ts.map +1 -0
- package/dist/mjs/models/common.js +7 -0
- package/dist/mjs/models/common.js.map +1 -0
- package/dist/mjs/models/custom-object.d.ts +151 -0
- package/dist/mjs/models/custom-object.d.ts.map +1 -0
- package/dist/mjs/models/custom-object.js +7 -0
- package/dist/mjs/models/custom-object.js.map +1 -0
- package/dist/mjs/models/customer-group.d.ts +235 -0
- package/dist/mjs/models/customer-group.d.ts.map +1 -0
- package/dist/mjs/models/customer-group.js +7 -0
- package/dist/mjs/models/customer-group.js.map +1 -0
- package/dist/mjs/models/customer.d.ts +1221 -0
- package/dist/mjs/models/customer.d.ts.map +1 -0
- package/dist/mjs/models/customer.js +7 -0
- package/dist/mjs/models/customer.js.map +1 -0
- package/dist/mjs/models/discount-code.d.ts +439 -0
- package/dist/mjs/models/discount-code.d.ts.map +1 -0
- package/dist/mjs/models/discount-code.js +7 -0
- package/dist/mjs/models/discount-code.js.map +1 -0
- package/dist/mjs/models/error.d.ts +3062 -0
- package/dist/mjs/models/error.d.ts.map +1 -0
- package/dist/mjs/models/error.js +7 -0
- package/dist/mjs/models/error.js.map +1 -0
- package/dist/mjs/models/extension.d.ts +335 -0
- package/dist/mjs/models/extension.d.ts.map +1 -0
- package/dist/mjs/models/extension.js +7 -0
- package/dist/mjs/models/extension.js.map +1 -0
- package/dist/mjs/models/graph-ql.d.ts +63 -0
- package/dist/mjs/models/graph-ql.d.ts.map +1 -0
- package/dist/mjs/models/graph-ql.js +7 -0
- package/dist/mjs/models/graph-ql.js.map +1 -0
- package/dist/mjs/models/index.d.ts +42 -0
- package/dist/mjs/models/index.d.ts.map +1 -0
- package/dist/mjs/models/index.js +42 -0
- package/dist/mjs/models/index.js.map +1 -0
- package/dist/mjs/models/inventory.d.ts +327 -0
- package/dist/mjs/models/inventory.d.ts.map +1 -0
- package/dist/mjs/models/inventory.js +7 -0
- package/dist/mjs/models/inventory.js.map +1 -0
- package/dist/mjs/models/me.d.ts +2483 -0
- package/dist/mjs/models/me.d.ts.map +1 -0
- package/dist/mjs/models/me.js +7 -0
- package/dist/mjs/models/me.js.map +1 -0
- package/dist/mjs/models/message.d.ts +15095 -0
- package/dist/mjs/models/message.d.ts.map +1 -0
- package/dist/mjs/models/message.js +7 -0
- package/dist/mjs/models/message.js.map +1 -0
- package/dist/mjs/models/order-edit.d.ts +1645 -0
- package/dist/mjs/models/order-edit.d.ts.map +1 -0
- package/dist/mjs/models/order-edit.js +7 -0
- package/dist/mjs/models/order-edit.js.map +1 -0
- package/dist/mjs/models/order.d.ts +2157 -0
- package/dist/mjs/models/order.d.ts.map +1 -0
- package/dist/mjs/models/order.js +7 -0
- package/dist/mjs/models/order.js.map +1 -0
- package/dist/mjs/models/payment.d.ts +734 -0
- package/dist/mjs/models/payment.d.ts.map +1 -0
- package/dist/mjs/models/payment.js +7 -0
- package/dist/mjs/models/payment.js.map +1 -0
- package/dist/mjs/models/product-discount.d.ts +461 -0
- package/dist/mjs/models/product-discount.d.ts.map +1 -0
- package/dist/mjs/models/product-discount.js +7 -0
- package/dist/mjs/models/product-discount.js.map +1 -0
- package/dist/mjs/models/product-selection.d.ts +638 -0
- package/dist/mjs/models/product-selection.d.ts.map +1 -0
- package/dist/mjs/models/product-selection.js +7 -0
- package/dist/mjs/models/product-selection.js.map +1 -0
- package/dist/mjs/models/product-type.d.ts +774 -0
- package/dist/mjs/models/product-type.d.ts.map +1 -0
- package/dist/mjs/models/product-type.js +7 -0
- package/dist/mjs/models/product-type.js.map +1 -0
- package/dist/mjs/models/product.d.ts +2282 -0
- package/dist/mjs/models/product.d.ts.map +1 -0
- package/dist/mjs/models/product.js +7 -0
- package/dist/mjs/models/product.js.map +1 -0
- package/dist/mjs/models/project.d.ts +381 -0
- package/dist/mjs/models/project.d.ts.map +1 -0
- package/dist/mjs/models/project.js +7 -0
- package/dist/mjs/models/project.js.map +1 -0
- package/dist/mjs/models/quote-request.d.ts +430 -0
- package/dist/mjs/models/quote-request.d.ts.map +1 -0
- package/dist/mjs/models/quote-request.js +7 -0
- package/dist/mjs/models/quote-request.js.map +1 -0
- package/dist/mjs/models/quote.d.ts +458 -0
- package/dist/mjs/models/quote.d.ts.map +1 -0
- package/dist/mjs/models/quote.js +7 -0
- package/dist/mjs/models/quote.js.map +1 -0
- package/dist/mjs/models/review.d.ts +435 -0
- package/dist/mjs/models/review.d.ts.map +1 -0
- package/dist/mjs/models/review.js +7 -0
- package/dist/mjs/models/review.js.map +1 -0
- package/dist/mjs/models/scalar-types.d.ts +9 -0
- package/dist/mjs/models/scalar-types.d.ts.map +1 -0
- package/dist/mjs/models/scalar-types.js +7 -0
- package/dist/mjs/models/scalar-types.js.map +1 -0
- package/dist/mjs/models/shipping-method.d.ts +569 -0
- package/dist/mjs/models/shipping-method.d.ts.map +1 -0
- package/dist/mjs/models/shipping-method.js +7 -0
- package/dist/mjs/models/shipping-method.js.map +1 -0
- package/dist/mjs/models/shopping-list.d.ts +844 -0
- package/dist/mjs/models/shopping-list.d.ts.map +1 -0
- package/dist/mjs/models/shopping-list.js +7 -0
- package/dist/mjs/models/shopping-list.js.map +1 -0
- package/dist/mjs/models/staged-quote.d.ts +338 -0
- package/dist/mjs/models/staged-quote.d.ts.map +1 -0
- package/dist/mjs/models/staged-quote.js +7 -0
- package/dist/mjs/models/staged-quote.js.map +1 -0
- package/dist/mjs/models/standalone-price.d.ts +410 -0
- package/dist/mjs/models/standalone-price.d.ts.map +1 -0
- package/dist/mjs/models/standalone-price.js +7 -0
- package/dist/mjs/models/standalone-price.js.map +1 -0
- package/dist/mjs/models/state.d.ts +341 -0
- package/dist/mjs/models/state.d.ts.map +1 -0
- package/dist/mjs/models/state.js +7 -0
- package/dist/mjs/models/state.js.map +1 -0
- package/dist/mjs/models/store-country.d.ts +14 -0
- package/dist/mjs/models/store-country.d.ts.map +1 -0
- package/dist/mjs/models/store-country.js +7 -0
- package/dist/mjs/models/store-country.js.map +1 -0
- package/dist/mjs/models/store.d.ts +547 -0
- package/dist/mjs/models/store.d.ts.map +1 -0
- package/dist/mjs/models/store.js +7 -0
- package/dist/mjs/models/store.js.map +1 -0
- package/dist/mjs/models/subscription.d.ts +717 -0
- package/dist/mjs/models/subscription.d.ts.map +1 -0
- package/dist/mjs/models/subscription.js +7 -0
- package/dist/mjs/models/subscription.js.map +1 -0
- package/dist/mjs/models/tax-category.d.ts +376 -0
- package/dist/mjs/models/tax-category.d.ts.map +1 -0
- package/dist/mjs/models/tax-category.js +7 -0
- package/dist/mjs/models/tax-category.js.map +1 -0
- package/dist/mjs/models/type.d.ts +645 -0
- package/dist/mjs/models/type.d.ts.map +1 -0
- package/dist/mjs/models/type.js +7 -0
- package/dist/mjs/models/type.js.map +1 -0
- package/dist/mjs/models/zone.d.ts +234 -0
- package/dist/mjs/models/zone.d.ts.map +1 -0
- package/dist/mjs/models/zone.js +7 -0
- package/dist/mjs/models/zone.js.map +1 -0
- package/dist/mjs/request/index.d.ts +3 -0
- package/dist/mjs/request/index.d.ts.map +1 -0
- package/dist/mjs/request/index.js +3 -0
- package/dist/mjs/request/index.js.map +1 -0
- package/dist/mjs/request/is-retryable-error.d.ts +6 -0
- package/dist/mjs/request/is-retryable-error.d.ts.map +1 -0
- package/dist/mjs/request/is-retryable-error.js +24 -0
- package/dist/mjs/request/is-retryable-error.js.map +1 -0
- package/dist/mjs/request/request-executor.d.ts +12 -0
- package/dist/mjs/request/request-executor.d.ts.map +1 -0
- package/dist/mjs/request/request-executor.js +19 -0
- package/dist/mjs/request/request-executor.js.map +1 -0
- package/dist/mjs/request/request.d.ts +11 -0
- package/dist/mjs/request/request.d.ts.map +1 -0
- package/dist/mjs/request/request.js +80 -0
- package/dist/mjs/request/request.js.map +1 -0
- package/dist/mjs/request/transform-error.d.ts +7 -0
- package/dist/mjs/request/transform-error.d.ts.map +1 -0
- package/dist/mjs/request/transform-error.js +12 -0
- package/dist/mjs/request/transform-error.js.map +1 -0
- package/dist/mjs/types.d.ts +96 -0
- package/dist/mjs/types.d.ts.map +1 -0
- package/dist/mjs/types.js +13 -0
- package/dist/mjs/types.js.map +1 -0
- package/dist/mjs/utils/axios/convert-error.d.ts +4 -0
- package/dist/mjs/utils/axios/convert-error.d.ts.map +1 -0
- package/dist/mjs/utils/axios/convert-error.js +24 -0
- package/dist/mjs/utils/axios/convert-error.js.map +1 -0
- package/dist/mjs/utils/axios/convert-response.d.ts +4 -0
- package/dist/mjs/utils/axios/convert-response.d.ts.map +1 -0
- package/dist/mjs/utils/axios/convert-response.js +19 -0
- package/dist/mjs/utils/axios/convert-response.js.map +1 -0
- package/dist/mjs/utils/axios/create-instance.d.ts +11 -0
- package/dist/mjs/utils/axios/create-instance.d.ts.map +1 -0
- package/dist/mjs/utils/axios/create-instance.js +23 -0
- package/dist/mjs/utils/axios/create-instance.js.map +1 -0
- package/dist/mjs/utils/axios/extract-headers.d.ts +2 -0
- package/dist/mjs/utils/axios/extract-headers.d.ts.map +1 -0
- package/dist/mjs/utils/axios/extract-headers.js +19 -0
- package/dist/mjs/utils/axios/extract-headers.js.map +1 -0
- package/dist/mjs/utils/axios/index.d.ts +5 -0
- package/dist/mjs/utils/axios/index.d.ts.map +1 -0
- package/dist/mjs/utils/axios/index.js +5 -0
- package/dist/mjs/utils/axios/index.js.map +1 -0
- package/dist/mjs/utils/calculate-delay.d.ts +7 -0
- package/dist/mjs/utils/calculate-delay.d.ts.map +1 -0
- package/dist/mjs/utils/calculate-delay.js +26 -0
- package/dist/mjs/utils/calculate-delay.js.map +1 -0
- package/dist/mjs/utils/ensure-non-empty-string.d.ts +16 -0
- package/dist/mjs/utils/ensure-non-empty-string.d.ts.map +1 -0
- package/dist/mjs/utils/ensure-non-empty-string.js +12 -0
- package/dist/mjs/utils/ensure-non-empty-string.js.map +1 -0
- package/dist/mjs/utils/format.d.ts +11 -0
- package/dist/mjs/utils/format.d.ts.map +1 -0
- package/dist/mjs/utils/format.js +44 -0
- package/dist/mjs/utils/format.js.map +1 -0
- package/dist/mjs/utils/get-attribute-value.d.ts +17 -0
- package/dist/mjs/utils/get-attribute-value.d.ts.map +1 -0
- package/dist/mjs/utils/get-attribute-value.js +15 -0
- package/dist/mjs/utils/get-attribute-value.js.map +1 -0
- package/dist/mjs/utils/index.d.ts +9 -0
- package/dist/mjs/utils/index.d.ts.map +1 -0
- package/dist/mjs/utils/index.js +9 -0
- package/dist/mjs/utils/index.js.map +1 -0
- package/dist/mjs/utils/mask.d.ts +28 -0
- package/dist/mjs/utils/mask.d.ts.map +1 -0
- package/dist/mjs/utils/mask.js +54 -0
- package/dist/mjs/utils/mask.js.map +1 -0
- package/dist/mjs/utils/plain-clone.d.ts +14 -0
- package/dist/mjs/utils/plain-clone.d.ts.map +1 -0
- package/dist/mjs/utils/plain-clone.js +37 -0
- package/dist/mjs/utils/plain-clone.js.map +1 -0
- package/dist/mjs/utils/retry-on-conflict.d.ts +99 -0
- package/dist/mjs/utils/retry-on-conflict.d.ts.map +1 -0
- package/dist/mjs/utils/retry-on-conflict.js +105 -0
- package/dist/mjs/utils/retry-on-conflict.js.map +1 -0
- package/dist/mjs/utils/useragent.d.ts +10 -0
- package/dist/mjs/utils/useragent.d.ts.map +1 -0
- package/dist/mjs/utils/useragent.js +17 -0
- package/dist/mjs/utils/useragent.js.map +1 -0
- package/package.json +48 -46
- package/dist/ge-commercetools-utils-browser.cjs.js +0 -2
- package/dist/ge-commercetools-utils-browser.cjs.js.map +0 -1
- package/dist/ge-commercetools-utils-browser.esm.js +0 -2
- package/dist/ge-commercetools-utils-browser.esm.js.map +0 -1
- package/dist/ge-commercetools-utils-node.cjs.js +0 -3
- package/dist/ge-commercetools-utils-node.cjs.js.LICENSE.txt +0 -13
- package/dist/ge-commercetools-utils-node.cjs.js.map +0 -1
- package/dist/ge-commercetools-utils-node.esm.js +0 -2
- package/dist/ge-commercetools-utils-node.esm.js.LICENSE.txt +0 -13
- package/dist/typings/api/CommercetoolsApi.d.ts +0 -515
- package/dist/typings/api/index.d.ts +0 -2
- package/dist/typings/api/types.d.ts +0 -12
- package/dist/typings/auth/CommercetoolsAuth.d.ts +0 -22
- package/dist/typings/auth/CommercetoolsAuthApi.d.ts +0 -27
- package/dist/typings/auth/CommercetoolsGrant.d.ts +0 -13
- package/dist/typings/auth/constants.d.ts +0 -3
- package/dist/typings/auth/index.d.ts +0 -3
- package/dist/typings/auth/scopes.d.ts +0 -2
- package/dist/typings/auth/types.d.ts +0 -41
- package/dist/typings/constants.d.ts +0 -12
- package/dist/typings/error/CommercetoolsError.d.ts +0 -11
- package/dist/typings/error/index.d.ts +0 -1
- package/dist/typings/index.d.ts +0 -7
- package/dist/typings/models/associate-role.d.ts +0 -79
- package/dist/typings/models/attribute-group.d.ts +0 -68
- package/dist/typings/models/business-unit.d.ts +0 -272
- package/dist/typings/models/cart-discount.d.ts +0 -196
- package/dist/typings/models/cart.d.ts +0 -745
- package/dist/typings/models/category.d.ts +0 -166
- package/dist/typings/models/channel.d.ts +0 -103
- package/dist/typings/models/common.d.ts +0 -256
- package/dist/typings/models/custom-object.d.ts +0 -30
- package/dist/typings/models/customer-group.d.ts +0 -58
- package/dist/typings/models/customer.d.ts +0 -293
- package/dist/typings/models/discount-code.d.ts +0 -116
- package/dist/typings/models/error.d.ts +0 -874
- package/dist/typings/models/extension.d.ts +0 -83
- package/dist/typings/models/graph-ql.d.ts +0 -23
- package/dist/typings/models/index.d.ts +0 -41
- package/dist/typings/models/inventory.d.ts +0 -88
- package/dist/typings/models/me.d.ts +0 -640
- package/dist/typings/models/message.d.ts +0 -3210
- package/dist/typings/models/order-edit.d.ts +0 -572
- package/dist/typings/models/payment.d.ts +0 -191
- package/dist/typings/models/product-discount.d.ts +0 -123
- package/dist/typings/models/product-selection.d.ts +0 -158
- package/dist/typings/models/product-type.d.ts +0 -213
- package/dist/typings/models/product.d.ts +0 -535
- package/dist/typings/models/project.d.ts +0 -120
- package/dist/typings/models/quote-request.d.ts +0 -94
- package/dist/typings/models/quote.d.ts +0 -103
- package/dist/typings/models/review.d.ts +0 -115
- package/dist/typings/models/scalar-types.d.ts +0 -3
- package/dist/typings/models/shipping-method.d.ts +0 -160
- package/dist/typings/models/shopping-list.d.ts +0 -217
- package/dist/typings/models/staged-quote.d.ts +0 -84
- package/dist/typings/models/standalone-price.d.ts +0 -95
- package/dist/typings/models/state.d.ts +0 -86
- package/dist/typings/models/store-country.d.ts +0 -3
- package/dist/typings/models/store.d.ts +0 -137
- package/dist/typings/models/subscription.d.ts +0 -161
- package/dist/typings/models/tax-category.d.ts +0 -91
- package/dist/typings/models/type.d.ts +0 -177
- package/dist/typings/models/zone.d.ts +0 -65
- package/dist/typings/request/index.d.ts +0 -2
- package/dist/typings/request/is-retryable-error.d.ts +0 -1
- package/dist/typings/request/transform-error.d.ts +0 -2
- package/dist/typings/utils/axios/index.d.ts +0 -4
- package/dist/typings/utils/calculate-delay.d.ts +0 -2
- package/dist/typings/utils/ensure-non-empty-string.d.ts +0 -5
- package/dist/typings/utils/format.d.ts +0 -1
- package/dist/typings/utils/get-attribute-value.d.ts +0 -6
- package/dist/typings/utils/index.d.ts +0 -8
- package/dist/typings/utils/mask.d.ts +0 -6
- package/dist/typings/utils/plain-clone.d.ts +0 -1
- package/dist/typings/utils/retry-on-conflict.d.ts +0 -7
- package/dist/typings/utils/useragent.d.ts +0 -1
|
@@ -0,0 +1,1221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Code generated by [commercetools RMF-Codegen](https://github.com/commercetools/rmf-codegen). DO NOT EDIT.
|
|
3
|
+
* Please don't change this file manually but run `rmf-codegen generate raml_file_path -o output_path -t typescript_client` to update it.
|
|
4
|
+
* For more information about the commercetools platform APIs, visit https://docs.commercetools.com/.
|
|
5
|
+
*/
|
|
6
|
+
import { Cart, CartResourceIdentifier } from './cart.js';
|
|
7
|
+
import { Address, BaseAddress, BaseResource, CreatedBy, LastModifiedBy, _BaseAddress } from './common.js';
|
|
8
|
+
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group.js';
|
|
9
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
|
|
10
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
11
|
+
export type AnonymousCartSignInMode = 'MergeWithExistingCustomerCart' | 'UseAsNewActiveCustomerCart' | string;
|
|
12
|
+
export type AuthenticationMode = 'ExternalAuth' | 'Password' | string;
|
|
13
|
+
/**
|
|
14
|
+
* If `stores` is not empty, the Customer is specific to those Stores.
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export interface Customer extends BaseResource {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the Customer.
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
readonly id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Current version of the Customer.
|
|
26
|
+
*
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
29
|
+
readonly version: number;
|
|
30
|
+
/**
|
|
31
|
+
* User-defined unique identifier of the Customer.
|
|
32
|
+
*
|
|
33
|
+
*
|
|
34
|
+
*/
|
|
35
|
+
readonly key?: string;
|
|
36
|
+
/**
|
|
37
|
+
* User-defined unique identifier of the Customer.
|
|
38
|
+
*
|
|
39
|
+
* Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).
|
|
40
|
+
*
|
|
41
|
+
*
|
|
42
|
+
*/
|
|
43
|
+
readonly customerNumber?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
|
|
46
|
+
*
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
readonly externalId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Date and time (UTC) the Customer was initially created.
|
|
52
|
+
*
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
readonly createdAt: string;
|
|
56
|
+
/**
|
|
57
|
+
* Date and time (UTC) the Customer was last updated.
|
|
58
|
+
*
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
readonly lastModifiedAt: string;
|
|
62
|
+
/**
|
|
63
|
+
* Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked).
|
|
64
|
+
*
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
68
|
+
/**
|
|
69
|
+
* Present on resources created after 1 February 2019 except for [events not tracked](/../api/client-logging#events-tracked).
|
|
70
|
+
*
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
readonly createdBy?: CreatedBy;
|
|
74
|
+
/**
|
|
75
|
+
* Email address of the Customer that is [unique](/../api/customers-overview#customer-uniqueness) for an entire Project or to a Store the Customer is assigned to.
|
|
76
|
+
* It is the mandatory unique identifier of a Customer.
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
readonly email: string;
|
|
81
|
+
/**
|
|
82
|
+
* Present only when `authenticationMode` is set to `Password`.
|
|
83
|
+
*
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
readonly password?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Given name (first name) of the Customer.
|
|
89
|
+
*
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
readonly firstName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Family name (last name) of the Customer.
|
|
95
|
+
*
|
|
96
|
+
*
|
|
97
|
+
*/
|
|
98
|
+
readonly lastName?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Middle name of the Customer.
|
|
101
|
+
*
|
|
102
|
+
*
|
|
103
|
+
*/
|
|
104
|
+
readonly middleName?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Title of the Customer, for example, 'Dr.'.
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
*/
|
|
110
|
+
readonly title?: string;
|
|
111
|
+
/**
|
|
112
|
+
* Date of birth of the Customer.
|
|
113
|
+
*
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
readonly dateOfBirth?: string;
|
|
117
|
+
/**
|
|
118
|
+
* Company name of the Customer.
|
|
119
|
+
*
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
readonly companyName?: string;
|
|
123
|
+
/**
|
|
124
|
+
* Unique VAT ID of the Customer.
|
|
125
|
+
*
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
readonly vatId?: string;
|
|
129
|
+
/**
|
|
130
|
+
* Addresses used by the Customer.
|
|
131
|
+
*
|
|
132
|
+
*
|
|
133
|
+
*/
|
|
134
|
+
readonly addresses: Address[];
|
|
135
|
+
/**
|
|
136
|
+
* ID of the address in `addresses` used as the default shipping address.
|
|
137
|
+
*
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
readonly defaultShippingAddressId?: string;
|
|
141
|
+
/**
|
|
142
|
+
* IDs of addresses in `addresses` used as shipping addresses.
|
|
143
|
+
*
|
|
144
|
+
*
|
|
145
|
+
*/
|
|
146
|
+
readonly shippingAddressIds?: string[];
|
|
147
|
+
/**
|
|
148
|
+
* ID of the address in `addresses` used as the default billing address.
|
|
149
|
+
*
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
readonly defaultBillingAddressId?: string;
|
|
153
|
+
/**
|
|
154
|
+
* IDs of addresses in `addresses` used as billing addresses.
|
|
155
|
+
*
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
158
|
+
readonly billingAddressIds?: string[];
|
|
159
|
+
/**
|
|
160
|
+
* Indicates whether the email address of the Customer is [verified](#email-verification-of-customer).
|
|
161
|
+
*
|
|
162
|
+
*
|
|
163
|
+
*/
|
|
164
|
+
readonly isEmailVerified: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* [CustomerGroup](ctp:api:type:CustomerGroup) to which the Customer belongs.
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
*/
|
|
170
|
+
readonly customerGroup?: CustomerGroupReference;
|
|
171
|
+
/**
|
|
172
|
+
* Custom Fields for the Customer.
|
|
173
|
+
*
|
|
174
|
+
*
|
|
175
|
+
*/
|
|
176
|
+
readonly custom?: CustomFields;
|
|
177
|
+
/**
|
|
178
|
+
* Preferred language of the Customer.
|
|
179
|
+
*
|
|
180
|
+
*
|
|
181
|
+
*/
|
|
182
|
+
readonly locale?: string;
|
|
183
|
+
/**
|
|
184
|
+
* Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
|
|
185
|
+
*
|
|
186
|
+
*
|
|
187
|
+
*/
|
|
188
|
+
readonly salutation?: string;
|
|
189
|
+
/**
|
|
190
|
+
* [Stores](ctp:api:type:Store) to which the Customer is assigned to.
|
|
191
|
+
*
|
|
192
|
+
* - If no Stores are specified, the Customer is a global customer, and can log in using the [Password Flow for global Customers](/../api/authorization#password-flow-for-global-customers).
|
|
193
|
+
* - If any Stores are specified, the Customer can only log in using the [Password Flow for Customers in a Store](/../api/authorization#password-flow-for-customers-in-a-store) for those specific Stores.
|
|
194
|
+
*
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
readonly stores?: StoreKeyReference[];
|
|
198
|
+
/**
|
|
199
|
+
* Indicates whether the `password` is required for the Customer.
|
|
200
|
+
*
|
|
201
|
+
*
|
|
202
|
+
*/
|
|
203
|
+
readonly authenticationMode: AuthenticationMode;
|
|
204
|
+
}
|
|
205
|
+
export interface CustomerChangePassword {
|
|
206
|
+
/**
|
|
207
|
+
* Unique identifier of the Customer.
|
|
208
|
+
*
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
readonly id: string;
|
|
212
|
+
/**
|
|
213
|
+
* Expected version of the Customer on which the changes should be applied.
|
|
214
|
+
*
|
|
215
|
+
*
|
|
216
|
+
*/
|
|
217
|
+
readonly version: number;
|
|
218
|
+
/**
|
|
219
|
+
* Current password of the Customer.
|
|
220
|
+
*
|
|
221
|
+
* If the current password does not match, an [InvalidCurrentPassword](ctp:api:type:InvalidCurrentPasswordError) error is returned.
|
|
222
|
+
*
|
|
223
|
+
*
|
|
224
|
+
*/
|
|
225
|
+
readonly currentPassword: string;
|
|
226
|
+
/**
|
|
227
|
+
* New password to be set.
|
|
228
|
+
*
|
|
229
|
+
*
|
|
230
|
+
*/
|
|
231
|
+
readonly newPassword: string;
|
|
232
|
+
}
|
|
233
|
+
export interface CustomerCreateEmailToken {
|
|
234
|
+
/**
|
|
235
|
+
* Unique identifier of the Customer.
|
|
236
|
+
*
|
|
237
|
+
*/
|
|
238
|
+
readonly id: string;
|
|
239
|
+
/**
|
|
240
|
+
* Expected version of the Customer.
|
|
241
|
+
*
|
|
242
|
+
*/
|
|
243
|
+
readonly version?: number;
|
|
244
|
+
/**
|
|
245
|
+
* Validity period of the generated token in minutes.
|
|
246
|
+
*
|
|
247
|
+
*/
|
|
248
|
+
readonly ttlMinutes: number;
|
|
249
|
+
}
|
|
250
|
+
export interface CustomerCreatePasswordResetToken {
|
|
251
|
+
/**
|
|
252
|
+
* Email address of the Customer treated as [case-insensitive](/../api/customers-overview#email-case-insensitivity).
|
|
253
|
+
*
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
readonly email: string;
|
|
257
|
+
/**
|
|
258
|
+
* Validity period of the generated token in minutes.
|
|
259
|
+
*
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
readonly ttlMinutes?: number;
|
|
263
|
+
}
|
|
264
|
+
export interface CustomerDraft {
|
|
265
|
+
/**
|
|
266
|
+
* User-defined unique identifier for the Customer.
|
|
267
|
+
* The `key` field is preferred over `customerNumber` as it is mutable and provides more flexibility.
|
|
268
|
+
*
|
|
269
|
+
*
|
|
270
|
+
*/
|
|
271
|
+
readonly key?: string;
|
|
272
|
+
/**
|
|
273
|
+
* User-defined unique identifier for a Customer.
|
|
274
|
+
* Once set, it cannot be changed.
|
|
275
|
+
*
|
|
276
|
+
* Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).
|
|
277
|
+
*
|
|
278
|
+
*
|
|
279
|
+
*/
|
|
280
|
+
readonly customerNumber?: string;
|
|
281
|
+
/**
|
|
282
|
+
* Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).
|
|
283
|
+
*
|
|
284
|
+
*
|
|
285
|
+
*/
|
|
286
|
+
readonly externalId?: string;
|
|
287
|
+
/**
|
|
288
|
+
* Email address of the Customer that must be [unique](/../api/customers-overview#customer-uniqueness) for an entire Project or to a Store the Customer is assigned to.
|
|
289
|
+
* It is the mandatory unique identifier of a Customer.
|
|
290
|
+
*
|
|
291
|
+
*
|
|
292
|
+
*/
|
|
293
|
+
readonly email: string;
|
|
294
|
+
/**
|
|
295
|
+
* Required when `authenticationMode` is set to `Password`.
|
|
296
|
+
* Provide the Customer's password in plain text. The API stores passwords in an encrypted format.
|
|
297
|
+
*
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
readonly password?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Given name (first name) of the Customer.
|
|
303
|
+
*
|
|
304
|
+
*
|
|
305
|
+
*/
|
|
306
|
+
readonly firstName?: string;
|
|
307
|
+
/**
|
|
308
|
+
* Family name (last name) of the Customer.
|
|
309
|
+
*
|
|
310
|
+
*
|
|
311
|
+
*/
|
|
312
|
+
readonly lastName?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Middle name of the Customer.
|
|
315
|
+
*
|
|
316
|
+
*
|
|
317
|
+
*/
|
|
318
|
+
readonly middleName?: string;
|
|
319
|
+
/**
|
|
320
|
+
* Title of the Customer, for example, 'Dr.'.
|
|
321
|
+
*
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
readonly title?: string;
|
|
325
|
+
/**
|
|
326
|
+
* Deprecated since an anonymous [Cart](ctp:api:type:Cart) can be identified by its `id` or external `key`.
|
|
327
|
+
*
|
|
328
|
+
* @deprecated
|
|
329
|
+
*/
|
|
330
|
+
readonly anonymousCartId?: string;
|
|
331
|
+
/**
|
|
332
|
+
* Identifies a [Cart](ctp:api:type:Cart) that will be assigned to the new Customer.
|
|
333
|
+
*
|
|
334
|
+
*
|
|
335
|
+
*/
|
|
336
|
+
readonly anonymousCart?: CartResourceIdentifier;
|
|
337
|
+
/**
|
|
338
|
+
* Identifies Carts and Orders belonging to an anonymous session that will be assigned to the new Customer.
|
|
339
|
+
*
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
readonly anonymousId?: string;
|
|
343
|
+
/**
|
|
344
|
+
* Date of birth of the Customer.
|
|
345
|
+
*
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
readonly dateOfBirth?: string;
|
|
349
|
+
/**
|
|
350
|
+
* Company name of the Customer. When representing a company as a Customer, [Business Units](ctp:api:type:BusinessUnit) provide extended funtionality.
|
|
351
|
+
*
|
|
352
|
+
*
|
|
353
|
+
*/
|
|
354
|
+
readonly companyName?: string;
|
|
355
|
+
/**
|
|
356
|
+
* Unique VAT ID of the Customer.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
360
|
+
readonly vatId?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Addresses of the Customer.
|
|
363
|
+
*
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
readonly addresses?: BaseAddress[];
|
|
367
|
+
/**
|
|
368
|
+
* Index of the address in the `addresses` array to use as the default shipping address.
|
|
369
|
+
* The `defaultShippingAddressId` of the Customer will be set to the `id` of that address.
|
|
370
|
+
*
|
|
371
|
+
*
|
|
372
|
+
*/
|
|
373
|
+
readonly defaultShippingAddress?: number;
|
|
374
|
+
/**
|
|
375
|
+
* Indices of the shipping addresses in the `addresses` array.
|
|
376
|
+
* The `shippingAddressIds` of the Customer will be set to the IDs of these addresses.
|
|
377
|
+
*
|
|
378
|
+
*
|
|
379
|
+
*/
|
|
380
|
+
readonly shippingAddresses?: number[];
|
|
381
|
+
/**
|
|
382
|
+
* Index of the address in the `addresses` array to use as the default billing address.
|
|
383
|
+
* The `defaultBillingAddressId` of the Customer will be set to the `id` of that address.
|
|
384
|
+
*
|
|
385
|
+
*
|
|
386
|
+
*/
|
|
387
|
+
readonly defaultBillingAddress?: number;
|
|
388
|
+
/**
|
|
389
|
+
* Indices of the billing addresses in the `addresses` array.
|
|
390
|
+
* The `billingAddressIds` of the Customer will be set to the IDs of these addresses.
|
|
391
|
+
*
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
readonly billingAddresses?: number[];
|
|
395
|
+
/**
|
|
396
|
+
* Set to `true` if the email address of the Customer has been verified already.
|
|
397
|
+
* The intended use is to leave this field unset upon sign-up of the Customer and initiate the [email verification](#email-verification-of-customer) afterwards.
|
|
398
|
+
*
|
|
399
|
+
*
|
|
400
|
+
*/
|
|
401
|
+
readonly isEmailVerified?: boolean;
|
|
402
|
+
/**
|
|
403
|
+
* Sets the [CustomerGroup](ctp:api:type:CustomerGroup) for the Customer.
|
|
404
|
+
*
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
408
|
+
/**
|
|
409
|
+
* Custom Fields for the Customer.
|
|
410
|
+
*
|
|
411
|
+
*
|
|
412
|
+
*/
|
|
413
|
+
readonly custom?: CustomFieldsDraft;
|
|
414
|
+
/**
|
|
415
|
+
* Preferred language of the Customer.
|
|
416
|
+
* Must be one of the languages supported by the [Project](ctp:api:type:Project).
|
|
417
|
+
*
|
|
418
|
+
*
|
|
419
|
+
*/
|
|
420
|
+
readonly locale?: string;
|
|
421
|
+
/**
|
|
422
|
+
* Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.
|
|
423
|
+
*
|
|
424
|
+
*
|
|
425
|
+
*/
|
|
426
|
+
readonly salutation?: string;
|
|
427
|
+
/**
|
|
428
|
+
* Sets the [Stores](ctp:api:type:Store) for the Customer.
|
|
429
|
+
*
|
|
430
|
+
* - If no Stores are specified, the Customer is a global customer, and can log in using the [Password Flow for global Customers](/../api/authorization#password-flow-for-global-customers).
|
|
431
|
+
* - If any Stores are specified, the Customer can only log in using the [Password Flow for Customers in a Store](/../api/authorization#password-flow-for-customers-in-a-store) for those specific Stores.
|
|
432
|
+
*
|
|
433
|
+
*
|
|
434
|
+
*/
|
|
435
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
436
|
+
/**
|
|
437
|
+
* - Set to `Password` to make the `password` field required for the Customer.
|
|
438
|
+
* - Set to `ExternalAuth` when the password is not required for the Customer.
|
|
439
|
+
*
|
|
440
|
+
*
|
|
441
|
+
*/
|
|
442
|
+
readonly authenticationMode?: AuthenticationMode;
|
|
443
|
+
}
|
|
444
|
+
export interface CustomerEmailVerify {
|
|
445
|
+
/**
|
|
446
|
+
* Expected version of the Customer.
|
|
447
|
+
*
|
|
448
|
+
*
|
|
449
|
+
*/
|
|
450
|
+
readonly version?: number;
|
|
451
|
+
/**
|
|
452
|
+
* Value of the token to verify Customer email.
|
|
453
|
+
*
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
readonly tokenValue: string;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [Customer](ctp:api:type:Customer).
|
|
460
|
+
*
|
|
461
|
+
*/
|
|
462
|
+
export interface CustomerPagedQueryResponse {
|
|
463
|
+
/**
|
|
464
|
+
* Number of [results requested](/../api/general-concepts#limit).
|
|
465
|
+
*
|
|
466
|
+
*
|
|
467
|
+
*/
|
|
468
|
+
readonly limit: number;
|
|
469
|
+
/**
|
|
470
|
+
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
471
|
+
*
|
|
472
|
+
*
|
|
473
|
+
*/
|
|
474
|
+
readonly offset: number;
|
|
475
|
+
/**
|
|
476
|
+
* Actual number of results returned.
|
|
477
|
+
*
|
|
478
|
+
*
|
|
479
|
+
*/
|
|
480
|
+
readonly count: number;
|
|
481
|
+
/**
|
|
482
|
+
* Total number of results matching the query.
|
|
483
|
+
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
|
|
484
|
+
* This field is returned by default.
|
|
485
|
+
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
|
|
486
|
+
* When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
|
|
487
|
+
*
|
|
488
|
+
*
|
|
489
|
+
*/
|
|
490
|
+
readonly total?: number;
|
|
491
|
+
/**
|
|
492
|
+
* [Customers](ctp:api:type:Customer) matching the query.
|
|
493
|
+
*
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
readonly results: Customer[];
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* [Reference](ctp:api:type:Reference) to a [Customer](ctp:api:type:Customer).
|
|
500
|
+
*
|
|
501
|
+
*/
|
|
502
|
+
export interface CustomerReference {
|
|
503
|
+
readonly typeId: 'customer';
|
|
504
|
+
/**
|
|
505
|
+
* Unique identifier of the referenced [Customer](ctp:api:type:Customer).
|
|
506
|
+
*
|
|
507
|
+
*
|
|
508
|
+
*/
|
|
509
|
+
readonly id: string;
|
|
510
|
+
/**
|
|
511
|
+
* Contains the representation of the expanded Customer. Only present in responses to requests with [Reference Expansion](ctp:api:type:Expansion) for Customers.
|
|
512
|
+
*
|
|
513
|
+
*
|
|
514
|
+
*/
|
|
515
|
+
readonly obj?: Customer;
|
|
516
|
+
}
|
|
517
|
+
export interface CustomerResetPassword {
|
|
518
|
+
/**
|
|
519
|
+
* Value of the token to reset the Customer password.
|
|
520
|
+
*
|
|
521
|
+
*
|
|
522
|
+
*/
|
|
523
|
+
readonly tokenValue: string;
|
|
524
|
+
/**
|
|
525
|
+
* New password to be set.
|
|
526
|
+
*
|
|
527
|
+
*
|
|
528
|
+
*/
|
|
529
|
+
readonly newPassword: string;
|
|
530
|
+
/**
|
|
531
|
+
* Expected version of the Customer.
|
|
532
|
+
*
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
readonly version?: number;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [Customer](ctp:api:type:Customer). Either `id` or `key` is required.
|
|
539
|
+
*
|
|
540
|
+
*/
|
|
541
|
+
export interface CustomerResourceIdentifier {
|
|
542
|
+
readonly typeId: 'customer';
|
|
543
|
+
/**
|
|
544
|
+
* Unique identifier of the referenced [Customer](ctp:api:type:Customer).
|
|
545
|
+
*
|
|
546
|
+
*
|
|
547
|
+
*/
|
|
548
|
+
readonly id?: string;
|
|
549
|
+
/**
|
|
550
|
+
* User-defined unique identifier of the referenced [Customer](ctp:api:type:Customer).
|
|
551
|
+
*
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
readonly key?: string;
|
|
555
|
+
}
|
|
556
|
+
export interface CustomerSignInResult {
|
|
557
|
+
/**
|
|
558
|
+
* Customer [signed up](ctp:api:endpoint:/{projectKey}/customers:POST) or [signed in](ctp:api:endpoint:/{projectKey}/login:POST) after authentication.
|
|
559
|
+
*
|
|
560
|
+
*
|
|
561
|
+
*/
|
|
562
|
+
readonly customer: Customer;
|
|
563
|
+
/**
|
|
564
|
+
* Cart associated with the Customer.
|
|
565
|
+
* If empty, the Customer does not have a Cart assigned.
|
|
566
|
+
*
|
|
567
|
+
*
|
|
568
|
+
*/
|
|
569
|
+
readonly cart?: Cart;
|
|
570
|
+
}
|
|
571
|
+
export interface CustomerSignin {
|
|
572
|
+
/**
|
|
573
|
+
* Email address of the Customer treated as [case-insensitive](/../api/customers-overview#email-case-insensitivity).
|
|
574
|
+
*
|
|
575
|
+
*
|
|
576
|
+
*/
|
|
577
|
+
readonly email: string;
|
|
578
|
+
/**
|
|
579
|
+
* Password of the Customer.
|
|
580
|
+
*
|
|
581
|
+
*
|
|
582
|
+
*/
|
|
583
|
+
readonly password: string;
|
|
584
|
+
/**
|
|
585
|
+
* Deprecated since it is now possible to identify an anonymous cart by using its `id` or external `key`.
|
|
586
|
+
*
|
|
587
|
+
* @deprecated
|
|
588
|
+
*/
|
|
589
|
+
readonly anonymousCartId?: string;
|
|
590
|
+
/**
|
|
591
|
+
* Identifies a [Cart](ctp:api:type:Cart) that will be assigned to the Customer.
|
|
592
|
+
*
|
|
593
|
+
*
|
|
594
|
+
*/
|
|
595
|
+
readonly anonymousCart?: CartResourceIdentifier;
|
|
596
|
+
/**
|
|
597
|
+
* - Set to `MergeWithExistingCustomerCart` if [LineItems](ctp:api:type:LineItem) of the anonymous Cart should be merged with the active Customer Cart that has been modified most recently.
|
|
598
|
+
* - Set to `UseAsNewActiveCustomerCart` if the anonymous Cart should be used as the new active Customer Cart and no [LineItems](ctp:api:type:LineItem) are to be merged.
|
|
599
|
+
*
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
readonly anonymousCartSignInMode?: AnonymousCartSignInMode;
|
|
603
|
+
/**
|
|
604
|
+
* If both `anonymousCart` and `anonymousId` are provided, the `anonymousId` on the CustomerSignin must match that of the anonymous [Cart](ctp:api:type:Cart).
|
|
605
|
+
* Otherwise a [400 Bad Request](ctp:api:type:InvalidOperationError) `Invalid Operation` error is returned with the message:
|
|
606
|
+
* "Cart with the ID cart-id does not have the expected anonymousId.".
|
|
607
|
+
*
|
|
608
|
+
*
|
|
609
|
+
*/
|
|
610
|
+
readonly anonymousId?: string;
|
|
611
|
+
/**
|
|
612
|
+
* - If `true`, the [LineItem](ctp:api:type:LineItem) Product data (`name`, `variant`, and `productType`) of the returned Cart will be updated.
|
|
613
|
+
* - If `false`, only the prices, discounts, and tax rates will be updated.
|
|
614
|
+
*
|
|
615
|
+
*
|
|
616
|
+
*/
|
|
617
|
+
readonly updateProductData?: boolean;
|
|
618
|
+
}
|
|
619
|
+
export interface CustomerToken {
|
|
620
|
+
/**
|
|
621
|
+
* Unique identifier of the token.
|
|
622
|
+
*
|
|
623
|
+
*
|
|
624
|
+
*/
|
|
625
|
+
readonly id: string;
|
|
626
|
+
/**
|
|
627
|
+
* Date and time (UTC) the token was initially created.
|
|
628
|
+
*
|
|
629
|
+
*
|
|
630
|
+
*/
|
|
631
|
+
readonly createdAt: string;
|
|
632
|
+
/**
|
|
633
|
+
* When the token is created, `lastModifiedAt` is set to `createdAt`.
|
|
634
|
+
*
|
|
635
|
+
*
|
|
636
|
+
*/
|
|
637
|
+
readonly lastModifiedAt?: string;
|
|
638
|
+
/**
|
|
639
|
+
* The `id` of the Customer.
|
|
640
|
+
*
|
|
641
|
+
*
|
|
642
|
+
*/
|
|
643
|
+
readonly customerId: string;
|
|
644
|
+
/**
|
|
645
|
+
* Date and time (UTC) the token expires.
|
|
646
|
+
*
|
|
647
|
+
*
|
|
648
|
+
*/
|
|
649
|
+
readonly expiresAt: string;
|
|
650
|
+
/**
|
|
651
|
+
* Value of the token.
|
|
652
|
+
*
|
|
653
|
+
*
|
|
654
|
+
*/
|
|
655
|
+
readonly value: string;
|
|
656
|
+
}
|
|
657
|
+
export interface CustomerUpdate {
|
|
658
|
+
/**
|
|
659
|
+
* Expected version of the Customer on which the changes should be applied. If the expected version does not match the actual version, a [409 Conflict](/../api/errors#409-conflict) error will be returned.
|
|
660
|
+
*
|
|
661
|
+
*
|
|
662
|
+
*/
|
|
663
|
+
readonly version: number;
|
|
664
|
+
/**
|
|
665
|
+
* Update actions to be performed on the Customer.
|
|
666
|
+
*
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
669
|
+
readonly actions: CustomerUpdateAction[];
|
|
670
|
+
}
|
|
671
|
+
export type CustomerUpdateAction = CustomerAddAddressAction | CustomerAddBillingAddressIdAction | CustomerAddShippingAddressIdAction | CustomerAddStoreAction | CustomerChangeAddressAction | CustomerChangeEmailAction | CustomerRemoveAddressAction | CustomerRemoveBillingAddressIdAction | CustomerRemoveShippingAddressIdAction | CustomerRemoveStoreAction | CustomerSetAddressCustomFieldAction | CustomerSetAddressCustomTypeAction | CustomerSetAuthenticationModeAction | CustomerSetCompanyNameAction | CustomerSetCustomFieldAction | CustomerSetCustomTypeAction | CustomerSetCustomerGroupAction | CustomerSetCustomerNumberAction | CustomerSetDateOfBirthAction | CustomerSetDefaultBillingAddressAction | CustomerSetDefaultShippingAddressAction | CustomerSetExternalIdAction | CustomerSetFirstNameAction | CustomerSetKeyAction | CustomerSetLastNameAction | CustomerSetLocaleAction | CustomerSetMiddleNameAction | CustomerSetSalutationAction | CustomerSetStoresAction | CustomerSetTitleAction | CustomerSetVatIdAction;
|
|
672
|
+
export interface MyCustomerChangePassword {
|
|
673
|
+
/**
|
|
674
|
+
* Expected version of the Customer on which the changes should be applied.
|
|
675
|
+
*
|
|
676
|
+
*
|
|
677
|
+
*/
|
|
678
|
+
readonly version: number;
|
|
679
|
+
/**
|
|
680
|
+
* Current password of the Customer.
|
|
681
|
+
*
|
|
682
|
+
* If the current password does not match, an [InvalidCurrentPassword](ctp:api:type:InvalidCurrentPasswordError) error is returned.
|
|
683
|
+
*
|
|
684
|
+
*
|
|
685
|
+
*/
|
|
686
|
+
readonly currentPassword: string;
|
|
687
|
+
/**
|
|
688
|
+
* New password to be set.
|
|
689
|
+
*
|
|
690
|
+
*
|
|
691
|
+
*/
|
|
692
|
+
readonly newPassword: string;
|
|
693
|
+
}
|
|
694
|
+
export interface MyCustomerEmailVerify {
|
|
695
|
+
/**
|
|
696
|
+
* Value of the token to verify Customer email.
|
|
697
|
+
*
|
|
698
|
+
*
|
|
699
|
+
*/
|
|
700
|
+
readonly tokenValue: string;
|
|
701
|
+
}
|
|
702
|
+
export interface MyCustomerResetPassword {
|
|
703
|
+
/**
|
|
704
|
+
* Value of the token to reset the Customer password.
|
|
705
|
+
*
|
|
706
|
+
*
|
|
707
|
+
*/
|
|
708
|
+
readonly tokenValue: string;
|
|
709
|
+
/**
|
|
710
|
+
* New password to be set.
|
|
711
|
+
*
|
|
712
|
+
*
|
|
713
|
+
*/
|
|
714
|
+
readonly newPassword: string;
|
|
715
|
+
}
|
|
716
|
+
export interface MyCustomerSignin {
|
|
717
|
+
/**
|
|
718
|
+
* Email address of the Customer treated as [case-insensitive](/../api/customers-overview#email-case-insensitivity).
|
|
719
|
+
*
|
|
720
|
+
*
|
|
721
|
+
*/
|
|
722
|
+
readonly email: string;
|
|
723
|
+
/**
|
|
724
|
+
* Password of the Customer.
|
|
725
|
+
*
|
|
726
|
+
*
|
|
727
|
+
*/
|
|
728
|
+
readonly password: string;
|
|
729
|
+
/**
|
|
730
|
+
* - If `MergeWithExistingCustomerCart`, [LineItems](ctp:api:type:LineItem) of the anonymous Cart are merged with the recently modified active Customer Cart.
|
|
731
|
+
* - If `UseAsNewActiveCustomerCart`, the anonymous Cart is used as the new active Customer Cart, and no [LineItems](ctp:api:type:LineItem) are merged.
|
|
732
|
+
*
|
|
733
|
+
*
|
|
734
|
+
*/
|
|
735
|
+
readonly activeCartSignInMode?: AnonymousCartSignInMode;
|
|
736
|
+
/**
|
|
737
|
+
* - If `true`, the [LineItem](ctp:api:type:LineItem) Product data (`name`, `variant`, and `productType`) of the returned Cart is updated.
|
|
738
|
+
* - If `false`, only the prices, discounts, and tax rates are updated.
|
|
739
|
+
*
|
|
740
|
+
*
|
|
741
|
+
*/
|
|
742
|
+
readonly updateProductData?: boolean;
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Adding an address to the Customer produces the [CustomerAddressAdded](ctp:api:type:CustomerAddressAddedMessage) Message.
|
|
746
|
+
*
|
|
747
|
+
*/
|
|
748
|
+
export interface CustomerAddAddressAction {
|
|
749
|
+
readonly action: 'addAddress';
|
|
750
|
+
/**
|
|
751
|
+
* Value to append to the `addresses` array.
|
|
752
|
+
*
|
|
753
|
+
*
|
|
754
|
+
*/
|
|
755
|
+
readonly address: _BaseAddress;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* Adds an Address from the `addresses` array to `billingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
759
|
+
*
|
|
760
|
+
*/
|
|
761
|
+
export interface CustomerAddBillingAddressIdAction {
|
|
762
|
+
readonly action: 'addBillingAddressId';
|
|
763
|
+
/**
|
|
764
|
+
* `id` of the [Address](ctp:api:type:Address) to become a billing address.
|
|
765
|
+
*
|
|
766
|
+
*
|
|
767
|
+
*/
|
|
768
|
+
readonly addressId?: string;
|
|
769
|
+
/**
|
|
770
|
+
* `key` of the [Address](ctp:api:type:Address) to become a billing address.
|
|
771
|
+
*
|
|
772
|
+
*
|
|
773
|
+
*/
|
|
774
|
+
readonly addressKey?: string;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Adds an Address from the `addresses` array to `shippingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
778
|
+
*
|
|
779
|
+
*/
|
|
780
|
+
export interface CustomerAddShippingAddressIdAction {
|
|
781
|
+
readonly action: 'addShippingAddressId';
|
|
782
|
+
/**
|
|
783
|
+
* `id` of the [Address](ctp:api:type:Address) to become a shipping address.
|
|
784
|
+
*
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
readonly addressId?: string;
|
|
788
|
+
/**
|
|
789
|
+
* `key` of the [Address](ctp:api:type:Address) to become a shipping address.
|
|
790
|
+
*
|
|
791
|
+
*
|
|
792
|
+
*/
|
|
793
|
+
readonly addressKey?: string;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* Associates the Customer with a Store.
|
|
797
|
+
*
|
|
798
|
+
*/
|
|
799
|
+
export interface CustomerAddStoreAction {
|
|
800
|
+
readonly action: 'addStore';
|
|
801
|
+
/**
|
|
802
|
+
* ResourceIdentifier of the Store to add.
|
|
803
|
+
*
|
|
804
|
+
*
|
|
805
|
+
*/
|
|
806
|
+
readonly store: StoreResourceIdentifier;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Changing an address of the Customer produces the [CustomerAddressChanged](ctp:api:type:CustomerAddressChangedMessage) Message.
|
|
810
|
+
*
|
|
811
|
+
* Either `addressId` or `addressKey` is required.
|
|
812
|
+
*
|
|
813
|
+
*/
|
|
814
|
+
export interface CustomerChangeAddressAction {
|
|
815
|
+
readonly action: 'changeAddress';
|
|
816
|
+
/**
|
|
817
|
+
* `id` of the [Address](ctp:api:type:Address) to change.
|
|
818
|
+
*
|
|
819
|
+
*
|
|
820
|
+
*/
|
|
821
|
+
readonly addressId?: string;
|
|
822
|
+
/**
|
|
823
|
+
* `key` of the [Address](ctp:api:type:Address) to change.
|
|
824
|
+
*
|
|
825
|
+
*
|
|
826
|
+
*/
|
|
827
|
+
readonly addressKey?: string;
|
|
828
|
+
/**
|
|
829
|
+
* Value to set.
|
|
830
|
+
*
|
|
831
|
+
*
|
|
832
|
+
*/
|
|
833
|
+
readonly address: _BaseAddress;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* Changing the email of the Customer produces the [CustomerEmailChanged](ctp:api:type:CustomerEmailChangedMessage) Message.
|
|
837
|
+
*
|
|
838
|
+
*/
|
|
839
|
+
export interface CustomerChangeEmailAction {
|
|
840
|
+
readonly action: 'changeEmail';
|
|
841
|
+
/**
|
|
842
|
+
* Value to set.
|
|
843
|
+
*
|
|
844
|
+
*
|
|
845
|
+
*/
|
|
846
|
+
readonly email: string;
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Removing an address from the Customer produces the [CustomerAddressRemoved](ctp:api:type:CustomerAddressRemovedMessage) Message.
|
|
850
|
+
*
|
|
851
|
+
* Either `addressId` or `addressKey` is required.
|
|
852
|
+
*
|
|
853
|
+
*/
|
|
854
|
+
export interface CustomerRemoveAddressAction {
|
|
855
|
+
readonly action: 'removeAddress';
|
|
856
|
+
/**
|
|
857
|
+
* `id` of the [Address](ctp:api:type:Address) to remove.
|
|
858
|
+
*
|
|
859
|
+
*
|
|
860
|
+
*/
|
|
861
|
+
readonly addressId?: string;
|
|
862
|
+
/**
|
|
863
|
+
* `key` of the [Address](ctp:api:type:Address) to remove.
|
|
864
|
+
*
|
|
865
|
+
*
|
|
866
|
+
*/
|
|
867
|
+
readonly addressKey?: string;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* Removes a billing address from `billingAddressesIds`.
|
|
871
|
+
* If the billing address is the default billing address, the `defaultBillingAddressId` is unset. Either `addressId` or `addressKey` is required.
|
|
872
|
+
*
|
|
873
|
+
*/
|
|
874
|
+
export interface CustomerRemoveBillingAddressIdAction {
|
|
875
|
+
readonly action: 'removeBillingAddressId';
|
|
876
|
+
/**
|
|
877
|
+
* `id` of the [Address](ctp:api:type:Address) to remove from `billingAddressesIds`.
|
|
878
|
+
*
|
|
879
|
+
*
|
|
880
|
+
*/
|
|
881
|
+
readonly addressId?: string;
|
|
882
|
+
/**
|
|
883
|
+
* `key` of the [Address](ctp:api:type:Address) to remove from `billingAddressesIds`.
|
|
884
|
+
*
|
|
885
|
+
*
|
|
886
|
+
*/
|
|
887
|
+
readonly addressKey?: string;
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* Removes a shipping address from `shippingAddressesIds`.
|
|
891
|
+
* If the shipping address is the default shipping address, the `defaultShippingAddressId` is unset. Either `addressId` or `addressKey` is required.
|
|
892
|
+
*
|
|
893
|
+
*/
|
|
894
|
+
export interface CustomerRemoveShippingAddressIdAction {
|
|
895
|
+
readonly action: 'removeShippingAddressId';
|
|
896
|
+
/**
|
|
897
|
+
* `id` of the [Address](ctp:api:type:Address) to remove from `shippingAddressesIds`.
|
|
898
|
+
*
|
|
899
|
+
*
|
|
900
|
+
*/
|
|
901
|
+
readonly addressId?: string;
|
|
902
|
+
/**
|
|
903
|
+
* `key` of the [Address](ctp:api:type:Address) to remove from `shippingAddressesIds`.
|
|
904
|
+
*
|
|
905
|
+
*
|
|
906
|
+
*/
|
|
907
|
+
readonly addressKey?: string;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Removes the association to a Store from the Customer.
|
|
911
|
+
* If no more Stores are assigned, the Customer becomes a [global Customer](/../api/customers-overview#global-versus-store-specific-customers).
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
export interface CustomerRemoveStoreAction {
|
|
915
|
+
readonly action: 'removeStore';
|
|
916
|
+
/**
|
|
917
|
+
* ResourceIdentifier of the Store to remove.
|
|
918
|
+
*
|
|
919
|
+
*
|
|
920
|
+
*/
|
|
921
|
+
readonly store: StoreResourceIdentifier;
|
|
922
|
+
}
|
|
923
|
+
export interface CustomerSetAddressCustomFieldAction {
|
|
924
|
+
readonly action: 'setAddressCustomField';
|
|
925
|
+
/**
|
|
926
|
+
* User-defined unique identifier of the [Address](ctp:api:type:Address) to be updated.
|
|
927
|
+
*
|
|
928
|
+
*
|
|
929
|
+
*/
|
|
930
|
+
readonly addressId: string;
|
|
931
|
+
/**
|
|
932
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
933
|
+
*
|
|
934
|
+
*
|
|
935
|
+
*/
|
|
936
|
+
readonly name: string;
|
|
937
|
+
/**
|
|
938
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
939
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
940
|
+
* Trying to remove a field that does not exist will fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
941
|
+
*
|
|
942
|
+
*
|
|
943
|
+
*/
|
|
944
|
+
readonly value?: any;
|
|
945
|
+
}
|
|
946
|
+
export interface CustomerSetAddressCustomTypeAction {
|
|
947
|
+
readonly action: 'setAddressCustomType';
|
|
948
|
+
/**
|
|
949
|
+
* User-defined unique identifier of the [Address](ctp:api:type:Address) to be updated.
|
|
950
|
+
*
|
|
951
|
+
*
|
|
952
|
+
*/
|
|
953
|
+
readonly addressId: string;
|
|
954
|
+
/**
|
|
955
|
+
* Defines the [Type](ctp:api:type:Type) that extends the `address` with [Custom Fields](/../api/projects/custom-fields).
|
|
956
|
+
* If absent, any existing Type and Custom Fields are removed from the `address`.
|
|
957
|
+
*
|
|
958
|
+
*
|
|
959
|
+
*/
|
|
960
|
+
readonly type?: TypeResourceIdentifier;
|
|
961
|
+
/**
|
|
962
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the `address`.
|
|
963
|
+
*
|
|
964
|
+
*
|
|
965
|
+
*/
|
|
966
|
+
readonly fields?: FieldContainer;
|
|
967
|
+
}
|
|
968
|
+
export interface CustomerSetAuthenticationModeAction {
|
|
969
|
+
readonly action: 'setAuthenticationMode';
|
|
970
|
+
/**
|
|
971
|
+
* Value to set.
|
|
972
|
+
* Changing a Customer's `authMode` from `Password` to `ExternalAuth` deletes the Customer's password.
|
|
973
|
+
*
|
|
974
|
+
*
|
|
975
|
+
*/
|
|
976
|
+
readonly authMode: AuthenticationMode;
|
|
977
|
+
/**
|
|
978
|
+
* Required when `authMode` is `Password`.
|
|
979
|
+
*
|
|
980
|
+
*
|
|
981
|
+
*/
|
|
982
|
+
readonly password?: string;
|
|
983
|
+
}
|
|
984
|
+
/**
|
|
985
|
+
* Setting a company name produces the [CustomerCompanyNameSet](ctp:api:type:CustomerCompanyNameSetMessage) Message.
|
|
986
|
+
*
|
|
987
|
+
*/
|
|
988
|
+
export interface CustomerSetCompanyNameAction {
|
|
989
|
+
readonly action: 'setCompanyName';
|
|
990
|
+
/**
|
|
991
|
+
* Value to set.
|
|
992
|
+
* If empty, any existing value is removed.
|
|
993
|
+
*
|
|
994
|
+
*
|
|
995
|
+
*/
|
|
996
|
+
readonly companyName?: string;
|
|
997
|
+
}
|
|
998
|
+
export interface CustomerSetCustomFieldAction {
|
|
999
|
+
readonly action: 'setCustomField';
|
|
1000
|
+
/**
|
|
1001
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
1002
|
+
*
|
|
1003
|
+
*
|
|
1004
|
+
*/
|
|
1005
|
+
readonly name: string;
|
|
1006
|
+
/**
|
|
1007
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
1008
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
1009
|
+
* Trying to remove a field that does not exist will fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
1010
|
+
*
|
|
1011
|
+
*
|
|
1012
|
+
*/
|
|
1013
|
+
readonly value?: any;
|
|
1014
|
+
}
|
|
1015
|
+
export interface CustomerSetCustomTypeAction {
|
|
1016
|
+
readonly action: 'setCustomType';
|
|
1017
|
+
/**
|
|
1018
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Customer with [Custom Fields](/../api/projects/custom-fields).
|
|
1019
|
+
* If absent, any existing Type and Custom Fields are removed from the Customer.
|
|
1020
|
+
*
|
|
1021
|
+
*
|
|
1022
|
+
*/
|
|
1023
|
+
readonly type?: TypeResourceIdentifier;
|
|
1024
|
+
/**
|
|
1025
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Customer.
|
|
1026
|
+
*
|
|
1027
|
+
*
|
|
1028
|
+
*/
|
|
1029
|
+
readonly fields?: FieldContainer;
|
|
1030
|
+
}
|
|
1031
|
+
/**
|
|
1032
|
+
* Setting the Customer Group of the Customer produces the [CustomerGroupSet](ctp:api:type:CustomerGroupSetMessage) Message.
|
|
1033
|
+
*
|
|
1034
|
+
*/
|
|
1035
|
+
export interface CustomerSetCustomerGroupAction {
|
|
1036
|
+
readonly action: 'setCustomerGroup';
|
|
1037
|
+
/**
|
|
1038
|
+
* Value to set.
|
|
1039
|
+
* If empty, any existing value is removed.
|
|
1040
|
+
*
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* Sets a new ID that can be used to refer to a Customer in a human-reabable way (for use in emails, invoices, etc).
|
|
1047
|
+
*
|
|
1048
|
+
*/
|
|
1049
|
+
export interface CustomerSetCustomerNumberAction {
|
|
1050
|
+
readonly action: 'setCustomerNumber';
|
|
1051
|
+
/**
|
|
1052
|
+
* Value to set.
|
|
1053
|
+
* Once set, it cannot be changed.
|
|
1054
|
+
*
|
|
1055
|
+
*
|
|
1056
|
+
*/
|
|
1057
|
+
readonly customerNumber?: string;
|
|
1058
|
+
}
|
|
1059
|
+
/**
|
|
1060
|
+
* Setting the date of birth of the Customer produces the [CustomerDateOfBirthSet](ctp:api:type:CustomerDateOfBirthSetMessage) Message.
|
|
1061
|
+
*
|
|
1062
|
+
*/
|
|
1063
|
+
export interface CustomerSetDateOfBirthAction {
|
|
1064
|
+
readonly action: 'setDateOfBirth';
|
|
1065
|
+
/**
|
|
1066
|
+
* Value to set.
|
|
1067
|
+
* If empty, any existing value is removed.
|
|
1068
|
+
*
|
|
1069
|
+
*
|
|
1070
|
+
*/
|
|
1071
|
+
readonly dateOfBirth?: string;
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* Sets the default billing address from `addresses`.
|
|
1075
|
+
* The action adds the `id` of the specified Address to the `billingAddressIds` if not contained already. Either `addressId` or `addressKey` is required.
|
|
1076
|
+
*
|
|
1077
|
+
*/
|
|
1078
|
+
export interface CustomerSetDefaultBillingAddressAction {
|
|
1079
|
+
readonly action: 'setDefaultBillingAddress';
|
|
1080
|
+
/**
|
|
1081
|
+
* `id` of the [Address](ctp:api:type:Address) to become the default billing address.
|
|
1082
|
+
*
|
|
1083
|
+
*
|
|
1084
|
+
*/
|
|
1085
|
+
readonly addressId?: string;
|
|
1086
|
+
/**
|
|
1087
|
+
* `key` of the [Address](ctp:api:type:Address) to become the default billing address.
|
|
1088
|
+
*
|
|
1089
|
+
*
|
|
1090
|
+
*/
|
|
1091
|
+
readonly addressKey?: string;
|
|
1092
|
+
}
|
|
1093
|
+
/**
|
|
1094
|
+
* Sets the default shipping address from `addresses`.
|
|
1095
|
+
* The action adds the `id` of the specified address to the `shippingAddressIds` if not contained already. Either `addressId` or `addressKey` is required.
|
|
1096
|
+
*
|
|
1097
|
+
* If the Tax Category of the Cart [ShippingInfo](ctp:api:type:ShippingInfo) is missing the TaxRate matching country and state given in the `shippingAddress` of that Cart, a [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError) error is returned.
|
|
1098
|
+
*
|
|
1099
|
+
*/
|
|
1100
|
+
export interface CustomerSetDefaultShippingAddressAction {
|
|
1101
|
+
readonly action: 'setDefaultShippingAddress';
|
|
1102
|
+
/**
|
|
1103
|
+
* `id` of the [Address](ctp:api:type:Address) to become the default shipping address.
|
|
1104
|
+
*
|
|
1105
|
+
*
|
|
1106
|
+
*/
|
|
1107
|
+
readonly addressId?: string;
|
|
1108
|
+
/**
|
|
1109
|
+
* `key` of the [Address](ctp:api:type:Address) to become the default shipping address.
|
|
1110
|
+
*
|
|
1111
|
+
*
|
|
1112
|
+
*/
|
|
1113
|
+
readonly addressKey?: string;
|
|
1114
|
+
}
|
|
1115
|
+
export interface CustomerSetExternalIdAction {
|
|
1116
|
+
readonly action: 'setExternalId';
|
|
1117
|
+
/**
|
|
1118
|
+
* Value to set.
|
|
1119
|
+
* If empty, any existing value is removed.
|
|
1120
|
+
*
|
|
1121
|
+
*
|
|
1122
|
+
*/
|
|
1123
|
+
readonly externalId?: string;
|
|
1124
|
+
}
|
|
1125
|
+
export interface CustomerSetFirstNameAction {
|
|
1126
|
+
readonly action: 'setFirstName';
|
|
1127
|
+
/**
|
|
1128
|
+
* Value to set. If empty, any existing value is removed.
|
|
1129
|
+
*
|
|
1130
|
+
*
|
|
1131
|
+
*/
|
|
1132
|
+
readonly firstName?: string;
|
|
1133
|
+
}
|
|
1134
|
+
export interface CustomerSetKeyAction {
|
|
1135
|
+
readonly action: 'setKey';
|
|
1136
|
+
/**
|
|
1137
|
+
* If `key` is absent or `null`, the existing key, if any, will be removed.
|
|
1138
|
+
*
|
|
1139
|
+
*
|
|
1140
|
+
*/
|
|
1141
|
+
readonly key?: string;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Setting the last name of the Customer produces the [CustomerLastNameSetMessage](ctp:api:type:CustomerLastNameSetMessage).
|
|
1145
|
+
*
|
|
1146
|
+
*/
|
|
1147
|
+
export interface CustomerSetLastNameAction {
|
|
1148
|
+
readonly action: 'setLastName';
|
|
1149
|
+
/**
|
|
1150
|
+
* Value to set. If empty, any existing value is removed.
|
|
1151
|
+
*
|
|
1152
|
+
*
|
|
1153
|
+
*/
|
|
1154
|
+
readonly lastName?: string;
|
|
1155
|
+
}
|
|
1156
|
+
export interface CustomerSetLocaleAction {
|
|
1157
|
+
readonly action: 'setLocale';
|
|
1158
|
+
/**
|
|
1159
|
+
* Value to set.
|
|
1160
|
+
* Must be one of the languages supported by the [Project](ctp:api:type:Project).
|
|
1161
|
+
*
|
|
1162
|
+
*
|
|
1163
|
+
*/
|
|
1164
|
+
readonly locale?: string;
|
|
1165
|
+
}
|
|
1166
|
+
export interface CustomerSetMiddleNameAction {
|
|
1167
|
+
readonly action: 'setMiddleName';
|
|
1168
|
+
/**
|
|
1169
|
+
* Value to set. If empty, any existing value is removed.
|
|
1170
|
+
*
|
|
1171
|
+
*
|
|
1172
|
+
*/
|
|
1173
|
+
readonly middleName?: string;
|
|
1174
|
+
}
|
|
1175
|
+
export interface CustomerSetSalutationAction {
|
|
1176
|
+
readonly action: 'setSalutation';
|
|
1177
|
+
/**
|
|
1178
|
+
* Value to set. If empty, any existing value is removed.
|
|
1179
|
+
*
|
|
1180
|
+
*
|
|
1181
|
+
*/
|
|
1182
|
+
readonly salutation?: string;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Sets the Stores the Customer account is associated with.
|
|
1186
|
+
* If no Stores are specified, the Customer becomes a [global Customer](/../api/customers-overview#global-versus-store-specific-customers).
|
|
1187
|
+
*
|
|
1188
|
+
*/
|
|
1189
|
+
export interface CustomerSetStoresAction {
|
|
1190
|
+
readonly action: 'setStores';
|
|
1191
|
+
/**
|
|
1192
|
+
* ResourceIdentifier of the Stores to set.
|
|
1193
|
+
*
|
|
1194
|
+
*
|
|
1195
|
+
*/
|
|
1196
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Setting the title of the Customer produces the [CustomerTitleSetMessage](ctp:api:type:CustomerTitleSetMessage).
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
1202
|
+
export interface CustomerSetTitleAction {
|
|
1203
|
+
readonly action: 'setTitle';
|
|
1204
|
+
/**
|
|
1205
|
+
* Value to set. If empty, any existing value is removed.
|
|
1206
|
+
*
|
|
1207
|
+
*
|
|
1208
|
+
*/
|
|
1209
|
+
readonly title?: string;
|
|
1210
|
+
}
|
|
1211
|
+
export interface CustomerSetVatIdAction {
|
|
1212
|
+
readonly action: 'setVatId';
|
|
1213
|
+
/**
|
|
1214
|
+
* Value to set.
|
|
1215
|
+
* If empty, any existing value is removed.
|
|
1216
|
+
*
|
|
1217
|
+
*
|
|
1218
|
+
*/
|
|
1219
|
+
readonly vatId?: string;
|
|
1220
|
+
}
|
|
1221
|
+
//# sourceMappingURL=customer.d.ts.map
|