@gradientedge/commercetools-utils 5.27.1 → 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,848 @@
|
|
|
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 { ChannelReference, ChannelResourceIdentifier } from './channel.js';
|
|
7
|
+
import { BaseResource, CentPrecisionMoney, CreatedBy, LastModifiedBy, LocalizedString, Money, Reference, TypedMoney, TypedMoneyDraft } from './common.js';
|
|
8
|
+
import { ProductReference, ProductResourceIdentifier } from './product.js';
|
|
9
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
|
|
10
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
11
|
+
export interface CartDiscount extends BaseResource {
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier of the CartDiscount.
|
|
14
|
+
*
|
|
15
|
+
*/
|
|
16
|
+
readonly id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Current version of the CartDiscount.
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
readonly version: number;
|
|
23
|
+
/**
|
|
24
|
+
* Date and time (UTC) the CartDiscount was initially created.
|
|
25
|
+
*
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
28
|
+
readonly createdAt: string;
|
|
29
|
+
/**
|
|
30
|
+
* Date and time (UTC) the CartDiscount was last updated.
|
|
31
|
+
*
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
readonly lastModifiedAt: string;
|
|
35
|
+
/**
|
|
36
|
+
* IDs and references that last modified the CartDiscount.
|
|
37
|
+
*
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
41
|
+
/**
|
|
42
|
+
* IDs and references that created the CartDiscount.
|
|
43
|
+
*
|
|
44
|
+
*
|
|
45
|
+
*/
|
|
46
|
+
readonly createdBy?: CreatedBy;
|
|
47
|
+
/**
|
|
48
|
+
* Name of the CartDiscount.
|
|
49
|
+
*
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
readonly name: LocalizedString;
|
|
53
|
+
/**
|
|
54
|
+
* User-defined unique identifier of the CartDiscount.
|
|
55
|
+
*
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
readonly key?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Description of the CartDiscount.
|
|
61
|
+
*
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
readonly description?: LocalizedString;
|
|
65
|
+
/**
|
|
66
|
+
* Effect of the CartDiscount on the `target`.
|
|
67
|
+
*
|
|
68
|
+
*
|
|
69
|
+
*/
|
|
70
|
+
readonly value: CartDiscountValue;
|
|
71
|
+
/**
|
|
72
|
+
* Valid [Cart Predicate](/../api/projects/predicates#cart-predicates).
|
|
73
|
+
*
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
readonly cartPredicate: string;
|
|
77
|
+
/**
|
|
78
|
+
* Segment of the Cart that is discounted.
|
|
79
|
+
*
|
|
80
|
+
* Empty, if the `value` is `giftLineItem`.
|
|
81
|
+
*
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
readonly target?: CartDiscountTarget;
|
|
85
|
+
/**
|
|
86
|
+
* Value between `0` and `1`.
|
|
87
|
+
* All matching CartDiscounts are applied to a Cart in the order defined by this field.
|
|
88
|
+
* A Discount with a higher sortOrder is prioritized.
|
|
89
|
+
* The sort order is unambiguous among all CartDiscounts.
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
*/
|
|
93
|
+
readonly sortOrder: string;
|
|
94
|
+
/**
|
|
95
|
+
* - If a value exists, the Cart Discount applies on [Carts](ctp:api:type:Cart) having a [Store](ctp:api:type:Store) matching any Store defined for this field.
|
|
96
|
+
* - If empty, the Cart Discount applies on all [Carts](ctp:api:type:Cart), irrespective of a Store.
|
|
97
|
+
*
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
readonly stores: StoreKeyReference[];
|
|
101
|
+
/**
|
|
102
|
+
* Indicates if the CartDiscount is active and can be applied to the Cart.
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
readonly isActive: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* Date and time (UTC) from which the Discount is effective.
|
|
109
|
+
*
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
readonly validFrom?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Date and time (UTC) until which the Discount is effective.
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
readonly validUntil?: string;
|
|
119
|
+
/**
|
|
120
|
+
* Indicates if the Discount is used in connection with a [DiscountCode](ctp:api:type:DiscountCode).
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
*/
|
|
124
|
+
readonly requiresDiscountCode: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* References of all resources that are addressed in the predicate.
|
|
127
|
+
* The API generates this array from the predicate.
|
|
128
|
+
*
|
|
129
|
+
*
|
|
130
|
+
*/
|
|
131
|
+
readonly references: Reference[];
|
|
132
|
+
/**
|
|
133
|
+
* Indicates whether the application of the CartDiscount causes other discounts to be ignored.
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
readonly stackingMode: StackingMode;
|
|
138
|
+
/**
|
|
139
|
+
* Custom Fields of the CartDiscount.
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
readonly custom?: CustomFields;
|
|
144
|
+
}
|
|
145
|
+
export interface CartDiscountDraft {
|
|
146
|
+
/**
|
|
147
|
+
* Name of the CartDiscount.
|
|
148
|
+
*
|
|
149
|
+
*
|
|
150
|
+
*/
|
|
151
|
+
readonly name: LocalizedString;
|
|
152
|
+
/**
|
|
153
|
+
* User-defined unique identifier for the CartDiscount.
|
|
154
|
+
*
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
readonly key?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Description of the CartDiscount.
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
163
|
+
readonly description?: LocalizedString;
|
|
164
|
+
/**
|
|
165
|
+
* Effect of the CartDiscount on the `target`.
|
|
166
|
+
*
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
169
|
+
readonly value: CartDiscountValueDraft;
|
|
170
|
+
/**
|
|
171
|
+
* Valid [Cart Predicate](/../api/projects/predicates#cart-predicates).
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
readonly cartPredicate: string;
|
|
176
|
+
/**
|
|
177
|
+
* Segment of the Cart that will be discounted.
|
|
178
|
+
*
|
|
179
|
+
* Must not be set if the `value` is `giftLineItem`.
|
|
180
|
+
*
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
readonly target?: CartDiscountTarget;
|
|
184
|
+
/**
|
|
185
|
+
* Value between `0` and `1`.
|
|
186
|
+
* A Discount with a higher sortOrder is prioritized.
|
|
187
|
+
* The sort order must be unambiguous among all CartDiscounts.
|
|
188
|
+
*
|
|
189
|
+
*
|
|
190
|
+
*/
|
|
191
|
+
readonly sortOrder: string;
|
|
192
|
+
/**
|
|
193
|
+
* - If defined, the Cart Discount applies on [Carts](ctp:api:type:Cart) having a [Store](ctp:api:type:Store) matching any Store defined for this field.
|
|
194
|
+
* - If not defined, the Cart Discount applies on all Carts, irrespective of a Store.
|
|
195
|
+
*
|
|
196
|
+
* If the referenced Stores exceed the [limit](/../api/limits#cart-discounts-stores), a [MaxStoreReferencesReached](ctp:api:type:MaxStoreReferencesReachedError) error is returned.
|
|
197
|
+
*
|
|
198
|
+
* If the referenced Stores exceed the [limit](/../api/limits#cart-discounts) for Cart Discounts that do not require a Discount Code, a [StoreCartDiscountsLimitReached](ctp:api:type:StoreCartDiscountsLimitReachedError) error is returned.
|
|
199
|
+
*
|
|
200
|
+
*
|
|
201
|
+
*/
|
|
202
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
203
|
+
/**
|
|
204
|
+
* Only active Discounts can be applied to the Cart.
|
|
205
|
+
* If the [limit](/../api/limits#cart-discounts) for active Cart Discounts is reached, a [MaxCartDiscountsReached](ctp:api:type:MaxCartDiscountsReachedError) error is returned.
|
|
206
|
+
*
|
|
207
|
+
*
|
|
208
|
+
*/
|
|
209
|
+
readonly isActive?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Date and time (UTC) from which the Discount is effective.
|
|
212
|
+
*
|
|
213
|
+
*
|
|
214
|
+
*/
|
|
215
|
+
readonly validFrom?: string;
|
|
216
|
+
/**
|
|
217
|
+
* Date and time (UTC) until which the Discount is effective.
|
|
218
|
+
*
|
|
219
|
+
*
|
|
220
|
+
*/
|
|
221
|
+
readonly validUntil?: string;
|
|
222
|
+
/**
|
|
223
|
+
* States whether the Discount can only be used in a connection with a [DiscountCode](ctp:api:type:DiscountCode).
|
|
224
|
+
*
|
|
225
|
+
*
|
|
226
|
+
*/
|
|
227
|
+
readonly requiresDiscountCode?: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Specifies whether the application of this discount causes the following discounts to be ignored.
|
|
230
|
+
*
|
|
231
|
+
*
|
|
232
|
+
*/
|
|
233
|
+
readonly stackingMode?: StackingMode;
|
|
234
|
+
/**
|
|
235
|
+
* Custom Fields of the CartDiscount.
|
|
236
|
+
*
|
|
237
|
+
*
|
|
238
|
+
*/
|
|
239
|
+
readonly custom?: CustomFieldsDraft;
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with `results` containing an array of [CartDiscount](ctp:api:type:CartDiscount).
|
|
243
|
+
*
|
|
244
|
+
*/
|
|
245
|
+
export interface CartDiscountPagedQueryResponse {
|
|
246
|
+
/**
|
|
247
|
+
* Number of [results requested](/../api/general-concepts#limit).
|
|
248
|
+
*
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
readonly limit: number;
|
|
252
|
+
/**
|
|
253
|
+
* Number of [elements skipped](/../api/general-concepts#offset).
|
|
254
|
+
*
|
|
255
|
+
*
|
|
256
|
+
*/
|
|
257
|
+
readonly offset: number;
|
|
258
|
+
/**
|
|
259
|
+
* Actual number of results returned.
|
|
260
|
+
*
|
|
261
|
+
*
|
|
262
|
+
*/
|
|
263
|
+
readonly count: number;
|
|
264
|
+
/**
|
|
265
|
+
* Total number of results matching the query.
|
|
266
|
+
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
|
|
267
|
+
* This field is returned by default.
|
|
268
|
+
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
|
|
269
|
+
* When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
|
|
270
|
+
*
|
|
271
|
+
*
|
|
272
|
+
*/
|
|
273
|
+
readonly total?: number;
|
|
274
|
+
/**
|
|
275
|
+
* [CartDiscounts](ctp:api:type:CartDiscount) matching the query.
|
|
276
|
+
*
|
|
277
|
+
*
|
|
278
|
+
*/
|
|
279
|
+
readonly results: CartDiscount[];
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* [Reference](ctp:api:type:Reference) to a [CartDiscount](ctp:api:type:CartDiscount).
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
export interface CartDiscountReference {
|
|
286
|
+
readonly typeId: 'cart-discount';
|
|
287
|
+
/**
|
|
288
|
+
* Unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount).
|
|
289
|
+
*
|
|
290
|
+
*
|
|
291
|
+
*/
|
|
292
|
+
readonly id: string;
|
|
293
|
+
/**
|
|
294
|
+
* Contains the representation of the expanded CartDiscount. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for CartDiscounts.
|
|
295
|
+
*
|
|
296
|
+
*
|
|
297
|
+
*/
|
|
298
|
+
readonly obj?: CartDiscount;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [CartDiscount](ctp:api:type:CartDiscount). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
export interface CartDiscountResourceIdentifier {
|
|
305
|
+
readonly typeId: 'cart-discount';
|
|
306
|
+
/**
|
|
307
|
+
* Unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Required if `key` is absent.
|
|
308
|
+
*
|
|
309
|
+
*
|
|
310
|
+
*/
|
|
311
|
+
readonly id?: string;
|
|
312
|
+
/**
|
|
313
|
+
* User-defined unique identifier of the referenced [CartDiscount](ctp:api:type:CartDiscount). Required if `id` is absent.
|
|
314
|
+
*
|
|
315
|
+
*
|
|
316
|
+
*/
|
|
317
|
+
readonly key?: string;
|
|
318
|
+
}
|
|
319
|
+
export type CartDiscountTarget = CartDiscountCustomLineItemsTarget | CartDiscountLineItemsTarget | CartDiscountShippingCostTarget | CartDiscountTotalPriceTarget | MultiBuyCustomLineItemsTarget | MultiBuyLineItemsTarget;
|
|
320
|
+
/**
|
|
321
|
+
* Discount is applied to [CustomLineItems](ctp:api:type:CustomLineItem) matching the `predicate`.
|
|
322
|
+
*
|
|
323
|
+
*/
|
|
324
|
+
export interface CartDiscountCustomLineItemsTarget {
|
|
325
|
+
readonly type: 'customLineItems';
|
|
326
|
+
/**
|
|
327
|
+
* Valid [CustomLineItem target predicate](/../api/projects/predicates#customlineitem-field-identifiers).
|
|
328
|
+
*
|
|
329
|
+
*
|
|
330
|
+
*/
|
|
331
|
+
readonly predicate: string;
|
|
332
|
+
}
|
|
333
|
+
/**
|
|
334
|
+
* Discount is applied to [LineItems](ctp:api:type:LineItem) matching the `predicate`.
|
|
335
|
+
*
|
|
336
|
+
*/
|
|
337
|
+
export interface CartDiscountLineItemsTarget {
|
|
338
|
+
readonly type: 'lineItems';
|
|
339
|
+
/**
|
|
340
|
+
* Valid [LineItem target predicate](/../api/projects/predicates#lineitem-field-identifiers).
|
|
341
|
+
*
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
readonly predicate: string;
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Discount is applied to the shipping costs of the [Cart](ctp:api:type:Cart).
|
|
348
|
+
*
|
|
349
|
+
*/
|
|
350
|
+
export interface CartDiscountShippingCostTarget {
|
|
351
|
+
readonly type: 'shipping';
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Discount is applied to the total price of the [Cart](ctp:api:type:Cart).
|
|
355
|
+
*
|
|
356
|
+
*/
|
|
357
|
+
export interface CartDiscountTotalPriceTarget {
|
|
358
|
+
readonly type: 'totalPrice';
|
|
359
|
+
}
|
|
360
|
+
export interface CartDiscountUpdate {
|
|
361
|
+
/**
|
|
362
|
+
* Expected version of the CartDiscount on which the changes should be applied.
|
|
363
|
+
* If the expected version does not match the actual version, a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error will be returned.
|
|
364
|
+
*
|
|
365
|
+
*
|
|
366
|
+
*/
|
|
367
|
+
readonly version: number;
|
|
368
|
+
/**
|
|
369
|
+
* Update actions to be performed on the CartDiscount.
|
|
370
|
+
*
|
|
371
|
+
*
|
|
372
|
+
*/
|
|
373
|
+
readonly actions: CartDiscountUpdateAction[];
|
|
374
|
+
}
|
|
375
|
+
export type CartDiscountUpdateAction = CartDiscountAddStoreAction | CartDiscountChangeCartPredicateAction | CartDiscountChangeIsActiveAction | CartDiscountChangeNameAction | CartDiscountChangeRequiresDiscountCodeAction | CartDiscountChangeSortOrderAction | CartDiscountChangeStackingModeAction | CartDiscountChangeTargetAction | CartDiscountChangeValueAction | CartDiscountRemoveStoreAction | CartDiscountSetCustomFieldAction | CartDiscountSetCustomTypeAction | CartDiscountSetDescriptionAction | CartDiscountSetKeyAction | CartDiscountSetStoresAction | CartDiscountSetValidFromAction | CartDiscountSetValidFromAndUntilAction | CartDiscountSetValidUntilAction;
|
|
376
|
+
export type CartDiscountValue = CartDiscountValueAbsolute | CartDiscountValueFixed | CartDiscountValueGiftLineItem | CartDiscountValueRelative;
|
|
377
|
+
/**
|
|
378
|
+
* Discounts the [CartDiscountTarget](ctp:api:type:CartDiscountTarget) by an absolute amount (not allowed for [MultiBuyLineItemsTarget](ctp:api:type:MultiBuyLineItemsTarget) and [MultiBuyCustomLineItemsTarget](ctp:api:type:MultiBuyCustomLineItemsTarget)).
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
export interface CartDiscountValueAbsolute {
|
|
382
|
+
readonly type: 'absolute';
|
|
383
|
+
/**
|
|
384
|
+
* Cent precision money values in different currencies.
|
|
385
|
+
*
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
388
|
+
readonly money: CentPrecisionMoney[];
|
|
389
|
+
/**
|
|
390
|
+
* Determines how the discount is applied on [CartDiscountLineItemTarget](ctp:api:type:CartDiscountLineItemsTarget) and [CartDiscountCustomLineItemTarget](ctp:api:type:CartDiscountCustomLineItemsTarget).
|
|
391
|
+
*
|
|
392
|
+
*
|
|
393
|
+
*/
|
|
394
|
+
readonly applicationMode?: DiscountApplicationMode;
|
|
395
|
+
}
|
|
396
|
+
export type CartDiscountValueDraft = CartDiscountValueAbsoluteDraft | CartDiscountValueFixedDraft | CartDiscountValueGiftLineItemDraft | CartDiscountValueRelativeDraft;
|
|
397
|
+
export interface CartDiscountValueAbsoluteDraft {
|
|
398
|
+
readonly type: 'absolute';
|
|
399
|
+
/**
|
|
400
|
+
* Money values in different currencies.
|
|
401
|
+
* An absolute Cart Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be decreased by 10€ and the matching $ price will be decreased by 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
402
|
+
*
|
|
403
|
+
* If the array is empty, the discount does not apply.
|
|
404
|
+
*
|
|
405
|
+
*
|
|
406
|
+
*/
|
|
407
|
+
readonly money: Money[];
|
|
408
|
+
/**
|
|
409
|
+
* Determines how the discount applies on [CartDiscountLineItemTarget](ctp:api:type:CartDiscountLineItemsTarget) and [CartDiscountCustomLineItemTarget](ctp:api:type:CartDiscountCustomLineItemsTarget).
|
|
410
|
+
*
|
|
411
|
+
* If not set, the default behavior is `ProportionateDistribution`.
|
|
412
|
+
*
|
|
413
|
+
*
|
|
414
|
+
*/
|
|
415
|
+
readonly applicationMode?: DiscountApplicationMode;
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Sets the [DiscountedLineItemPrice](ctp:api:type:DiscountedLineItemPrice) of the [CartDiscountLineItemsTarget](ctp:api:type:CartDiscountLineItemsTarget) or [CartDiscountCustomLineItemsTarget](ctp:api:type:CartDiscountCustomLineItemsTarget) to the value specified in the `money` field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the `money` field, this Discount is not applied. If the `quantity` of the Line Item eligible for the Discount is greater than `1`, the fixed price discount is only applied to the Line Item portion for which the `money` value is lesser than their current price.
|
|
419
|
+
*
|
|
420
|
+
*/
|
|
421
|
+
export interface CartDiscountValueFixed {
|
|
422
|
+
readonly type: 'fixed';
|
|
423
|
+
/**
|
|
424
|
+
* Money values in [cent precision](ctp:api:type:CentPrecisionMoney) or [high precision](ctp:api:type:HighPrecisionMoney) of different currencies.
|
|
425
|
+
*
|
|
426
|
+
*
|
|
427
|
+
*/
|
|
428
|
+
readonly money: TypedMoney[];
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Sets the [DiscountedLineItemPrice](ctp:api:type:DiscountedLineItemPrice) of the [CartDiscountLineItemsTarget](ctp:api:type:CartDiscountLineItemsTarget) or [CartDiscountCustomLineItemsTarget](ctp:api:type:CartDiscountCustomLineItemsTarget) to the value specified in the `money` field, if it is lower than the current Line Item price for the same currency. If the Line Item price is already discounted to a price equal to or lower than the respective price in the `money` field, this Discount is not applied.
|
|
432
|
+
*
|
|
433
|
+
*/
|
|
434
|
+
export interface CartDiscountValueFixedDraft {
|
|
435
|
+
readonly type: 'fixed';
|
|
436
|
+
/**
|
|
437
|
+
* Money values provided either in [cent precision](ctp:api:type:Money) or [high precision](ctp:api:type:HighPrecisionMoneyDraft) for different currencies.
|
|
438
|
+
* A fixed Cart Discount will match a price only if the array contains a value with the same currency. For example, if it contains 10€ and 15$, the matching € price will be discounted by 10€ and the matching $ price will be discounted to 15$. If the array has multiple values of the same currency, the API returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
439
|
+
*
|
|
440
|
+
* If the array is empty, the discount does not apply.
|
|
441
|
+
*
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
readonly money: TypedMoneyDraft[];
|
|
445
|
+
}
|
|
446
|
+
export interface CartDiscountValueGiftLineItem {
|
|
447
|
+
readonly type: 'giftLineItem';
|
|
448
|
+
/**
|
|
449
|
+
* Reference to a Product.
|
|
450
|
+
*
|
|
451
|
+
* A Gift Line Item can be present on a Cart even if the referenced Product is unpublished.
|
|
452
|
+
*
|
|
453
|
+
*
|
|
454
|
+
*/
|
|
455
|
+
readonly product: ProductReference;
|
|
456
|
+
/**
|
|
457
|
+
* [ProductVariant](ctp:api:type:ProductVariant) of the Product.
|
|
458
|
+
*
|
|
459
|
+
*
|
|
460
|
+
*/
|
|
461
|
+
readonly variantId: number;
|
|
462
|
+
/**
|
|
463
|
+
* Channel must have the [ChannelRoleEnum](ctp:api:type:ChannelRoleEnum) `InventorySupply`.
|
|
464
|
+
*
|
|
465
|
+
*
|
|
466
|
+
*/
|
|
467
|
+
readonly supplyChannel?: ChannelReference;
|
|
468
|
+
/**
|
|
469
|
+
* Channel must have the [ChannelRoleEnum](ctp:api:type:ChannelRoleEnum) `ProductDistribution`.
|
|
470
|
+
*
|
|
471
|
+
*
|
|
472
|
+
*/
|
|
473
|
+
readonly distributionChannel?: ChannelReference;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* Can only be used in a [CartDiscountDraft](ctp:api:type:CartDiscountDraft) with no `target` specified.
|
|
477
|
+
* Hence, this type can not be used in the [Change Value](ctp:api:type:CartDiscountChangeValueAction) update action.
|
|
478
|
+
*
|
|
479
|
+
*/
|
|
480
|
+
export interface CartDiscountValueGiftLineItemDraft {
|
|
481
|
+
readonly type: 'giftLineItem';
|
|
482
|
+
/**
|
|
483
|
+
* ResourceIdentifier of a Product.
|
|
484
|
+
*
|
|
485
|
+
* A Gift Line Item is added to a Cart even if the referenced Product is unpublished.
|
|
486
|
+
*
|
|
487
|
+
*
|
|
488
|
+
*/
|
|
489
|
+
readonly product: ProductResourceIdentifier;
|
|
490
|
+
/**
|
|
491
|
+
* [ProductVariant](ctp:api:type:ProductVariant) of the Product.
|
|
492
|
+
*
|
|
493
|
+
*
|
|
494
|
+
*/
|
|
495
|
+
readonly variantId: number;
|
|
496
|
+
/**
|
|
497
|
+
* Channel must have the role `InventorySupply`.
|
|
498
|
+
*
|
|
499
|
+
*
|
|
500
|
+
*/
|
|
501
|
+
readonly supplyChannel?: ChannelResourceIdentifier;
|
|
502
|
+
/**
|
|
503
|
+
* Channel must have the role `ProductDistribution`.
|
|
504
|
+
*
|
|
505
|
+
*
|
|
506
|
+
*/
|
|
507
|
+
readonly distributionChannel?: ChannelResourceIdentifier;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Discounts the [CartDiscountTarget](ctp:api:type:CartDiscountTarget) relative to its price.
|
|
511
|
+
*
|
|
512
|
+
*/
|
|
513
|
+
export interface CartDiscountValueRelative {
|
|
514
|
+
readonly type: 'relative';
|
|
515
|
+
/**
|
|
516
|
+
* Fraction (per ten thousand) the price is reduced by. For example, `1000` will result in a 10% price reduction.
|
|
517
|
+
*
|
|
518
|
+
*
|
|
519
|
+
*/
|
|
520
|
+
readonly permyriad: number;
|
|
521
|
+
}
|
|
522
|
+
export interface CartDiscountValueRelativeDraft {
|
|
523
|
+
readonly type: 'relative';
|
|
524
|
+
/**
|
|
525
|
+
* Fraction (per ten thousand) the price is reduced by. For example, `1000` will result in a 10% price reduction.
|
|
526
|
+
*
|
|
527
|
+
*
|
|
528
|
+
*/
|
|
529
|
+
readonly permyriad: number;
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* This mode determines how absolute Discounts are applied on Line Items or Custom Line Items.
|
|
533
|
+
*
|
|
534
|
+
*/
|
|
535
|
+
export type DiscountApplicationMode = 'EvenDistribution' | 'IndividualApplication' | 'ProportionateDistribution' | string;
|
|
536
|
+
/**
|
|
537
|
+
* This Discount target is similar to `MultiBuyLineItems`, but is applied on Custom Line Items instead of Line Items.
|
|
538
|
+
*
|
|
539
|
+
*/
|
|
540
|
+
export interface MultiBuyCustomLineItemsTarget {
|
|
541
|
+
readonly type: 'multiBuyCustomLineItems';
|
|
542
|
+
/**
|
|
543
|
+
* Valid [CustomLineItems target predicate](/../api/projects/predicates#customlineitem-field-identifiers). The Discount will be applied to Custom Line Items that are matched by the predicate.
|
|
544
|
+
*
|
|
545
|
+
*
|
|
546
|
+
*/
|
|
547
|
+
readonly predicate: string;
|
|
548
|
+
/**
|
|
549
|
+
* Number of Custom Line Items to be present in order to trigger an application of this Discount.
|
|
550
|
+
*
|
|
551
|
+
*
|
|
552
|
+
*/
|
|
553
|
+
readonly triggerQuantity: number;
|
|
554
|
+
/**
|
|
555
|
+
* Number of Custom Line Items that are discounted per application of this Discount.
|
|
556
|
+
* It must be less than or equal to the `triggerQuantity`.
|
|
557
|
+
*
|
|
558
|
+
*
|
|
559
|
+
*/
|
|
560
|
+
readonly discountedQuantity: number;
|
|
561
|
+
/**
|
|
562
|
+
* Maximum number of times this Discount can be applied.
|
|
563
|
+
* Do not set if the Discount should be applied an unlimited number of times.
|
|
564
|
+
*
|
|
565
|
+
*
|
|
566
|
+
*/
|
|
567
|
+
readonly maxOccurrence?: number;
|
|
568
|
+
/**
|
|
569
|
+
* Discounts particular Line Items only according to the SelectionMode.
|
|
570
|
+
*
|
|
571
|
+
*
|
|
572
|
+
*/
|
|
573
|
+
readonly selectionMode: SelectionMode;
|
|
574
|
+
}
|
|
575
|
+
export interface MultiBuyLineItemsTarget {
|
|
576
|
+
readonly type: 'multiBuyLineItems';
|
|
577
|
+
/**
|
|
578
|
+
* Valid [LineItem target predicate](/../api/projects/predicates#lineitem-field-identifiers). The Discount will be applied to Line Items that are matched by the predicate.
|
|
579
|
+
*
|
|
580
|
+
*
|
|
581
|
+
*/
|
|
582
|
+
readonly predicate: string;
|
|
583
|
+
/**
|
|
584
|
+
* Number of Line Items to be present in order to trigger an application of this Discount.
|
|
585
|
+
*
|
|
586
|
+
*
|
|
587
|
+
*/
|
|
588
|
+
readonly triggerQuantity: number;
|
|
589
|
+
/**
|
|
590
|
+
* Number of Line Items that are discounted per application of this Discount.
|
|
591
|
+
* It must be less than or equal to the `triggerQuantity`.
|
|
592
|
+
*
|
|
593
|
+
*
|
|
594
|
+
*/
|
|
595
|
+
readonly discountedQuantity: number;
|
|
596
|
+
/**
|
|
597
|
+
* Maximum number of times this Discount can be applied.
|
|
598
|
+
* Do not set if the Discount should be applied an unlimited number of times.
|
|
599
|
+
*
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
readonly maxOccurrence?: number;
|
|
603
|
+
/**
|
|
604
|
+
* Discounts particular Line Items only according to the SelectionMode.
|
|
605
|
+
*
|
|
606
|
+
*
|
|
607
|
+
*/
|
|
608
|
+
readonly selectionMode: SelectionMode;
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Defines which matching items are to be discounted.
|
|
612
|
+
*
|
|
613
|
+
*/
|
|
614
|
+
export type SelectionMode = 'Cheapest' | 'MostExpensive' | string;
|
|
615
|
+
/**
|
|
616
|
+
* Describes how the Cart Discount interacts with other Discounts.
|
|
617
|
+
*
|
|
618
|
+
*/
|
|
619
|
+
export type StackingMode = 'Stacking' | 'StopAfterThisDiscount' | string;
|
|
620
|
+
/**
|
|
621
|
+
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
|
|
622
|
+
*
|
|
623
|
+
* This action generates a [CartDiscountStoreAdded](ctp:api:type:CartDiscountStoreAddedMessage) Message.
|
|
624
|
+
*
|
|
625
|
+
*/
|
|
626
|
+
export interface CartDiscountAddStoreAction {
|
|
627
|
+
readonly action: 'addStore';
|
|
628
|
+
/**
|
|
629
|
+
* [Store](ctp:api:type:Store) to add.
|
|
630
|
+
*
|
|
631
|
+
* A failed update can return the following errors:
|
|
632
|
+
*
|
|
633
|
+
* - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts-stores), a [MaxStoreReferencesReached](ctp:api:type:MaxStoreReferencesReachedError) error is returned.
|
|
634
|
+
* - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts) for Cart Discounts that do not require a Discount Code, a [StoreCartDiscountsLimitReached](ctp:api:type:StoreCartDiscountsLimitReachedError) error is returned.
|
|
635
|
+
*
|
|
636
|
+
*
|
|
637
|
+
*/
|
|
638
|
+
readonly store: StoreResourceIdentifier;
|
|
639
|
+
}
|
|
640
|
+
export interface CartDiscountChangeCartPredicateAction {
|
|
641
|
+
readonly action: 'changeCartPredicate';
|
|
642
|
+
/**
|
|
643
|
+
* New value to set.
|
|
644
|
+
*
|
|
645
|
+
*
|
|
646
|
+
*/
|
|
647
|
+
readonly cartPredicate: string;
|
|
648
|
+
}
|
|
649
|
+
export interface CartDiscountChangeIsActiveAction {
|
|
650
|
+
readonly action: 'changeIsActive';
|
|
651
|
+
/**
|
|
652
|
+
* New value to set.
|
|
653
|
+
* If set to `true`, the Discount will be applied to the Cart.
|
|
654
|
+
*
|
|
655
|
+
* If the limit for active Cart Discounts is reached, a [MaxCartDiscountsReached](ctp:api:type:MaxCartDiscountsReachedError) error is returned.
|
|
656
|
+
*
|
|
657
|
+
*
|
|
658
|
+
*/
|
|
659
|
+
readonly isActive: boolean;
|
|
660
|
+
}
|
|
661
|
+
export interface CartDiscountChangeNameAction {
|
|
662
|
+
readonly action: 'changeName';
|
|
663
|
+
/**
|
|
664
|
+
* New value to set.
|
|
665
|
+
*
|
|
666
|
+
*
|
|
667
|
+
*/
|
|
668
|
+
readonly name: LocalizedString;
|
|
669
|
+
}
|
|
670
|
+
export interface CartDiscountChangeRequiresDiscountCodeAction {
|
|
671
|
+
readonly action: 'changeRequiresDiscountCode';
|
|
672
|
+
/**
|
|
673
|
+
* New value to set.
|
|
674
|
+
* If set to `true`, the Discount can only be used in connection with a [DiscountCode](ctp:api:type:DiscountCode).
|
|
675
|
+
*
|
|
676
|
+
*
|
|
677
|
+
*/
|
|
678
|
+
readonly requiresDiscountCode: boolean;
|
|
679
|
+
}
|
|
680
|
+
export interface CartDiscountChangeSortOrderAction {
|
|
681
|
+
readonly action: 'changeSortOrder';
|
|
682
|
+
/**
|
|
683
|
+
* New value to set (between `0` and `1`).
|
|
684
|
+
* A Discount with a higher sortOrder is prioritized.
|
|
685
|
+
*
|
|
686
|
+
*
|
|
687
|
+
*/
|
|
688
|
+
readonly sortOrder: string;
|
|
689
|
+
}
|
|
690
|
+
export interface CartDiscountChangeStackingModeAction {
|
|
691
|
+
readonly action: 'changeStackingMode';
|
|
692
|
+
/**
|
|
693
|
+
* New value to set.
|
|
694
|
+
*
|
|
695
|
+
*
|
|
696
|
+
*/
|
|
697
|
+
readonly stackingMode: StackingMode;
|
|
698
|
+
}
|
|
699
|
+
export interface CartDiscountChangeTargetAction {
|
|
700
|
+
readonly action: 'changeTarget';
|
|
701
|
+
/**
|
|
702
|
+
* New value to set.
|
|
703
|
+
*
|
|
704
|
+
*
|
|
705
|
+
*/
|
|
706
|
+
readonly target: CartDiscountTarget;
|
|
707
|
+
}
|
|
708
|
+
/**
|
|
709
|
+
* Changes the [CartDiscountValue](ctp:api:type:CartDiscountValue) for [relative](ctp:api:type:CartDiscountValueRelative), [absolute](ctp:api:type:CartDiscountValueAbsolute) and [fixed price](ctp:api:type:CartDiscountValueFixed) CartDiscounts.
|
|
710
|
+
* Changing to [Gift Line Item](ctp:api:type:CartDiscountValueGiftLineItem) is not supported.
|
|
711
|
+
*
|
|
712
|
+
*/
|
|
713
|
+
export interface CartDiscountChangeValueAction {
|
|
714
|
+
readonly action: 'changeValue';
|
|
715
|
+
/**
|
|
716
|
+
* New value to set.
|
|
717
|
+
* When trying to set a [CartDiscountValueGiftLineItemDraft](ctp:api:type:CartDiscountValueGiftLineItemDraft) an [InvalidInput](ctp:api:type:InvalidInputError) error is returned.
|
|
718
|
+
*
|
|
719
|
+
*
|
|
720
|
+
*/
|
|
721
|
+
readonly value: CartDiscountValueDraft;
|
|
722
|
+
}
|
|
723
|
+
/**
|
|
724
|
+
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
|
|
725
|
+
*
|
|
726
|
+
* This action generates a [CartDiscountStoreRemoved](ctp:api:type:CartDiscountStoreRemovedMessage) Message.
|
|
727
|
+
*
|
|
728
|
+
*/
|
|
729
|
+
export interface CartDiscountRemoveStoreAction {
|
|
730
|
+
readonly action: 'removeStore';
|
|
731
|
+
/**
|
|
732
|
+
* [Store](ctp:api:type:Store) to remove.
|
|
733
|
+
*
|
|
734
|
+
*
|
|
735
|
+
*/
|
|
736
|
+
readonly store: StoreResourceIdentifier;
|
|
737
|
+
}
|
|
738
|
+
export interface CartDiscountSetCustomFieldAction {
|
|
739
|
+
readonly action: 'setCustomField';
|
|
740
|
+
/**
|
|
741
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
742
|
+
*
|
|
743
|
+
*
|
|
744
|
+
*/
|
|
745
|
+
readonly name: string;
|
|
746
|
+
/**
|
|
747
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
748
|
+
* Removing a field that does not exist returns an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
749
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
750
|
+
*
|
|
751
|
+
*
|
|
752
|
+
*/
|
|
753
|
+
readonly value?: any;
|
|
754
|
+
}
|
|
755
|
+
export interface CartDiscountSetCustomTypeAction {
|
|
756
|
+
readonly action: 'setCustomType';
|
|
757
|
+
/**
|
|
758
|
+
* Defines the [Type](ctp:api:type:Type) that extends the CartDiscount with [Custom Fields](/../api/projects/custom-fields).
|
|
759
|
+
* If absent, any existing Type and Custom Fields are removed from the CartDiscount.
|
|
760
|
+
*
|
|
761
|
+
*
|
|
762
|
+
*/
|
|
763
|
+
readonly type?: TypeResourceIdentifier;
|
|
764
|
+
/**
|
|
765
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) fields for the CartDiscount.
|
|
766
|
+
*
|
|
767
|
+
*
|
|
768
|
+
*/
|
|
769
|
+
readonly fields?: FieldContainer;
|
|
770
|
+
}
|
|
771
|
+
export interface CartDiscountSetDescriptionAction {
|
|
772
|
+
readonly action: 'setDescription';
|
|
773
|
+
/**
|
|
774
|
+
* Value to set. If empty, any existing value will be removed.
|
|
775
|
+
*
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
readonly description?: LocalizedString;
|
|
779
|
+
}
|
|
780
|
+
export interface CartDiscountSetKeyAction {
|
|
781
|
+
readonly action: 'setKey';
|
|
782
|
+
/**
|
|
783
|
+
* Value to set. If empty, any existing value will be removed.
|
|
784
|
+
*
|
|
785
|
+
*
|
|
786
|
+
*/
|
|
787
|
+
readonly key?: string;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* If a referenced Store does not exist, a [ReferencedResourceNotFound](ctp:api:type:ReferencedResourceNotFoundError) error is returned.
|
|
791
|
+
*
|
|
792
|
+
* This action generates a [CartDiscountStoresSet](ctp:api:type:CartDiscountStoresSetMessage) Message.
|
|
793
|
+
*
|
|
794
|
+
*/
|
|
795
|
+
export interface CartDiscountSetStoresAction {
|
|
796
|
+
readonly action: 'setStores';
|
|
797
|
+
/**
|
|
798
|
+
* [Stores](ctp:api:type:Store) to set.
|
|
799
|
+
* Overrides the current list of Stores.
|
|
800
|
+
* If empty, any existing values will be removed.
|
|
801
|
+
*
|
|
802
|
+
* A failed update can return the following errors:
|
|
803
|
+
*
|
|
804
|
+
* - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts-stores), a [MaxStoreReferencesReached](ctp:api:type:MaxStoreReferencesReachedError) error is returned.
|
|
805
|
+
* - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts) for Cart Discounts that do not require a Discount Code, a [StoreCartDiscountsLimitReached](ctp:api:type:StoreCartDiscountsLimitReachedError) error is returned.
|
|
806
|
+
*
|
|
807
|
+
*
|
|
808
|
+
*/
|
|
809
|
+
readonly stores: StoreResourceIdentifier[];
|
|
810
|
+
}
|
|
811
|
+
export interface CartDiscountSetValidFromAction {
|
|
812
|
+
readonly action: 'setValidFrom';
|
|
813
|
+
/**
|
|
814
|
+
* Value to set.
|
|
815
|
+
* If empty, any existing value will be removed.
|
|
816
|
+
*
|
|
817
|
+
*
|
|
818
|
+
*/
|
|
819
|
+
readonly validFrom?: string;
|
|
820
|
+
}
|
|
821
|
+
export interface CartDiscountSetValidFromAndUntilAction {
|
|
822
|
+
readonly action: 'setValidFromAndUntil';
|
|
823
|
+
/**
|
|
824
|
+
* Value to set.
|
|
825
|
+
* If empty, any existing value will be removed.
|
|
826
|
+
*
|
|
827
|
+
*
|
|
828
|
+
*/
|
|
829
|
+
readonly validFrom?: string;
|
|
830
|
+
/**
|
|
831
|
+
* Value to set.
|
|
832
|
+
* If empty, any existing value will be removed.
|
|
833
|
+
*
|
|
834
|
+
*
|
|
835
|
+
*/
|
|
836
|
+
readonly validUntil?: string;
|
|
837
|
+
}
|
|
838
|
+
export interface CartDiscountSetValidUntilAction {
|
|
839
|
+
readonly action: 'setValidUntil';
|
|
840
|
+
/**
|
|
841
|
+
* Value to set.
|
|
842
|
+
* If empty, any existing value will be removed.
|
|
843
|
+
*
|
|
844
|
+
*
|
|
845
|
+
*/
|
|
846
|
+
readonly validUntil?: string;
|
|
847
|
+
}
|
|
848
|
+
//# sourceMappingURL=cart-discount.d.ts.map
|