@gradientedge/commercetools-utils 5.27.2 → 5.28.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/types/models/approval-flow.d.ts +264 -0
- package/dist/cjs/types/models/approval-flow.d.ts.map +1 -0
- package/dist/cjs/types/models/approval-flow.js +8 -0
- package/dist/cjs/types/models/approval-flow.js.map +1 -0
- package/dist/cjs/types/models/approval-rule.d.ts +415 -0
- package/dist/cjs/types/models/approval-rule.d.ts.map +1 -0
- package/dist/cjs/types/models/approval-rule.js +8 -0
- package/dist/cjs/types/models/approval-rule.js.map +1 -0
- package/dist/cjs/types/models/associate-role.d.ts +319 -0
- package/dist/cjs/types/models/associate-role.d.ts.map +1 -0
- package/dist/cjs/types/models/associate-role.js +8 -0
- package/dist/cjs/types/models/associate-role.js.map +1 -0
- package/dist/cjs/types/models/attribute-group.d.ts +254 -0
- package/dist/cjs/types/models/attribute-group.d.ts.map +1 -0
- package/dist/cjs/types/models/attribute-group.js +8 -0
- package/dist/cjs/types/models/attribute-group.js.map +1 -0
- package/dist/cjs/types/models/business-unit.d.ts +1244 -0
- package/dist/cjs/types/models/business-unit.d.ts.map +1 -0
- package/dist/cjs/types/models/business-unit.js +8 -0
- package/dist/cjs/types/models/business-unit.js.map +1 -0
- package/dist/cjs/types/models/cart-discount.d.ts +848 -0
- package/dist/cjs/types/models/cart-discount.d.ts.map +1 -0
- package/dist/cjs/types/models/cart-discount.js +8 -0
- package/dist/cjs/types/models/cart-discount.js.map +1 -0
- package/dist/cjs/types/models/cart.d.ts +3593 -0
- package/dist/cjs/types/models/cart.d.ts.map +1 -0
- package/dist/cjs/types/models/cart.js +8 -0
- package/dist/cjs/types/models/cart.js.map +1 -0
- package/dist/cjs/types/models/category.d.ts +636 -0
- package/dist/cjs/types/models/category.d.ts.map +1 -0
- package/dist/cjs/types/models/category.js +8 -0
- package/dist/cjs/types/models/category.js.map +1 -0
- package/dist/cjs/types/models/channel.d.ts +380 -0
- package/dist/cjs/types/models/channel.d.ts.map +1 -0
- package/dist/cjs/types/models/channel.js +8 -0
- package/dist/cjs/types/models/channel.js.map +1 -0
- package/dist/cjs/types/models/common.d.ts +1163 -0
- package/dist/cjs/types/models/common.d.ts.map +1 -0
- package/dist/cjs/types/models/common.js +8 -0
- package/dist/cjs/types/models/common.js.map +1 -0
- package/dist/cjs/types/models/custom-object.d.ts +152 -0
- package/dist/cjs/types/models/custom-object.d.ts.map +1 -0
- package/dist/cjs/types/models/custom-object.js +8 -0
- package/dist/cjs/types/models/custom-object.js.map +1 -0
- package/dist/cjs/types/models/customer-group.d.ts +235 -0
- package/dist/cjs/types/models/customer-group.d.ts.map +1 -0
- package/dist/cjs/types/models/customer-group.js +8 -0
- package/dist/cjs/types/models/customer-group.js.map +1 -0
- package/dist/cjs/types/models/customer-search.d.ts +114 -0
- package/dist/cjs/types/models/customer-search.d.ts.map +1 -0
- package/dist/cjs/types/models/customer-search.js +8 -0
- package/dist/cjs/types/models/customer-search.js.map +1 -0
- package/dist/cjs/types/models/customer.d.ts +1270 -0
- package/dist/cjs/types/models/customer.d.ts.map +1 -0
- package/dist/cjs/types/models/customer.js +8 -0
- package/dist/cjs/types/models/customer.js.map +1 -0
- package/dist/cjs/types/models/discount-code.d.ts +473 -0
- package/dist/cjs/types/models/discount-code.d.ts.map +1 -0
- package/dist/cjs/types/models/discount-code.js +8 -0
- package/dist/cjs/types/models/discount-code.js.map +1 -0
- package/dist/cjs/types/models/error.d.ts +3330 -0
- package/dist/cjs/types/models/error.d.ts.map +1 -0
- package/dist/cjs/types/models/error.js +8 -0
- package/dist/cjs/types/models/error.js.map +1 -0
- package/dist/cjs/types/models/extension.d.ts +336 -0
- package/dist/cjs/types/models/extension.d.ts.map +1 -0
- package/dist/cjs/types/models/extension.js +8 -0
- package/dist/cjs/types/models/extension.js.map +1 -0
- package/dist/cjs/types/models/index.d.ts +48 -0
- package/dist/cjs/types/models/index.d.ts.map +1 -0
- package/dist/cjs/types/models/index.js +64 -0
- package/dist/cjs/types/models/index.js.map +1 -0
- package/dist/cjs/types/models/inventory.d.ts +330 -0
- package/dist/cjs/types/models/inventory.d.ts.map +1 -0
- package/dist/cjs/types/models/inventory.js +8 -0
- package/dist/cjs/types/models/inventory.js.map +1 -0
- package/dist/cjs/types/models/me.d.ts +2636 -0
- package/dist/cjs/types/models/me.d.ts.map +1 -0
- package/dist/cjs/types/models/me.js +8 -0
- package/dist/cjs/types/models/me.js.map +1 -0
- package/dist/cjs/types/models/message.d.ts +23707 -0
- package/dist/cjs/types/models/message.d.ts.map +1 -0
- package/dist/cjs/types/models/message.js +8 -0
- package/dist/cjs/types/models/message.js.map +1 -0
- package/dist/cjs/types/models/order-edit.d.ts +2725 -0
- package/dist/cjs/types/models/order-edit.d.ts.map +1 -0
- package/dist/cjs/types/models/order-edit.js +8 -0
- package/dist/cjs/types/models/order-edit.js.map +1 -0
- package/dist/cjs/types/models/order.d.ts +3187 -0
- package/dist/cjs/types/models/order.d.ts.map +1 -0
- package/dist/cjs/types/models/order.js +8 -0
- package/dist/cjs/types/models/order.js.map +1 -0
- package/dist/cjs/types/models/payment.d.ts +680 -0
- package/dist/cjs/types/models/payment.d.ts.map +1 -0
- package/dist/cjs/types/models/payment.js +8 -0
- package/dist/cjs/types/models/payment.js.map +1 -0
- package/dist/cjs/types/models/product-discount.d.ts +465 -0
- package/dist/cjs/types/models/product-discount.d.ts.map +1 -0
- package/dist/cjs/types/models/product-discount.js +8 -0
- package/dist/cjs/types/models/product-discount.js.map +1 -0
- package/dist/cjs/types/models/product-search.d.ts +437 -0
- package/dist/cjs/types/models/product-search.d.ts.map +1 -0
- package/dist/cjs/types/models/product-search.js +8 -0
- package/dist/cjs/types/models/product-search.js.map +1 -0
- package/dist/cjs/types/models/product-selection.d.ts +579 -0
- package/dist/cjs/types/models/product-selection.d.ts.map +1 -0
- package/dist/cjs/types/models/product-selection.js +8 -0
- package/dist/cjs/types/models/product-selection.js.map +1 -0
- package/dist/cjs/types/models/product-tailoring.d.ts +1368 -0
- package/dist/cjs/types/models/product-tailoring.d.ts.map +1 -0
- package/dist/cjs/types/models/product-tailoring.js +8 -0
- package/dist/cjs/types/models/product-tailoring.js.map +1 -0
- package/dist/cjs/types/models/product-type.d.ts +775 -0
- package/dist/cjs/types/models/product-type.d.ts.map +1 -0
- package/dist/cjs/types/models/product-type.js +8 -0
- package/dist/cjs/types/models/product-type.js.map +1 -0
- package/dist/cjs/types/models/product.d.ts +2314 -0
- package/dist/cjs/types/models/product.d.ts.map +1 -0
- package/dist/cjs/types/models/product.js +8 -0
- package/dist/cjs/types/models/product.js.map +1 -0
- package/dist/cjs/types/models/project.d.ts +418 -0
- package/dist/cjs/types/models/project.d.ts.map +1 -0
- package/dist/cjs/types/models/project.js +8 -0
- package/dist/cjs/types/models/project.js.map +1 -0
- package/dist/cjs/types/models/quote-request.d.ts +452 -0
- package/dist/cjs/types/models/quote-request.d.ts.map +1 -0
- package/dist/cjs/types/models/quote-request.js +8 -0
- package/dist/cjs/types/models/quote-request.js.map +1 -0
- package/dist/cjs/types/models/quote.d.ts +473 -0
- package/dist/cjs/types/models/quote.d.ts.map +1 -0
- package/dist/cjs/types/models/quote.js +8 -0
- package/dist/cjs/types/models/quote.js.map +1 -0
- package/dist/cjs/types/models/review.d.ts +435 -0
- package/dist/cjs/types/models/review.d.ts.map +1 -0
- package/dist/cjs/types/models/review.js +8 -0
- package/dist/cjs/types/models/review.js.map +1 -0
- package/dist/cjs/types/models/scalar-types.d.ts +10 -0
- package/dist/cjs/types/models/scalar-types.d.ts.map +1 -0
- package/dist/cjs/types/models/scalar-types.js +8 -0
- package/dist/cjs/types/models/scalar-types.js.map +1 -0
- package/dist/cjs/types/models/search.d.ts +334 -0
- package/dist/cjs/types/models/search.d.ts.map +1 -0
- package/dist/cjs/types/models/search.js +8 -0
- package/dist/cjs/types/models/search.js.map +1 -0
- package/dist/cjs/types/models/shipping-method.d.ts +595 -0
- package/dist/cjs/types/models/shipping-method.d.ts.map +1 -0
- package/dist/cjs/types/models/shipping-method.js +8 -0
- package/dist/cjs/types/models/shipping-method.js.map +1 -0
- package/dist/cjs/types/models/shopping-list.d.ts +941 -0
- package/dist/cjs/types/models/shopping-list.d.ts.map +1 -0
- package/dist/cjs/types/models/shopping-list.js +8 -0
- package/dist/cjs/types/models/shopping-list.js.map +1 -0
- package/dist/cjs/types/models/staged-quote.d.ts +345 -0
- package/dist/cjs/types/models/staged-quote.d.ts.map +1 -0
- package/dist/cjs/types/models/staged-quote.js +8 -0
- package/dist/cjs/types/models/staged-quote.js.map +1 -0
- package/dist/cjs/types/models/standalone-price.d.ts +546 -0
- package/dist/cjs/types/models/standalone-price.d.ts.map +1 -0
- package/dist/cjs/types/models/standalone-price.js +8 -0
- package/dist/cjs/types/models/standalone-price.js.map +1 -0
- package/dist/cjs/types/models/state.d.ts +342 -0
- package/dist/cjs/types/models/state.d.ts.map +1 -0
- package/dist/cjs/types/models/state.js +8 -0
- package/dist/cjs/types/models/state.js.map +1 -0
- package/dist/cjs/types/models/store-country.d.ts +14 -0
- package/dist/cjs/types/models/store-country.d.ts.map +1 -0
- package/dist/cjs/types/models/store-country.js +8 -0
- package/dist/cjs/types/models/store-country.js.map +1 -0
- package/dist/cjs/types/models/store.d.ts +548 -0
- package/dist/cjs/types/models/store.d.ts.map +1 -0
- package/dist/cjs/types/models/store.js +8 -0
- package/dist/cjs/types/models/store.js.map +1 -0
- package/dist/cjs/types/models/subscription.d.ts +772 -0
- package/dist/cjs/types/models/subscription.d.ts.map +1 -0
- package/dist/cjs/types/models/subscription.js +8 -0
- package/dist/cjs/types/models/subscription.js.map +1 -0
- package/dist/cjs/types/models/tax-category.d.ts +379 -0
- package/dist/cjs/types/models/tax-category.d.ts.map +1 -0
- package/dist/cjs/types/models/tax-category.js +8 -0
- package/dist/cjs/types/models/tax-category.js.map +1 -0
- package/dist/cjs/types/models/type.d.ts +646 -0
- package/dist/cjs/types/models/type.d.ts.map +1 -0
- package/dist/cjs/types/models/type.js +8 -0
- package/dist/cjs/types/models/type.js.map +1 -0
- package/dist/cjs/types/models/warning.d.ts +24 -0
- package/dist/cjs/types/models/warning.d.ts.map +1 -0
- package/dist/cjs/types/models/warning.js +8 -0
- package/dist/cjs/types/models/warning.js.map +1 -0
- package/dist/cjs/types/models/zone.d.ts +235 -0
- package/dist/cjs/types/models/zone.d.ts.map +1 -0
- package/dist/cjs/types/models/zone.js +8 -0
- package/dist/cjs/types/models/zone.js.map +1 -0
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/types.js +15 -0
- package/dist/cjs/types.js.map +1 -1
- package/dist/mjs/types/models/approval-flow.d.ts +264 -0
- package/dist/mjs/types/models/approval-flow.d.ts.map +1 -0
- package/dist/mjs/types/models/approval-flow.js +7 -0
- package/dist/mjs/types/models/approval-flow.js.map +1 -0
- package/dist/mjs/types/models/approval-rule.d.ts +415 -0
- package/dist/mjs/types/models/approval-rule.d.ts.map +1 -0
- package/dist/mjs/types/models/approval-rule.js +7 -0
- package/dist/mjs/types/models/approval-rule.js.map +1 -0
- package/dist/mjs/types/models/associate-role.d.ts +319 -0
- package/dist/mjs/types/models/associate-role.d.ts.map +1 -0
- package/dist/mjs/types/models/associate-role.js +7 -0
- package/dist/mjs/types/models/associate-role.js.map +1 -0
- package/dist/mjs/types/models/attribute-group.d.ts +254 -0
- package/dist/mjs/types/models/attribute-group.d.ts.map +1 -0
- package/dist/mjs/types/models/attribute-group.js +7 -0
- package/dist/mjs/types/models/attribute-group.js.map +1 -0
- package/dist/mjs/types/models/business-unit.d.ts +1244 -0
- package/dist/mjs/types/models/business-unit.d.ts.map +1 -0
- package/dist/mjs/types/models/business-unit.js +7 -0
- package/dist/mjs/types/models/business-unit.js.map +1 -0
- package/dist/mjs/types/models/cart-discount.d.ts +848 -0
- package/dist/mjs/types/models/cart-discount.d.ts.map +1 -0
- package/dist/mjs/types/models/cart-discount.js +7 -0
- package/dist/mjs/types/models/cart-discount.js.map +1 -0
- package/dist/mjs/types/models/cart.d.ts +3593 -0
- package/dist/mjs/types/models/cart.d.ts.map +1 -0
- package/dist/mjs/types/models/cart.js +7 -0
- package/dist/mjs/types/models/cart.js.map +1 -0
- package/dist/mjs/types/models/category.d.ts +636 -0
- package/dist/mjs/types/models/category.d.ts.map +1 -0
- package/dist/mjs/types/models/category.js +7 -0
- package/dist/mjs/types/models/category.js.map +1 -0
- package/dist/mjs/types/models/channel.d.ts +380 -0
- package/dist/mjs/types/models/channel.d.ts.map +1 -0
- package/dist/mjs/types/models/channel.js +7 -0
- package/dist/mjs/types/models/channel.js.map +1 -0
- package/dist/mjs/types/models/common.d.ts +1163 -0
- package/dist/mjs/types/models/common.d.ts.map +1 -0
- package/dist/mjs/types/models/common.js +7 -0
- package/dist/mjs/types/models/common.js.map +1 -0
- package/dist/mjs/types/models/custom-object.d.ts +152 -0
- package/dist/mjs/types/models/custom-object.d.ts.map +1 -0
- package/dist/mjs/types/models/custom-object.js +7 -0
- package/dist/mjs/types/models/custom-object.js.map +1 -0
- package/dist/mjs/types/models/customer-group.d.ts +235 -0
- package/dist/mjs/types/models/customer-group.d.ts.map +1 -0
- package/dist/mjs/types/models/customer-group.js +7 -0
- package/dist/mjs/types/models/customer-group.js.map +1 -0
- package/dist/mjs/types/models/customer-search.d.ts +114 -0
- package/dist/mjs/types/models/customer-search.d.ts.map +1 -0
- package/dist/mjs/types/models/customer-search.js +7 -0
- package/dist/mjs/types/models/customer-search.js.map +1 -0
- package/dist/mjs/types/models/customer.d.ts +1270 -0
- package/dist/mjs/types/models/customer.d.ts.map +1 -0
- package/dist/mjs/types/models/customer.js +7 -0
- package/dist/mjs/types/models/customer.js.map +1 -0
- package/dist/mjs/types/models/discount-code.d.ts +473 -0
- package/dist/mjs/types/models/discount-code.d.ts.map +1 -0
- package/dist/mjs/types/models/discount-code.js +7 -0
- package/dist/mjs/types/models/discount-code.js.map +1 -0
- package/dist/mjs/types/models/error.d.ts +3330 -0
- package/dist/mjs/types/models/error.d.ts.map +1 -0
- package/dist/mjs/types/models/error.js +7 -0
- package/dist/mjs/types/models/error.js.map +1 -0
- package/dist/mjs/types/models/extension.d.ts +336 -0
- package/dist/mjs/types/models/extension.d.ts.map +1 -0
- package/dist/mjs/types/models/extension.js +7 -0
- package/dist/mjs/types/models/extension.js.map +1 -0
- package/dist/mjs/types/models/index.d.ts +48 -0
- package/dist/mjs/types/models/index.d.ts.map +1 -0
- package/dist/mjs/types/models/index.js +48 -0
- package/dist/mjs/types/models/index.js.map +1 -0
- package/dist/mjs/types/models/inventory.d.ts +330 -0
- package/dist/mjs/types/models/inventory.d.ts.map +1 -0
- package/dist/mjs/types/models/inventory.js +7 -0
- package/dist/mjs/types/models/inventory.js.map +1 -0
- package/dist/mjs/types/models/me.d.ts +2636 -0
- package/dist/mjs/types/models/me.d.ts.map +1 -0
- package/dist/mjs/types/models/me.js +7 -0
- package/dist/mjs/types/models/me.js.map +1 -0
- package/dist/mjs/types/models/message.d.ts +23707 -0
- package/dist/mjs/types/models/message.d.ts.map +1 -0
- package/dist/mjs/types/models/message.js +7 -0
- package/dist/mjs/types/models/message.js.map +1 -0
- package/dist/mjs/types/models/order-edit.d.ts +2725 -0
- package/dist/mjs/types/models/order-edit.d.ts.map +1 -0
- package/dist/mjs/types/models/order-edit.js +7 -0
- package/dist/mjs/types/models/order-edit.js.map +1 -0
- package/dist/mjs/types/models/order.d.ts +3187 -0
- package/dist/mjs/types/models/order.d.ts.map +1 -0
- package/dist/mjs/types/models/order.js +7 -0
- package/dist/mjs/types/models/order.js.map +1 -0
- package/dist/mjs/types/models/payment.d.ts +680 -0
- package/dist/mjs/types/models/payment.d.ts.map +1 -0
- package/dist/mjs/types/models/payment.js +7 -0
- package/dist/mjs/types/models/payment.js.map +1 -0
- package/dist/mjs/types/models/product-discount.d.ts +465 -0
- package/dist/mjs/types/models/product-discount.d.ts.map +1 -0
- package/dist/mjs/types/models/product-discount.js +7 -0
- package/dist/mjs/types/models/product-discount.js.map +1 -0
- package/dist/mjs/types/models/product-search.d.ts +437 -0
- package/dist/mjs/types/models/product-search.d.ts.map +1 -0
- package/dist/mjs/types/models/product-search.js +7 -0
- package/dist/mjs/types/models/product-search.js.map +1 -0
- package/dist/mjs/types/models/product-selection.d.ts +579 -0
- package/dist/mjs/types/models/product-selection.d.ts.map +1 -0
- package/dist/mjs/types/models/product-selection.js +7 -0
- package/dist/mjs/types/models/product-selection.js.map +1 -0
- package/dist/mjs/types/models/product-tailoring.d.ts +1368 -0
- package/dist/mjs/types/models/product-tailoring.d.ts.map +1 -0
- package/dist/mjs/types/models/product-tailoring.js +7 -0
- package/dist/mjs/types/models/product-tailoring.js.map +1 -0
- package/dist/mjs/types/models/product-type.d.ts +775 -0
- package/dist/mjs/types/models/product-type.d.ts.map +1 -0
- package/dist/mjs/types/models/product-type.js +7 -0
- package/dist/mjs/types/models/product-type.js.map +1 -0
- package/dist/mjs/types/models/product.d.ts +2314 -0
- package/dist/mjs/types/models/product.d.ts.map +1 -0
- package/dist/mjs/types/models/product.js +7 -0
- package/dist/mjs/types/models/product.js.map +1 -0
- package/dist/mjs/types/models/project.d.ts +418 -0
- package/dist/mjs/types/models/project.d.ts.map +1 -0
- package/dist/mjs/types/models/project.js +7 -0
- package/dist/mjs/types/models/project.js.map +1 -0
- package/dist/mjs/types/models/quote-request.d.ts +452 -0
- package/dist/mjs/types/models/quote-request.d.ts.map +1 -0
- package/dist/mjs/types/models/quote-request.js +7 -0
- package/dist/mjs/types/models/quote-request.js.map +1 -0
- package/dist/mjs/types/models/quote.d.ts +473 -0
- package/dist/mjs/types/models/quote.d.ts.map +1 -0
- package/dist/mjs/types/models/quote.js +7 -0
- package/dist/mjs/types/models/quote.js.map +1 -0
- package/dist/mjs/types/models/review.d.ts +435 -0
- package/dist/mjs/types/models/review.d.ts.map +1 -0
- package/dist/mjs/types/models/review.js +7 -0
- package/dist/mjs/types/models/review.js.map +1 -0
- package/dist/mjs/types/models/scalar-types.d.ts +10 -0
- package/dist/mjs/types/models/scalar-types.d.ts.map +1 -0
- package/dist/mjs/types/models/scalar-types.js +7 -0
- package/dist/mjs/types/models/scalar-types.js.map +1 -0
- package/dist/mjs/types/models/search.d.ts +334 -0
- package/dist/mjs/types/models/search.d.ts.map +1 -0
- package/dist/mjs/types/models/search.js +7 -0
- package/dist/mjs/types/models/search.js.map +1 -0
- package/dist/mjs/types/models/shipping-method.d.ts +595 -0
- package/dist/mjs/types/models/shipping-method.d.ts.map +1 -0
- package/dist/mjs/types/models/shipping-method.js +7 -0
- package/dist/mjs/types/models/shipping-method.js.map +1 -0
- package/dist/mjs/types/models/shopping-list.d.ts +941 -0
- package/dist/mjs/types/models/shopping-list.d.ts.map +1 -0
- package/dist/mjs/types/models/shopping-list.js +7 -0
- package/dist/mjs/types/models/shopping-list.js.map +1 -0
- package/dist/mjs/types/models/staged-quote.d.ts +345 -0
- package/dist/mjs/types/models/staged-quote.d.ts.map +1 -0
- package/dist/mjs/types/models/staged-quote.js +7 -0
- package/dist/mjs/types/models/staged-quote.js.map +1 -0
- package/dist/mjs/types/models/standalone-price.d.ts +546 -0
- package/dist/mjs/types/models/standalone-price.d.ts.map +1 -0
- package/dist/mjs/types/models/standalone-price.js +7 -0
- package/dist/mjs/types/models/standalone-price.js.map +1 -0
- package/dist/mjs/types/models/state.d.ts +342 -0
- package/dist/mjs/types/models/state.d.ts.map +1 -0
- package/dist/mjs/types/models/state.js +7 -0
- package/dist/mjs/types/models/state.js.map +1 -0
- package/dist/mjs/types/models/store-country.d.ts +14 -0
- package/dist/mjs/types/models/store-country.d.ts.map +1 -0
- package/dist/mjs/types/models/store-country.js +7 -0
- package/dist/mjs/types/models/store-country.js.map +1 -0
- package/dist/mjs/types/models/store.d.ts +548 -0
- package/dist/mjs/types/models/store.d.ts.map +1 -0
- package/dist/mjs/types/models/store.js +7 -0
- package/dist/mjs/types/models/store.js.map +1 -0
- package/dist/mjs/types/models/subscription.d.ts +772 -0
- package/dist/mjs/types/models/subscription.d.ts.map +1 -0
- package/dist/mjs/types/models/subscription.js +7 -0
- package/dist/mjs/types/models/subscription.js.map +1 -0
- package/dist/mjs/types/models/tax-category.d.ts +379 -0
- package/dist/mjs/types/models/tax-category.d.ts.map +1 -0
- package/dist/mjs/types/models/tax-category.js +7 -0
- package/dist/mjs/types/models/tax-category.js.map +1 -0
- package/dist/mjs/types/models/type.d.ts +646 -0
- package/dist/mjs/types/models/type.d.ts.map +1 -0
- package/dist/mjs/types/models/type.js +7 -0
- package/dist/mjs/types/models/type.js.map +1 -0
- package/dist/mjs/types/models/warning.d.ts +24 -0
- package/dist/mjs/types/models/warning.d.ts.map +1 -0
- package/dist/mjs/types/models/warning.js +7 -0
- package/dist/mjs/types/models/warning.js.map +1 -0
- package/dist/mjs/types/models/zone.d.ts +235 -0
- package/dist/mjs/types/models/zone.d.ts.map +1 -0
- package/dist/mjs/types/models/zone.js +7 -0
- package/dist/mjs/types/models/zone.js.map +1 -0
- package/dist/mjs/types.d.ts +1 -1
- package/dist/mjs/types.d.ts.map +1 -1
- package/dist/mjs/types.js +1 -0
- package/dist/mjs/types.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,3187 @@
|
|
|
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 { BusinessUnitKeyReference, BusinessUnitResourceIdentifier } from './business-unit.js';
|
|
7
|
+
import { CartOrigin, CartReference, CartResourceIdentifier, CustomLineItem, CustomLineItemPriceMode, DirectDiscount, DiscountCodeInfo, DiscountedLineItemPortionDraft, DiscountOnTotalPrice, InventoryMode, ItemShippingDetailsDraft, LineItem, RoundingMode, Shipping, ShippingInfo, ShippingMethodState, ShippingMode, ShippingRateInput, TaxCalculationMode, TaxedPrice, TaxedPriceDraft, TaxMode } from './cart.js';
|
|
8
|
+
import { CartDiscountReference } from './cart-discount.js';
|
|
9
|
+
import { ChannelReference, ChannelResourceIdentifier } from './channel.js';
|
|
10
|
+
import { Address, AddressDraft, BaseAddress, BaseResource, CentPrecisionMoney, CreatedBy, Image, LastModifiedBy, LocalizedString, PriceDraft, _BaseAddress, _Money } from './common.js';
|
|
11
|
+
import { CustomerGroupReference, CustomerGroupResourceIdentifier } from './customer-group.js';
|
|
12
|
+
import { StagedOrder, StagedOrderAddCustomLineItemAction, StagedOrderAddDeliveryAction, StagedOrderAddDiscountCodeAction, StagedOrderAddItemShippingAddressAction, StagedOrderAddLineItemAction, StagedOrderAddParcelToDeliveryAction, StagedOrderAddPaymentAction, StagedOrderAddReturnInfoAction, StagedOrderAddShoppingListAction, StagedOrderChangeCustomLineItemMoneyAction, StagedOrderChangeCustomLineItemQuantityAction, StagedOrderChangeLineItemQuantityAction, StagedOrderChangeOrderStateAction, StagedOrderChangePaymentStateAction, StagedOrderChangeShipmentStateAction, StagedOrderChangeTaxCalculationModeAction, StagedOrderChangeTaxModeAction, StagedOrderChangeTaxRoundingModeAction, StagedOrderImportCustomLineItemStateAction, StagedOrderImportLineItemStateAction, StagedOrderRemoveCustomLineItemAction, StagedOrderRemoveDeliveryAction, StagedOrderRemoveDiscountCodeAction, StagedOrderRemoveItemShippingAddressAction, StagedOrderRemoveLineItemAction, StagedOrderRemoveParcelFromDeliveryAction, StagedOrderRemovePaymentAction, StagedOrderSetBillingAddressAction, StagedOrderSetBillingAddressCustomFieldAction, StagedOrderSetBillingAddressCustomTypeAction, StagedOrderSetCountryAction, StagedOrderSetCustomerEmailAction, StagedOrderSetCustomerGroupAction, StagedOrderSetCustomerIdAction, StagedOrderSetCustomFieldAction, StagedOrderSetCustomLineItemCustomFieldAction, StagedOrderSetCustomLineItemCustomTypeAction, StagedOrderSetCustomLineItemShippingDetailsAction, StagedOrderSetCustomLineItemTaxAmountAction, StagedOrderSetCustomLineItemTaxRateAction, StagedOrderSetCustomShippingMethodAction, StagedOrderSetCustomTypeAction, StagedOrderSetDeliveryAddressAction, StagedOrderSetDeliveryAddressCustomFieldAction, StagedOrderSetDeliveryAddressCustomTypeAction, StagedOrderSetDeliveryCustomFieldAction, StagedOrderSetDeliveryCustomTypeAction, StagedOrderSetDeliveryItemsAction, StagedOrderSetDirectDiscountsAction, StagedOrderSetItemShippingAddressCustomFieldAction, StagedOrderSetItemShippingAddressCustomTypeAction, StagedOrderSetLineItemCustomFieldAction, StagedOrderSetLineItemCustomTypeAction, StagedOrderSetLineItemDistributionChannelAction, StagedOrderSetLineItemPriceAction, StagedOrderSetLineItemShippingDetailsAction, StagedOrderSetLineItemTaxAmountAction, StagedOrderSetLineItemTaxRateAction, StagedOrderSetLineItemTotalPriceAction, StagedOrderSetLocaleAction, StagedOrderSetOrderNumberAction, StagedOrderSetOrderTotalTaxAction, StagedOrderSetParcelCustomFieldAction, StagedOrderSetParcelCustomTypeAction, StagedOrderSetParcelItemsAction, StagedOrderSetParcelMeasurementsAction, StagedOrderSetParcelTrackingDataAction, StagedOrderSetPurchaseOrderNumberAction, StagedOrderSetReturnInfoAction, StagedOrderSetReturnItemCustomFieldAction, StagedOrderSetReturnItemCustomTypeAction, StagedOrderSetReturnPaymentStateAction, StagedOrderSetReturnShipmentStateAction, StagedOrderSetShippingAddressAction, StagedOrderSetShippingAddressAndCustomShippingMethodAction, StagedOrderSetShippingAddressAndShippingMethodAction, StagedOrderSetShippingAddressCustomFieldAction, StagedOrderSetShippingAddressCustomTypeAction, StagedOrderSetShippingCustomFieldAction, StagedOrderSetShippingCustomTypeAction, StagedOrderSetShippingMethodAction, StagedOrderSetShippingMethodTaxAmountAction, StagedOrderSetShippingMethodTaxRateAction, StagedOrderSetShippingRateInputAction, StagedOrderSetStoreAction, StagedOrderTransitionCustomLineItemStateAction, StagedOrderTransitionLineItemStateAction, StagedOrderTransitionStateAction, StagedOrderUpdateItemShippingAddressAction, StagedOrderUpdateSyncInfoAction } from './order-edit.js';
|
|
13
|
+
import { PaymentReference, PaymentResourceIdentifier } from './payment.js';
|
|
14
|
+
import { Attribute } from './product.js';
|
|
15
|
+
import { QuoteReference, QuoteResourceIdentifier } from './quote.js';
|
|
16
|
+
import { ShippingMethodResourceIdentifier, ShippingRateDraft } from './shipping-method.js';
|
|
17
|
+
import { StateReference, StateResourceIdentifier } from './state.js';
|
|
18
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
|
|
19
|
+
import { TaxCategoryResourceIdentifier, TaxRate } from './tax-category.js';
|
|
20
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
21
|
+
export type StagedOrderUpdateAction = StagedOrderAddCustomLineItemAction | StagedOrderAddDeliveryAction | StagedOrderAddDiscountCodeAction | StagedOrderAddItemShippingAddressAction | StagedOrderAddLineItemAction | StagedOrderAddParcelToDeliveryAction | StagedOrderAddPaymentAction | StagedOrderAddReturnInfoAction | StagedOrderAddShoppingListAction | StagedOrderChangeCustomLineItemMoneyAction | StagedOrderChangeCustomLineItemQuantityAction | StagedOrderChangeLineItemQuantityAction | StagedOrderChangeOrderStateAction | StagedOrderChangePaymentStateAction | StagedOrderChangeShipmentStateAction | StagedOrderChangeTaxCalculationModeAction | StagedOrderChangeTaxModeAction | StagedOrderChangeTaxRoundingModeAction | StagedOrderImportCustomLineItemStateAction | StagedOrderImportLineItemStateAction | StagedOrderRemoveCustomLineItemAction | StagedOrderRemoveDeliveryAction | StagedOrderRemoveDiscountCodeAction | StagedOrderRemoveItemShippingAddressAction | StagedOrderRemoveLineItemAction | StagedOrderRemoveParcelFromDeliveryAction | StagedOrderRemovePaymentAction | StagedOrderSetBillingAddressAction | StagedOrderSetBillingAddressCustomFieldAction | StagedOrderSetBillingAddressCustomTypeAction | StagedOrderSetCountryAction | StagedOrderSetCustomFieldAction | StagedOrderSetCustomLineItemCustomFieldAction | StagedOrderSetCustomLineItemCustomTypeAction | StagedOrderSetCustomLineItemShippingDetailsAction | StagedOrderSetCustomLineItemTaxAmountAction | StagedOrderSetCustomLineItemTaxRateAction | StagedOrderSetCustomShippingMethodAction | StagedOrderSetCustomTypeAction | StagedOrderSetCustomerEmailAction | StagedOrderSetCustomerGroupAction | StagedOrderSetCustomerIdAction | StagedOrderSetDeliveryAddressAction | StagedOrderSetDeliveryAddressCustomFieldAction | StagedOrderSetDeliveryAddressCustomTypeAction | StagedOrderSetDeliveryCustomFieldAction | StagedOrderSetDeliveryCustomTypeAction | StagedOrderSetDeliveryItemsAction | StagedOrderSetDirectDiscountsAction | StagedOrderSetItemShippingAddressCustomFieldAction | StagedOrderSetItemShippingAddressCustomTypeAction | StagedOrderSetLineItemCustomFieldAction | StagedOrderSetLineItemCustomTypeAction | StagedOrderSetLineItemDistributionChannelAction | StagedOrderSetLineItemPriceAction | StagedOrderSetLineItemShippingDetailsAction | StagedOrderSetLineItemTaxAmountAction | StagedOrderSetLineItemTaxRateAction | StagedOrderSetLineItemTotalPriceAction | StagedOrderSetLocaleAction | StagedOrderSetOrderNumberAction | StagedOrderSetOrderTotalTaxAction | StagedOrderSetParcelCustomFieldAction | StagedOrderSetParcelCustomTypeAction | StagedOrderSetParcelItemsAction | StagedOrderSetParcelMeasurementsAction | StagedOrderSetParcelTrackingDataAction | StagedOrderSetPurchaseOrderNumberAction | StagedOrderSetReturnInfoAction | StagedOrderSetReturnItemCustomFieldAction | StagedOrderSetReturnItemCustomTypeAction | StagedOrderSetReturnPaymentStateAction | StagedOrderSetReturnShipmentStateAction | StagedOrderSetShippingAddressAction | StagedOrderSetShippingAddressAndCustomShippingMethodAction | StagedOrderSetShippingAddressAndShippingMethodAction | StagedOrderSetShippingAddressCustomFieldAction | StagedOrderSetShippingAddressCustomTypeAction | StagedOrderSetShippingCustomFieldAction | StagedOrderSetShippingCustomTypeAction | StagedOrderSetShippingMethodAction | StagedOrderSetShippingMethodTaxAmountAction | StagedOrderSetShippingMethodTaxRateAction | StagedOrderSetShippingRateInputAction | StagedOrderSetStoreAction | StagedOrderTransitionCustomLineItemStateAction | StagedOrderTransitionLineItemStateAction | StagedOrderTransitionStateAction | StagedOrderUpdateItemShippingAddressAction | StagedOrderUpdateSyncInfoAction;
|
|
22
|
+
export interface Hit {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the Order.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
readonly id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Current version of the Order.
|
|
30
|
+
*
|
|
31
|
+
*/
|
|
32
|
+
readonly version: number;
|
|
33
|
+
/**
|
|
34
|
+
* The higher the value is, the more relevant the hit is for the search request.
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
readonly relevance?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface OrderPagedSearchResponse {
|
|
40
|
+
/**
|
|
41
|
+
* Total number of results matching the query.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
readonly total: number;
|
|
45
|
+
/**
|
|
46
|
+
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
47
|
+
*
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
readonly offset?: number;
|
|
51
|
+
/**
|
|
52
|
+
* Number of [results requested](/../api/general-concepts#limit).
|
|
53
|
+
*
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
56
|
+
readonly limit?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Actual results.
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
readonly hits: Hit[];
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Possible values for the `customType` property on [query expressions](/../api/projects/order-search#query-expressions) indicating the data type of the `field`.
|
|
65
|
+
*/
|
|
66
|
+
export type OrderSearchCustomType = 'BooleanType' | 'DateTimeType' | 'DateType' | 'EnumType' | 'LocalizedEnumType' | 'LocalizedStringType' | 'NumberType' | 'SetType.DateTimeType' | 'SetType.DateType' | 'SetType.EnumType' | 'SetType.LocalizedEnumType' | 'SetType.LocalizedStringType' | 'SetType.NumberType' | 'SetType.StringType' | 'SetType.TimeType' | 'StringType' | 'TimeType' | string;
|
|
67
|
+
export type OrderSearchMatchType = 'all' | 'any' | string;
|
|
68
|
+
export interface OrderSearchQueryExpressionValue {
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
*/
|
|
72
|
+
readonly field: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
readonly boost?: number;
|
|
77
|
+
/**
|
|
78
|
+
* Possible values for the `customType` property on [query expressions](/../api/projects/order-search#query-expressions) indicating the data type of the `field`.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
readonly customType?: OrderSearchCustomType;
|
|
82
|
+
}
|
|
83
|
+
export type _OrderSearchQueryExpressionValue = OrderSearchQueryExpressionValue | OrderSearchAnyValue | OrderSearchDateRangeValue | OrderSearchFullTextValue | OrderSearchLongRangeValue | OrderSearchNumberRangeValue | OrderSearchStringValue;
|
|
84
|
+
export interface OrderSearchAnyValue extends OrderSearchQueryExpressionValue {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
*/
|
|
88
|
+
readonly value: any;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
readonly language?: string;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
readonly caseInsensitive?: boolean;
|
|
97
|
+
}
|
|
98
|
+
export interface OrderSearchDateRangeValue extends OrderSearchQueryExpressionValue {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
*/
|
|
102
|
+
readonly gte?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
readonly lte?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface OrderSearchFullTextValue extends OrderSearchQueryExpressionValue {
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
readonly value: string;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
*/
|
|
116
|
+
readonly language?: string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
*/
|
|
120
|
+
readonly mustMatch?: OrderSearchMatchType;
|
|
121
|
+
}
|
|
122
|
+
export interface OrderSearchLongRangeValue extends OrderSearchQueryExpressionValue {
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
*/
|
|
126
|
+
readonly gte?: number;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
readonly lte?: number;
|
|
131
|
+
}
|
|
132
|
+
export interface OrderSearchNumberRangeValue extends OrderSearchQueryExpressionValue {
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
136
|
+
readonly gte?: number;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
*/
|
|
140
|
+
readonly lte?: number;
|
|
141
|
+
}
|
|
142
|
+
export type OrderSearchSortMode = 'avg' | 'max' | 'min' | 'sum' | string;
|
|
143
|
+
export type OrderSearchSortOrder = 'asc' | 'desc' | string;
|
|
144
|
+
export interface OrderSearchStringValue extends OrderSearchQueryExpressionValue {
|
|
145
|
+
/**
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
readonly value: string;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
readonly language?: string;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
readonly caseInsensitive?: boolean;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Custom Line Items contain generic user-defined items that are not linked to Products.
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
export interface CustomLineItemImportDraft {
|
|
163
|
+
/**
|
|
164
|
+
* Name of the Custom Line Item.
|
|
165
|
+
*
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
readonly name: LocalizedString;
|
|
169
|
+
/**
|
|
170
|
+
* User-defined unique identifier of the Custom Line Item.
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
readonly key?: string;
|
|
174
|
+
/**
|
|
175
|
+
* User-defined identifier used in a deep-link URL for the Custom Line Item. This value should match the pattern `[a-zA-Z0-9_-]{2,256}`.
|
|
176
|
+
*
|
|
177
|
+
*
|
|
178
|
+
*/
|
|
179
|
+
readonly slug: string;
|
|
180
|
+
/**
|
|
181
|
+
* The number of items in the Custom Line Item. Can be a negative value.
|
|
182
|
+
*
|
|
183
|
+
*
|
|
184
|
+
*/
|
|
185
|
+
readonly quantity: number;
|
|
186
|
+
/**
|
|
187
|
+
* The cost of individual items in the Custom Line Item. The amount can be negative.
|
|
188
|
+
*
|
|
189
|
+
*/
|
|
190
|
+
readonly money: _Money;
|
|
191
|
+
/**
|
|
192
|
+
* The tax rate used to calculate the `taxedPrice` of the Order.
|
|
193
|
+
*
|
|
194
|
+
*
|
|
195
|
+
*/
|
|
196
|
+
readonly taxRate?: TaxRate;
|
|
197
|
+
/**
|
|
198
|
+
* Include a value to associate a Tax Category with the Custom Line Item.
|
|
199
|
+
*
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
203
|
+
/**
|
|
204
|
+
* - If `Standard`, Cart Discounts with a matching [CartDiscountCustomLineItemsTarget](ctp:api:type:CartDiscountCustomLineItemsTarget)
|
|
205
|
+
* are applied to the Custom Line Item.
|
|
206
|
+
* - If `External`, Cart Discounts are not considered on the Custom Line Item.
|
|
207
|
+
*
|
|
208
|
+
*
|
|
209
|
+
*/
|
|
210
|
+
readonly priceMode?: CustomLineItemPriceMode;
|
|
211
|
+
/**
|
|
212
|
+
* Container for Custom Line Item-specific addresses.
|
|
213
|
+
*
|
|
214
|
+
*
|
|
215
|
+
*/
|
|
216
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
217
|
+
/**
|
|
218
|
+
* State of the Custom Line Items.
|
|
219
|
+
*
|
|
220
|
+
*
|
|
221
|
+
*/
|
|
222
|
+
readonly state?: ItemState[];
|
|
223
|
+
/**
|
|
224
|
+
* Custom Fields of the CustomLineItem.
|
|
225
|
+
*
|
|
226
|
+
*
|
|
227
|
+
*/
|
|
228
|
+
readonly custom?: CustomFieldsDraft;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Contains information on how items are shipped to Customers, for example, a delivery note.
|
|
232
|
+
*
|
|
233
|
+
*/
|
|
234
|
+
export interface Delivery {
|
|
235
|
+
/**
|
|
236
|
+
* Unique identifier of the Delivery.
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
readonly id: string;
|
|
240
|
+
/**
|
|
241
|
+
* User-defined unique identifier of the Delivery.
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
readonly key?: string;
|
|
245
|
+
/**
|
|
246
|
+
* Date and time (UTC) the Delivery was created.
|
|
247
|
+
*
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
readonly createdAt: string;
|
|
251
|
+
/**
|
|
252
|
+
* Line Items or Custom Line Items that are delivered.
|
|
253
|
+
*
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
readonly items: DeliveryItem[];
|
|
257
|
+
/**
|
|
258
|
+
* Information regarding the appearance, content, and shipment of a Parcel.
|
|
259
|
+
*
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
readonly parcels: Parcel[];
|
|
263
|
+
/**
|
|
264
|
+
* Address to which Parcels are delivered.
|
|
265
|
+
*
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
268
|
+
readonly address?: Address;
|
|
269
|
+
/**
|
|
270
|
+
* Custom Fields of the Delivery.
|
|
271
|
+
*
|
|
272
|
+
*
|
|
273
|
+
*/
|
|
274
|
+
readonly custom?: CustomFields;
|
|
275
|
+
}
|
|
276
|
+
export interface DeliveryDraft {
|
|
277
|
+
/**
|
|
278
|
+
* User-defined unique identifier of the Delivery.
|
|
279
|
+
*
|
|
280
|
+
*/
|
|
281
|
+
readonly key?: string;
|
|
282
|
+
/**
|
|
283
|
+
* Line Items or Custom Line Items to deliver.
|
|
284
|
+
* It can also be specified individually for each [Parcel](ctp:api:type:Parcel).
|
|
285
|
+
*
|
|
286
|
+
*
|
|
287
|
+
*/
|
|
288
|
+
readonly items?: DeliveryItem[];
|
|
289
|
+
/**
|
|
290
|
+
* Information regarding the appearance, content, and shipment of a parcel.
|
|
291
|
+
*
|
|
292
|
+
*
|
|
293
|
+
*/
|
|
294
|
+
readonly parcels?: ParcelDraft[];
|
|
295
|
+
/**
|
|
296
|
+
* Address to which the Parcels are delivered.
|
|
297
|
+
*
|
|
298
|
+
*
|
|
299
|
+
*/
|
|
300
|
+
readonly address?: AddressDraft;
|
|
301
|
+
/**
|
|
302
|
+
* Custom Fields for the Delivery.
|
|
303
|
+
*
|
|
304
|
+
*
|
|
305
|
+
*/
|
|
306
|
+
readonly custom?: CustomFieldsDraft;
|
|
307
|
+
}
|
|
308
|
+
export interface DeliveryItem {
|
|
309
|
+
/**
|
|
310
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) or [CustomLineItem](ctp:api:type:CustomLineItem) delivered.
|
|
311
|
+
*
|
|
312
|
+
*
|
|
313
|
+
*/
|
|
314
|
+
readonly id: string;
|
|
315
|
+
/**
|
|
316
|
+
* Number of Line Items or Custom Line Items delivered.
|
|
317
|
+
*
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
readonly quantity: number;
|
|
321
|
+
}
|
|
322
|
+
export interface DiscountedLineItemPriceDraft {
|
|
323
|
+
/**
|
|
324
|
+
* Discounted money value.
|
|
325
|
+
*
|
|
326
|
+
*
|
|
327
|
+
*/
|
|
328
|
+
readonly value: _Money;
|
|
329
|
+
/**
|
|
330
|
+
* Discounts to be applied.
|
|
331
|
+
*
|
|
332
|
+
*
|
|
333
|
+
*/
|
|
334
|
+
readonly includedDiscounts: DiscountedLineItemPortionDraft[];
|
|
335
|
+
}
|
|
336
|
+
export interface ItemState {
|
|
337
|
+
/**
|
|
338
|
+
* Number of Line Items or Custom Line Items in this State.
|
|
339
|
+
*
|
|
340
|
+
*
|
|
341
|
+
*/
|
|
342
|
+
readonly quantity: number;
|
|
343
|
+
/**
|
|
344
|
+
* State of the Line Items or Custom Line Items in a custom workflow.
|
|
345
|
+
*
|
|
346
|
+
*
|
|
347
|
+
*/
|
|
348
|
+
readonly state: StateReference;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Represents a snapshot of a Product Variant at the time it was imported with the Order. The Product Variant can be specified by providing a `productId` and `variant.id`, or by providing a `variant.sku`.
|
|
352
|
+
*
|
|
353
|
+
*/
|
|
354
|
+
export interface LineItemImportDraft {
|
|
355
|
+
/**
|
|
356
|
+
* Name of the Line Item.
|
|
357
|
+
*
|
|
358
|
+
*
|
|
359
|
+
*/
|
|
360
|
+
readonly name: LocalizedString;
|
|
361
|
+
/**
|
|
362
|
+
* User-defined unique identifier of the Line Item.
|
|
363
|
+
*
|
|
364
|
+
*/
|
|
365
|
+
readonly key?: string;
|
|
366
|
+
/**
|
|
367
|
+
* The Product Variant to use as a [Line Item](ctp:api:type:LineItem).
|
|
368
|
+
*
|
|
369
|
+
*/
|
|
370
|
+
readonly variant: ProductVariantImportDraft;
|
|
371
|
+
/**
|
|
372
|
+
* `id` of the [Product](ctp:api:type:Product) the Product Variant belongs to.
|
|
373
|
+
*
|
|
374
|
+
* If provided, you must also set `variant.id`.
|
|
375
|
+
*
|
|
376
|
+
*/
|
|
377
|
+
readonly productId?: string;
|
|
378
|
+
/**
|
|
379
|
+
* The number of Product Variants in the LineItem. Can be a negative value.
|
|
380
|
+
*
|
|
381
|
+
*
|
|
382
|
+
*/
|
|
383
|
+
readonly quantity: number;
|
|
384
|
+
/**
|
|
385
|
+
* The Line Item price for `quantity` = `1`. The amount can be negative.
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
388
|
+
readonly price: PriceDraft;
|
|
389
|
+
/**
|
|
390
|
+
* The tax rate used to calculate the `taxedPrice` of the Order.
|
|
391
|
+
*
|
|
392
|
+
*/
|
|
393
|
+
readonly taxRate?: TaxRate;
|
|
394
|
+
/**
|
|
395
|
+
* The Channel used to [select a Price](/../api/pricing-and-discounts-overview#line-item-price-selection).
|
|
396
|
+
* This Channel must have the `ProductDistribution` role.
|
|
397
|
+
*
|
|
398
|
+
*/
|
|
399
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
400
|
+
/**
|
|
401
|
+
* The Channel used to supply Line Items.
|
|
402
|
+
* By providing supply Channel information, you can uniquely identify [Inventory entries](ctp:api:type:InventoryEntry) that should be reserved.
|
|
403
|
+
* This Channel must have the `InventorySupply` role.
|
|
404
|
+
*
|
|
405
|
+
*/
|
|
406
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
407
|
+
/**
|
|
408
|
+
* Inventory mode specific to the LineItem, valid for the entire `quantity` of the LineItem.
|
|
409
|
+
* Set only if Inventory mode should be different from the `inventoryMode` specified on the [OrderImportDraft](ctp:api:type:OrderImportDraft).
|
|
410
|
+
*
|
|
411
|
+
*/
|
|
412
|
+
readonly inventoryMode?: InventoryMode;
|
|
413
|
+
/**
|
|
414
|
+
* Container for Line Item-specific addresses.
|
|
415
|
+
*
|
|
416
|
+
*
|
|
417
|
+
*/
|
|
418
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
419
|
+
/**
|
|
420
|
+
* States of the Line Item.
|
|
421
|
+
*
|
|
422
|
+
*/
|
|
423
|
+
readonly state?: ItemState[];
|
|
424
|
+
/**
|
|
425
|
+
* Custom Fields of the LineItem.
|
|
426
|
+
*
|
|
427
|
+
*
|
|
428
|
+
*/
|
|
429
|
+
readonly custom?: CustomFieldsDraft;
|
|
430
|
+
}
|
|
431
|
+
export interface Order extends BaseResource {
|
|
432
|
+
/**
|
|
433
|
+
* Unique identifier of the Order.
|
|
434
|
+
*
|
|
435
|
+
*
|
|
436
|
+
*/
|
|
437
|
+
readonly id: string;
|
|
438
|
+
/**
|
|
439
|
+
* Current version of the Order.
|
|
440
|
+
*
|
|
441
|
+
*
|
|
442
|
+
*/
|
|
443
|
+
readonly version: number;
|
|
444
|
+
/**
|
|
445
|
+
* User-defined identifier of the Order that is unique across a Project.
|
|
446
|
+
*
|
|
447
|
+
*
|
|
448
|
+
*/
|
|
449
|
+
readonly orderNumber?: string;
|
|
450
|
+
/**
|
|
451
|
+
* User-defined identifier of a purchase Order.
|
|
452
|
+
*
|
|
453
|
+
* It is typically set by the [Buyer](ctp:api:type:Buyer) and can be used with [Quotes](/quotes-overview) to track the purchase Order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
|
|
454
|
+
*
|
|
455
|
+
*/
|
|
456
|
+
readonly purchaseOrderNumber?: string;
|
|
457
|
+
/**
|
|
458
|
+
* `id` of the [Customer](ctp:api:type:Customer) that the Order belongs to.
|
|
459
|
+
*
|
|
460
|
+
*
|
|
461
|
+
*/
|
|
462
|
+
readonly customerId?: string;
|
|
463
|
+
/**
|
|
464
|
+
* Email address of the Customer that the Order belongs to.
|
|
465
|
+
*
|
|
466
|
+
*
|
|
467
|
+
*/
|
|
468
|
+
readonly customerEmail?: string;
|
|
469
|
+
/**
|
|
470
|
+
* [Reference](ctp:api:type:Reference) to the Customer Group of the Customer that the Order belongs to.
|
|
471
|
+
* Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
|
|
472
|
+
*
|
|
473
|
+
*/
|
|
474
|
+
readonly customerGroup?: CustomerGroupReference;
|
|
475
|
+
/**
|
|
476
|
+
* [Anonymous session](ctp:api:type:AnonymousSession) associated with the Order.
|
|
477
|
+
*
|
|
478
|
+
*
|
|
479
|
+
*/
|
|
480
|
+
readonly anonymousId?: string;
|
|
481
|
+
/**
|
|
482
|
+
* [Reference](ctp:api:type:Reference) to a Business Unit the Order belongs to.
|
|
483
|
+
*
|
|
484
|
+
*
|
|
485
|
+
*/
|
|
486
|
+
readonly businessUnit?: BusinessUnitKeyReference;
|
|
487
|
+
/**
|
|
488
|
+
* [Reference](ctp:api:type:Reference) to a Store the Order belongs to.
|
|
489
|
+
*
|
|
490
|
+
*
|
|
491
|
+
*/
|
|
492
|
+
readonly store?: StoreKeyReference;
|
|
493
|
+
/**
|
|
494
|
+
* [Line Items](ctp:api:type:LineItems) that are part of the Order.
|
|
495
|
+
*
|
|
496
|
+
*
|
|
497
|
+
*/
|
|
498
|
+
readonly lineItems: LineItem[];
|
|
499
|
+
/**
|
|
500
|
+
* [Custom Line Items](ctp:api:type:CustomLineItems) that are part of the Order.
|
|
501
|
+
*
|
|
502
|
+
*
|
|
503
|
+
*/
|
|
504
|
+
readonly customLineItems: CustomLineItem[];
|
|
505
|
+
/**
|
|
506
|
+
* Sum of the `totalPrice` field of all [LineItems](ctp:api:type:LineItem) and [CustomLineItems](ctp:api:type:CustomLineItem), and if available, the `price` field of [ShippingInfo](ctp:api:type:ShippingInfo).
|
|
507
|
+
* If a discount applies on `totalPrice`, this field holds the discounted value.
|
|
508
|
+
*
|
|
509
|
+
* Taxes are included if [TaxRate](ctp:api:type:TaxRate) `includedInPrice` is `true` for each price.
|
|
510
|
+
*
|
|
511
|
+
*
|
|
512
|
+
*/
|
|
513
|
+
readonly totalPrice: CentPrecisionMoney;
|
|
514
|
+
/**
|
|
515
|
+
* - For `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:OrderSetShippingAddressAction).
|
|
516
|
+
* - For `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when `shippingAddress` and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set.
|
|
517
|
+
*
|
|
518
|
+
* If a discount applies on `totalPrice`, this field holds the discounted values.
|
|
519
|
+
*
|
|
520
|
+
*
|
|
521
|
+
*/
|
|
522
|
+
readonly taxedPrice?: TaxedPrice;
|
|
523
|
+
/**
|
|
524
|
+
* Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods.
|
|
525
|
+
*
|
|
526
|
+
*
|
|
527
|
+
*/
|
|
528
|
+
readonly taxedShippingPrice?: TaxedPrice;
|
|
529
|
+
/**
|
|
530
|
+
* Discounts that apply on the total price of the Order.
|
|
531
|
+
*
|
|
532
|
+
*/
|
|
533
|
+
readonly discountOnTotalPrice?: DiscountOnTotalPrice;
|
|
534
|
+
/**
|
|
535
|
+
* Indicates how Tax Rates are set.
|
|
536
|
+
*
|
|
537
|
+
*
|
|
538
|
+
*/
|
|
539
|
+
readonly taxMode?: TaxMode;
|
|
540
|
+
/**
|
|
541
|
+
* Indicates how monetary values are rounded when calculating taxes for `taxedPrice`.
|
|
542
|
+
*
|
|
543
|
+
*/
|
|
544
|
+
readonly taxRoundingMode?: RoundingMode;
|
|
545
|
+
/**
|
|
546
|
+
* Indicates how taxes are calculated when calculating taxes for `taxedPrice`.
|
|
547
|
+
*
|
|
548
|
+
*
|
|
549
|
+
*/
|
|
550
|
+
readonly taxCalculationMode?: TaxCalculationMode;
|
|
551
|
+
/**
|
|
552
|
+
* Indicates how stock quantities are tracked for Line Items in the Order.
|
|
553
|
+
*
|
|
554
|
+
*
|
|
555
|
+
*/
|
|
556
|
+
readonly inventoryMode?: InventoryMode;
|
|
557
|
+
/**
|
|
558
|
+
* Billing address associated with the Order.
|
|
559
|
+
*
|
|
560
|
+
*
|
|
561
|
+
*/
|
|
562
|
+
readonly billingAddress?: Address;
|
|
563
|
+
/**
|
|
564
|
+
* Shipping address associated with the Order.
|
|
565
|
+
* Determines eligible [ShippingMethod](ctp:api:type:ShippingMethod) rates and Tax Rates of Line Items.
|
|
566
|
+
*
|
|
567
|
+
*
|
|
568
|
+
*/
|
|
569
|
+
readonly shippingAddress?: Address;
|
|
570
|
+
/**
|
|
571
|
+
* Indicates whether there can be one or multiple Shipping Methods.
|
|
572
|
+
*
|
|
573
|
+
*
|
|
574
|
+
*/
|
|
575
|
+
readonly shippingMode: ShippingMode;
|
|
576
|
+
/**
|
|
577
|
+
* `key` of the [ShippingMethod](ctp:api:type:ShippingMethod) for `Single` [ShippingMode](ctp:api:type:ShippingMode).
|
|
578
|
+
*
|
|
579
|
+
*
|
|
580
|
+
*/
|
|
581
|
+
readonly shippingKey?: string;
|
|
582
|
+
/**
|
|
583
|
+
* Shipping-related information for `Single` [ShippingMode](ctp:api:type:ShippingMode).
|
|
584
|
+
* Automatically set when a [Shipping Method is set](ctp:api:type:StagedOrderSetShippingMethodAction).
|
|
585
|
+
*
|
|
586
|
+
*
|
|
587
|
+
*/
|
|
588
|
+
readonly shippingInfo?: ShippingInfo;
|
|
589
|
+
/**
|
|
590
|
+
* Input used to select a [ShippingRatePriceTier](ctp:api:type:ShippingRatePriceTier).
|
|
591
|
+
* The data type of this field depends on the `shippingRateInputType.type` configured in the [Project](ctp:api:type:Project):
|
|
592
|
+
*
|
|
593
|
+
* - If `CartClassification`, it is [ClassificationShippingRateInput](ctp:api:type:ClassificationShippingRateInput).
|
|
594
|
+
* - If `CartScore`, it is [ScoreShippingRateInput](ctp:api:type:ScoreShippingRateInput).
|
|
595
|
+
* - If `CartValue`, it cannot be used.
|
|
596
|
+
*
|
|
597
|
+
*
|
|
598
|
+
*/
|
|
599
|
+
readonly shippingRateInput?: ShippingRateInput;
|
|
600
|
+
/**
|
|
601
|
+
* Custom Fields of the Shipping Method for `Single` [ShippingMode](ctp:api:type:ShippingMode).
|
|
602
|
+
*
|
|
603
|
+
*
|
|
604
|
+
*/
|
|
605
|
+
readonly shippingCustomFields?: CustomFields;
|
|
606
|
+
/**
|
|
607
|
+
* Shipping-related information for `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
|
|
608
|
+
* Updated automatically each time a new [Shipping Method is added](ctp:api:type:CartAddShippingMethodAction).
|
|
609
|
+
*
|
|
610
|
+
*
|
|
611
|
+
*/
|
|
612
|
+
readonly shipping: Shipping[];
|
|
613
|
+
/**
|
|
614
|
+
* Additional shipping addresses of the Order as specified by [LineItems](ctp:api:type:LineItem) using the `shippingDetails` field.
|
|
615
|
+
* Eligible Shipping Methods or applicable Tax Rates are determined by the address in `shippingAddress`, and not `itemShippingAddresses`.
|
|
616
|
+
*
|
|
617
|
+
*
|
|
618
|
+
*/
|
|
619
|
+
readonly itemShippingAddresses?: Address[];
|
|
620
|
+
/**
|
|
621
|
+
* Discount Codes added to the Order.
|
|
622
|
+
* An Order that has `directDiscounts` cannot have `discountCodes`.
|
|
623
|
+
*
|
|
624
|
+
*
|
|
625
|
+
*/
|
|
626
|
+
readonly discountCodes?: DiscountCodeInfo[];
|
|
627
|
+
/**
|
|
628
|
+
* Direct Discounts added to the Order.
|
|
629
|
+
* An Order that has `discountCodes` cannot have `directDiscounts`.
|
|
630
|
+
*
|
|
631
|
+
*
|
|
632
|
+
*/
|
|
633
|
+
readonly directDiscounts?: DirectDiscount[];
|
|
634
|
+
/**
|
|
635
|
+
* Automatically set when a Line Item with `GiftLineItem` [LineItemMode](ctp:api:type:LineItemMode) is [removed](ctp:api:type:StagedOrderRemoveLineItemAction) from the Order.
|
|
636
|
+
*
|
|
637
|
+
*
|
|
638
|
+
*/
|
|
639
|
+
readonly refusedGifts: CartDiscountReference[];
|
|
640
|
+
/**
|
|
641
|
+
* Payment information related to the Order.
|
|
642
|
+
*
|
|
643
|
+
*
|
|
644
|
+
*/
|
|
645
|
+
readonly paymentInfo?: PaymentInfo;
|
|
646
|
+
/**
|
|
647
|
+
* Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
|
|
648
|
+
*
|
|
649
|
+
*/
|
|
650
|
+
readonly country?: string;
|
|
651
|
+
/**
|
|
652
|
+
* Languages of the Order.
|
|
653
|
+
* Can only contain languages supported by the [Project](ctp:api:type:Project).
|
|
654
|
+
*
|
|
655
|
+
*
|
|
656
|
+
*/
|
|
657
|
+
readonly locale?: string;
|
|
658
|
+
/**
|
|
659
|
+
* Indicates the origin of the Cart from which the Order was created.
|
|
660
|
+
*
|
|
661
|
+
*
|
|
662
|
+
*/
|
|
663
|
+
readonly origin: CartOrigin;
|
|
664
|
+
/**
|
|
665
|
+
* [Reference](ctp:api:type:Reference) to the Cart for an [Order created from Cart](ctp:api:endpoint:/{projectKey}/orders:POST).
|
|
666
|
+
* The referenced Cart will have the `Ordered` [CartState](ctp:api:type:CartState).
|
|
667
|
+
*
|
|
668
|
+
*/
|
|
669
|
+
readonly cart?: CartReference;
|
|
670
|
+
/**
|
|
671
|
+
* [Reference](ctp:api:type:Reference) to the Quote for an [Order created from Quote](ctp:api:endpoint:/{projectKey}/orders/quotes:POST).
|
|
672
|
+
*
|
|
673
|
+
*
|
|
674
|
+
*/
|
|
675
|
+
readonly quote?: QuoteReference;
|
|
676
|
+
/**
|
|
677
|
+
* Current status of the Order.
|
|
678
|
+
*
|
|
679
|
+
*
|
|
680
|
+
*/
|
|
681
|
+
readonly orderState: OrderState;
|
|
682
|
+
/**
|
|
683
|
+
* Shipment status of the Order.
|
|
684
|
+
*
|
|
685
|
+
*
|
|
686
|
+
*/
|
|
687
|
+
readonly shipmentState?: ShipmentState;
|
|
688
|
+
/**
|
|
689
|
+
* Payment status of the Order.
|
|
690
|
+
*
|
|
691
|
+
*
|
|
692
|
+
*/
|
|
693
|
+
readonly paymentState?: PaymentState;
|
|
694
|
+
/**
|
|
695
|
+
* [State](ctp:api:type:State) of the Order.
|
|
696
|
+
* This reference can point to a State in a custom workflow.
|
|
697
|
+
*
|
|
698
|
+
*
|
|
699
|
+
*/
|
|
700
|
+
readonly state?: StateReference;
|
|
701
|
+
/**
|
|
702
|
+
* Contains synchronization activity information of the Order (like export or import).
|
|
703
|
+
* Can only be set with [Update SyncInfo](ctp:api:type:OrderUpdateSyncInfoAction) update action.
|
|
704
|
+
*
|
|
705
|
+
*
|
|
706
|
+
*/
|
|
707
|
+
readonly syncInfo: SyncInfo[];
|
|
708
|
+
/**
|
|
709
|
+
* Contains information regarding the returns associated with the Order.
|
|
710
|
+
*
|
|
711
|
+
*
|
|
712
|
+
*/
|
|
713
|
+
readonly returnInfo?: ReturnInfo[];
|
|
714
|
+
/**
|
|
715
|
+
* Internal-only field.
|
|
716
|
+
* @deprecated
|
|
717
|
+
*/
|
|
718
|
+
readonly lastMessageSequenceNumber?: number;
|
|
719
|
+
/**
|
|
720
|
+
* Custom Fields of the Order.
|
|
721
|
+
*
|
|
722
|
+
*
|
|
723
|
+
*/
|
|
724
|
+
readonly custom?: CustomFields;
|
|
725
|
+
/**
|
|
726
|
+
* User-defined date and time (UTC) of the Order.
|
|
727
|
+
* Present only on an Order created using [Order Import](ctp:api:endpoint:/{projectKey}/orders/import:POST).
|
|
728
|
+
*
|
|
729
|
+
*
|
|
730
|
+
*/
|
|
731
|
+
readonly completedAt?: string;
|
|
732
|
+
/**
|
|
733
|
+
* Date and time (UTC) the Order was initially created.
|
|
734
|
+
*
|
|
735
|
+
*
|
|
736
|
+
*/
|
|
737
|
+
readonly createdAt: string;
|
|
738
|
+
/**
|
|
739
|
+
* Date and time (UTC) the Order was last updated.
|
|
740
|
+
*
|
|
741
|
+
*
|
|
742
|
+
*/
|
|
743
|
+
readonly lastModifiedAt: string;
|
|
744
|
+
/**
|
|
745
|
+
* IDs and references that last modified the Order.
|
|
746
|
+
*
|
|
747
|
+
*
|
|
748
|
+
*/
|
|
749
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
750
|
+
/**
|
|
751
|
+
* IDs and references that created the Order.
|
|
752
|
+
*
|
|
753
|
+
*
|
|
754
|
+
*/
|
|
755
|
+
readonly createdBy?: CreatedBy;
|
|
756
|
+
}
|
|
757
|
+
export type _Order = Order | StagedOrder;
|
|
758
|
+
export interface OrderFromCartDraft {
|
|
759
|
+
/**
|
|
760
|
+
* `id` of the [Cart](ctp:api:type:Cart) used to create the Order.
|
|
761
|
+
*
|
|
762
|
+
* @deprecated
|
|
763
|
+
*/
|
|
764
|
+
readonly id?: string;
|
|
765
|
+
/**
|
|
766
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to the Cart from which the Order is created.
|
|
767
|
+
*
|
|
768
|
+
* This field is required, but is marked as optional for backwards compatibility reasons.
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
772
|
+
readonly cart?: CartResourceIdentifier;
|
|
773
|
+
/**
|
|
774
|
+
* `version` of the [Cart](ctp:api:type:Cart) from which the Order is created.
|
|
775
|
+
*
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
readonly version: number;
|
|
779
|
+
/**
|
|
780
|
+
* User-defined identifier for the Order that is unique across a Project.
|
|
781
|
+
* Once set, the value cannot be changed.
|
|
782
|
+
*
|
|
783
|
+
*
|
|
784
|
+
*/
|
|
785
|
+
readonly orderNumber?: string;
|
|
786
|
+
/**
|
|
787
|
+
* User-defined identifier for a purchase Order.
|
|
788
|
+
*
|
|
789
|
+
* It is typically set by the [Buyer](ctp:api:type:Buyer) and can be used with [Quotes](/quotes-overview) to track the purchase Order during the [quote and order flow](/../api/quotes-overview#intended-workflow).
|
|
790
|
+
*
|
|
791
|
+
*/
|
|
792
|
+
readonly purchaseOrderNumber?: string;
|
|
793
|
+
/**
|
|
794
|
+
* Payment status for the Order.
|
|
795
|
+
*
|
|
796
|
+
*
|
|
797
|
+
*/
|
|
798
|
+
readonly paymentState?: PaymentState;
|
|
799
|
+
/**
|
|
800
|
+
* Shipment status for the Order.
|
|
801
|
+
*
|
|
802
|
+
*
|
|
803
|
+
*/
|
|
804
|
+
readonly shipmentState?: ShipmentState;
|
|
805
|
+
/**
|
|
806
|
+
* Current status for the Order.
|
|
807
|
+
*
|
|
808
|
+
*
|
|
809
|
+
*/
|
|
810
|
+
readonly orderState?: OrderState;
|
|
811
|
+
/**
|
|
812
|
+
* State for the Order in a custom workflow.
|
|
813
|
+
*
|
|
814
|
+
*
|
|
815
|
+
*/
|
|
816
|
+
readonly state?: StateResourceIdentifier;
|
|
817
|
+
/**
|
|
818
|
+
* Custom Fields for the Order.
|
|
819
|
+
* The Custom Fields' type must match the Custom Fields' type in the referenced [Cart](ctp:api:type:Cart).
|
|
820
|
+
*
|
|
821
|
+
* - If empty, the Custom Fields on the referenced [Cart](ctp:api:type:Cart) are added to the Order automatically.
|
|
822
|
+
* - If specified, the Custom Fields are merged with the Custom Fields on the referenced [Cart](ctp:api:type:Cart) and added to the Order.
|
|
823
|
+
*
|
|
824
|
+
*
|
|
825
|
+
*/
|
|
826
|
+
readonly custom?: CustomFieldsDraft;
|
|
827
|
+
}
|
|
828
|
+
export interface OrderFromQuoteDraft {
|
|
829
|
+
/**
|
|
830
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to the Quote from which the Order is created.
|
|
831
|
+
* If the referenced [Quote](ctp:api:type:Quote) has expired (`validTo` check) or its `quoteState` is `Accepted`, `Declined`, or `Withdrawn`, the Order creation will fail.
|
|
832
|
+
*
|
|
833
|
+
*
|
|
834
|
+
*/
|
|
835
|
+
readonly quote: QuoteResourceIdentifier;
|
|
836
|
+
/**
|
|
837
|
+
* `version` of the [Quote](ctp:api:type:Quote) from which the Order is created.
|
|
838
|
+
*
|
|
839
|
+
*
|
|
840
|
+
*/
|
|
841
|
+
readonly version: number;
|
|
842
|
+
/**
|
|
843
|
+
* If `true`, the `quoteState` of the referenced [Quote](ctp:api:type:Quote) will be set to `Accepted`.
|
|
844
|
+
*
|
|
845
|
+
*
|
|
846
|
+
*/
|
|
847
|
+
readonly quoteStateToAccepted?: boolean;
|
|
848
|
+
/**
|
|
849
|
+
* User-defined identifier for the Order that is unique across a Project.
|
|
850
|
+
* Once set, the value cannot be changed.
|
|
851
|
+
*
|
|
852
|
+
*
|
|
853
|
+
*/
|
|
854
|
+
readonly orderNumber?: string;
|
|
855
|
+
/**
|
|
856
|
+
* Payment status for the Order.
|
|
857
|
+
*
|
|
858
|
+
*
|
|
859
|
+
*/
|
|
860
|
+
readonly paymentState?: PaymentState;
|
|
861
|
+
/**
|
|
862
|
+
* Shipment status for the Order.
|
|
863
|
+
*
|
|
864
|
+
*
|
|
865
|
+
*/
|
|
866
|
+
readonly shipmentState?: ShipmentState;
|
|
867
|
+
/**
|
|
868
|
+
* Current status for the Order.
|
|
869
|
+
*
|
|
870
|
+
*
|
|
871
|
+
*/
|
|
872
|
+
readonly orderState?: OrderState;
|
|
873
|
+
/**
|
|
874
|
+
* State of the Order in a custom workflow.
|
|
875
|
+
*
|
|
876
|
+
*
|
|
877
|
+
*/
|
|
878
|
+
readonly state?: StateResourceIdentifier;
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* A snapshot of an Order at the time it was imported.
|
|
882
|
+
*
|
|
883
|
+
*/
|
|
884
|
+
export interface OrderImportDraft {
|
|
885
|
+
/**
|
|
886
|
+
* User-defined identifier of the Order. Must be unique across a Project.
|
|
887
|
+
* Once set, the value cannot be changed.
|
|
888
|
+
*
|
|
889
|
+
*
|
|
890
|
+
*/
|
|
891
|
+
readonly orderNumber?: string;
|
|
892
|
+
/**
|
|
893
|
+
* User-defined identifier for a purchase Order.
|
|
894
|
+
*
|
|
895
|
+
*/
|
|
896
|
+
readonly purchaseOrderNumber?: string;
|
|
897
|
+
/**
|
|
898
|
+
* The `id` of the [Customer](ctp:api:type:Customer) the Order belongs to.
|
|
899
|
+
*
|
|
900
|
+
*
|
|
901
|
+
*/
|
|
902
|
+
readonly customerId?: string;
|
|
903
|
+
/**
|
|
904
|
+
* The Email address of the Customer the Order belongs to. Can be used instead of `customerId` when no check against existing [Customers](ctp:api:type:Customer) is required.
|
|
905
|
+
*
|
|
906
|
+
*
|
|
907
|
+
*/
|
|
908
|
+
readonly customerEmail?: string;
|
|
909
|
+
/**
|
|
910
|
+
* The Customer Group of the Customer the Order belongs to.
|
|
911
|
+
*
|
|
912
|
+
*
|
|
913
|
+
*/
|
|
914
|
+
readonly customerGroup?: CustomerGroupResourceIdentifier;
|
|
915
|
+
/**
|
|
916
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to the Business Unit the Order should belong to.
|
|
917
|
+
* When the `customerId` of the Order is also set, the [Customer](ctp:api:type:Customer) must be an [Associate](ctp:api:type:Associate) of the Business Unit.
|
|
918
|
+
*
|
|
919
|
+
*
|
|
920
|
+
*/
|
|
921
|
+
readonly businessUnit?: BusinessUnitResourceIdentifier;
|
|
922
|
+
/**
|
|
923
|
+
* The Store the Order belongs to.
|
|
924
|
+
* Used for [filtering](#filtering).
|
|
925
|
+
*
|
|
926
|
+
* If a [LineItemImportDraft](ctp:api:type:LineItemImportDraft) or a [CustomLineItemImportDraft](ctp:api:type:CustomLineItemImportDraft) specifies a `distributionChannel` or a `supplyChannel` that is not defined for the referenced Store, the Order Import gets rejected.
|
|
927
|
+
* The same applies when the provided `country` is not defined for the referenced Store.
|
|
928
|
+
*
|
|
929
|
+
*
|
|
930
|
+
*/
|
|
931
|
+
readonly store?: StoreResourceIdentifier;
|
|
932
|
+
/**
|
|
933
|
+
* [Line Items](ctp:api:type:LineItems) to add to the Order.
|
|
934
|
+
*
|
|
935
|
+
* If not specified, `customLineItems` must not be empty.
|
|
936
|
+
*
|
|
937
|
+
*
|
|
938
|
+
*/
|
|
939
|
+
readonly lineItems?: LineItemImportDraft[];
|
|
940
|
+
/**
|
|
941
|
+
* [Custom Line Items](ctp:api:type:CustomLineItems) to add to the Cart.
|
|
942
|
+
*
|
|
943
|
+
* If not specified, `lineItems` must not be empty.
|
|
944
|
+
*
|
|
945
|
+
*
|
|
946
|
+
*/
|
|
947
|
+
readonly customLineItems?: CustomLineItemImportDraft[];
|
|
948
|
+
/**
|
|
949
|
+
* The total Price of the Order. The amount can be negative.
|
|
950
|
+
*
|
|
951
|
+
*
|
|
952
|
+
*/
|
|
953
|
+
readonly totalPrice: _Money;
|
|
954
|
+
/**
|
|
955
|
+
* Include TaxedPrice information for the Order. If not included, and if you have Tax Rates set for Line Items and Custom Line Items, the Order total will not be recalculated.
|
|
956
|
+
*
|
|
957
|
+
*
|
|
958
|
+
*/
|
|
959
|
+
readonly taxedPrice?: TaxedPriceDraft;
|
|
960
|
+
/**
|
|
961
|
+
* Determines how monetary values are rounded when calculating taxes for `taxedPrice`.
|
|
962
|
+
*
|
|
963
|
+
*
|
|
964
|
+
*/
|
|
965
|
+
readonly taxRoundingMode?: RoundingMode;
|
|
966
|
+
/**
|
|
967
|
+
* Determines how taxes are calculated for `taxedPrice`.
|
|
968
|
+
*
|
|
969
|
+
*
|
|
970
|
+
*/
|
|
971
|
+
readonly taxCalculationMode?: TaxCalculationMode;
|
|
972
|
+
/**
|
|
973
|
+
* Determines how stock quantities are tracked for Line Items in the Cart.
|
|
974
|
+
*
|
|
975
|
+
*
|
|
976
|
+
*/
|
|
977
|
+
readonly inventoryMode?: InventoryMode;
|
|
978
|
+
/**
|
|
979
|
+
* Billing address associated with the Order.
|
|
980
|
+
*
|
|
981
|
+
*
|
|
982
|
+
*/
|
|
983
|
+
readonly billingAddress?: _BaseAddress;
|
|
984
|
+
/**
|
|
985
|
+
* Shipping address associated with the Order.
|
|
986
|
+
*
|
|
987
|
+
*
|
|
988
|
+
*/
|
|
989
|
+
readonly shippingAddress?: _BaseAddress;
|
|
990
|
+
/**
|
|
991
|
+
* Addresses for Orders with multiple shipping addresses. Addresses must include a value for `key`.
|
|
992
|
+
*
|
|
993
|
+
*
|
|
994
|
+
*/
|
|
995
|
+
readonly itemShippingAddresses?: BaseAddress[];
|
|
996
|
+
/**
|
|
997
|
+
* Shipping-related information of the Order.
|
|
998
|
+
*
|
|
999
|
+
*
|
|
1000
|
+
*/
|
|
1001
|
+
readonly shippingInfo?: ShippingInfoImportDraft;
|
|
1002
|
+
/**
|
|
1003
|
+
* Payment information associated with the Order.
|
|
1004
|
+
*
|
|
1005
|
+
*
|
|
1006
|
+
*/
|
|
1007
|
+
readonly paymentInfo?: PaymentInfo;
|
|
1008
|
+
/**
|
|
1009
|
+
* Payment status of the Order.
|
|
1010
|
+
*
|
|
1011
|
+
*
|
|
1012
|
+
*/
|
|
1013
|
+
readonly paymentState?: PaymentState;
|
|
1014
|
+
/**
|
|
1015
|
+
* Shipment status of the Order.
|
|
1016
|
+
*
|
|
1017
|
+
*
|
|
1018
|
+
*/
|
|
1019
|
+
readonly shipmentState?: ShipmentState;
|
|
1020
|
+
/**
|
|
1021
|
+
* Current status of the Order.
|
|
1022
|
+
*
|
|
1023
|
+
*
|
|
1024
|
+
*/
|
|
1025
|
+
readonly orderState?: OrderState;
|
|
1026
|
+
/**
|
|
1027
|
+
* State of the Order in a custom workflow.
|
|
1028
|
+
*
|
|
1029
|
+
*
|
|
1030
|
+
*/
|
|
1031
|
+
readonly state?: StateReference;
|
|
1032
|
+
/**
|
|
1033
|
+
* Include a value to associate a country with the Order.
|
|
1034
|
+
*
|
|
1035
|
+
*
|
|
1036
|
+
*/
|
|
1037
|
+
readonly country?: string;
|
|
1038
|
+
/**
|
|
1039
|
+
* Indicates the origin of the Order.
|
|
1040
|
+
*
|
|
1041
|
+
*
|
|
1042
|
+
*/
|
|
1043
|
+
readonly origin?: CartOrigin;
|
|
1044
|
+
/**
|
|
1045
|
+
* User-defined date and time for the Order. This value does not influence the `createdAt` or `lastModifiedAt` values of the Order created by the Order Import.
|
|
1046
|
+
*
|
|
1047
|
+
*
|
|
1048
|
+
*/
|
|
1049
|
+
readonly completedAt?: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* Custom Fields for the Order.
|
|
1052
|
+
*
|
|
1053
|
+
*
|
|
1054
|
+
*/
|
|
1055
|
+
readonly custom?: CustomFieldsDraft;
|
|
1056
|
+
}
|
|
1057
|
+
/**
|
|
1058
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with `results` containing an array of [Order](ctp:api:type:Order).
|
|
1059
|
+
*
|
|
1060
|
+
*/
|
|
1061
|
+
export interface OrderPagedQueryResponse {
|
|
1062
|
+
/**
|
|
1063
|
+
* Number of [results requested](/../api/general-concepts#limit).
|
|
1064
|
+
*
|
|
1065
|
+
*
|
|
1066
|
+
*/
|
|
1067
|
+
readonly limit: number;
|
|
1068
|
+
/**
|
|
1069
|
+
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
1070
|
+
*
|
|
1071
|
+
*
|
|
1072
|
+
*/
|
|
1073
|
+
readonly offset: number;
|
|
1074
|
+
/**
|
|
1075
|
+
* Actual number of results returned.
|
|
1076
|
+
*
|
|
1077
|
+
*
|
|
1078
|
+
*/
|
|
1079
|
+
readonly count: number;
|
|
1080
|
+
/**
|
|
1081
|
+
* Total number of results matching the query.
|
|
1082
|
+
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
|
|
1083
|
+
* This field is returned by default.
|
|
1084
|
+
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
|
|
1085
|
+
* When the results are filtered with a [Query Predicate](ctp:api:type:QueryPredicate), `total` is subject to a [limit](/../api/limits#queries).
|
|
1086
|
+
*
|
|
1087
|
+
*
|
|
1088
|
+
*/
|
|
1089
|
+
readonly total?: number;
|
|
1090
|
+
/**
|
|
1091
|
+
* [Orders](ctp:api:type:Order) matching the query.
|
|
1092
|
+
*
|
|
1093
|
+
*
|
|
1094
|
+
*/
|
|
1095
|
+
readonly results: Order[];
|
|
1096
|
+
}
|
|
1097
|
+
/**
|
|
1098
|
+
* [Reference](ctp:api:type:Reference) to an [Order](ctp:api:type:Order).
|
|
1099
|
+
*
|
|
1100
|
+
*/
|
|
1101
|
+
export interface OrderReference {
|
|
1102
|
+
readonly typeId: 'order';
|
|
1103
|
+
/**
|
|
1104
|
+
* Unique identifier of the referenced [Order](ctp:api:type:Order).
|
|
1105
|
+
*
|
|
1106
|
+
*
|
|
1107
|
+
*/
|
|
1108
|
+
readonly id: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* Contains the representation of the expanded Order. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for Orders.
|
|
1111
|
+
*
|
|
1112
|
+
*
|
|
1113
|
+
*/
|
|
1114
|
+
readonly obj?: _Order;
|
|
1115
|
+
}
|
|
1116
|
+
export interface OrderSearchQuery {
|
|
1117
|
+
}
|
|
1118
|
+
export type _OrderSearchQuery = OrderSearchQuery | _OrderSearchCompoundExpression | _OrderSearchQueryExpression;
|
|
1119
|
+
export interface OrderSearchCompoundExpression extends OrderSearchQuery {
|
|
1120
|
+
}
|
|
1121
|
+
export type _OrderSearchCompoundExpression = OrderSearchCompoundExpression | OrderSearchAndExpression | OrderSearchFilterExpression | OrderSearchNotExpression | OrderSearchOrExpression;
|
|
1122
|
+
export interface OrderSearchAndExpression extends OrderSearchCompoundExpression {
|
|
1123
|
+
/**
|
|
1124
|
+
*
|
|
1125
|
+
*/
|
|
1126
|
+
readonly and: OrderSearchQuery[];
|
|
1127
|
+
}
|
|
1128
|
+
export interface OrderSearchFilterExpression extends OrderSearchCompoundExpression {
|
|
1129
|
+
/**
|
|
1130
|
+
*
|
|
1131
|
+
*/
|
|
1132
|
+
readonly filter: OrderSearchQueryExpression[];
|
|
1133
|
+
}
|
|
1134
|
+
export interface OrderSearchNotExpression extends OrderSearchCompoundExpression {
|
|
1135
|
+
/**
|
|
1136
|
+
*
|
|
1137
|
+
*/
|
|
1138
|
+
readonly not: OrderSearchQuery[];
|
|
1139
|
+
}
|
|
1140
|
+
export interface OrderSearchOrExpression extends OrderSearchCompoundExpression {
|
|
1141
|
+
/**
|
|
1142
|
+
*
|
|
1143
|
+
*/
|
|
1144
|
+
readonly or: OrderSearchQuery[];
|
|
1145
|
+
}
|
|
1146
|
+
export interface OrderSearchQueryExpression extends OrderSearchQuery {
|
|
1147
|
+
}
|
|
1148
|
+
export type _OrderSearchQueryExpression = OrderSearchQueryExpression | OrderSearchDateRangeExpression | OrderSearchExactExpression | OrderSearchExistsExpression | OrderSearchFullTextExpression | OrderSearchLongRangeExpression | OrderSearchNumberRangeExpression | OrderSearchPrefixExpression | OrderSearchWildCardExpression;
|
|
1149
|
+
export interface OrderSearchDateRangeExpression extends OrderSearchQueryExpression {
|
|
1150
|
+
/**
|
|
1151
|
+
*
|
|
1152
|
+
*/
|
|
1153
|
+
readonly range: OrderSearchDateRangeValue;
|
|
1154
|
+
}
|
|
1155
|
+
export interface OrderSearchExactExpression extends OrderSearchQueryExpression {
|
|
1156
|
+
/**
|
|
1157
|
+
*
|
|
1158
|
+
*/
|
|
1159
|
+
readonly exact: OrderSearchAnyValue;
|
|
1160
|
+
}
|
|
1161
|
+
export interface OrderSearchExistsExpression extends OrderSearchQueryExpression {
|
|
1162
|
+
/**
|
|
1163
|
+
*
|
|
1164
|
+
*/
|
|
1165
|
+
readonly exists: _OrderSearchQueryExpressionValue;
|
|
1166
|
+
}
|
|
1167
|
+
export interface OrderSearchFullTextExpression extends OrderSearchQueryExpression {
|
|
1168
|
+
/**
|
|
1169
|
+
*
|
|
1170
|
+
*/
|
|
1171
|
+
readonly fullText: OrderSearchFullTextValue;
|
|
1172
|
+
}
|
|
1173
|
+
export interface OrderSearchLongRangeExpression extends OrderSearchQueryExpression {
|
|
1174
|
+
/**
|
|
1175
|
+
*
|
|
1176
|
+
*/
|
|
1177
|
+
readonly range: OrderSearchLongRangeValue;
|
|
1178
|
+
}
|
|
1179
|
+
export interface OrderSearchNumberRangeExpression extends OrderSearchQueryExpression {
|
|
1180
|
+
/**
|
|
1181
|
+
*
|
|
1182
|
+
*/
|
|
1183
|
+
readonly range: OrderSearchNumberRangeValue;
|
|
1184
|
+
}
|
|
1185
|
+
export interface OrderSearchPrefixExpression extends OrderSearchQueryExpression {
|
|
1186
|
+
/**
|
|
1187
|
+
*
|
|
1188
|
+
*/
|
|
1189
|
+
readonly prefix: OrderSearchStringValue;
|
|
1190
|
+
}
|
|
1191
|
+
export interface OrderSearchWildCardExpression extends OrderSearchQueryExpression {
|
|
1192
|
+
/**
|
|
1193
|
+
*
|
|
1194
|
+
*/
|
|
1195
|
+
readonly wildcard: OrderSearchStringValue;
|
|
1196
|
+
}
|
|
1197
|
+
export interface OrderSearchRequest {
|
|
1198
|
+
/**
|
|
1199
|
+
* The Order search query.
|
|
1200
|
+
*
|
|
1201
|
+
*/
|
|
1202
|
+
readonly query: _OrderSearchQuery;
|
|
1203
|
+
/**
|
|
1204
|
+
* Controls how results to your query are sorted. If not provided, the results are sorted by relevance in descending order.
|
|
1205
|
+
*
|
|
1206
|
+
*/
|
|
1207
|
+
readonly sort?: OrderSearchSorting[];
|
|
1208
|
+
/**
|
|
1209
|
+
* The maximum number of search results to be returned on one [page](#pagination).
|
|
1210
|
+
*
|
|
1211
|
+
*/
|
|
1212
|
+
readonly limit?: number;
|
|
1213
|
+
/**
|
|
1214
|
+
* The number of search results to be skipped in the response for [pagination](#pagination).
|
|
1215
|
+
*
|
|
1216
|
+
*/
|
|
1217
|
+
readonly offset?: number;
|
|
1218
|
+
}
|
|
1219
|
+
export interface OrderSearchSorting {
|
|
1220
|
+
/**
|
|
1221
|
+
*
|
|
1222
|
+
*/
|
|
1223
|
+
readonly field: string;
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
*/
|
|
1227
|
+
readonly language?: string;
|
|
1228
|
+
/**
|
|
1229
|
+
*
|
|
1230
|
+
*/
|
|
1231
|
+
readonly order?: OrderSearchSortOrder;
|
|
1232
|
+
/**
|
|
1233
|
+
*
|
|
1234
|
+
*/
|
|
1235
|
+
readonly mode?: OrderSearchSortMode;
|
|
1236
|
+
/**
|
|
1237
|
+
*
|
|
1238
|
+
*/
|
|
1239
|
+
readonly filter?: _OrderSearchQueryExpression;
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Indicates the state of the Order.
|
|
1243
|
+
*
|
|
1244
|
+
*/
|
|
1245
|
+
export type OrderState = 'Cancelled' | 'Complete' | 'Confirmed' | 'Open' | string;
|
|
1246
|
+
export interface OrderUpdate {
|
|
1247
|
+
/**
|
|
1248
|
+
* Expected version of the Order on which the changes should be applied.
|
|
1249
|
+
* If the expected version does not match the actual version, a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error will be returned.
|
|
1250
|
+
*
|
|
1251
|
+
*
|
|
1252
|
+
*/
|
|
1253
|
+
readonly version: number;
|
|
1254
|
+
/**
|
|
1255
|
+
* Update actions to be performed on the Order.
|
|
1256
|
+
*
|
|
1257
|
+
*
|
|
1258
|
+
*/
|
|
1259
|
+
readonly actions: OrderUpdateAction[];
|
|
1260
|
+
}
|
|
1261
|
+
export type OrderUpdateAction = OrderAddDeliveryAction | OrderAddItemShippingAddressAction | OrderAddParcelToDeliveryAction | OrderAddPaymentAction | OrderAddReturnInfoAction | OrderChangeOrderStateAction | OrderChangePaymentStateAction | OrderChangeShipmentStateAction | OrderImportCustomLineItemStateAction | OrderImportLineItemStateAction | OrderRemoveDeliveryAction | OrderRemoveItemShippingAddressAction | OrderRemoveParcelFromDeliveryAction | OrderRemovePaymentAction | OrderSetBillingAddressAction | OrderSetBillingAddressCustomFieldAction | OrderSetBillingAddressCustomTypeAction | OrderSetCustomFieldAction | OrderSetCustomLineItemCustomFieldAction | OrderSetCustomLineItemCustomTypeAction | OrderSetCustomLineItemShippingDetailsAction | OrderSetCustomTypeAction | OrderSetCustomerEmailAction | OrderSetCustomerIdAction | OrderSetDeliveryAddressAction | OrderSetDeliveryAddressCustomFieldAction | OrderSetDeliveryAddressCustomTypeAction | OrderSetDeliveryCustomFieldAction | OrderSetDeliveryCustomTypeAction | OrderSetDeliveryItemsAction | OrderSetItemShippingAddressCustomFieldAction | OrderSetItemShippingAddressCustomTypeAction | OrderSetLineItemCustomFieldAction | OrderSetLineItemCustomTypeAction | OrderSetLineItemShippingDetailsAction | OrderSetLocaleAction | OrderSetOrderNumberAction | OrderSetParcelCustomFieldAction | OrderSetParcelCustomTypeAction | OrderSetParcelItemsAction | OrderSetParcelMeasurementsAction | OrderSetParcelTrackingDataAction | OrderSetPurchaseOrderNumberAction | OrderSetReturnInfoAction | OrderSetReturnItemCustomFieldAction | OrderSetReturnItemCustomTypeAction | OrderSetReturnPaymentStateAction | OrderSetReturnShipmentStateAction | OrderSetShippingAddressAction | OrderSetShippingAddressCustomFieldAction | OrderSetShippingAddressCustomTypeAction | OrderSetShippingCustomFieldAction | OrderSetShippingCustomTypeAction | OrderSetStoreAction | OrderTransitionCustomLineItemStateAction | OrderTransitionLineItemStateAction | OrderTransitionStateAction | OrderUpdateItemShippingAddressAction | OrderUpdateSyncInfoAction;
|
|
1262
|
+
/**
|
|
1263
|
+
* Information regarding the appearance, content, and shipment of a Parcel.
|
|
1264
|
+
*
|
|
1265
|
+
*/
|
|
1266
|
+
export interface Parcel {
|
|
1267
|
+
/**
|
|
1268
|
+
* Unique identifier of the Parcel.
|
|
1269
|
+
*
|
|
1270
|
+
*/
|
|
1271
|
+
readonly id: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* User-defined unique identifier of the Parcel.
|
|
1274
|
+
*
|
|
1275
|
+
*/
|
|
1276
|
+
readonly key?: string;
|
|
1277
|
+
/**
|
|
1278
|
+
* Date and time (UTC) the Parcel was created.
|
|
1279
|
+
*
|
|
1280
|
+
*
|
|
1281
|
+
*/
|
|
1282
|
+
readonly createdAt: string;
|
|
1283
|
+
/**
|
|
1284
|
+
* Information about the dimensions of the Parcel.
|
|
1285
|
+
*
|
|
1286
|
+
*
|
|
1287
|
+
*/
|
|
1288
|
+
readonly measurements?: ParcelMeasurements;
|
|
1289
|
+
/**
|
|
1290
|
+
* Shipment tracking information of the Parcel.
|
|
1291
|
+
*
|
|
1292
|
+
*
|
|
1293
|
+
*/
|
|
1294
|
+
readonly trackingData?: TrackingData;
|
|
1295
|
+
/**
|
|
1296
|
+
* Line Items or Custom Line Items delivered in this Parcel.
|
|
1297
|
+
*
|
|
1298
|
+
*
|
|
1299
|
+
*/
|
|
1300
|
+
readonly items?: DeliveryItem[];
|
|
1301
|
+
/**
|
|
1302
|
+
* Custom Fields of the Parcel.
|
|
1303
|
+
*
|
|
1304
|
+
*
|
|
1305
|
+
*/
|
|
1306
|
+
readonly custom?: CustomFields;
|
|
1307
|
+
}
|
|
1308
|
+
export interface ParcelDraft {
|
|
1309
|
+
/**
|
|
1310
|
+
* User-defined unique identifier of the Parcel.
|
|
1311
|
+
*
|
|
1312
|
+
*/
|
|
1313
|
+
readonly key?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* Information about the dimensions for the Parcel.
|
|
1316
|
+
*
|
|
1317
|
+
*
|
|
1318
|
+
*/
|
|
1319
|
+
readonly measurements?: ParcelMeasurements;
|
|
1320
|
+
/**
|
|
1321
|
+
* Shipment tracking information for the Parcel.
|
|
1322
|
+
*
|
|
1323
|
+
*
|
|
1324
|
+
*/
|
|
1325
|
+
readonly trackingData?: TrackingData;
|
|
1326
|
+
/**
|
|
1327
|
+
* Line Items or Custom Line Items delivered in this Parcel.
|
|
1328
|
+
*
|
|
1329
|
+
*
|
|
1330
|
+
*/
|
|
1331
|
+
readonly items?: DeliveryItem[];
|
|
1332
|
+
/**
|
|
1333
|
+
* Custom Fields for the Parcel.
|
|
1334
|
+
*
|
|
1335
|
+
*
|
|
1336
|
+
*/
|
|
1337
|
+
readonly custom?: CustomFieldsDraft;
|
|
1338
|
+
}
|
|
1339
|
+
export interface ParcelMeasurements {
|
|
1340
|
+
/**
|
|
1341
|
+
* Height of the Parcel.
|
|
1342
|
+
*
|
|
1343
|
+
*
|
|
1344
|
+
*/
|
|
1345
|
+
readonly heightInMillimeter?: number;
|
|
1346
|
+
/**
|
|
1347
|
+
* Length of the Parcel.
|
|
1348
|
+
*
|
|
1349
|
+
*
|
|
1350
|
+
*/
|
|
1351
|
+
readonly lengthInMillimeter?: number;
|
|
1352
|
+
/**
|
|
1353
|
+
* Width of the Parcel.
|
|
1354
|
+
*
|
|
1355
|
+
*
|
|
1356
|
+
*/
|
|
1357
|
+
readonly widthInMillimeter?: number;
|
|
1358
|
+
/**
|
|
1359
|
+
* Weight of the Parcel.
|
|
1360
|
+
*
|
|
1361
|
+
*
|
|
1362
|
+
*/
|
|
1363
|
+
readonly weightInGram?: number;
|
|
1364
|
+
}
|
|
1365
|
+
export interface PaymentInfo {
|
|
1366
|
+
/**
|
|
1367
|
+
* [References](ctp:api:type:Reference) to the Payments associated with the Order.
|
|
1368
|
+
*
|
|
1369
|
+
*
|
|
1370
|
+
*/
|
|
1371
|
+
readonly payments: PaymentReference[];
|
|
1372
|
+
}
|
|
1373
|
+
/**
|
|
1374
|
+
* Indicates the payment status for the Order.
|
|
1375
|
+
*
|
|
1376
|
+
*/
|
|
1377
|
+
export type PaymentState = 'BalanceDue' | 'CreditOwed' | 'Failed' | 'Paid' | 'Pending' | string;
|
|
1378
|
+
/**
|
|
1379
|
+
* Contains the Product Variant to be used in the [LineItemImportDraft](ctp:api:type:LineItemImportDraft).
|
|
1380
|
+
*
|
|
1381
|
+
*/
|
|
1382
|
+
export interface ProductVariantImportDraft {
|
|
1383
|
+
/**
|
|
1384
|
+
* The `id` of the [ProductVariant](ctp:api:type:ProductVariant). Required if you do not set a value for `sku`.
|
|
1385
|
+
* If set, you must specify a `productId` in the [LineItemImportDraft](ctp:api:type:LineItemImportDraft) also.
|
|
1386
|
+
*
|
|
1387
|
+
*
|
|
1388
|
+
*/
|
|
1389
|
+
readonly id?: number;
|
|
1390
|
+
/**
|
|
1391
|
+
* The `sku` of the [ProductVariant](ctp:api:type:ProductVariant). Required if you do not set a value for `id`.
|
|
1392
|
+
*
|
|
1393
|
+
*
|
|
1394
|
+
*/
|
|
1395
|
+
readonly sku?: string;
|
|
1396
|
+
/**
|
|
1397
|
+
* The [Prices](ctp:api:type:Price) of the Product Variant if you want to override the `prices` property in the referenced [ProductVariant](ctp:api:type:ProductVariant).
|
|
1398
|
+
* If not set, the `prices` from the referenced [ProductVariant](ctp:api:type:ProductVariant) are used in the resulting Order.
|
|
1399
|
+
* If set, each Price must have its unique price scope (same `value.currencyCode`, `country`, `customerGroup`, `channel`, `validFrom` and `validUntil`).
|
|
1400
|
+
*
|
|
1401
|
+
*
|
|
1402
|
+
*/
|
|
1403
|
+
readonly prices?: PriceDraft[];
|
|
1404
|
+
/**
|
|
1405
|
+
* The [Attributes](ctp:api:type:Attribute) of the Product Variant if you want to override the `attributes` property in the referenced [ProductVariant](ctp:api:type:ProductVariant).
|
|
1406
|
+
* If not set, the `attributes` from the referenced [ProductVariant](ctp:api:type:ProductVariant) are copied to the resulting Order.
|
|
1407
|
+
*
|
|
1408
|
+
*
|
|
1409
|
+
*/
|
|
1410
|
+
readonly attributes?: Attribute[];
|
|
1411
|
+
/**
|
|
1412
|
+
* The [Images](ctp:api:type:Image) of the Product Variant if you want to override the `images` property in the referenced [ProductVariant](ctp:api:type:ProductVariant).
|
|
1413
|
+
* If not set, the `images` from the referenced [ProductVariant](ctp:api:type:ProductVariant) are copied to the resulting Order.
|
|
1414
|
+
*
|
|
1415
|
+
*
|
|
1416
|
+
*/
|
|
1417
|
+
readonly images?: Image[];
|
|
1418
|
+
}
|
|
1419
|
+
/**
|
|
1420
|
+
* Stores information about returns connected to an Order.
|
|
1421
|
+
*
|
|
1422
|
+
*/
|
|
1423
|
+
export interface ReturnInfo {
|
|
1424
|
+
/**
|
|
1425
|
+
* Information on the Line Items or Custom Line Items returned.
|
|
1426
|
+
*
|
|
1427
|
+
*
|
|
1428
|
+
*/
|
|
1429
|
+
readonly items: ReturnItem[];
|
|
1430
|
+
/**
|
|
1431
|
+
* User-defined identifier to track the return.
|
|
1432
|
+
*
|
|
1433
|
+
*
|
|
1434
|
+
*/
|
|
1435
|
+
readonly returnTrackingId?: string;
|
|
1436
|
+
/**
|
|
1437
|
+
* Date and time (UTC) the return is initiated.
|
|
1438
|
+
*
|
|
1439
|
+
*
|
|
1440
|
+
*/
|
|
1441
|
+
readonly returnDate?: string;
|
|
1442
|
+
}
|
|
1443
|
+
export interface ReturnInfoDraft {
|
|
1444
|
+
/**
|
|
1445
|
+
* Information on the Line Items or Custom Line Items returned.
|
|
1446
|
+
*
|
|
1447
|
+
*
|
|
1448
|
+
*/
|
|
1449
|
+
readonly items: ReturnItemDraft[];
|
|
1450
|
+
/**
|
|
1451
|
+
* User-defined identifier for tracking the return.
|
|
1452
|
+
*
|
|
1453
|
+
*
|
|
1454
|
+
*/
|
|
1455
|
+
readonly returnTrackingId?: string;
|
|
1456
|
+
/**
|
|
1457
|
+
* Date and time (UTC) the return is initiated.
|
|
1458
|
+
*
|
|
1459
|
+
*
|
|
1460
|
+
*/
|
|
1461
|
+
readonly returnDate?: string;
|
|
1462
|
+
}
|
|
1463
|
+
export type ReturnItem = CustomLineItemReturnItem | LineItemReturnItem;
|
|
1464
|
+
export interface CustomLineItemReturnItem {
|
|
1465
|
+
readonly type: 'CustomLineItemReturnItem';
|
|
1466
|
+
/**
|
|
1467
|
+
* Unique identifier of the Return Item.
|
|
1468
|
+
*
|
|
1469
|
+
*
|
|
1470
|
+
*/
|
|
1471
|
+
readonly id: string;
|
|
1472
|
+
/**
|
|
1473
|
+
* User-defined unique identifier of the CustomLineItemReturnItem.
|
|
1474
|
+
*
|
|
1475
|
+
*/
|
|
1476
|
+
readonly key?: string;
|
|
1477
|
+
/**
|
|
1478
|
+
* Number of Custom Line Items returned.
|
|
1479
|
+
*
|
|
1480
|
+
*
|
|
1481
|
+
*/
|
|
1482
|
+
readonly quantity: number;
|
|
1483
|
+
/**
|
|
1484
|
+
* User-defined description for the return.
|
|
1485
|
+
*
|
|
1486
|
+
*
|
|
1487
|
+
*/
|
|
1488
|
+
readonly comment?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Shipment status of the Return Item.
|
|
1491
|
+
*
|
|
1492
|
+
*
|
|
1493
|
+
*/
|
|
1494
|
+
readonly shipmentState: ReturnShipmentState;
|
|
1495
|
+
/**
|
|
1496
|
+
* Payment status of the Return Item:
|
|
1497
|
+
*
|
|
1498
|
+
* - `NonRefundable`, for items in the `Advised` [ReturnShipmentState](ctp:api:type:ReturnShipmentState)
|
|
1499
|
+
* - `Initial`, for items in the `Returned` [ReturnShipmentState](ctp:api:type:ReturnShipmentState)
|
|
1500
|
+
*
|
|
1501
|
+
*
|
|
1502
|
+
*/
|
|
1503
|
+
readonly paymentState: ReturnPaymentState;
|
|
1504
|
+
/**
|
|
1505
|
+
* Custom Fields of the Return Item.
|
|
1506
|
+
*
|
|
1507
|
+
*
|
|
1508
|
+
*/
|
|
1509
|
+
readonly custom?: CustomFields;
|
|
1510
|
+
/**
|
|
1511
|
+
* Date and time (UTC) the Return Item was last updated.
|
|
1512
|
+
*
|
|
1513
|
+
*
|
|
1514
|
+
*/
|
|
1515
|
+
readonly lastModifiedAt: string;
|
|
1516
|
+
/**
|
|
1517
|
+
* Date and time (UTC) the Return Item was intitially created.
|
|
1518
|
+
*
|
|
1519
|
+
*
|
|
1520
|
+
*/
|
|
1521
|
+
readonly createdAt: string;
|
|
1522
|
+
/**
|
|
1523
|
+
* `id` of the returned [CustomLineItem](ctp:api:type:CustomLineItem).
|
|
1524
|
+
*
|
|
1525
|
+
*
|
|
1526
|
+
*/
|
|
1527
|
+
readonly customLineItemId: string;
|
|
1528
|
+
}
|
|
1529
|
+
export interface LineItemReturnItem {
|
|
1530
|
+
readonly type: 'LineItemReturnItem';
|
|
1531
|
+
/**
|
|
1532
|
+
* Unique identifier of the Return Item.
|
|
1533
|
+
*
|
|
1534
|
+
*
|
|
1535
|
+
*/
|
|
1536
|
+
readonly id: string;
|
|
1537
|
+
/**
|
|
1538
|
+
* User-defined unique identifier of the LineItemReturnItem.
|
|
1539
|
+
*
|
|
1540
|
+
*/
|
|
1541
|
+
readonly key?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* Number of Line Items returned.
|
|
1544
|
+
*
|
|
1545
|
+
*
|
|
1546
|
+
*/
|
|
1547
|
+
readonly quantity: number;
|
|
1548
|
+
/**
|
|
1549
|
+
* User-defined description for the return.
|
|
1550
|
+
*
|
|
1551
|
+
*
|
|
1552
|
+
*/
|
|
1553
|
+
readonly comment?: string;
|
|
1554
|
+
/**
|
|
1555
|
+
* Shipment status of the Return Item.
|
|
1556
|
+
*
|
|
1557
|
+
*
|
|
1558
|
+
*/
|
|
1559
|
+
readonly shipmentState: ReturnShipmentState;
|
|
1560
|
+
/**
|
|
1561
|
+
* Payment status of the Return Item:
|
|
1562
|
+
*
|
|
1563
|
+
* - `NonRefundable`, for items in the `Advised` [ReturnShipmentState](ctp:api:type:ReturnShipmentState)
|
|
1564
|
+
* - `Initial`, for items in the `Returned` [ReturnShipmentState](ctp:api:type:ReturnShipmentState)
|
|
1565
|
+
*
|
|
1566
|
+
*
|
|
1567
|
+
*/
|
|
1568
|
+
readonly paymentState: ReturnPaymentState;
|
|
1569
|
+
/**
|
|
1570
|
+
* Custom Fields of the Return Item.
|
|
1571
|
+
*
|
|
1572
|
+
*
|
|
1573
|
+
*/
|
|
1574
|
+
readonly custom?: CustomFields;
|
|
1575
|
+
/**
|
|
1576
|
+
* Date and time (UTC) the Return Item was last updated.
|
|
1577
|
+
*
|
|
1578
|
+
*
|
|
1579
|
+
*/
|
|
1580
|
+
readonly lastModifiedAt: string;
|
|
1581
|
+
/**
|
|
1582
|
+
* Date and time (UTC) the Return Item was intitially created.
|
|
1583
|
+
*
|
|
1584
|
+
*
|
|
1585
|
+
*/
|
|
1586
|
+
readonly createdAt: string;
|
|
1587
|
+
/**
|
|
1588
|
+
* `id` of the returned [LineItem](ctp:api:type:LineItem).
|
|
1589
|
+
*
|
|
1590
|
+
*
|
|
1591
|
+
*/
|
|
1592
|
+
readonly lineItemId: string;
|
|
1593
|
+
}
|
|
1594
|
+
export interface ReturnItemDraft {
|
|
1595
|
+
/**
|
|
1596
|
+
* User-defined unique identifier of the Return Item.
|
|
1597
|
+
*
|
|
1598
|
+
*/
|
|
1599
|
+
readonly key?: string;
|
|
1600
|
+
/**
|
|
1601
|
+
* Number of Line Items or Custom Line Items to return.
|
|
1602
|
+
*
|
|
1603
|
+
*
|
|
1604
|
+
*/
|
|
1605
|
+
readonly quantity: number;
|
|
1606
|
+
/**
|
|
1607
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to return.
|
|
1608
|
+
*
|
|
1609
|
+
* Required if Line Items are returned, to create a [LineItemReturnItem](ctp:api:type:LineItemReturnItem).
|
|
1610
|
+
*
|
|
1611
|
+
*
|
|
1612
|
+
*/
|
|
1613
|
+
readonly lineItemId?: string;
|
|
1614
|
+
/**
|
|
1615
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to return.
|
|
1616
|
+
*
|
|
1617
|
+
* Required if Custom Line Items are returned, to create a [CustomLineItemReturnItem](ctp:api:type:CustomLineItemReturnItem).
|
|
1618
|
+
*
|
|
1619
|
+
*
|
|
1620
|
+
*/
|
|
1621
|
+
readonly customLineItemId?: string;
|
|
1622
|
+
/**
|
|
1623
|
+
* User-defined description for the return.
|
|
1624
|
+
*
|
|
1625
|
+
*
|
|
1626
|
+
*/
|
|
1627
|
+
readonly comment?: string;
|
|
1628
|
+
/**
|
|
1629
|
+
* Shipment status of the item to be returned.
|
|
1630
|
+
* Can either be `Advised` or `Returned` only.
|
|
1631
|
+
*
|
|
1632
|
+
*
|
|
1633
|
+
*/
|
|
1634
|
+
readonly shipmentState: ReturnShipmentState;
|
|
1635
|
+
/**
|
|
1636
|
+
* Custom Fields for the Return Item.
|
|
1637
|
+
*
|
|
1638
|
+
*
|
|
1639
|
+
*/
|
|
1640
|
+
readonly custom?: CustomFieldsDraft;
|
|
1641
|
+
}
|
|
1642
|
+
export type ReturnPaymentState = 'Initial' | 'NonRefundable' | 'NotRefunded' | 'Refunded' | string;
|
|
1643
|
+
export type ReturnShipmentState = 'Advised' | 'BackInStock' | 'Returned' | 'Unusable' | string;
|
|
1644
|
+
/**
|
|
1645
|
+
* Indicates the shipment status of the Order.
|
|
1646
|
+
*
|
|
1647
|
+
*/
|
|
1648
|
+
export type ShipmentState = 'Backorder' | 'Delayed' | 'Delivered' | 'Partial' | 'Pending' | 'Ready' | 'Shipped' | string;
|
|
1649
|
+
/**
|
|
1650
|
+
* Becomes the `shippingInfo` of the imported Order.
|
|
1651
|
+
*
|
|
1652
|
+
*/
|
|
1653
|
+
export interface ShippingInfoImportDraft {
|
|
1654
|
+
/**
|
|
1655
|
+
* Name of the Shipping Method.
|
|
1656
|
+
*
|
|
1657
|
+
*
|
|
1658
|
+
*/
|
|
1659
|
+
readonly shippingMethodName: string;
|
|
1660
|
+
/**
|
|
1661
|
+
* The base price for the Shipping Method.
|
|
1662
|
+
*
|
|
1663
|
+
*
|
|
1664
|
+
*/
|
|
1665
|
+
readonly price: _Money;
|
|
1666
|
+
/**
|
|
1667
|
+
* Shipping rate information for the Order.
|
|
1668
|
+
*
|
|
1669
|
+
*
|
|
1670
|
+
*/
|
|
1671
|
+
readonly shippingRate: ShippingRateDraft;
|
|
1672
|
+
/**
|
|
1673
|
+
* Include a Tax Rate for the Shipping Method.
|
|
1674
|
+
*
|
|
1675
|
+
*
|
|
1676
|
+
*/
|
|
1677
|
+
readonly taxRate?: TaxRate;
|
|
1678
|
+
/**
|
|
1679
|
+
* Include a value to associate a Tax Category with the shipping information.
|
|
1680
|
+
*
|
|
1681
|
+
*
|
|
1682
|
+
*/
|
|
1683
|
+
readonly taxCategory?: TaxCategoryResourceIdentifier;
|
|
1684
|
+
/**
|
|
1685
|
+
* Include a value to associate a Shipping Method with the Order.
|
|
1686
|
+
*
|
|
1687
|
+
*
|
|
1688
|
+
*/
|
|
1689
|
+
readonly shippingMethod?: ShippingMethodResourceIdentifier;
|
|
1690
|
+
/**
|
|
1691
|
+
* Information on how items are to be delivered to customers.
|
|
1692
|
+
*
|
|
1693
|
+
*
|
|
1694
|
+
*/
|
|
1695
|
+
readonly deliveries?: DeliveryDraft[];
|
|
1696
|
+
/**
|
|
1697
|
+
* Discounted Price of the Shipping Method.
|
|
1698
|
+
*
|
|
1699
|
+
*
|
|
1700
|
+
*/
|
|
1701
|
+
readonly discountedPrice?: DiscountedLineItemPriceDraft;
|
|
1702
|
+
/**
|
|
1703
|
+
* Indicates if the [ShippingMethod](ctp:api:type:ShippingMethod) referenced is allowed for the Order or not.
|
|
1704
|
+
*
|
|
1705
|
+
*
|
|
1706
|
+
*/
|
|
1707
|
+
readonly shippingMethodState?: ShippingMethodState;
|
|
1708
|
+
}
|
|
1709
|
+
/**
|
|
1710
|
+
* Contains synchronization activity information of the Order (like export or import).
|
|
1711
|
+
*
|
|
1712
|
+
*/
|
|
1713
|
+
export interface SyncInfo {
|
|
1714
|
+
/**
|
|
1715
|
+
* Connection to a synchronization destination.
|
|
1716
|
+
*
|
|
1717
|
+
*
|
|
1718
|
+
*/
|
|
1719
|
+
readonly channel: ChannelReference;
|
|
1720
|
+
/**
|
|
1721
|
+
* Identifier of an external order instance, file, or other resource.
|
|
1722
|
+
*
|
|
1723
|
+
*
|
|
1724
|
+
*/
|
|
1725
|
+
readonly externalId?: string;
|
|
1726
|
+
/**
|
|
1727
|
+
* Date and time (UTC) the information was synced.
|
|
1728
|
+
*
|
|
1729
|
+
*
|
|
1730
|
+
*/
|
|
1731
|
+
readonly syncedAt: string;
|
|
1732
|
+
}
|
|
1733
|
+
export interface TaxedItemPriceDraft {
|
|
1734
|
+
/**
|
|
1735
|
+
* Draft object to store money in cent amounts for a specific currency.
|
|
1736
|
+
*
|
|
1737
|
+
*/
|
|
1738
|
+
readonly totalNet: _Money;
|
|
1739
|
+
/**
|
|
1740
|
+
* Draft object to store money in cent amounts for a specific currency.
|
|
1741
|
+
*
|
|
1742
|
+
*/
|
|
1743
|
+
readonly totalGross: _Money;
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Information that helps track a Parcel.
|
|
1747
|
+
*
|
|
1748
|
+
*/
|
|
1749
|
+
export interface TrackingData {
|
|
1750
|
+
/**
|
|
1751
|
+
* Identifier to track the Parcel.
|
|
1752
|
+
*
|
|
1753
|
+
*
|
|
1754
|
+
*/
|
|
1755
|
+
readonly trackingId?: string;
|
|
1756
|
+
/**
|
|
1757
|
+
* Name of the carrier that delivers the Parcel.
|
|
1758
|
+
*
|
|
1759
|
+
*
|
|
1760
|
+
*/
|
|
1761
|
+
readonly carrier?: string;
|
|
1762
|
+
/**
|
|
1763
|
+
* Name of the provider that serves as facade to several carriers.
|
|
1764
|
+
*
|
|
1765
|
+
*
|
|
1766
|
+
*/
|
|
1767
|
+
readonly provider?: string;
|
|
1768
|
+
/**
|
|
1769
|
+
* Transaction identifier with the `provider`.
|
|
1770
|
+
*
|
|
1771
|
+
*
|
|
1772
|
+
*/
|
|
1773
|
+
readonly providerTransaction?: string;
|
|
1774
|
+
/**
|
|
1775
|
+
* - If `true`, the Parcel is being returned.
|
|
1776
|
+
* - If `false`, the Parcel is being delivered to the customer.
|
|
1777
|
+
*
|
|
1778
|
+
*
|
|
1779
|
+
*/
|
|
1780
|
+
readonly isReturn?: boolean;
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* A [Delivery](ctp:api:type:Delivery) can only be added to an [Order](ctp:api:type:Order) if
|
|
1784
|
+
* its `shippingInfo` (for `shippingMode` = `Single`), or its `shipping` (for `shippingMode` = `Multiple`) exists.
|
|
1785
|
+
*
|
|
1786
|
+
* Produces the [Delivery Added](ctp:api:type:DeliveryAddedMessage) Message.
|
|
1787
|
+
*
|
|
1788
|
+
*/
|
|
1789
|
+
export interface OrderAddDeliveryAction {
|
|
1790
|
+
readonly action: 'addDelivery';
|
|
1791
|
+
/**
|
|
1792
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
1793
|
+
*
|
|
1794
|
+
*
|
|
1795
|
+
*/
|
|
1796
|
+
readonly deliveryKey?: string;
|
|
1797
|
+
/**
|
|
1798
|
+
* `key` of the [ShippingMethod](ctp:api:type:ShippingMethod), required for `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
|
|
1799
|
+
*
|
|
1800
|
+
*
|
|
1801
|
+
*/
|
|
1802
|
+
readonly shippingKey?: string;
|
|
1803
|
+
/**
|
|
1804
|
+
* Line Items or Custom Line Items to be included in the Delivery.
|
|
1805
|
+
*
|
|
1806
|
+
*
|
|
1807
|
+
*/
|
|
1808
|
+
readonly items?: DeliveryItem[];
|
|
1809
|
+
/**
|
|
1810
|
+
* Address the `parcels` should be delivered to.
|
|
1811
|
+
*
|
|
1812
|
+
*
|
|
1813
|
+
*/
|
|
1814
|
+
readonly address?: _BaseAddress;
|
|
1815
|
+
/**
|
|
1816
|
+
* Parcels of the Delivery.
|
|
1817
|
+
*
|
|
1818
|
+
* If provided, this update action produces the [Parcel Added To Delivery](ctp:api:type:ParcelAddedToDeliveryMessage) Message.
|
|
1819
|
+
*
|
|
1820
|
+
*
|
|
1821
|
+
*/
|
|
1822
|
+
readonly parcels?: ParcelDraft[];
|
|
1823
|
+
/**
|
|
1824
|
+
* Custom Fields for the Delivery.
|
|
1825
|
+
*
|
|
1826
|
+
*
|
|
1827
|
+
*/
|
|
1828
|
+
readonly custom?: CustomFieldsDraft;
|
|
1829
|
+
}
|
|
1830
|
+
/**
|
|
1831
|
+
* Adds an address to an Order when shipping to multiple addresses is desired.
|
|
1832
|
+
*
|
|
1833
|
+
*/
|
|
1834
|
+
export interface OrderAddItemShippingAddressAction {
|
|
1835
|
+
readonly action: 'addItemShippingAddress';
|
|
1836
|
+
/**
|
|
1837
|
+
* Address to append to `itemShippingAddresses`.
|
|
1838
|
+
* The new Address must have a `key` that is unique across this Order.
|
|
1839
|
+
*
|
|
1840
|
+
*
|
|
1841
|
+
*/
|
|
1842
|
+
readonly address: _BaseAddress;
|
|
1843
|
+
}
|
|
1844
|
+
/**
|
|
1845
|
+
* To add a Parcel, at least one [Delivery](ctp:api:type:Delivery) must exist.
|
|
1846
|
+
*
|
|
1847
|
+
* Produces the [Parcel Added To Delivery](ctp:api:type:ParcelAddedToDeliveryMessage) Message.
|
|
1848
|
+
*
|
|
1849
|
+
*/
|
|
1850
|
+
export interface OrderAddParcelToDeliveryAction {
|
|
1851
|
+
readonly action: 'addParcelToDelivery';
|
|
1852
|
+
/**
|
|
1853
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
1854
|
+
*
|
|
1855
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
1856
|
+
*
|
|
1857
|
+
*
|
|
1858
|
+
*/
|
|
1859
|
+
readonly deliveryId?: string;
|
|
1860
|
+
/**
|
|
1861
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
1862
|
+
*
|
|
1863
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
1864
|
+
*
|
|
1865
|
+
*
|
|
1866
|
+
*/
|
|
1867
|
+
readonly deliveryKey?: string;
|
|
1868
|
+
/**
|
|
1869
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
1870
|
+
*
|
|
1871
|
+
*
|
|
1872
|
+
*/
|
|
1873
|
+
readonly parcelKey?: string;
|
|
1874
|
+
/**
|
|
1875
|
+
* Value to set.
|
|
1876
|
+
*
|
|
1877
|
+
*
|
|
1878
|
+
*/
|
|
1879
|
+
readonly measurements?: ParcelMeasurements;
|
|
1880
|
+
/**
|
|
1881
|
+
* Value to set.
|
|
1882
|
+
*
|
|
1883
|
+
*
|
|
1884
|
+
*/
|
|
1885
|
+
readonly trackingData?: TrackingData;
|
|
1886
|
+
/**
|
|
1887
|
+
* Value to set.
|
|
1888
|
+
*
|
|
1889
|
+
*
|
|
1890
|
+
*/
|
|
1891
|
+
readonly items?: DeliveryItem[];
|
|
1892
|
+
/**
|
|
1893
|
+
* Custom Fields for the Parcel.
|
|
1894
|
+
*
|
|
1895
|
+
*
|
|
1896
|
+
*/
|
|
1897
|
+
readonly custom?: CustomFieldsDraft;
|
|
1898
|
+
}
|
|
1899
|
+
export interface OrderAddPaymentAction {
|
|
1900
|
+
readonly action: 'addPayment';
|
|
1901
|
+
/**
|
|
1902
|
+
* Payment to add to the [PaymentInfo](ctp:api:type:PaymentInfo).
|
|
1903
|
+
* Must not be assigned to another Order or active Cart already.
|
|
1904
|
+
*
|
|
1905
|
+
*
|
|
1906
|
+
*/
|
|
1907
|
+
readonly payment: PaymentResourceIdentifier;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Produces the [Return Info Added](ctp:api:type:ReturnInfoAddedMessage) Message.
|
|
1911
|
+
*
|
|
1912
|
+
*/
|
|
1913
|
+
export interface OrderAddReturnInfoAction {
|
|
1914
|
+
readonly action: 'addReturnInfo';
|
|
1915
|
+
/**
|
|
1916
|
+
* Value to set.
|
|
1917
|
+
*
|
|
1918
|
+
*
|
|
1919
|
+
*/
|
|
1920
|
+
readonly returnTrackingId?: string;
|
|
1921
|
+
/**
|
|
1922
|
+
* Items to be returned.
|
|
1923
|
+
* Must not be empty.
|
|
1924
|
+
*
|
|
1925
|
+
*
|
|
1926
|
+
*/
|
|
1927
|
+
readonly items: ReturnItemDraft[];
|
|
1928
|
+
/**
|
|
1929
|
+
* Value to set.
|
|
1930
|
+
* If not set, it defaults to the current date and time.
|
|
1931
|
+
*
|
|
1932
|
+
*
|
|
1933
|
+
*/
|
|
1934
|
+
readonly returnDate?: string;
|
|
1935
|
+
}
|
|
1936
|
+
/**
|
|
1937
|
+
* Produces the [Order State Changed](ctp:api:type:OrderStateChangedMessage) Message.
|
|
1938
|
+
*
|
|
1939
|
+
*/
|
|
1940
|
+
export interface OrderChangeOrderStateAction {
|
|
1941
|
+
readonly action: 'changeOrderState';
|
|
1942
|
+
/**
|
|
1943
|
+
* New status of the Order.
|
|
1944
|
+
*
|
|
1945
|
+
*
|
|
1946
|
+
*/
|
|
1947
|
+
readonly orderState: OrderState;
|
|
1948
|
+
}
|
|
1949
|
+
/**
|
|
1950
|
+
* Produces the [Order Payment State Changed](ctp:api:type:OrderPaymentStateChangedMessage) Message.
|
|
1951
|
+
*
|
|
1952
|
+
*/
|
|
1953
|
+
export interface OrderChangePaymentStateAction {
|
|
1954
|
+
readonly action: 'changePaymentState';
|
|
1955
|
+
/**
|
|
1956
|
+
* New payment status of the Order.
|
|
1957
|
+
*
|
|
1958
|
+
*
|
|
1959
|
+
*/
|
|
1960
|
+
readonly paymentState: PaymentState;
|
|
1961
|
+
}
|
|
1962
|
+
/**
|
|
1963
|
+
* Produces the [Order Shipment State Changed](ctp:api:type:OrderShipmentStateChangedMessage) Message.
|
|
1964
|
+
*
|
|
1965
|
+
*/
|
|
1966
|
+
export interface OrderChangeShipmentStateAction {
|
|
1967
|
+
readonly action: 'changeShipmentState';
|
|
1968
|
+
/**
|
|
1969
|
+
* New shipment status of the Order.
|
|
1970
|
+
*
|
|
1971
|
+
*
|
|
1972
|
+
*/
|
|
1973
|
+
readonly shipmentState: ShipmentState;
|
|
1974
|
+
}
|
|
1975
|
+
/**
|
|
1976
|
+
* The import of States does not follow any predefined rules and should be only used if no transitions are defined.
|
|
1977
|
+
* The `quantity` in the [ItemStates](ctp:api:type:ItemState) must match the sum of all Custom Line Item states' quantities.
|
|
1978
|
+
*
|
|
1979
|
+
*/
|
|
1980
|
+
export interface OrderImportCustomLineItemStateAction {
|
|
1981
|
+
readonly action: 'importCustomLineItemState';
|
|
1982
|
+
/**
|
|
1983
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
1984
|
+
*
|
|
1985
|
+
*
|
|
1986
|
+
*/
|
|
1987
|
+
readonly customLineItemId?: string;
|
|
1988
|
+
/**
|
|
1989
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
1990
|
+
*
|
|
1991
|
+
*
|
|
1992
|
+
*/
|
|
1993
|
+
readonly customLineItemKey?: string;
|
|
1994
|
+
/**
|
|
1995
|
+
* New status of the Custom Line Items.
|
|
1996
|
+
*
|
|
1997
|
+
*
|
|
1998
|
+
*/
|
|
1999
|
+
readonly state: ItemState[];
|
|
2000
|
+
}
|
|
2001
|
+
/**
|
|
2002
|
+
* The import of States does not follow any predefined rules and should be only used if no transitions are defined.
|
|
2003
|
+
* The `quantity` in the [ItemStates](ctp:api:type:ItemState) must match the sum of all Line Items states' quantities.
|
|
2004
|
+
*
|
|
2005
|
+
*/
|
|
2006
|
+
export interface OrderImportLineItemStateAction {
|
|
2007
|
+
readonly action: 'importLineItemState';
|
|
2008
|
+
/**
|
|
2009
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2010
|
+
*
|
|
2011
|
+
*
|
|
2012
|
+
*/
|
|
2013
|
+
readonly lineItemId?: string;
|
|
2014
|
+
/**
|
|
2015
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2016
|
+
*
|
|
2017
|
+
*
|
|
2018
|
+
*/
|
|
2019
|
+
readonly lineItemKey?: string;
|
|
2020
|
+
/**
|
|
2021
|
+
* New status of the Line Items.
|
|
2022
|
+
*
|
|
2023
|
+
*
|
|
2024
|
+
*/
|
|
2025
|
+
readonly state: ItemState[];
|
|
2026
|
+
}
|
|
2027
|
+
/**
|
|
2028
|
+
* Produces the [DeliveryRemoved](ctp:api:type:DeliveryRemovedMessage) Message.
|
|
2029
|
+
*
|
|
2030
|
+
*/
|
|
2031
|
+
export interface OrderRemoveDeliveryAction {
|
|
2032
|
+
readonly action: 'removeDelivery';
|
|
2033
|
+
/**
|
|
2034
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2035
|
+
*
|
|
2036
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2037
|
+
*
|
|
2038
|
+
*
|
|
2039
|
+
*/
|
|
2040
|
+
readonly deliveryId?: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2043
|
+
*
|
|
2044
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2045
|
+
*
|
|
2046
|
+
*
|
|
2047
|
+
*/
|
|
2048
|
+
readonly deliveryKey?: string;
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* An address can only be removed if it is not referenced in any [ItemShippingTarget](ctp:api:type:ItemShippingTarget) of the Cart.
|
|
2052
|
+
* In such case, change the Line Item shipping address to a different `addressKey` first using the [Set LineItemShippingDetails](ctp:api:type:OrderSetLineItemShippingDetailsAction) update action, before you remove the obsolete address.
|
|
2053
|
+
*
|
|
2054
|
+
*/
|
|
2055
|
+
export interface OrderRemoveItemShippingAddressAction {
|
|
2056
|
+
readonly action: 'removeItemShippingAddress';
|
|
2057
|
+
/**
|
|
2058
|
+
* `key` of the Address to remove from `itemShippingAddresses`.
|
|
2059
|
+
*
|
|
2060
|
+
*
|
|
2061
|
+
*/
|
|
2062
|
+
readonly addressKey: string;
|
|
2063
|
+
}
|
|
2064
|
+
/**
|
|
2065
|
+
* Produces the [ParcelRemovedFromDelivery](ctp:api:type:ParcelRemovedFromDeliveryMessage) Message.
|
|
2066
|
+
*
|
|
2067
|
+
*/
|
|
2068
|
+
export interface OrderRemoveParcelFromDeliveryAction {
|
|
2069
|
+
readonly action: 'removeParcelFromDelivery';
|
|
2070
|
+
/**
|
|
2071
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2072
|
+
*
|
|
2073
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2074
|
+
*
|
|
2075
|
+
*
|
|
2076
|
+
*/
|
|
2077
|
+
readonly parcelId?: string;
|
|
2078
|
+
/**
|
|
2079
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2080
|
+
*
|
|
2081
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2082
|
+
*
|
|
2083
|
+
*
|
|
2084
|
+
*/
|
|
2085
|
+
readonly parcelKey?: string;
|
|
2086
|
+
}
|
|
2087
|
+
export interface OrderRemovePaymentAction {
|
|
2088
|
+
readonly action: 'removePayment';
|
|
2089
|
+
/**
|
|
2090
|
+
* Payment to remove from the [PaymentInfo](ctp:api:type:PaymentInfo).
|
|
2091
|
+
*
|
|
2092
|
+
*
|
|
2093
|
+
*/
|
|
2094
|
+
readonly payment: PaymentResourceIdentifier;
|
|
2095
|
+
}
|
|
2096
|
+
/**
|
|
2097
|
+
* This action updates the `billingAddress` on the Order, but it does not change the billing address on the referenced [Cart](ctp:api:type:Cart) from which the Order is created.
|
|
2098
|
+
*
|
|
2099
|
+
* Produces the [Order Billing Address Set](ctp:api:type:OrderBillingAddressSetMessage) Message.
|
|
2100
|
+
*
|
|
2101
|
+
*/
|
|
2102
|
+
export interface OrderSetBillingAddressAction {
|
|
2103
|
+
readonly action: 'setBillingAddress';
|
|
2104
|
+
/**
|
|
2105
|
+
* Value to set.
|
|
2106
|
+
* If empty, any existing value is removed.
|
|
2107
|
+
*
|
|
2108
|
+
*
|
|
2109
|
+
*/
|
|
2110
|
+
readonly address?: _BaseAddress;
|
|
2111
|
+
}
|
|
2112
|
+
export interface OrderSetBillingAddressCustomFieldAction {
|
|
2113
|
+
readonly action: 'setBillingAddressCustomField';
|
|
2114
|
+
/**
|
|
2115
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2116
|
+
*
|
|
2117
|
+
*
|
|
2118
|
+
*/
|
|
2119
|
+
readonly name: string;
|
|
2120
|
+
/**
|
|
2121
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2122
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2123
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2124
|
+
*
|
|
2125
|
+
*
|
|
2126
|
+
*/
|
|
2127
|
+
readonly value?: any;
|
|
2128
|
+
}
|
|
2129
|
+
export interface OrderSetBillingAddressCustomTypeAction {
|
|
2130
|
+
readonly action: 'setBillingAddressCustomType';
|
|
2131
|
+
/**
|
|
2132
|
+
* Defines the [Type](ctp:api:type:Type) that extends the `billingAddress` with [Custom Fields](/../api/projects/custom-fields).
|
|
2133
|
+
* If absent, any existing Type and Custom Fields are removed from the `billingAddress`.
|
|
2134
|
+
*
|
|
2135
|
+
*
|
|
2136
|
+
*/
|
|
2137
|
+
readonly type?: TypeResourceIdentifier;
|
|
2138
|
+
/**
|
|
2139
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the `billingAddress`.
|
|
2140
|
+
*
|
|
2141
|
+
*
|
|
2142
|
+
*/
|
|
2143
|
+
readonly fields?: FieldContainer;
|
|
2144
|
+
}
|
|
2145
|
+
export interface OrderSetCustomFieldAction {
|
|
2146
|
+
readonly action: 'setCustomField';
|
|
2147
|
+
/**
|
|
2148
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2149
|
+
*
|
|
2150
|
+
*
|
|
2151
|
+
*/
|
|
2152
|
+
readonly name: string;
|
|
2153
|
+
/**
|
|
2154
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2155
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2156
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2157
|
+
*
|
|
2158
|
+
*
|
|
2159
|
+
*/
|
|
2160
|
+
readonly value?: any;
|
|
2161
|
+
}
|
|
2162
|
+
export interface OrderSetCustomLineItemCustomFieldAction {
|
|
2163
|
+
readonly action: 'setCustomLineItemCustomField';
|
|
2164
|
+
/**
|
|
2165
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2166
|
+
*
|
|
2167
|
+
*
|
|
2168
|
+
*/
|
|
2169
|
+
readonly customLineItemId?: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2172
|
+
*
|
|
2173
|
+
*
|
|
2174
|
+
*/
|
|
2175
|
+
readonly customLineItemKey?: string;
|
|
2176
|
+
/**
|
|
2177
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2178
|
+
*
|
|
2179
|
+
*
|
|
2180
|
+
*/
|
|
2181
|
+
readonly name: string;
|
|
2182
|
+
/**
|
|
2183
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2184
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2185
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2186
|
+
*
|
|
2187
|
+
*
|
|
2188
|
+
*/
|
|
2189
|
+
readonly value?: any;
|
|
2190
|
+
}
|
|
2191
|
+
export interface OrderSetCustomLineItemCustomTypeAction {
|
|
2192
|
+
readonly action: 'setCustomLineItemCustomType';
|
|
2193
|
+
/**
|
|
2194
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2195
|
+
*
|
|
2196
|
+
*
|
|
2197
|
+
*/
|
|
2198
|
+
readonly customLineItemId?: string;
|
|
2199
|
+
/**
|
|
2200
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2201
|
+
*
|
|
2202
|
+
*
|
|
2203
|
+
*/
|
|
2204
|
+
readonly customLineItemKey?: string;
|
|
2205
|
+
/**
|
|
2206
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Custom Line Item with [Custom Fields](/../api/projects/custom-fields).
|
|
2207
|
+
* If absent, any existing Type and Custom Fields are removed from the Custom Line Item.
|
|
2208
|
+
*
|
|
2209
|
+
*
|
|
2210
|
+
*/
|
|
2211
|
+
readonly type?: TypeResourceIdentifier;
|
|
2212
|
+
/**
|
|
2213
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Custom Line Item.
|
|
2214
|
+
*
|
|
2215
|
+
*
|
|
2216
|
+
*/
|
|
2217
|
+
readonly fields?: FieldContainer;
|
|
2218
|
+
}
|
|
2219
|
+
export interface OrderSetCustomLineItemShippingDetailsAction {
|
|
2220
|
+
readonly action: 'setCustomLineItemShippingDetails';
|
|
2221
|
+
/**
|
|
2222
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2223
|
+
*
|
|
2224
|
+
*
|
|
2225
|
+
*/
|
|
2226
|
+
readonly customLineItemId?: string;
|
|
2227
|
+
/**
|
|
2228
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
2229
|
+
*
|
|
2230
|
+
*
|
|
2231
|
+
*/
|
|
2232
|
+
readonly customLineItemKey?: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* Value to set.
|
|
2235
|
+
* If empty, any existing value is removed.
|
|
2236
|
+
*
|
|
2237
|
+
*
|
|
2238
|
+
*/
|
|
2239
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
2240
|
+
}
|
|
2241
|
+
export interface OrderSetCustomTypeAction {
|
|
2242
|
+
readonly action: 'setCustomType';
|
|
2243
|
+
/**
|
|
2244
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Order with [Custom Fields](/../api/projects/custom-fields).
|
|
2245
|
+
* If absent, any existing Type and Custom Fields are removed from the Order.
|
|
2246
|
+
*
|
|
2247
|
+
*
|
|
2248
|
+
*/
|
|
2249
|
+
readonly type?: TypeResourceIdentifier;
|
|
2250
|
+
/**
|
|
2251
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Order.
|
|
2252
|
+
*
|
|
2253
|
+
*
|
|
2254
|
+
*/
|
|
2255
|
+
readonly fields?: FieldContainer;
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* This action updates the `customerEmail` on the Order, but it does not change the Customer email on the [Cart](ctp:api:type:Cart) the Order has been created from.
|
|
2259
|
+
*
|
|
2260
|
+
* Produces the [Order Customer Email Set](ctp:api:type:OrderCustomerEmailSetMessage) Message.
|
|
2261
|
+
*
|
|
2262
|
+
*/
|
|
2263
|
+
export interface OrderSetCustomerEmailAction {
|
|
2264
|
+
readonly action: 'setCustomerEmail';
|
|
2265
|
+
/**
|
|
2266
|
+
* Value to set.
|
|
2267
|
+
* If empty, any existing value is removed.
|
|
2268
|
+
*
|
|
2269
|
+
*
|
|
2270
|
+
*/
|
|
2271
|
+
readonly email?: string;
|
|
2272
|
+
}
|
|
2273
|
+
/**
|
|
2274
|
+
* Setting the Order's `customerId` does not recalculate prices or discounts on the Order.
|
|
2275
|
+
* If the Customer belongs to a Customer Group, `customerGroup` on the [Order](ctp:api:type:Order) is updated automatically.
|
|
2276
|
+
*
|
|
2277
|
+
* Produces the [OrderCustomerSet](ctp:api:type:OrderCustomerSetMessage) Message.
|
|
2278
|
+
*
|
|
2279
|
+
*/
|
|
2280
|
+
export interface OrderSetCustomerIdAction {
|
|
2281
|
+
readonly action: 'setCustomerId';
|
|
2282
|
+
/**
|
|
2283
|
+
* `id` of an existing [Customer](ctp:api:type:Customer).
|
|
2284
|
+
* If empty, any existing value is removed.
|
|
2285
|
+
*
|
|
2286
|
+
*
|
|
2287
|
+
*/
|
|
2288
|
+
readonly customerId?: string;
|
|
2289
|
+
}
|
|
2290
|
+
/**
|
|
2291
|
+
* Produces the [DeliveryAddressSet](ctp:api:type:DeliveryAddressSetMessage) Message.
|
|
2292
|
+
*
|
|
2293
|
+
*/
|
|
2294
|
+
export interface OrderSetDeliveryAddressAction {
|
|
2295
|
+
readonly action: 'setDeliveryAddress';
|
|
2296
|
+
/**
|
|
2297
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2298
|
+
*
|
|
2299
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2300
|
+
*
|
|
2301
|
+
*
|
|
2302
|
+
*/
|
|
2303
|
+
readonly deliveryId?: string;
|
|
2304
|
+
/**
|
|
2305
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2306
|
+
*
|
|
2307
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2308
|
+
*
|
|
2309
|
+
*
|
|
2310
|
+
*/
|
|
2311
|
+
readonly deliveryKey?: string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Value to set.
|
|
2314
|
+
* If empty, any existing value is removed.
|
|
2315
|
+
*
|
|
2316
|
+
*
|
|
2317
|
+
*/
|
|
2318
|
+
readonly address?: _BaseAddress;
|
|
2319
|
+
}
|
|
2320
|
+
export interface OrderSetDeliveryAddressCustomFieldAction {
|
|
2321
|
+
readonly action: 'setDeliveryAddressCustomField';
|
|
2322
|
+
/**
|
|
2323
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2324
|
+
*
|
|
2325
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2326
|
+
*
|
|
2327
|
+
*
|
|
2328
|
+
*/
|
|
2329
|
+
readonly deliveryId?: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2332
|
+
*
|
|
2333
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2334
|
+
*
|
|
2335
|
+
*
|
|
2336
|
+
*/
|
|
2337
|
+
readonly deliveryKey?: string;
|
|
2338
|
+
/**
|
|
2339
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2340
|
+
*
|
|
2341
|
+
*
|
|
2342
|
+
*/
|
|
2343
|
+
readonly name: string;
|
|
2344
|
+
/**
|
|
2345
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2346
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2347
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2348
|
+
*
|
|
2349
|
+
*
|
|
2350
|
+
*/
|
|
2351
|
+
readonly value?: any;
|
|
2352
|
+
}
|
|
2353
|
+
export interface OrderSetDeliveryAddressCustomTypeAction {
|
|
2354
|
+
readonly action: 'setDeliveryAddressCustomType';
|
|
2355
|
+
/**
|
|
2356
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2357
|
+
*
|
|
2358
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2359
|
+
*
|
|
2360
|
+
*
|
|
2361
|
+
*/
|
|
2362
|
+
readonly deliveryId?: string;
|
|
2363
|
+
/**
|
|
2364
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2365
|
+
*
|
|
2366
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2367
|
+
*
|
|
2368
|
+
*
|
|
2369
|
+
*/
|
|
2370
|
+
readonly deliveryKey?: string;
|
|
2371
|
+
/**
|
|
2372
|
+
* Defines the [Type](ctp:api:type:Type) that extends the [Delivery](ctp:api:type:Delivery) `address` with [Custom Fields](/../api/projects/custom-fields).
|
|
2373
|
+
* If absent, any existing Type and Custom Fields are removed from the [Delivery](ctp:api:type:Delivery) `address`.
|
|
2374
|
+
*
|
|
2375
|
+
*
|
|
2376
|
+
*/
|
|
2377
|
+
readonly type?: TypeResourceIdentifier;
|
|
2378
|
+
/**
|
|
2379
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the [Delivery](ctp:api:type:Delivery) `address`.
|
|
2380
|
+
*
|
|
2381
|
+
*
|
|
2382
|
+
*/
|
|
2383
|
+
readonly fields?: FieldContainer;
|
|
2384
|
+
}
|
|
2385
|
+
export interface OrderSetDeliveryCustomFieldAction {
|
|
2386
|
+
readonly action: 'setDeliveryCustomField';
|
|
2387
|
+
/**
|
|
2388
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2389
|
+
*
|
|
2390
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2391
|
+
*
|
|
2392
|
+
*
|
|
2393
|
+
*/
|
|
2394
|
+
readonly deliveryId?: string;
|
|
2395
|
+
/**
|
|
2396
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2397
|
+
*
|
|
2398
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2399
|
+
*
|
|
2400
|
+
*
|
|
2401
|
+
*/
|
|
2402
|
+
readonly deliveryKey?: string;
|
|
2403
|
+
/**
|
|
2404
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2405
|
+
*
|
|
2406
|
+
*
|
|
2407
|
+
*/
|
|
2408
|
+
readonly name: string;
|
|
2409
|
+
/**
|
|
2410
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2411
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2412
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2413
|
+
*
|
|
2414
|
+
*
|
|
2415
|
+
*/
|
|
2416
|
+
readonly value?: any;
|
|
2417
|
+
}
|
|
2418
|
+
export interface OrderSetDeliveryCustomTypeAction {
|
|
2419
|
+
readonly action: 'setDeliveryCustomType';
|
|
2420
|
+
/**
|
|
2421
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2422
|
+
*
|
|
2423
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2424
|
+
*
|
|
2425
|
+
*
|
|
2426
|
+
*/
|
|
2427
|
+
readonly deliveryId?: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2430
|
+
*
|
|
2431
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2432
|
+
*
|
|
2433
|
+
*
|
|
2434
|
+
*/
|
|
2435
|
+
readonly deliveryKey?: string;
|
|
2436
|
+
/**
|
|
2437
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Delivery with [Custom Fields](/../api/projects/custom-fields).
|
|
2438
|
+
* If absent, any existing Type and Custom Fields are removed from the Delivery.
|
|
2439
|
+
*
|
|
2440
|
+
*
|
|
2441
|
+
*/
|
|
2442
|
+
readonly type?: TypeResourceIdentifier;
|
|
2443
|
+
/**
|
|
2444
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Delivery.
|
|
2445
|
+
*
|
|
2446
|
+
*
|
|
2447
|
+
*/
|
|
2448
|
+
readonly fields?: FieldContainer;
|
|
2449
|
+
}
|
|
2450
|
+
/**
|
|
2451
|
+
* Produces the [Delivery Items Updated](ctp:api:type:DeliveryItemsUpdatedMessage) Message.
|
|
2452
|
+
*
|
|
2453
|
+
*/
|
|
2454
|
+
export interface OrderSetDeliveryItemsAction {
|
|
2455
|
+
readonly action: 'setDeliveryItems';
|
|
2456
|
+
/**
|
|
2457
|
+
* `id` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2458
|
+
*
|
|
2459
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2460
|
+
*
|
|
2461
|
+
*
|
|
2462
|
+
*/
|
|
2463
|
+
readonly deliveryId?: string;
|
|
2464
|
+
/**
|
|
2465
|
+
* `key` of an existing [Delivery](ctp:api:type:Delivery).
|
|
2466
|
+
*
|
|
2467
|
+
* Either `deliveryId` or `deliveryKey` must be provided.
|
|
2468
|
+
*
|
|
2469
|
+
*
|
|
2470
|
+
*/
|
|
2471
|
+
readonly deliveryKey?: string;
|
|
2472
|
+
/**
|
|
2473
|
+
* Value to set.
|
|
2474
|
+
* If empty, any existing value is removed.
|
|
2475
|
+
*
|
|
2476
|
+
*
|
|
2477
|
+
*/
|
|
2478
|
+
readonly items: DeliveryItem[];
|
|
2479
|
+
}
|
|
2480
|
+
export interface OrderSetItemShippingAddressCustomFieldAction {
|
|
2481
|
+
readonly action: 'setItemShippingAddressCustomField';
|
|
2482
|
+
/**
|
|
2483
|
+
* `key` of the [Address](ctp:api:type:Address) in `itemShippingAddresses`.
|
|
2484
|
+
*
|
|
2485
|
+
*
|
|
2486
|
+
*/
|
|
2487
|
+
readonly addressKey: string;
|
|
2488
|
+
/**
|
|
2489
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2490
|
+
*
|
|
2491
|
+
*
|
|
2492
|
+
*/
|
|
2493
|
+
readonly name: string;
|
|
2494
|
+
/**
|
|
2495
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2496
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2497
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2498
|
+
*
|
|
2499
|
+
*
|
|
2500
|
+
*/
|
|
2501
|
+
readonly value?: any;
|
|
2502
|
+
}
|
|
2503
|
+
export interface OrderSetItemShippingAddressCustomTypeAction {
|
|
2504
|
+
readonly action: 'setItemShippingAddressCustomType';
|
|
2505
|
+
/**
|
|
2506
|
+
* `key` of the [Address](ctp:api:type:Address) in `itemShippingAddresses`.
|
|
2507
|
+
*
|
|
2508
|
+
*
|
|
2509
|
+
*/
|
|
2510
|
+
readonly addressKey: string;
|
|
2511
|
+
/**
|
|
2512
|
+
* Defines the [Type](ctp:api:type:Type) that extends the `itemShippingAddress` with [Custom Fields](/../api/projects/custom-fields).
|
|
2513
|
+
* If absent, any existing Type and Custom Fields are removed from the `itemShippingAddress`.
|
|
2514
|
+
*
|
|
2515
|
+
*
|
|
2516
|
+
*/
|
|
2517
|
+
readonly type?: TypeResourceIdentifier;
|
|
2518
|
+
/**
|
|
2519
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the `itemShippingAddress`.
|
|
2520
|
+
*
|
|
2521
|
+
*
|
|
2522
|
+
*/
|
|
2523
|
+
readonly fields?: FieldContainer;
|
|
2524
|
+
}
|
|
2525
|
+
export interface OrderSetLineItemCustomFieldAction {
|
|
2526
|
+
readonly action: 'setLineItemCustomField';
|
|
2527
|
+
/**
|
|
2528
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2529
|
+
*
|
|
2530
|
+
*
|
|
2531
|
+
*/
|
|
2532
|
+
readonly lineItemId?: string;
|
|
2533
|
+
/**
|
|
2534
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2535
|
+
*
|
|
2536
|
+
*
|
|
2537
|
+
*/
|
|
2538
|
+
readonly lineItemKey?: string;
|
|
2539
|
+
/**
|
|
2540
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2541
|
+
*
|
|
2542
|
+
*
|
|
2543
|
+
*/
|
|
2544
|
+
readonly name: string;
|
|
2545
|
+
/**
|
|
2546
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2547
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2548
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2549
|
+
*
|
|
2550
|
+
*
|
|
2551
|
+
*/
|
|
2552
|
+
readonly value?: any;
|
|
2553
|
+
}
|
|
2554
|
+
export interface OrderSetLineItemCustomTypeAction {
|
|
2555
|
+
readonly action: 'setLineItemCustomType';
|
|
2556
|
+
/**
|
|
2557
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2558
|
+
*
|
|
2559
|
+
*
|
|
2560
|
+
*/
|
|
2561
|
+
readonly lineItemId?: string;
|
|
2562
|
+
/**
|
|
2563
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2564
|
+
*
|
|
2565
|
+
*
|
|
2566
|
+
*/
|
|
2567
|
+
readonly lineItemKey?: string;
|
|
2568
|
+
/**
|
|
2569
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Line Item with [Custom Fields](/../api/projects/custom-fields).
|
|
2570
|
+
* If absent, any existing Type and Custom Fields are removed from the Line Item.
|
|
2571
|
+
*
|
|
2572
|
+
*
|
|
2573
|
+
*/
|
|
2574
|
+
readonly type?: TypeResourceIdentifier;
|
|
2575
|
+
/**
|
|
2576
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Line Item.
|
|
2577
|
+
*
|
|
2578
|
+
*
|
|
2579
|
+
*/
|
|
2580
|
+
readonly fields?: FieldContainer;
|
|
2581
|
+
}
|
|
2582
|
+
export interface OrderSetLineItemShippingDetailsAction {
|
|
2583
|
+
readonly action: 'setLineItemShippingDetails';
|
|
2584
|
+
/**
|
|
2585
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2586
|
+
*
|
|
2587
|
+
*
|
|
2588
|
+
*/
|
|
2589
|
+
readonly lineItemId?: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
2592
|
+
*
|
|
2593
|
+
*
|
|
2594
|
+
*/
|
|
2595
|
+
readonly lineItemKey?: string;
|
|
2596
|
+
/**
|
|
2597
|
+
* Value to set.
|
|
2598
|
+
* If empty, the existing value is removed.
|
|
2599
|
+
*
|
|
2600
|
+
*
|
|
2601
|
+
*/
|
|
2602
|
+
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
2603
|
+
}
|
|
2604
|
+
export interface OrderSetLocaleAction {
|
|
2605
|
+
readonly action: 'setLocale';
|
|
2606
|
+
/**
|
|
2607
|
+
* Value to set.
|
|
2608
|
+
* Must be one of the [Project](ctp:api:type:Project)'s languages.
|
|
2609
|
+
* If empty, any existing value is removed.
|
|
2610
|
+
*
|
|
2611
|
+
*
|
|
2612
|
+
*/
|
|
2613
|
+
readonly locale?: string;
|
|
2614
|
+
}
|
|
2615
|
+
export interface OrderSetOrderNumberAction {
|
|
2616
|
+
readonly action: 'setOrderNumber';
|
|
2617
|
+
/**
|
|
2618
|
+
* Value to set.
|
|
2619
|
+
* Must be unique across a Project.
|
|
2620
|
+
* Once set, the value cannot be changed.
|
|
2621
|
+
*
|
|
2622
|
+
*
|
|
2623
|
+
*/
|
|
2624
|
+
readonly orderNumber?: string;
|
|
2625
|
+
}
|
|
2626
|
+
export interface OrderSetParcelCustomFieldAction {
|
|
2627
|
+
readonly action: 'setParcelCustomField';
|
|
2628
|
+
/**
|
|
2629
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2630
|
+
*
|
|
2631
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2632
|
+
*
|
|
2633
|
+
*
|
|
2634
|
+
*/
|
|
2635
|
+
readonly parcelId?: string;
|
|
2636
|
+
/**
|
|
2637
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2638
|
+
*
|
|
2639
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2640
|
+
*
|
|
2641
|
+
*
|
|
2642
|
+
*/
|
|
2643
|
+
readonly parcelKey?: string;
|
|
2644
|
+
/**
|
|
2645
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2646
|
+
*
|
|
2647
|
+
*
|
|
2648
|
+
*/
|
|
2649
|
+
readonly name: string;
|
|
2650
|
+
/**
|
|
2651
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2652
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2653
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2654
|
+
*
|
|
2655
|
+
*
|
|
2656
|
+
*/
|
|
2657
|
+
readonly value?: any;
|
|
2658
|
+
}
|
|
2659
|
+
export interface OrderSetParcelCustomTypeAction {
|
|
2660
|
+
readonly action: 'setParcelCustomType';
|
|
2661
|
+
/**
|
|
2662
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2663
|
+
*
|
|
2664
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2665
|
+
*
|
|
2666
|
+
*
|
|
2667
|
+
*/
|
|
2668
|
+
readonly parcelId?: string;
|
|
2669
|
+
/**
|
|
2670
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2671
|
+
*
|
|
2672
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2673
|
+
*
|
|
2674
|
+
*
|
|
2675
|
+
*/
|
|
2676
|
+
readonly parcelKey?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Parcel with [Custom Fields](/../api/projects/custom-fields).
|
|
2679
|
+
* If absent, any existing Type and Custom Fields are removed from the Parcel.
|
|
2680
|
+
*
|
|
2681
|
+
*
|
|
2682
|
+
*/
|
|
2683
|
+
readonly type?: TypeResourceIdentifier;
|
|
2684
|
+
/**
|
|
2685
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Parcel.
|
|
2686
|
+
*
|
|
2687
|
+
*
|
|
2688
|
+
*/
|
|
2689
|
+
readonly fields?: FieldContainer;
|
|
2690
|
+
}
|
|
2691
|
+
/**
|
|
2692
|
+
* Produces the [ParcelItemsUpdated](ctp:api:type:ParcelItemsUpdatedMessage) Message.
|
|
2693
|
+
*
|
|
2694
|
+
*/
|
|
2695
|
+
export interface OrderSetParcelItemsAction {
|
|
2696
|
+
readonly action: 'setParcelItems';
|
|
2697
|
+
/**
|
|
2698
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2699
|
+
*
|
|
2700
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2701
|
+
*
|
|
2702
|
+
*
|
|
2703
|
+
*/
|
|
2704
|
+
readonly parcelId?: string;
|
|
2705
|
+
/**
|
|
2706
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2707
|
+
*
|
|
2708
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2709
|
+
*
|
|
2710
|
+
*
|
|
2711
|
+
*/
|
|
2712
|
+
readonly parcelKey?: string;
|
|
2713
|
+
/**
|
|
2714
|
+
* Value to set.
|
|
2715
|
+
* If empty, any existing value is removed.
|
|
2716
|
+
*
|
|
2717
|
+
*
|
|
2718
|
+
*/
|
|
2719
|
+
readonly items: DeliveryItem[];
|
|
2720
|
+
}
|
|
2721
|
+
/**
|
|
2722
|
+
* Produces the [ParcelMeasurementsUpdated](ctp:api:type:ParcelMeasurementsUpdatedMessage) Message.
|
|
2723
|
+
*
|
|
2724
|
+
*/
|
|
2725
|
+
export interface OrderSetParcelMeasurementsAction {
|
|
2726
|
+
readonly action: 'setParcelMeasurements';
|
|
2727
|
+
/**
|
|
2728
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2729
|
+
*
|
|
2730
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2731
|
+
*
|
|
2732
|
+
*
|
|
2733
|
+
*/
|
|
2734
|
+
readonly parcelId?: string;
|
|
2735
|
+
/**
|
|
2736
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2737
|
+
*
|
|
2738
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2739
|
+
*
|
|
2740
|
+
*
|
|
2741
|
+
*/
|
|
2742
|
+
readonly parcelKey?: string;
|
|
2743
|
+
/**
|
|
2744
|
+
* Value to set.
|
|
2745
|
+
* If empty, any existing value is removed.
|
|
2746
|
+
*
|
|
2747
|
+
*
|
|
2748
|
+
*/
|
|
2749
|
+
readonly measurements?: ParcelMeasurements;
|
|
2750
|
+
}
|
|
2751
|
+
/**
|
|
2752
|
+
* Produces the [ParcelTrackingDataUpdated](ctp:api:type:ParcelTrackingDataUpdatedMessage) Message.
|
|
2753
|
+
*
|
|
2754
|
+
*/
|
|
2755
|
+
export interface OrderSetParcelTrackingDataAction {
|
|
2756
|
+
readonly action: 'setParcelTrackingData';
|
|
2757
|
+
/**
|
|
2758
|
+
* `id` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2759
|
+
*
|
|
2760
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2761
|
+
*
|
|
2762
|
+
*
|
|
2763
|
+
*/
|
|
2764
|
+
readonly parcelId?: string;
|
|
2765
|
+
/**
|
|
2766
|
+
* `key` of an existing [Parcel](ctp:api:type:Parcel).
|
|
2767
|
+
*
|
|
2768
|
+
* Either `parcelId` or `parcelKey` must be provided.
|
|
2769
|
+
*
|
|
2770
|
+
*
|
|
2771
|
+
*/
|
|
2772
|
+
readonly parcelKey?: string;
|
|
2773
|
+
/**
|
|
2774
|
+
* Value to set.
|
|
2775
|
+
* If empty, any existing value is removed.
|
|
2776
|
+
*
|
|
2777
|
+
*
|
|
2778
|
+
*/
|
|
2779
|
+
readonly trackingData?: TrackingData;
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* Produces the [PurchaseOrderNumberSet](ctp:api:type:OrderPurchaseOrderNumberSetMessage) Message.
|
|
2783
|
+
*
|
|
2784
|
+
*/
|
|
2785
|
+
export interface OrderSetPurchaseOrderNumberAction {
|
|
2786
|
+
readonly action: 'setPurchaseOrderNumber';
|
|
2787
|
+
/**
|
|
2788
|
+
* Value to set.
|
|
2789
|
+
* If empty, any existing value is removed.
|
|
2790
|
+
*
|
|
2791
|
+
*
|
|
2792
|
+
*/
|
|
2793
|
+
readonly purchaseOrderNumber?: string;
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* Produces the [Return Info Set](ctp:api:type:ReturnInfoSetMessage) Message.
|
|
2797
|
+
*
|
|
2798
|
+
*/
|
|
2799
|
+
export interface OrderSetReturnInfoAction {
|
|
2800
|
+
readonly action: 'setReturnInfo';
|
|
2801
|
+
/**
|
|
2802
|
+
* Value to set.
|
|
2803
|
+
* If empty, any existing value is removed.
|
|
2804
|
+
*
|
|
2805
|
+
*
|
|
2806
|
+
*/
|
|
2807
|
+
readonly items?: ReturnInfoDraft[];
|
|
2808
|
+
}
|
|
2809
|
+
export interface OrderSetReturnItemCustomFieldAction {
|
|
2810
|
+
readonly action: 'setReturnItemCustomField';
|
|
2811
|
+
/**
|
|
2812
|
+
* `id` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2813
|
+
*
|
|
2814
|
+
*
|
|
2815
|
+
*/
|
|
2816
|
+
readonly returnItemId?: string;
|
|
2817
|
+
/**
|
|
2818
|
+
* `key` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2819
|
+
*
|
|
2820
|
+
*
|
|
2821
|
+
*/
|
|
2822
|
+
readonly returnItemKey?: string;
|
|
2823
|
+
/**
|
|
2824
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2825
|
+
*
|
|
2826
|
+
*
|
|
2827
|
+
*/
|
|
2828
|
+
readonly name: string;
|
|
2829
|
+
/**
|
|
2830
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2831
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2832
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2833
|
+
*
|
|
2834
|
+
*
|
|
2835
|
+
*/
|
|
2836
|
+
readonly value?: any;
|
|
2837
|
+
}
|
|
2838
|
+
export interface OrderSetReturnItemCustomTypeAction {
|
|
2839
|
+
readonly action: 'setReturnItemCustomType';
|
|
2840
|
+
/**
|
|
2841
|
+
* `id` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2842
|
+
*
|
|
2843
|
+
*
|
|
2844
|
+
*/
|
|
2845
|
+
readonly returnItemId?: string;
|
|
2846
|
+
/**
|
|
2847
|
+
* `key` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2848
|
+
*
|
|
2849
|
+
*
|
|
2850
|
+
*/
|
|
2851
|
+
readonly returnItemKey?: string;
|
|
2852
|
+
/**
|
|
2853
|
+
* Defines the [Type](ctp:api:type:Type) that extends the Return Item with [Custom Fields](/../api/projects/custom-fields).
|
|
2854
|
+
* If absent, any existing Type and Custom Fields are removed from the Return Item.
|
|
2855
|
+
*
|
|
2856
|
+
*
|
|
2857
|
+
*/
|
|
2858
|
+
readonly type?: TypeResourceIdentifier;
|
|
2859
|
+
/**
|
|
2860
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the Return Item.
|
|
2861
|
+
*
|
|
2862
|
+
*
|
|
2863
|
+
*/
|
|
2864
|
+
readonly fields?: FieldContainer;
|
|
2865
|
+
}
|
|
2866
|
+
/**
|
|
2867
|
+
* To set a [ReturnPaymentState](ctp:api:type:ReturnPaymentState), the [Order](ctp:api:type:Order) `returnInfo` must have at least one [ReturnItem](ctp:api:type:ReturnItem).
|
|
2868
|
+
*
|
|
2869
|
+
*/
|
|
2870
|
+
export interface OrderSetReturnPaymentStateAction {
|
|
2871
|
+
readonly action: 'setReturnPaymentState';
|
|
2872
|
+
/**
|
|
2873
|
+
* `id` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2874
|
+
*
|
|
2875
|
+
*
|
|
2876
|
+
*/
|
|
2877
|
+
readonly returnItemId?: string;
|
|
2878
|
+
/**
|
|
2879
|
+
* `key` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2880
|
+
*
|
|
2881
|
+
*
|
|
2882
|
+
*/
|
|
2883
|
+
readonly returnItemKey?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* New Payment status of the [ReturnItem](ctp:api:type:ReturnItem).
|
|
2886
|
+
*
|
|
2887
|
+
*
|
|
2888
|
+
*/
|
|
2889
|
+
readonly paymentState: ReturnPaymentState;
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* To set a `ReturnShipmentState`, the [Order](ctp:api:type:Order) `returnInfo` must have at least one [ReturnItem](ctp:api:type:ReturnItem).
|
|
2893
|
+
*
|
|
2894
|
+
* Produces the [Order Return Shipment State Changed](ctp:api:type:OrderReturnShipmentStateChangedMessage) Message.
|
|
2895
|
+
*
|
|
2896
|
+
*/
|
|
2897
|
+
export interface OrderSetReturnShipmentStateAction {
|
|
2898
|
+
readonly action: 'setReturnShipmentState';
|
|
2899
|
+
/**
|
|
2900
|
+
* `id` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2901
|
+
*
|
|
2902
|
+
*
|
|
2903
|
+
*/
|
|
2904
|
+
readonly returnItemId?: string;
|
|
2905
|
+
/**
|
|
2906
|
+
* `key` of the [ReturnItem](ctp:api:type:ReturnItem) to update. Either `returnItemId` or `returnItemKey` is required.
|
|
2907
|
+
*
|
|
2908
|
+
*
|
|
2909
|
+
*/
|
|
2910
|
+
readonly returnItemKey?: string;
|
|
2911
|
+
/**
|
|
2912
|
+
* New shipment state of the [ReturnItem](ctp:api:type:ReturnItem).
|
|
2913
|
+
*
|
|
2914
|
+
*
|
|
2915
|
+
*/
|
|
2916
|
+
readonly shipmentState: ReturnShipmentState;
|
|
2917
|
+
}
|
|
2918
|
+
/**
|
|
2919
|
+
* This action updates the `shippingAddress` on the Order, but it does not change the shipping address on the referenced [Cart](ctp:api:type:Cart) from which the Order is created.
|
|
2920
|
+
* Also, it does not recalculate the Cart as taxes may not fit to the shipping address anymore.
|
|
2921
|
+
*
|
|
2922
|
+
* Produces the [Order Shipping Address Set](ctp:api:type:OrderShippingAddressSetMessage) Message.
|
|
2923
|
+
*
|
|
2924
|
+
*/
|
|
2925
|
+
export interface OrderSetShippingAddressAction {
|
|
2926
|
+
readonly action: 'setShippingAddress';
|
|
2927
|
+
/**
|
|
2928
|
+
* Value to set.
|
|
2929
|
+
* If empty, any existing value is removed.
|
|
2930
|
+
*
|
|
2931
|
+
*
|
|
2932
|
+
*/
|
|
2933
|
+
readonly address?: _BaseAddress;
|
|
2934
|
+
}
|
|
2935
|
+
export interface OrderSetShippingAddressCustomFieldAction {
|
|
2936
|
+
readonly action: 'setShippingAddressCustomField';
|
|
2937
|
+
/**
|
|
2938
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2939
|
+
*
|
|
2940
|
+
*
|
|
2941
|
+
*/
|
|
2942
|
+
readonly name: string;
|
|
2943
|
+
/**
|
|
2944
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2945
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2946
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2947
|
+
*
|
|
2948
|
+
*
|
|
2949
|
+
*/
|
|
2950
|
+
readonly value?: any;
|
|
2951
|
+
}
|
|
2952
|
+
export interface OrderSetShippingAddressCustomTypeAction {
|
|
2953
|
+
readonly action: 'setShippingAddressCustomType';
|
|
2954
|
+
/**
|
|
2955
|
+
* Defines the [Type](ctp:api:type:Type) that extends the `shippingAddress` with [Custom Fields](/../api/projects/custom-fields).
|
|
2956
|
+
* If absent, any existing Type and Custom Fields are removed from the `shippingAddress`.
|
|
2957
|
+
*
|
|
2958
|
+
*
|
|
2959
|
+
*/
|
|
2960
|
+
readonly type?: TypeResourceIdentifier;
|
|
2961
|
+
/**
|
|
2962
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the `shippingAddress`.
|
|
2963
|
+
*
|
|
2964
|
+
*
|
|
2965
|
+
*/
|
|
2966
|
+
readonly fields?: FieldContainer;
|
|
2967
|
+
}
|
|
2968
|
+
export interface OrderSetShippingCustomFieldAction {
|
|
2969
|
+
readonly action: 'setShippingCustomField';
|
|
2970
|
+
/**
|
|
2971
|
+
* The `shippingKey` of the [Shipping](ctp:api:type:Shipping) to customize. Used to specify which Shipping Method to customize
|
|
2972
|
+
* on a Order with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
|
|
2973
|
+
* Leave this empty to customize the one and only ShippingMethod on a `Single` ShippingMode Order.
|
|
2974
|
+
*
|
|
2975
|
+
*
|
|
2976
|
+
*/
|
|
2977
|
+
readonly shippingKey?: string;
|
|
2978
|
+
/**
|
|
2979
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
2980
|
+
*
|
|
2981
|
+
*
|
|
2982
|
+
*/
|
|
2983
|
+
readonly name: string;
|
|
2984
|
+
/**
|
|
2985
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
2986
|
+
* Trying to remove a field that does not exist will fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
2987
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
2988
|
+
*
|
|
2989
|
+
*
|
|
2990
|
+
*/
|
|
2991
|
+
readonly value?: any;
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* This action sets, overwrites, or removes any existing Custom Type and Custom Fields for the Order's `shippingMethod` or `shipping`.
|
|
2995
|
+
*
|
|
2996
|
+
*/
|
|
2997
|
+
export interface OrderSetShippingCustomTypeAction {
|
|
2998
|
+
readonly action: 'setShippingCustomType';
|
|
2999
|
+
/**
|
|
3000
|
+
* The `shippingKey` of the [Shipping](ctp:api:type:Shipping) to customize. Used to specify which Shipping Method to customize
|
|
3001
|
+
* on a Order with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
|
|
3002
|
+
* Leave this empty to customize the one and only ShippingMethod on a `Single` ShippingMode Order.
|
|
3003
|
+
*
|
|
3004
|
+
*
|
|
3005
|
+
*/
|
|
3006
|
+
readonly shippingKey?: string;
|
|
3007
|
+
/**
|
|
3008
|
+
* Defines the [Type](ctp:api:type:Type) that extends the specified ShippingMethod with [Custom Fields](/../api/projects/custom-fields).
|
|
3009
|
+
* If absent, any existing Type and Custom Fields are removed from the ShippingMethod.
|
|
3010
|
+
*
|
|
3011
|
+
*
|
|
3012
|
+
*/
|
|
3013
|
+
readonly type?: TypeResourceIdentifier;
|
|
3014
|
+
/**
|
|
3015
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the `shippingMethod`.
|
|
3016
|
+
*
|
|
3017
|
+
*
|
|
3018
|
+
*/
|
|
3019
|
+
readonly fields?: FieldContainer;
|
|
3020
|
+
}
|
|
3021
|
+
/**
|
|
3022
|
+
* Sets the [Store](ctp:api:type:Store) the Order is assigned to.
|
|
3023
|
+
* It should be used to migrate Orders to a new Store.
|
|
3024
|
+
* No validations are performed (such as that the Customer is allowed to create Orders in the Store).
|
|
3025
|
+
*
|
|
3026
|
+
* Produces the [Order Store Set](ctp:api:type:OrderStoreSetMessage) Message.
|
|
3027
|
+
* Returns a `400` error if `store` references the same Store the Order is currently assigned to, including if you try to remove the value when no Store is currently assigned.
|
|
3028
|
+
*
|
|
3029
|
+
*/
|
|
3030
|
+
export interface OrderSetStoreAction {
|
|
3031
|
+
readonly action: 'setStore';
|
|
3032
|
+
/**
|
|
3033
|
+
* Value to set.
|
|
3034
|
+
* If empty, any existing value is removed.
|
|
3035
|
+
*
|
|
3036
|
+
* If `store` references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a `400` error is returned.
|
|
3037
|
+
*
|
|
3038
|
+
*
|
|
3039
|
+
*/
|
|
3040
|
+
readonly store?: StoreResourceIdentifier;
|
|
3041
|
+
}
|
|
3042
|
+
/**
|
|
3043
|
+
* Produces the [Custom Line Item State Transition](ctp:api:type:CustomLineItemStateTransitionMessage) Message.
|
|
3044
|
+
*
|
|
3045
|
+
*/
|
|
3046
|
+
export interface OrderTransitionCustomLineItemStateAction {
|
|
3047
|
+
readonly action: 'transitionCustomLineItemState';
|
|
3048
|
+
/**
|
|
3049
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
3050
|
+
*
|
|
3051
|
+
*
|
|
3052
|
+
*/
|
|
3053
|
+
readonly customLineItemId?: string;
|
|
3054
|
+
/**
|
|
3055
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
3056
|
+
*
|
|
3057
|
+
*
|
|
3058
|
+
*/
|
|
3059
|
+
readonly customLineItemKey?: string;
|
|
3060
|
+
/**
|
|
3061
|
+
* Number of Custom Line Items that should transition [State](ctp:api:type:State).
|
|
3062
|
+
*
|
|
3063
|
+
*
|
|
3064
|
+
*/
|
|
3065
|
+
readonly quantity: number;
|
|
3066
|
+
/**
|
|
3067
|
+
* [State](ctp:api:type:State) the Custom Line Item should transition from.
|
|
3068
|
+
*
|
|
3069
|
+
*
|
|
3070
|
+
*/
|
|
3071
|
+
readonly fromState: StateResourceIdentifier;
|
|
3072
|
+
/**
|
|
3073
|
+
* [State](ctp:api:type:State) the Custom Line Item should transition to.
|
|
3074
|
+
*
|
|
3075
|
+
*
|
|
3076
|
+
*/
|
|
3077
|
+
readonly toState: StateResourceIdentifier;
|
|
3078
|
+
/**
|
|
3079
|
+
* Date and time (UTC) to perform the [State](ctp:api:type:State) transition.
|
|
3080
|
+
*
|
|
3081
|
+
*
|
|
3082
|
+
*/
|
|
3083
|
+
readonly actualTransitionDate?: string;
|
|
3084
|
+
}
|
|
3085
|
+
/**
|
|
3086
|
+
* Produces the [Line Item State Transition](ctp:api:type:LineItemStateTransitionMessage) Message.
|
|
3087
|
+
*
|
|
3088
|
+
*/
|
|
3089
|
+
export interface OrderTransitionLineItemStateAction {
|
|
3090
|
+
readonly action: 'transitionLineItemState';
|
|
3091
|
+
/**
|
|
3092
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
3093
|
+
*
|
|
3094
|
+
*
|
|
3095
|
+
*/
|
|
3096
|
+
readonly lineItemId?: string;
|
|
3097
|
+
/**
|
|
3098
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
3099
|
+
*
|
|
3100
|
+
*
|
|
3101
|
+
*/
|
|
3102
|
+
readonly lineItemKey?: string;
|
|
3103
|
+
/**
|
|
3104
|
+
* Number of Line Items that should transition [State](ctp:api:type:State).
|
|
3105
|
+
*
|
|
3106
|
+
*
|
|
3107
|
+
*/
|
|
3108
|
+
readonly quantity: number;
|
|
3109
|
+
/**
|
|
3110
|
+
* [State](ctp:api:type:State) the Line Item should transition from.
|
|
3111
|
+
*
|
|
3112
|
+
*
|
|
3113
|
+
*/
|
|
3114
|
+
readonly fromState: StateResourceIdentifier;
|
|
3115
|
+
/**
|
|
3116
|
+
* [State](ctp:api:type:State) the Line Item should transition to.
|
|
3117
|
+
*
|
|
3118
|
+
*
|
|
3119
|
+
*/
|
|
3120
|
+
readonly toState: StateResourceIdentifier;
|
|
3121
|
+
/**
|
|
3122
|
+
* Date and time (UTC) to perform the [State](ctp:api:type:State) transition.
|
|
3123
|
+
*
|
|
3124
|
+
*
|
|
3125
|
+
*/
|
|
3126
|
+
readonly actualTransitionDate?: string;
|
|
3127
|
+
}
|
|
3128
|
+
/**
|
|
3129
|
+
* If the existing [State](ctp:api:type:State) has set `transitions`, there must be a direct transition to the new State.
|
|
3130
|
+
* If `transitions` is not set, no validation is performed.
|
|
3131
|
+
*
|
|
3132
|
+
* This update action produces the [Order State Transition](ctp:api:type:OrderStateTransitionMessage) Message.
|
|
3133
|
+
*
|
|
3134
|
+
*/
|
|
3135
|
+
export interface OrderTransitionStateAction {
|
|
3136
|
+
readonly action: 'transitionState';
|
|
3137
|
+
/**
|
|
3138
|
+
* Value to set.
|
|
3139
|
+
* If there is no State yet, the new State must be an initial State.
|
|
3140
|
+
*
|
|
3141
|
+
*
|
|
3142
|
+
*/
|
|
3143
|
+
readonly state: StateResourceIdentifier;
|
|
3144
|
+
/**
|
|
3145
|
+
* Set to `true` to turn off validation.
|
|
3146
|
+
*
|
|
3147
|
+
*
|
|
3148
|
+
*/
|
|
3149
|
+
readonly force?: boolean;
|
|
3150
|
+
}
|
|
3151
|
+
/**
|
|
3152
|
+
* Updates an address in `itemShippingAddresses` by keeping the Address `key`.
|
|
3153
|
+
*
|
|
3154
|
+
*/
|
|
3155
|
+
export interface OrderUpdateItemShippingAddressAction {
|
|
3156
|
+
readonly action: 'updateItemShippingAddress';
|
|
3157
|
+
/**
|
|
3158
|
+
* The new Address with the same `key` as the Address it will replace.
|
|
3159
|
+
*
|
|
3160
|
+
*
|
|
3161
|
+
*/
|
|
3162
|
+
readonly address: _BaseAddress;
|
|
3163
|
+
}
|
|
3164
|
+
export interface OrderUpdateSyncInfoAction {
|
|
3165
|
+
readonly action: 'updateSyncInfo';
|
|
3166
|
+
/**
|
|
3167
|
+
* Set this to identify an external order instance, file, or other resource.
|
|
3168
|
+
*
|
|
3169
|
+
*
|
|
3170
|
+
*/
|
|
3171
|
+
readonly externalId?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* The synchronization destination to set. Must not be empty.
|
|
3174
|
+
* The referenced Channel must have the [Channel Role](ctp:api:type:ChannelRoleEnum) `OrderExport` or `OrderImport`.
|
|
3175
|
+
* Otherwise this update action returns an [InvalidInput](ctp:api:type:InvalidInputError) error.
|
|
3176
|
+
*
|
|
3177
|
+
*
|
|
3178
|
+
*/
|
|
3179
|
+
readonly channel: ChannelResourceIdentifier;
|
|
3180
|
+
/**
|
|
3181
|
+
* If not set, it defaults to the current date and time.
|
|
3182
|
+
*
|
|
3183
|
+
*
|
|
3184
|
+
*/
|
|
3185
|
+
readonly syncedAt?: string;
|
|
3186
|
+
}
|
|
3187
|
+
//# sourceMappingURL=order.d.ts.map
|