@gradientedge/commercetools-utils 5.9.0 → 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
|
@@ -1,745 +0,0 @@
|
|
|
1
|
-
import { BusinessUnitKeyReference, BusinessUnitResourceIdentifier } from './business-unit';
|
|
2
|
-
import { CartDiscountReference, CartDiscountTarget, CartDiscountValue } from './cart-discount';
|
|
3
|
-
import { ChannelReference, ChannelResourceIdentifier } from './channel';
|
|
4
|
-
import { Address, BaseAddress, BaseResource, CentPrecisionMoney, CreatedBy, LastModifiedBy, LocalizedString, Price, Reference, TypedMoney, _BaseAddress, _Money } from './common';
|
|
5
|
-
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group';
|
|
6
|
-
import { DiscountCodeReference } from './discount-code';
|
|
7
|
-
import { Delivery, DeliveryDraft, ItemState, OrderReference, PaymentInfo } from './order';
|
|
8
|
-
import { PaymentResourceIdentifier } from './payment';
|
|
9
|
-
import { ProductVariant } from './product';
|
|
10
|
-
import { ProductTypeReference } from './product-type';
|
|
11
|
-
import { ShippingMethodReference, ShippingMethodResourceIdentifier, ShippingRate, ShippingRateDraft } from './shipping-method';
|
|
12
|
-
import { ShoppingListResourceIdentifier } from './shopping-list';
|
|
13
|
-
import { StoreKeyReference, StoreResourceIdentifier } from './store';
|
|
14
|
-
import { SubRate, TaxCategoryReference, TaxCategoryResourceIdentifier, TaxRate } from './tax-category';
|
|
15
|
-
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type';
|
|
16
|
-
export interface Cart extends BaseResource {
|
|
17
|
-
readonly id: string;
|
|
18
|
-
readonly version: number;
|
|
19
|
-
readonly key?: string;
|
|
20
|
-
readonly customerId?: string;
|
|
21
|
-
readonly customerEmail?: string;
|
|
22
|
-
readonly customerGroup?: CustomerGroupReference;
|
|
23
|
-
readonly anonymousId?: string;
|
|
24
|
-
readonly businessUnit?: BusinessUnitKeyReference;
|
|
25
|
-
readonly store?: StoreKeyReference;
|
|
26
|
-
readonly lineItems: LineItem[];
|
|
27
|
-
readonly customLineItems: CustomLineItem[];
|
|
28
|
-
readonly totalLineItemQuantity?: number;
|
|
29
|
-
readonly totalPrice: CentPrecisionMoney;
|
|
30
|
-
readonly taxedPrice?: TaxedPrice;
|
|
31
|
-
readonly taxedShippingPrice?: TaxedPrice;
|
|
32
|
-
readonly taxMode: TaxMode;
|
|
33
|
-
readonly taxRoundingMode: RoundingMode;
|
|
34
|
-
readonly taxCalculationMode: TaxCalculationMode;
|
|
35
|
-
readonly inventoryMode: InventoryMode;
|
|
36
|
-
readonly cartState: CartState;
|
|
37
|
-
readonly billingAddress?: Address;
|
|
38
|
-
readonly shippingAddress?: Address;
|
|
39
|
-
readonly shippingMode: ShippingMode;
|
|
40
|
-
readonly shippingKey?: string;
|
|
41
|
-
readonly shippingInfo?: ShippingInfo;
|
|
42
|
-
readonly shippingRateInput?: ShippingRateInput;
|
|
43
|
-
readonly shippingCustomFields?: CustomFields;
|
|
44
|
-
readonly shipping: Shipping[];
|
|
45
|
-
readonly itemShippingAddresses: Address[];
|
|
46
|
-
readonly discountCodes: DiscountCodeInfo[];
|
|
47
|
-
readonly directDiscounts: DirectDiscount[];
|
|
48
|
-
readonly refusedGifts: CartDiscountReference[];
|
|
49
|
-
readonly paymentInfo?: PaymentInfo;
|
|
50
|
-
readonly country?: string;
|
|
51
|
-
readonly locale?: string;
|
|
52
|
-
readonly origin: CartOrigin;
|
|
53
|
-
readonly custom?: CustomFields;
|
|
54
|
-
readonly deleteDaysAfterLastModification?: number;
|
|
55
|
-
readonly createdAt: string;
|
|
56
|
-
readonly lastModifiedAt: string;
|
|
57
|
-
readonly lastModifiedBy?: LastModifiedBy;
|
|
58
|
-
readonly createdBy?: CreatedBy;
|
|
59
|
-
}
|
|
60
|
-
export interface CartDraft {
|
|
61
|
-
readonly currency: string;
|
|
62
|
-
readonly key?: string;
|
|
63
|
-
readonly customerId?: string;
|
|
64
|
-
readonly customerEmail?: string;
|
|
65
|
-
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
66
|
-
readonly anonymousId?: string;
|
|
67
|
-
readonly businessUnit?: BusinessUnitResourceIdentifier;
|
|
68
|
-
readonly store?: StoreResourceIdentifier;
|
|
69
|
-
readonly lineItems?: LineItemDraft[];
|
|
70
|
-
readonly customLineItems?: CustomLineItemDraft[];
|
|
71
|
-
readonly taxMode?: TaxMode;
|
|
72
|
-
readonly externalTaxRateForShippingMethod?: ExternalTaxRateDraft;
|
|
73
|
-
readonly taxRoundingMode?: RoundingMode;
|
|
74
|
-
readonly taxCalculationMode?: TaxCalculationMode;
|
|
75
|
-
readonly inventoryMode?: InventoryMode;
|
|
76
|
-
readonly billingAddress?: _BaseAddress;
|
|
77
|
-
readonly shippingAddress?: _BaseAddress;
|
|
78
|
-
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
79
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
80
|
-
readonly shippingMode?: ShippingMode;
|
|
81
|
-
readonly customShipping?: CustomShippingDraft[];
|
|
82
|
-
readonly shipping?: ShippingDraft[];
|
|
83
|
-
readonly itemShippingAddresses?: BaseAddress[];
|
|
84
|
-
readonly discountCodes?: string[];
|
|
85
|
-
readonly country?: string;
|
|
86
|
-
readonly locale?: string;
|
|
87
|
-
readonly origin?: CartOrigin;
|
|
88
|
-
readonly deleteDaysAfterLastModification?: number;
|
|
89
|
-
readonly custom?: CustomFieldsDraft;
|
|
90
|
-
}
|
|
91
|
-
export type CartOrigin = 'Customer' | 'Merchant' | 'Quote' | string;
|
|
92
|
-
export interface CartPagedQueryResponse {
|
|
93
|
-
readonly limit: number;
|
|
94
|
-
readonly offset: number;
|
|
95
|
-
readonly count: number;
|
|
96
|
-
readonly total?: number;
|
|
97
|
-
readonly results: Cart[];
|
|
98
|
-
}
|
|
99
|
-
export interface CartReference {
|
|
100
|
-
readonly typeId: 'cart';
|
|
101
|
-
readonly id: string;
|
|
102
|
-
readonly obj?: Cart;
|
|
103
|
-
}
|
|
104
|
-
export interface CartResourceIdentifier {
|
|
105
|
-
readonly typeId: 'cart';
|
|
106
|
-
readonly id?: string;
|
|
107
|
-
readonly key?: string;
|
|
108
|
-
}
|
|
109
|
-
export type CartState = 'Active' | 'Frozen' | 'Merged' | 'Ordered' | string;
|
|
110
|
-
export interface CartUpdate {
|
|
111
|
-
readonly version: number;
|
|
112
|
-
readonly actions: CartUpdateAction[];
|
|
113
|
-
}
|
|
114
|
-
export type CartUpdateAction = CartAddCustomLineItemAction | CartAddCustomShippingMethodAction | CartAddDiscountCodeAction | CartAddItemShippingAddressAction | CartAddLineItemAction | CartAddPaymentAction | CartAddShippingMethodAction | CartAddShoppingListAction | CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction | CartApplyDeltaToLineItemShippingDetailsTargetsAction | CartChangeCustomLineItemMoneyAction | CartChangeCustomLineItemPriceModeAction | CartChangeCustomLineItemQuantityAction | CartChangeLineItemQuantityAction | CartChangeTaxCalculationModeAction | CartChangeTaxModeAction | CartChangeTaxRoundingModeAction | CartFreezeCartAction | CartRecalculateAction | CartRemoveCustomLineItemAction | CartRemoveDiscountCodeAction | CartRemoveItemShippingAddressAction | CartRemoveLineItemAction | CartRemovePaymentAction | CartRemoveShippingMethodAction | CartSetAnonymousIdAction | CartSetBillingAddressAction | CartSetBillingAddressCustomFieldAction | CartSetBillingAddressCustomTypeAction | CartSetBusinessUnitAction | CartSetCartTotalTaxAction | CartSetCountryAction | CartSetCustomFieldAction | CartSetCustomLineItemCustomFieldAction | CartSetCustomLineItemCustomTypeAction | CartSetCustomLineItemShippingDetailsAction | CartSetCustomLineItemTaxAmountAction | CartSetCustomLineItemTaxRateAction | CartSetCustomShippingMethodAction | CartSetCustomTypeAction | CartSetCustomerEmailAction | CartSetCustomerGroupAction | CartSetCustomerIdAction | CartSetDeleteDaysAfterLastModificationAction | CartSetDeliveryAddressCustomFieldAction | CartSetDeliveryAddressCustomTypeAction | CartSetDirectDiscountsAction | CartSetItemShippingAddressCustomFieldAction | CartSetItemShippingAddressCustomTypeAction | CartSetKeyAction | CartSetLineItemCustomFieldAction | CartSetLineItemCustomTypeAction | CartSetLineItemDistributionChannelAction | CartSetLineItemPriceAction | CartSetLineItemShippingDetailsAction | CartSetLineItemSupplyChannelAction | CartSetLineItemTaxAmountAction | CartSetLineItemTaxRateAction | CartSetLineItemTotalPriceAction | CartSetLocaleAction | CartSetShippingAddressAction | CartSetShippingAddressAndShippingMethodAction | CartSetShippingAddressAndCustomShippingMethodAction | CartSetShippingAddressCustomFieldAction | CartSetShippingAddressCustomTypeAction | CartSetShippingCustomFieldAction | CartSetShippingCustomTypeAction | CartSetShippingMethodAction | CartSetShippingMethodTaxAmountAction | CartSetShippingMethodTaxRateAction | CartSetShippingRateInputAction | CartUnfreezeCartAction | CartUpdateItemShippingAddressAction;
|
|
115
|
-
export interface CustomLineItem {
|
|
116
|
-
readonly id: string;
|
|
117
|
-
readonly name: LocalizedString;
|
|
118
|
-
readonly money: TypedMoney;
|
|
119
|
-
readonly taxedPrice?: TaxedItemPrice;
|
|
120
|
-
readonly totalPrice: CentPrecisionMoney;
|
|
121
|
-
readonly slug: string;
|
|
122
|
-
readonly quantity: number;
|
|
123
|
-
readonly state: ItemState[];
|
|
124
|
-
readonly taxCategory?: TaxCategoryReference;
|
|
125
|
-
readonly taxRate?: TaxRate;
|
|
126
|
-
readonly discountedPricePerQuantity: DiscountedLineItemPriceForQuantity[];
|
|
127
|
-
readonly custom?: CustomFields;
|
|
128
|
-
readonly shippingDetails?: ItemShippingDetails;
|
|
129
|
-
readonly priceMode: CustomLineItemPriceMode;
|
|
130
|
-
}
|
|
131
|
-
export interface CustomLineItemDraft {
|
|
132
|
-
readonly name: LocalizedString;
|
|
133
|
-
readonly quantity?: number;
|
|
134
|
-
readonly money: _Money;
|
|
135
|
-
readonly slug: string;
|
|
136
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
137
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
138
|
-
readonly custom?: CustomFieldsDraft;
|
|
139
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
140
|
-
readonly priceMode: CustomLineItemPriceMode;
|
|
141
|
-
}
|
|
142
|
-
export type CustomLineItemPriceMode = 'External' | 'Standard' | string;
|
|
143
|
-
export interface CustomShippingDraft {
|
|
144
|
-
readonly key: string;
|
|
145
|
-
readonly shippingMethodName: string;
|
|
146
|
-
readonly shippingAddress?: _BaseAddress;
|
|
147
|
-
readonly shippingRate: ShippingRateDraft;
|
|
148
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
149
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
150
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
151
|
-
readonly deliveries?: DeliveryDraft[];
|
|
152
|
-
readonly custom?: CustomFieldsDraft;
|
|
153
|
-
}
|
|
154
|
-
export interface DirectDiscount {
|
|
155
|
-
readonly id: string;
|
|
156
|
-
readonly value: CartDiscountValue;
|
|
157
|
-
readonly target?: CartDiscountTarget;
|
|
158
|
-
}
|
|
159
|
-
export interface DirectDiscountDraft {
|
|
160
|
-
readonly value: CartDiscountValue;
|
|
161
|
-
readonly target?: CartDiscountTarget;
|
|
162
|
-
}
|
|
163
|
-
export interface DirectDiscountReference {
|
|
164
|
-
readonly typeId: 'direct-discount';
|
|
165
|
-
readonly id: string;
|
|
166
|
-
}
|
|
167
|
-
export interface DiscountCodeInfo {
|
|
168
|
-
readonly discountCode: DiscountCodeReference;
|
|
169
|
-
readonly state: DiscountCodeState;
|
|
170
|
-
}
|
|
171
|
-
export type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | string;
|
|
172
|
-
export interface DiscountedLineItemPortion {
|
|
173
|
-
readonly discount: Reference;
|
|
174
|
-
readonly discountedAmount: TypedMoney;
|
|
175
|
-
}
|
|
176
|
-
export interface DiscountedLineItemPrice {
|
|
177
|
-
readonly value: TypedMoney;
|
|
178
|
-
readonly includedDiscounts: DiscountedLineItemPortion[];
|
|
179
|
-
}
|
|
180
|
-
export interface DiscountedLineItemPriceForQuantity {
|
|
181
|
-
readonly quantity: number;
|
|
182
|
-
readonly discountedPrice: DiscountedLineItemPrice;
|
|
183
|
-
}
|
|
184
|
-
export interface ExternalLineItemTotalPrice {
|
|
185
|
-
readonly price: _Money;
|
|
186
|
-
readonly totalPrice: _Money;
|
|
187
|
-
}
|
|
188
|
-
export interface ExternalTaxAmountDraft {
|
|
189
|
-
readonly totalGross: _Money;
|
|
190
|
-
readonly taxRate: ExternalTaxRateDraft;
|
|
191
|
-
}
|
|
192
|
-
export interface ExternalTaxRateDraft {
|
|
193
|
-
readonly name: string;
|
|
194
|
-
readonly amount?: number;
|
|
195
|
-
readonly includedInPrice?: boolean;
|
|
196
|
-
readonly country: string;
|
|
197
|
-
readonly state?: string;
|
|
198
|
-
readonly subRates?: SubRate[];
|
|
199
|
-
}
|
|
200
|
-
export type InventoryMode = 'None' | 'ReserveOnOrder' | 'TrackOnly' | string;
|
|
201
|
-
export interface ItemShippingDetails {
|
|
202
|
-
readonly targets: ItemShippingTarget[];
|
|
203
|
-
readonly valid: boolean;
|
|
204
|
-
}
|
|
205
|
-
export interface ItemShippingDetailsDraft {
|
|
206
|
-
readonly targets: ItemShippingTarget[];
|
|
207
|
-
}
|
|
208
|
-
export interface ItemShippingTarget {
|
|
209
|
-
readonly addressKey: string;
|
|
210
|
-
readonly quantity: number;
|
|
211
|
-
readonly shippingMethodKey?: string;
|
|
212
|
-
}
|
|
213
|
-
export interface LineItem {
|
|
214
|
-
readonly id: string;
|
|
215
|
-
readonly productId: string;
|
|
216
|
-
readonly productKey?: string;
|
|
217
|
-
readonly name: LocalizedString;
|
|
218
|
-
readonly productSlug?: LocalizedString;
|
|
219
|
-
readonly productType: ProductTypeReference;
|
|
220
|
-
readonly variant: ProductVariant;
|
|
221
|
-
readonly price: Price;
|
|
222
|
-
readonly quantity: number;
|
|
223
|
-
readonly totalPrice: CentPrecisionMoney;
|
|
224
|
-
readonly discountedPricePerQuantity: DiscountedLineItemPriceForQuantity[];
|
|
225
|
-
readonly taxedPrice?: TaxedItemPrice;
|
|
226
|
-
readonly taxedPricePortions: MethodTaxedPrice[];
|
|
227
|
-
readonly state: ItemState[];
|
|
228
|
-
readonly taxRate?: TaxRate;
|
|
229
|
-
readonly perMethodTaxRate: MethodTaxRate[];
|
|
230
|
-
readonly supplyChannel?: ChannelReference;
|
|
231
|
-
readonly distributionChannel?: ChannelReference;
|
|
232
|
-
readonly priceMode: LineItemPriceMode;
|
|
233
|
-
readonly lineItemMode: LineItemMode;
|
|
234
|
-
readonly inventoryMode?: InventoryMode;
|
|
235
|
-
readonly shippingDetails?: ItemShippingDetails;
|
|
236
|
-
readonly custom?: CustomFields;
|
|
237
|
-
readonly addedAt?: string;
|
|
238
|
-
readonly lastModifiedAt?: string;
|
|
239
|
-
}
|
|
240
|
-
export interface LineItemDraft {
|
|
241
|
-
readonly productId?: string;
|
|
242
|
-
readonly variantId?: number;
|
|
243
|
-
readonly sku?: string;
|
|
244
|
-
readonly quantity?: number;
|
|
245
|
-
readonly addedAt?: string;
|
|
246
|
-
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
247
|
-
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
248
|
-
readonly externalPrice?: _Money;
|
|
249
|
-
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
250
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
251
|
-
readonly inventoryMode?: InventoryMode;
|
|
252
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
253
|
-
readonly custom?: CustomFieldsDraft;
|
|
254
|
-
}
|
|
255
|
-
export type LineItemMode = 'GiftLineItem' | 'Standard' | string;
|
|
256
|
-
export type LineItemPriceMode = 'ExternalPrice' | 'ExternalTotal' | 'Platform' | string;
|
|
257
|
-
export interface MethodTaxRate {
|
|
258
|
-
readonly shippingMethodKey: string;
|
|
259
|
-
readonly taxRate?: TaxRate;
|
|
260
|
-
}
|
|
261
|
-
export interface MethodTaxedPrice {
|
|
262
|
-
readonly shippingMethodKey: string;
|
|
263
|
-
readonly taxedPrice?: TaxedItemPrice;
|
|
264
|
-
}
|
|
265
|
-
export interface ReplicaCartDraft {
|
|
266
|
-
readonly reference: CartReference | OrderReference;
|
|
267
|
-
readonly key?: string;
|
|
268
|
-
}
|
|
269
|
-
export type RoundingMode = 'HalfDown' | 'HalfEven' | 'HalfUp' | string;
|
|
270
|
-
export interface Shipping {
|
|
271
|
-
readonly shippingKey: string;
|
|
272
|
-
readonly shippingInfo: ShippingInfo;
|
|
273
|
-
readonly shippingAddress: Address;
|
|
274
|
-
readonly shippingRateInput?: ShippingRateInput;
|
|
275
|
-
readonly shippingCustomFields?: CustomFields;
|
|
276
|
-
}
|
|
277
|
-
export interface ShippingDraft {
|
|
278
|
-
readonly key: string;
|
|
279
|
-
readonly shippingMethod?: ShippingMethodReference;
|
|
280
|
-
readonly shippingAddress: _BaseAddress;
|
|
281
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
282
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
283
|
-
readonly deliveries?: DeliveryDraft[];
|
|
284
|
-
readonly custom?: CustomFieldsDraft;
|
|
285
|
-
}
|
|
286
|
-
export interface ShippingInfo {
|
|
287
|
-
readonly shippingMethodName: string;
|
|
288
|
-
readonly price: CentPrecisionMoney;
|
|
289
|
-
readonly shippingRate: ShippingRate;
|
|
290
|
-
readonly taxedPrice?: TaxedItemPrice;
|
|
291
|
-
readonly taxRate?: TaxRate;
|
|
292
|
-
readonly taxCategory?: TaxCategoryReference;
|
|
293
|
-
readonly shippingMethod?: ShippingMethodReference;
|
|
294
|
-
readonly deliveries?: Delivery[];
|
|
295
|
-
readonly discountedPrice?: DiscountedLineItemPrice;
|
|
296
|
-
readonly shippingMethodState: ShippingMethodState;
|
|
297
|
-
}
|
|
298
|
-
export type ShippingMethodState = 'DoesNotMatchCart' | 'MatchesCart' | string;
|
|
299
|
-
export type ShippingMode = 'Multiple' | 'Single' | string;
|
|
300
|
-
export type ShippingRateInput = ClassificationShippingRateInput | ScoreShippingRateInput;
|
|
301
|
-
export interface ClassificationShippingRateInput {
|
|
302
|
-
readonly type: 'Classification';
|
|
303
|
-
readonly key: string;
|
|
304
|
-
readonly label: LocalizedString;
|
|
305
|
-
}
|
|
306
|
-
export interface ScoreShippingRateInput {
|
|
307
|
-
readonly type: 'Score';
|
|
308
|
-
readonly score: number;
|
|
309
|
-
}
|
|
310
|
-
export type ShippingRateInputDraft = ClassificationShippingRateInputDraft | ScoreShippingRateInputDraft;
|
|
311
|
-
export interface ClassificationShippingRateInputDraft {
|
|
312
|
-
readonly type: 'Classification';
|
|
313
|
-
readonly key: string;
|
|
314
|
-
}
|
|
315
|
-
export interface ScoreShippingRateInputDraft {
|
|
316
|
-
readonly type: 'Score';
|
|
317
|
-
readonly score: number;
|
|
318
|
-
}
|
|
319
|
-
export type TaxCalculationMode = 'LineItemLevel' | 'UnitPriceLevel' | string;
|
|
320
|
-
export type TaxMode = 'Disabled' | 'External' | 'ExternalAmount' | 'Platform' | string;
|
|
321
|
-
export interface TaxPortion {
|
|
322
|
-
readonly name?: string;
|
|
323
|
-
readonly rate: number;
|
|
324
|
-
readonly amount: CentPrecisionMoney;
|
|
325
|
-
}
|
|
326
|
-
export interface TaxPortionDraft {
|
|
327
|
-
readonly name?: string;
|
|
328
|
-
readonly rate: number;
|
|
329
|
-
readonly amount: _Money;
|
|
330
|
-
}
|
|
331
|
-
export interface TaxedItemPrice {
|
|
332
|
-
readonly totalNet: CentPrecisionMoney;
|
|
333
|
-
readonly totalGross: CentPrecisionMoney;
|
|
334
|
-
readonly totalTax?: CentPrecisionMoney;
|
|
335
|
-
}
|
|
336
|
-
export interface TaxedPrice {
|
|
337
|
-
readonly totalNet: CentPrecisionMoney;
|
|
338
|
-
readonly totalGross: CentPrecisionMoney;
|
|
339
|
-
readonly taxPortions: TaxPortion[];
|
|
340
|
-
readonly totalTax?: CentPrecisionMoney;
|
|
341
|
-
}
|
|
342
|
-
export interface TaxedPriceDraft {
|
|
343
|
-
readonly totalNet: _Money;
|
|
344
|
-
readonly totalGross: _Money;
|
|
345
|
-
readonly taxPortions: TaxPortionDraft[];
|
|
346
|
-
}
|
|
347
|
-
export interface CartAddCustomLineItemAction {
|
|
348
|
-
readonly action: 'addCustomLineItem';
|
|
349
|
-
readonly money: _Money;
|
|
350
|
-
readonly name: LocalizedString;
|
|
351
|
-
readonly quantity?: number;
|
|
352
|
-
readonly slug: string;
|
|
353
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
354
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
355
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
356
|
-
readonly custom?: CustomFieldsDraft;
|
|
357
|
-
readonly priceMode?: CustomLineItemPriceMode;
|
|
358
|
-
}
|
|
359
|
-
export interface CartAddCustomShippingMethodAction {
|
|
360
|
-
readonly action: 'addCustomShippingMethod';
|
|
361
|
-
readonly shippingKey: string;
|
|
362
|
-
readonly shippingMethodName: string;
|
|
363
|
-
readonly shippingAddress: _BaseAddress;
|
|
364
|
-
readonly shippingRate: ShippingRateDraft;
|
|
365
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
366
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
367
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
368
|
-
readonly deliveries?: DeliveryDraft[];
|
|
369
|
-
readonly custom?: CustomFieldsDraft;
|
|
370
|
-
}
|
|
371
|
-
export interface CartAddDiscountCodeAction {
|
|
372
|
-
readonly action: 'addDiscountCode';
|
|
373
|
-
readonly code: string;
|
|
374
|
-
}
|
|
375
|
-
export interface CartAddItemShippingAddressAction {
|
|
376
|
-
readonly action: 'addItemShippingAddress';
|
|
377
|
-
readonly address: _BaseAddress;
|
|
378
|
-
}
|
|
379
|
-
export interface CartAddLineItemAction {
|
|
380
|
-
readonly action: 'addLineItem';
|
|
381
|
-
readonly productId?: string;
|
|
382
|
-
readonly variantId?: number;
|
|
383
|
-
readonly sku?: string;
|
|
384
|
-
readonly quantity?: number;
|
|
385
|
-
readonly addedAt?: string;
|
|
386
|
-
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
387
|
-
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
388
|
-
readonly externalPrice?: _Money;
|
|
389
|
-
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
390
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
391
|
-
readonly inventoryMode?: InventoryMode;
|
|
392
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
393
|
-
readonly custom?: CustomFieldsDraft;
|
|
394
|
-
}
|
|
395
|
-
export interface CartAddPaymentAction {
|
|
396
|
-
readonly action: 'addPayment';
|
|
397
|
-
readonly payment: PaymentResourceIdentifier;
|
|
398
|
-
}
|
|
399
|
-
export interface CartAddShippingMethodAction {
|
|
400
|
-
readonly action: 'addShippingMethod';
|
|
401
|
-
readonly shippingKey: string;
|
|
402
|
-
readonly shippingMethod: ShippingMethodResourceIdentifier;
|
|
403
|
-
readonly shippingAddress: _BaseAddress;
|
|
404
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
405
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
406
|
-
readonly deliveries?: DeliveryDraft[];
|
|
407
|
-
readonly custom?: CustomFieldsDraft;
|
|
408
|
-
}
|
|
409
|
-
export interface CartAddShoppingListAction {
|
|
410
|
-
readonly action: 'addShoppingList';
|
|
411
|
-
readonly shoppingList: ShoppingListResourceIdentifier;
|
|
412
|
-
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
413
|
-
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
414
|
-
}
|
|
415
|
-
export interface CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction {
|
|
416
|
-
readonly action: 'applyDeltaToCustomLineItemShippingDetailsTargets';
|
|
417
|
-
readonly customLineItemId: string;
|
|
418
|
-
readonly targetsDelta: ItemShippingTarget[];
|
|
419
|
-
}
|
|
420
|
-
export interface CartApplyDeltaToLineItemShippingDetailsTargetsAction {
|
|
421
|
-
readonly action: 'applyDeltaToLineItemShippingDetailsTargets';
|
|
422
|
-
readonly lineItemId: string;
|
|
423
|
-
readonly targetsDelta: ItemShippingTarget[];
|
|
424
|
-
}
|
|
425
|
-
export interface CartChangeCustomLineItemMoneyAction {
|
|
426
|
-
readonly action: 'changeCustomLineItemMoney';
|
|
427
|
-
readonly customLineItemId: string;
|
|
428
|
-
readonly money: _Money;
|
|
429
|
-
}
|
|
430
|
-
export interface CartChangeCustomLineItemPriceModeAction {
|
|
431
|
-
readonly action: 'changeCustomLineItemPriceMode';
|
|
432
|
-
readonly customLineItemId: string;
|
|
433
|
-
readonly mode: CustomLineItemPriceMode;
|
|
434
|
-
}
|
|
435
|
-
export interface CartChangeCustomLineItemQuantityAction {
|
|
436
|
-
readonly action: 'changeCustomLineItemQuantity';
|
|
437
|
-
readonly customLineItemId: string;
|
|
438
|
-
readonly quantity: number;
|
|
439
|
-
}
|
|
440
|
-
export interface CartChangeLineItemQuantityAction {
|
|
441
|
-
readonly action: 'changeLineItemQuantity';
|
|
442
|
-
readonly lineItemId: string;
|
|
443
|
-
readonly quantity: number;
|
|
444
|
-
readonly externalPrice?: _Money;
|
|
445
|
-
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
446
|
-
}
|
|
447
|
-
export interface CartChangeTaxCalculationModeAction {
|
|
448
|
-
readonly action: 'changeTaxCalculationMode';
|
|
449
|
-
readonly taxCalculationMode: TaxCalculationMode;
|
|
450
|
-
}
|
|
451
|
-
export interface CartChangeTaxModeAction {
|
|
452
|
-
readonly action: 'changeTaxMode';
|
|
453
|
-
readonly taxMode: TaxMode;
|
|
454
|
-
}
|
|
455
|
-
export interface CartChangeTaxRoundingModeAction {
|
|
456
|
-
readonly action: 'changeTaxRoundingMode';
|
|
457
|
-
readonly taxRoundingMode: RoundingMode;
|
|
458
|
-
}
|
|
459
|
-
export interface CartFreezeCartAction {
|
|
460
|
-
readonly action: 'freezeCart';
|
|
461
|
-
}
|
|
462
|
-
export interface CartRecalculateAction {
|
|
463
|
-
readonly action: 'recalculate';
|
|
464
|
-
readonly updateProductData?: boolean;
|
|
465
|
-
}
|
|
466
|
-
export interface CartRemoveCustomLineItemAction {
|
|
467
|
-
readonly action: 'removeCustomLineItem';
|
|
468
|
-
readonly customLineItemId: string;
|
|
469
|
-
}
|
|
470
|
-
export interface CartRemoveDiscountCodeAction {
|
|
471
|
-
readonly action: 'removeDiscountCode';
|
|
472
|
-
readonly discountCode: DiscountCodeReference;
|
|
473
|
-
}
|
|
474
|
-
export interface CartRemoveItemShippingAddressAction {
|
|
475
|
-
readonly action: 'removeItemShippingAddress';
|
|
476
|
-
readonly addressKey: string;
|
|
477
|
-
}
|
|
478
|
-
export interface CartRemoveLineItemAction {
|
|
479
|
-
readonly action: 'removeLineItem';
|
|
480
|
-
readonly lineItemId: string;
|
|
481
|
-
readonly quantity?: number;
|
|
482
|
-
readonly externalPrice?: _Money;
|
|
483
|
-
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
484
|
-
readonly shippingDetailsToRemove?: ItemShippingDetailsDraft;
|
|
485
|
-
}
|
|
486
|
-
export interface CartRemovePaymentAction {
|
|
487
|
-
readonly action: 'removePayment';
|
|
488
|
-
readonly payment: PaymentResourceIdentifier;
|
|
489
|
-
}
|
|
490
|
-
export interface CartRemoveShippingMethodAction {
|
|
491
|
-
readonly action: 'removeShippingMethod';
|
|
492
|
-
readonly shippingKey: string;
|
|
493
|
-
}
|
|
494
|
-
export interface CartSetAnonymousIdAction {
|
|
495
|
-
readonly action: 'setAnonymousId';
|
|
496
|
-
readonly anonymousId?: string;
|
|
497
|
-
}
|
|
498
|
-
export interface CartSetBillingAddressAction {
|
|
499
|
-
readonly action: 'setBillingAddress';
|
|
500
|
-
readonly address?: _BaseAddress;
|
|
501
|
-
}
|
|
502
|
-
export interface CartSetBillingAddressCustomFieldAction {
|
|
503
|
-
readonly action: 'setBillingAddressCustomField';
|
|
504
|
-
readonly name: string;
|
|
505
|
-
readonly value?: any;
|
|
506
|
-
}
|
|
507
|
-
export interface CartSetBillingAddressCustomTypeAction {
|
|
508
|
-
readonly action: 'setBillingAddressCustomType';
|
|
509
|
-
readonly type?: TypeResourceIdentifier;
|
|
510
|
-
readonly fields?: FieldContainer;
|
|
511
|
-
}
|
|
512
|
-
export interface CartSetBusinessUnitAction {
|
|
513
|
-
readonly action: 'setBusinessUnit';
|
|
514
|
-
readonly businessUnit: BusinessUnitResourceIdentifier;
|
|
515
|
-
}
|
|
516
|
-
export interface CartSetCartTotalTaxAction {
|
|
517
|
-
readonly action: 'setCartTotalTax';
|
|
518
|
-
readonly externalTotalGross: _Money;
|
|
519
|
-
readonly externalTaxPortions?: TaxPortionDraft[];
|
|
520
|
-
}
|
|
521
|
-
export interface CartSetCountryAction {
|
|
522
|
-
readonly action: 'setCountry';
|
|
523
|
-
readonly country?: string;
|
|
524
|
-
}
|
|
525
|
-
export interface CartSetCustomFieldAction {
|
|
526
|
-
readonly action: 'setCustomField';
|
|
527
|
-
readonly name: string;
|
|
528
|
-
readonly value?: any;
|
|
529
|
-
}
|
|
530
|
-
export interface CartSetCustomLineItemCustomFieldAction {
|
|
531
|
-
readonly action: 'setCustomLineItemCustomField';
|
|
532
|
-
readonly customLineItemId: string;
|
|
533
|
-
readonly name: string;
|
|
534
|
-
readonly value?: any;
|
|
535
|
-
}
|
|
536
|
-
export interface CartSetCustomLineItemCustomTypeAction {
|
|
537
|
-
readonly action: 'setCustomLineItemCustomType';
|
|
538
|
-
readonly customLineItemId: string;
|
|
539
|
-
readonly type?: TypeResourceIdentifier;
|
|
540
|
-
readonly fields?: FieldContainer;
|
|
541
|
-
}
|
|
542
|
-
export interface CartSetCustomLineItemShippingDetailsAction {
|
|
543
|
-
readonly action: 'setCustomLineItemShippingDetails';
|
|
544
|
-
readonly customLineItemId: string;
|
|
545
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
546
|
-
}
|
|
547
|
-
export interface CartSetCustomLineItemTaxAmountAction {
|
|
548
|
-
readonly action: 'setCustomLineItemTaxAmount';
|
|
549
|
-
readonly customLineItemId: string;
|
|
550
|
-
readonly externalTaxAmount?: ExternalTaxAmountDraft;
|
|
551
|
-
}
|
|
552
|
-
export interface CartSetCustomLineItemTaxRateAction {
|
|
553
|
-
readonly action: 'setCustomLineItemTaxRate';
|
|
554
|
-
readonly customLineItemId: string;
|
|
555
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
556
|
-
}
|
|
557
|
-
export interface CartSetCustomShippingMethodAction {
|
|
558
|
-
readonly action: 'setCustomShippingMethod';
|
|
559
|
-
readonly shippingMethodName: string;
|
|
560
|
-
readonly shippingRate: ShippingRateDraft;
|
|
561
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
562
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
563
|
-
}
|
|
564
|
-
export interface CartSetCustomTypeAction {
|
|
565
|
-
readonly action: 'setCustomType';
|
|
566
|
-
readonly type?: TypeResourceIdentifier;
|
|
567
|
-
readonly fields?: FieldContainer;
|
|
568
|
-
}
|
|
569
|
-
export interface CartSetCustomerEmailAction {
|
|
570
|
-
readonly action: 'setCustomerEmail';
|
|
571
|
-
readonly email?: string;
|
|
572
|
-
}
|
|
573
|
-
export interface CartSetCustomerGroupAction {
|
|
574
|
-
readonly action: 'setCustomerGroup';
|
|
575
|
-
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
576
|
-
}
|
|
577
|
-
export interface CartSetCustomerIdAction {
|
|
578
|
-
readonly action: 'setCustomerId';
|
|
579
|
-
readonly customerId?: string;
|
|
580
|
-
}
|
|
581
|
-
export interface CartSetDeleteDaysAfterLastModificationAction {
|
|
582
|
-
readonly action: 'setDeleteDaysAfterLastModification';
|
|
583
|
-
readonly deleteDaysAfterLastModification?: number;
|
|
584
|
-
}
|
|
585
|
-
export interface CartSetDeliveryAddressCustomFieldAction {
|
|
586
|
-
readonly action: 'setDeliveryAddressCustomField';
|
|
587
|
-
readonly deliveryId: string;
|
|
588
|
-
readonly name: string;
|
|
589
|
-
readonly value?: any;
|
|
590
|
-
}
|
|
591
|
-
export interface CartSetDeliveryAddressCustomTypeAction {
|
|
592
|
-
readonly action: 'setDeliveryAddressCustomType';
|
|
593
|
-
readonly deliveryId: string;
|
|
594
|
-
readonly type?: TypeResourceIdentifier;
|
|
595
|
-
readonly fields?: FieldContainer;
|
|
596
|
-
}
|
|
597
|
-
export interface CartSetDirectDiscountsAction {
|
|
598
|
-
readonly action: 'setDirectDiscounts';
|
|
599
|
-
readonly discounts: DirectDiscountDraft[];
|
|
600
|
-
}
|
|
601
|
-
export interface CartSetItemShippingAddressCustomFieldAction {
|
|
602
|
-
readonly action: 'setItemShippingAddressCustomField';
|
|
603
|
-
readonly addressKey: string;
|
|
604
|
-
readonly name: string;
|
|
605
|
-
readonly value?: any;
|
|
606
|
-
}
|
|
607
|
-
export interface CartSetItemShippingAddressCustomTypeAction {
|
|
608
|
-
readonly action: 'setItemShippingAddressCustomType';
|
|
609
|
-
readonly addressKey: string;
|
|
610
|
-
readonly type?: TypeResourceIdentifier;
|
|
611
|
-
readonly fields?: FieldContainer;
|
|
612
|
-
}
|
|
613
|
-
export interface CartSetKeyAction {
|
|
614
|
-
readonly action: 'setKey';
|
|
615
|
-
readonly key?: string;
|
|
616
|
-
}
|
|
617
|
-
export interface CartSetLineItemCustomFieldAction {
|
|
618
|
-
readonly action: 'setLineItemCustomField';
|
|
619
|
-
readonly lineItemId: string;
|
|
620
|
-
readonly name: string;
|
|
621
|
-
readonly value?: any;
|
|
622
|
-
}
|
|
623
|
-
export interface CartSetLineItemCustomTypeAction {
|
|
624
|
-
readonly action: 'setLineItemCustomType';
|
|
625
|
-
readonly lineItemId: string;
|
|
626
|
-
readonly type?: TypeResourceIdentifier;
|
|
627
|
-
readonly fields?: FieldContainer;
|
|
628
|
-
}
|
|
629
|
-
export interface CartSetLineItemDistributionChannelAction {
|
|
630
|
-
readonly action: 'setLineItemDistributionChannel';
|
|
631
|
-
readonly lineItemId: string;
|
|
632
|
-
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
633
|
-
}
|
|
634
|
-
export interface CartSetLineItemPriceAction {
|
|
635
|
-
readonly action: 'setLineItemPrice';
|
|
636
|
-
readonly lineItemId: string;
|
|
637
|
-
readonly externalPrice?: _Money;
|
|
638
|
-
}
|
|
639
|
-
export interface CartSetLineItemShippingDetailsAction {
|
|
640
|
-
readonly action: 'setLineItemShippingDetails';
|
|
641
|
-
readonly lineItemId: string;
|
|
642
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
643
|
-
}
|
|
644
|
-
export interface CartSetLineItemSupplyChannelAction {
|
|
645
|
-
readonly action: 'setLineItemSupplyChannel';
|
|
646
|
-
readonly lineItemId: string;
|
|
647
|
-
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
648
|
-
}
|
|
649
|
-
export interface CartSetLineItemTaxAmountAction {
|
|
650
|
-
readonly action: 'setLineItemTaxAmount';
|
|
651
|
-
readonly lineItemId: string;
|
|
652
|
-
readonly externalTaxAmount?: ExternalTaxAmountDraft;
|
|
653
|
-
readonly shippingKey?: string;
|
|
654
|
-
}
|
|
655
|
-
export interface CartSetLineItemTaxRateAction {
|
|
656
|
-
readonly action: 'setLineItemTaxRate';
|
|
657
|
-
readonly lineItemId: string;
|
|
658
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
659
|
-
readonly shippingKey?: string;
|
|
660
|
-
}
|
|
661
|
-
export interface CartSetLineItemTotalPriceAction {
|
|
662
|
-
readonly action: 'setLineItemTotalPrice';
|
|
663
|
-
readonly lineItemId: string;
|
|
664
|
-
readonly externalTotalPrice?: ExternalLineItemTotalPrice;
|
|
665
|
-
}
|
|
666
|
-
export interface CartSetLocaleAction {
|
|
667
|
-
readonly action: 'setLocale';
|
|
668
|
-
readonly locale?: string;
|
|
669
|
-
}
|
|
670
|
-
export interface CartSetShippingAddressAction {
|
|
671
|
-
readonly action: 'setShippingAddress';
|
|
672
|
-
readonly address?: _BaseAddress;
|
|
673
|
-
}
|
|
674
|
-
export interface CartSetShippingAddressAndShippingMethodAction {
|
|
675
|
-
readonly action: 'setShippingAddressAndShippingMethod';
|
|
676
|
-
readonly address?: _BaseAddress;
|
|
677
|
-
readonly shippingMethod?: ShippingMethodReference;
|
|
678
|
-
}
|
|
679
|
-
export interface CartSetShippingAddressAndCustomShippingMethodAction {
|
|
680
|
-
readonly action: 'setShippingAddressAndCustomShippingMethod';
|
|
681
|
-
readonly address?: _BaseAddress;
|
|
682
|
-
readonly shippingMethodName: string;
|
|
683
|
-
readonly shippingRate: ShippingRateDraft;
|
|
684
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
685
|
-
externalTaxRate?: ExternalTaxRateDraft;
|
|
686
|
-
}
|
|
687
|
-
export interface CartSetShippingAddressCustomFieldAction {
|
|
688
|
-
readonly action: 'setShippingAddressCustomField';
|
|
689
|
-
readonly name: string;
|
|
690
|
-
readonly value?: any;
|
|
691
|
-
}
|
|
692
|
-
export interface CartSetShippingAddressCustomTypeAction {
|
|
693
|
-
readonly action: 'setShippingAddressCustomType';
|
|
694
|
-
readonly type?: TypeResourceIdentifier;
|
|
695
|
-
readonly fields?: FieldContainer;
|
|
696
|
-
}
|
|
697
|
-
export interface CartSetShippingCustomFieldAction {
|
|
698
|
-
readonly action: 'setShippingCustomField';
|
|
699
|
-
readonly shippingKey?: string;
|
|
700
|
-
readonly name: string;
|
|
701
|
-
readonly value?: any;
|
|
702
|
-
}
|
|
703
|
-
export interface CartSetShippingCustomTypeAction {
|
|
704
|
-
readonly action: 'setShippingCustomType';
|
|
705
|
-
readonly shippingKey?: string;
|
|
706
|
-
readonly type?: TypeResourceIdentifier;
|
|
707
|
-
readonly fields?: FieldContainer;
|
|
708
|
-
}
|
|
709
|
-
export interface CartSetShippingMethodAction {
|
|
710
|
-
readonly action: 'setShippingMethod';
|
|
711
|
-
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
712
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
713
|
-
}
|
|
714
|
-
export interface CartSetShippingMethodTaxAmountAction {
|
|
715
|
-
readonly action: 'setShippingMethodTaxAmount';
|
|
716
|
-
readonly externalTaxAmount?: ExternalTaxAmountDraft;
|
|
717
|
-
}
|
|
718
|
-
export interface CartSetShippingMethodTaxRateAction {
|
|
719
|
-
readonly action: 'setShippingMethodTaxRate';
|
|
720
|
-
readonly externalTaxRate?: ExternalTaxRateDraft;
|
|
721
|
-
}
|
|
722
|
-
export interface CartSetShippingRateInputAction {
|
|
723
|
-
readonly action: 'setShippingRateInput';
|
|
724
|
-
readonly shippingRateInput?: ShippingRateInputDraft;
|
|
725
|
-
}
|
|
726
|
-
export interface CartUnfreezeCartAction {
|
|
727
|
-
readonly action: 'unfreezeCart';
|
|
728
|
-
}
|
|
729
|
-
export interface CartUpdateItemShippingAddressAction {
|
|
730
|
-
readonly action: 'updateItemShippingAddress';
|
|
731
|
-
readonly address: _BaseAddress;
|
|
732
|
-
}
|
|
733
|
-
export interface CustomLineItemImportDraft {
|
|
734
|
-
readonly name: LocalizedString;
|
|
735
|
-
readonly quantity: number;
|
|
736
|
-
readonly money: _Money;
|
|
737
|
-
readonly slug: string;
|
|
738
|
-
readonly state?: ItemState[];
|
|
739
|
-
readonly taxRate?: TaxRate;
|
|
740
|
-
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
741
|
-
readonly custom?: CustomFieldsDraft;
|
|
742
|
-
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
743
|
-
readonly priceMode: CustomLineItemPriceMode;
|
|
744
|
-
}
|
|
745
|
-
export type ProductPublishScope = 'All' | 'Prices' | string;
|