@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,1244 @@
|
|
|
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 { AssociateRoleKeyReference, AssociateRoleResourceIdentifier } from './associate-role.js';
|
|
7
|
+
import { Address, BaseAddress, CreatedBy, LastModifiedBy, _BaseAddress } from './common.js';
|
|
8
|
+
import { CustomerReference, CustomerResourceIdentifier } from './customer.js';
|
|
9
|
+
import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
|
|
10
|
+
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
11
|
+
export interface Associate {
|
|
12
|
+
/**
|
|
13
|
+
* Roles assigned to the Associate within a Business Unit.
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
readonly associateRoleAssignments: AssociateRoleAssignment[];
|
|
18
|
+
/**
|
|
19
|
+
* The [Customer](ctp:api:type:Customer) that acts as an Associate in the Business Unit.
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
readonly customer: CustomerReference;
|
|
24
|
+
}
|
|
25
|
+
export interface AssociateDraft {
|
|
26
|
+
/**
|
|
27
|
+
* Roles assigned to the Associate within a Business Unit.
|
|
28
|
+
*
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
readonly associateRoleAssignments: AssociateRoleAssignmentDraft[];
|
|
32
|
+
/**
|
|
33
|
+
* The [Customer](ctp:api:type:Customer) to be part of the Business Unit.
|
|
34
|
+
*
|
|
35
|
+
*
|
|
36
|
+
*/
|
|
37
|
+
readonly customer: CustomerResourceIdentifier;
|
|
38
|
+
}
|
|
39
|
+
export interface AssociateRoleAssignment {
|
|
40
|
+
/**
|
|
41
|
+
* Role the Associate holds within a Business Unit.
|
|
42
|
+
*
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
readonly associateRole: AssociateRoleKeyReference;
|
|
46
|
+
/**
|
|
47
|
+
* Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
*/
|
|
51
|
+
readonly inheritance: AssociateRoleInheritanceMode;
|
|
52
|
+
}
|
|
53
|
+
export interface AssociateRoleAssignmentDraft {
|
|
54
|
+
/**
|
|
55
|
+
* Role the Associate holds within a Business Unit.
|
|
56
|
+
*
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
readonly associateRole: AssociateRoleResourceIdentifier;
|
|
60
|
+
/**
|
|
61
|
+
* Determines whether the AssociateRoleAssignment can be inherited by child Business Units.
|
|
62
|
+
*
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
65
|
+
readonly inheritance?: AssociateRoleInheritanceMode;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Determines whether an [AssociateRoleAssignment](ctp:api:type:AssociateRoleAssignment) can be inherited by child Business Units.
|
|
69
|
+
*
|
|
70
|
+
*/
|
|
71
|
+
export type AssociateRoleInheritanceMode = 'Disabled' | 'Enabled' | string;
|
|
72
|
+
/**
|
|
73
|
+
* Generic type to model the fields that all types of Business Units have in common.
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
export type BusinessUnit = Company | Division;
|
|
77
|
+
/**
|
|
78
|
+
* Determines whether a Business Unit can inherit [Approval Rules](/projects/approval-rules) from a parent. Only Business Units of type `Division` can use `ExplicitAndFromParent`.
|
|
79
|
+
*
|
|
80
|
+
*/
|
|
81
|
+
export type BusinessUnitApprovalRuleMode = 'Explicit' | 'ExplicitAndFromParent' | string;
|
|
82
|
+
/**
|
|
83
|
+
* Determines whether a Business Unit can inherit Associates from a parent.
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
export type BusinessUnitAssociateMode = 'Explicit' | 'ExplicitAndFromParent' | string;
|
|
87
|
+
/**
|
|
88
|
+
* Generic draft type to model those fields all Business Units have in common. The additional fields required for creating a [Company](ctp:api:type:Company) or [Division](ctp:api:type:Division) are represented on [CompanyDraft](ctp:api:type:CompanyDraft) and [DivisionDraft](ctp:api:type:DivisionDraft).
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
91
|
+
export type BusinessUnitDraft = CompanyDraft | DivisionDraft;
|
|
92
|
+
/**
|
|
93
|
+
* [KeyReference](ctp:api:type:KeyReference) to a [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
94
|
+
*
|
|
95
|
+
*/
|
|
96
|
+
export interface BusinessUnitKeyReference {
|
|
97
|
+
readonly typeId: 'business-unit';
|
|
98
|
+
/**
|
|
99
|
+
* Unique and immutable key of the referenced [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
100
|
+
*
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
readonly key: string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* [PagedQueryResult](/../api/general-concepts#pagedqueryresult) with results containing an array of [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
107
|
+
*
|
|
108
|
+
*/
|
|
109
|
+
export interface BusinessUnitPagedQueryResponse {
|
|
110
|
+
/**
|
|
111
|
+
* Number of requested [results](/../api/general-concepts#limit).
|
|
112
|
+
*
|
|
113
|
+
*
|
|
114
|
+
*/
|
|
115
|
+
readonly limit: number;
|
|
116
|
+
/**
|
|
117
|
+
* Number of elements [skipped](/../api/general-concepts#offset).
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
readonly offset: number;
|
|
122
|
+
/**
|
|
123
|
+
* Actual number of results returned.
|
|
124
|
+
*
|
|
125
|
+
*
|
|
126
|
+
*/
|
|
127
|
+
readonly count: number;
|
|
128
|
+
/**
|
|
129
|
+
* Total number of results matching the query.
|
|
130
|
+
* This number is an estimation that is not [strongly consistent](/../api/general-concepts#strong-consistency).
|
|
131
|
+
* This field is returned by default.
|
|
132
|
+
* For improved performance, calculating this field can be deactivated by using the query parameter `withTotal=false`.
|
|
133
|
+
* When the results are filtered with a [Query Predicate](/../api/predicates/query), `total` is subject to a [limit](/../api/limits#queries).
|
|
134
|
+
*
|
|
135
|
+
*
|
|
136
|
+
*/
|
|
137
|
+
readonly total?: number;
|
|
138
|
+
/**
|
|
139
|
+
* [BusinessUnits](ctp:api:type:BusinessUnit) matching the query.
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
*/
|
|
143
|
+
readonly results: BusinessUnit[];
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* [Reference](ctp:api:type:Reference) to a [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
export interface BusinessUnitReference {
|
|
150
|
+
readonly typeId: 'business-unit';
|
|
151
|
+
/**
|
|
152
|
+
* Unique identifier of the referenced [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
153
|
+
*
|
|
154
|
+
*
|
|
155
|
+
*/
|
|
156
|
+
readonly id: string;
|
|
157
|
+
/**
|
|
158
|
+
* Contains the representation of the expanded BusinessUnit. Only present in responses to requests with [Reference Expansion](/../api/general-concepts#reference-expansion) for BusinessUnit.
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
*/
|
|
162
|
+
readonly obj?: BusinessUnit;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* [ResourceIdentifier](ctp:api:type:ResourceIdentifier) to a [BusinessUnit](ctp:api:type:BusinessUnit). Either `id` or `key` is required. If both are set, an [InvalidJsonInput](/../api/errors#invalidjsoninput) error is returned.
|
|
166
|
+
*
|
|
167
|
+
*/
|
|
168
|
+
export interface BusinessUnitResourceIdentifier {
|
|
169
|
+
readonly typeId: 'business-unit';
|
|
170
|
+
/**
|
|
171
|
+
* Unique identifier of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Required if `key` is absent.
|
|
172
|
+
*
|
|
173
|
+
*
|
|
174
|
+
*/
|
|
175
|
+
readonly id?: string;
|
|
176
|
+
/**
|
|
177
|
+
* Unique key of the referenced [BusinessUnit](ctp:api:type:BusinessUnit). Required if `id` is absent.
|
|
178
|
+
*
|
|
179
|
+
*
|
|
180
|
+
*/
|
|
181
|
+
readonly key?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Indicates whether the Business Unit can be edited and used in [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quote Requests](ctp:api:type:QuoteRequest), or [Quotes](ctp:api:type:Quote).
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
export type BusinessUnitStatus = 'Active' | 'Inactive' | string;
|
|
188
|
+
/**
|
|
189
|
+
* Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from its parent unit.
|
|
190
|
+
*
|
|
191
|
+
*/
|
|
192
|
+
export type BusinessUnitStoreMode = 'Explicit' | 'FromParent' | string;
|
|
193
|
+
/**
|
|
194
|
+
* The type of the Business Unit indicating its position in a hierarchy.
|
|
195
|
+
*
|
|
196
|
+
*/
|
|
197
|
+
export type BusinessUnitType = 'Company' | 'Division' | string;
|
|
198
|
+
export interface BusinessUnitUpdate {
|
|
199
|
+
/**
|
|
200
|
+
* Expected version of the BusinessUnit on which the changes should be applied.
|
|
201
|
+
* If the expected version does not match the actual version, a [ConcurrentModification](ctp:api:type:ConcurrentModificationError) error will be returned.
|
|
202
|
+
*
|
|
203
|
+
*
|
|
204
|
+
*/
|
|
205
|
+
readonly version: number;
|
|
206
|
+
/**
|
|
207
|
+
* Update actions to be performed on the BusinessUnit.
|
|
208
|
+
*
|
|
209
|
+
*
|
|
210
|
+
*/
|
|
211
|
+
readonly actions: BusinessUnitUpdateAction[];
|
|
212
|
+
}
|
|
213
|
+
export type BusinessUnitUpdateAction = BusinessUnitAddAddressAction | BusinessUnitAddAssociateAction | BusinessUnitAddBillingAddressIdAction | BusinessUnitAddShippingAddressIdAction | BusinessUnitAddStoreAction | BusinessUnitChangeAddressAction | BusinessUnitChangeApprovalRuleModeAction | BusinessUnitChangeAssociateAction | BusinessUnitChangeAssociateModeAction | BusinessUnitChangeNameAction | BusinessUnitChangeParentUnitAction | BusinessUnitChangeStatusAction | BusinessUnitRemoveAddressAction | BusinessUnitRemoveAssociateAction | BusinessUnitRemoveBillingAddressIdAction | BusinessUnitRemoveShippingAddressIdAction | BusinessUnitRemoveStoreAction | BusinessUnitSetAddressCustomFieldAction | BusinessUnitSetAddressCustomTypeAction | BusinessUnitSetAssociatesAction | BusinessUnitSetContactEmailAction | BusinessUnitSetCustomFieldAction | BusinessUnitSetCustomTypeAction | BusinessUnitSetDefaultBillingAddressAction | BusinessUnitSetDefaultShippingAddressAction | BusinessUnitSetStoreModeAction | BusinessUnitSetStoresAction;
|
|
214
|
+
/**
|
|
215
|
+
* Business Unit type to represent the top level of a business.
|
|
216
|
+
* Contains specific fields and values that differentiate a Company from the generic [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
217
|
+
*
|
|
218
|
+
*/
|
|
219
|
+
export interface Company {
|
|
220
|
+
readonly unitType: 'Company';
|
|
221
|
+
/**
|
|
222
|
+
* Unique identifier of the Business Unit.
|
|
223
|
+
*
|
|
224
|
+
*
|
|
225
|
+
*/
|
|
226
|
+
readonly id: string;
|
|
227
|
+
/**
|
|
228
|
+
* Current version of the Business Unit.
|
|
229
|
+
*
|
|
230
|
+
*
|
|
231
|
+
*/
|
|
232
|
+
readonly version: number;
|
|
233
|
+
/**
|
|
234
|
+
* Date and time (UTC) the Business Unit was initially created.
|
|
235
|
+
*
|
|
236
|
+
*
|
|
237
|
+
*/
|
|
238
|
+
readonly createdAt: string;
|
|
239
|
+
/**
|
|
240
|
+
* Date and time (UTC) the Business Unit was last updated.
|
|
241
|
+
*
|
|
242
|
+
*
|
|
243
|
+
*/
|
|
244
|
+
readonly lastModifiedAt: string;
|
|
245
|
+
/**
|
|
246
|
+
* IDs and references that last modified the BusinessUnit.
|
|
247
|
+
*
|
|
248
|
+
*
|
|
249
|
+
*/
|
|
250
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
251
|
+
/**
|
|
252
|
+
* IDs and references that created the BusinessUnit.
|
|
253
|
+
*
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
readonly createdBy?: CreatedBy;
|
|
257
|
+
/**
|
|
258
|
+
* User-defined unique and immutable identifier of the Business Unit.
|
|
259
|
+
*
|
|
260
|
+
*
|
|
261
|
+
*/
|
|
262
|
+
readonly key: string;
|
|
263
|
+
/**
|
|
264
|
+
* Indicates whether the Business Unit can be edited and used in [Orders](/../api/projects/orders).
|
|
265
|
+
*
|
|
266
|
+
*
|
|
267
|
+
*/
|
|
268
|
+
readonly status: BusinessUnitStatus;
|
|
269
|
+
/**
|
|
270
|
+
* References to [Stores](ctp:api:type:Store) the Business Unit is associated with. Only present when `storeMode` is `Explicit`.
|
|
271
|
+
*
|
|
272
|
+
* If the Business Unit has Stores defined, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must belong to one of the Business Unit's Stores.
|
|
273
|
+
*
|
|
274
|
+
* If the Business Unit has no Stores, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must not belong to any Store.
|
|
275
|
+
*
|
|
276
|
+
*
|
|
277
|
+
*/
|
|
278
|
+
readonly stores?: StoreKeyReference[];
|
|
279
|
+
/**
|
|
280
|
+
* The value of this field is always `Explicit` because a Company cannot have a parent Business Unit that Stores can be inherited from.
|
|
281
|
+
*
|
|
282
|
+
*
|
|
283
|
+
*/
|
|
284
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
285
|
+
/**
|
|
286
|
+
* Name of the Business Unit.
|
|
287
|
+
*
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
readonly name: string;
|
|
291
|
+
/**
|
|
292
|
+
* Email address of the Business Unit.
|
|
293
|
+
*
|
|
294
|
+
*
|
|
295
|
+
*/
|
|
296
|
+
readonly contactEmail?: string;
|
|
297
|
+
/**
|
|
298
|
+
* Custom Fields for the Business Unit.
|
|
299
|
+
*
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
302
|
+
readonly custom?: CustomFields;
|
|
303
|
+
/**
|
|
304
|
+
* Addresses used by the Business Unit.
|
|
305
|
+
*
|
|
306
|
+
*
|
|
307
|
+
*/
|
|
308
|
+
readonly addresses: Address[];
|
|
309
|
+
/**
|
|
310
|
+
* Unique identifiers of addresses used as shipping addresses.
|
|
311
|
+
*
|
|
312
|
+
*
|
|
313
|
+
*/
|
|
314
|
+
readonly shippingAddressIds?: string[];
|
|
315
|
+
/**
|
|
316
|
+
* Unique identifier of the address used as the default shipping address.
|
|
317
|
+
*
|
|
318
|
+
*
|
|
319
|
+
*/
|
|
320
|
+
readonly defaultShippingAddressId?: string;
|
|
321
|
+
/**
|
|
322
|
+
* Unique identifiers of addresses used as billing addresses.
|
|
323
|
+
*
|
|
324
|
+
*
|
|
325
|
+
*/
|
|
326
|
+
readonly billingAddressIds?: string[];
|
|
327
|
+
/**
|
|
328
|
+
* Unique identifier of the address used as the default billing address.
|
|
329
|
+
*
|
|
330
|
+
*
|
|
331
|
+
*/
|
|
332
|
+
readonly defaultBillingAddressId?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The value of this field is always `Explicit` because a Company cannot have a parent Business Unit that Associates can be inherited from.
|
|
335
|
+
*
|
|
336
|
+
*
|
|
337
|
+
*/
|
|
338
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
339
|
+
/**
|
|
340
|
+
* Associates that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole).
|
|
341
|
+
*
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
readonly associates: Associate[];
|
|
345
|
+
/**
|
|
346
|
+
* Associates that are inherited from a parent Business Unit. The value of this field is [eventually consistent](/../api/general-concepts#eventual-consistency) and is only present when the `associateMode` is set to `ExplicitAndFromParent`.
|
|
347
|
+
*
|
|
348
|
+
*
|
|
349
|
+
*/
|
|
350
|
+
readonly inheritedAssociates?: InheritedAssociate[];
|
|
351
|
+
/**
|
|
352
|
+
* Parent unit of the Business Unit. Only present when the `unitType` is `Division`.
|
|
353
|
+
*
|
|
354
|
+
*
|
|
355
|
+
*/
|
|
356
|
+
readonly parentUnit?: BusinessUnitKeyReference;
|
|
357
|
+
/**
|
|
358
|
+
* Top-level unit of the Business Unit. The top-level unit is of `unitType` `Company`.
|
|
359
|
+
*
|
|
360
|
+
*
|
|
361
|
+
*/
|
|
362
|
+
readonly topLevelUnit: BusinessUnitKeyReference;
|
|
363
|
+
/**
|
|
364
|
+
* The value of this field is always `Explicit` because a Company cannot have a parent Business Unit that Approval Rules can be inherited from.
|
|
365
|
+
*
|
|
366
|
+
*
|
|
367
|
+
*/
|
|
368
|
+
readonly approvalRuleMode: BusinessUnitApprovalRuleMode;
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Draft type to represent the top level of a business. Contains the fields and values of the generic [BusinessUnitDraft](ctp:api:type:BusinessUnitDraft) that are used specifically for creating a [Company](ctp:api:type:Company).
|
|
372
|
+
*
|
|
373
|
+
*/
|
|
374
|
+
export interface CompanyDraft {
|
|
375
|
+
readonly unitType: 'Company';
|
|
376
|
+
/**
|
|
377
|
+
* User-defined unique and immutable identifier for the Business Unit.
|
|
378
|
+
*
|
|
379
|
+
*
|
|
380
|
+
*/
|
|
381
|
+
readonly key: string;
|
|
382
|
+
/**
|
|
383
|
+
* Indicates whether the Business Unit can be edited and used in [Orders](/../api/projects/orders).
|
|
384
|
+
*
|
|
385
|
+
*
|
|
386
|
+
*/
|
|
387
|
+
readonly status?: BusinessUnitStatus;
|
|
388
|
+
/**
|
|
389
|
+
* Sets the [Stores](ctp:api:type:Store) the Business Unit is associated with. Can only be set when `storeMode` is `Explicit`.
|
|
390
|
+
* Defaults to empty for [Companies](ctp:api:type:BusinessUnitType) and not set for [Divisions](ctp:api:type:BusinessUnitType).
|
|
391
|
+
*
|
|
392
|
+
* If the Business Unit has Stores defined, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must belong to one of the Business Unit's Stores.
|
|
393
|
+
*
|
|
394
|
+
* If the Business Unit has no Stores, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must not belong to any Store.
|
|
395
|
+
*
|
|
396
|
+
*
|
|
397
|
+
*/
|
|
398
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
399
|
+
/**
|
|
400
|
+
* Defines whether the Stores of the Business Unit are set directly on the Business Unit or are inherited from a parent.
|
|
401
|
+
* `storeMode` is always `Explicit` for [Companies](ctp:api:type:BusinessUnitType) and defaults to `FromParent` for [Divisions](ctp:api:type:BusinessUnitType).
|
|
402
|
+
*
|
|
403
|
+
*
|
|
404
|
+
*/
|
|
405
|
+
readonly storeMode?: BusinessUnitStoreMode;
|
|
406
|
+
/**
|
|
407
|
+
* Name of the Business Unit.
|
|
408
|
+
*
|
|
409
|
+
*
|
|
410
|
+
*/
|
|
411
|
+
readonly name: string;
|
|
412
|
+
/**
|
|
413
|
+
* Email address of the Business Unit.
|
|
414
|
+
*
|
|
415
|
+
*
|
|
416
|
+
*/
|
|
417
|
+
readonly contactEmail?: string;
|
|
418
|
+
/**
|
|
419
|
+
* Determines whether the Business Unit can inherit Associates from a parent.
|
|
420
|
+
* Always `Explicit` for [Companies](ctp:api:type:BusinessUnitType) and defaults to `ExplicitAndFromParent` for [Divisions](ctp:api:type:BusinessUnitType).
|
|
421
|
+
*
|
|
422
|
+
*
|
|
423
|
+
*/
|
|
424
|
+
readonly associateMode?: BusinessUnitAssociateMode;
|
|
425
|
+
/**
|
|
426
|
+
* List of members that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole).
|
|
427
|
+
*
|
|
428
|
+
*
|
|
429
|
+
*/
|
|
430
|
+
readonly associates?: AssociateDraft[];
|
|
431
|
+
/**
|
|
432
|
+
* Determines whether the Business Unit can inherit Approval Rules from a parent.
|
|
433
|
+
* For [Companies](ctp:api:type:BusinessUnitType), the value of this field is always `Explicit`.
|
|
434
|
+
* For [Divisions](ctp:api:type:BusinessUnitType), the default value is `ExplicitAndFromParent`.
|
|
435
|
+
*
|
|
436
|
+
*
|
|
437
|
+
*/
|
|
438
|
+
readonly approvalRuleMode?: BusinessUnitApprovalRuleMode;
|
|
439
|
+
/**
|
|
440
|
+
* Addresses used by the Business Unit.
|
|
441
|
+
*
|
|
442
|
+
*
|
|
443
|
+
*/
|
|
444
|
+
readonly addresses?: BaseAddress[];
|
|
445
|
+
/**
|
|
446
|
+
* Indexes of entries in `addresses` to set as shipping addresses.
|
|
447
|
+
* The `shippingAddressIds` of the [Customer](ctp:api:type:Customer) will be replaced by these addresses.
|
|
448
|
+
*
|
|
449
|
+
*
|
|
450
|
+
*/
|
|
451
|
+
readonly shippingAddresses?: number[];
|
|
452
|
+
/**
|
|
453
|
+
* Index of the entry in `addresses` to set as the default shipping address.
|
|
454
|
+
*
|
|
455
|
+
*
|
|
456
|
+
*/
|
|
457
|
+
readonly defaultShippingAddress?: number;
|
|
458
|
+
/**
|
|
459
|
+
* Indexes of entries in `addresses` to set as billing addresses.
|
|
460
|
+
* The `billingAddressIds` of the [Customer](ctp:api:type:Customer) will be replaced by these addresses.
|
|
461
|
+
*
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
readonly billingAddresses?: number[];
|
|
465
|
+
/**
|
|
466
|
+
* Index of the entry in `addresses` to set as the default billing address.
|
|
467
|
+
*
|
|
468
|
+
*
|
|
469
|
+
*/
|
|
470
|
+
readonly defaultBillingAddress?: number;
|
|
471
|
+
/**
|
|
472
|
+
* Custom Fields for the Business Unit.
|
|
473
|
+
*
|
|
474
|
+
*
|
|
475
|
+
*/
|
|
476
|
+
readonly custom?: CustomFieldsDraft;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Business Unit type to model divisions that are part of the [Company](ctp:api:type:Company) or a higher-order Division.
|
|
480
|
+
* Contains specific fields and values that differentiate a Division from the generic [BusinessUnit](ctp:api:type:BusinessUnit).
|
|
481
|
+
*
|
|
482
|
+
*/
|
|
483
|
+
export interface Division {
|
|
484
|
+
readonly unitType: 'Division';
|
|
485
|
+
/**
|
|
486
|
+
* Unique identifier of the Business Unit.
|
|
487
|
+
*
|
|
488
|
+
*
|
|
489
|
+
*/
|
|
490
|
+
readonly id: string;
|
|
491
|
+
/**
|
|
492
|
+
* Current version of the Business Unit.
|
|
493
|
+
*
|
|
494
|
+
*
|
|
495
|
+
*/
|
|
496
|
+
readonly version: number;
|
|
497
|
+
/**
|
|
498
|
+
* Date and time (UTC) the Business Unit was initially created.
|
|
499
|
+
*
|
|
500
|
+
*
|
|
501
|
+
*/
|
|
502
|
+
readonly createdAt: string;
|
|
503
|
+
/**
|
|
504
|
+
* Date and time (UTC) the Business Unit was last updated.
|
|
505
|
+
*
|
|
506
|
+
*
|
|
507
|
+
*/
|
|
508
|
+
readonly lastModifiedAt: string;
|
|
509
|
+
/**
|
|
510
|
+
* IDs and references that last modified the BusinessUnit.
|
|
511
|
+
*
|
|
512
|
+
*
|
|
513
|
+
*/
|
|
514
|
+
readonly lastModifiedBy?: LastModifiedBy;
|
|
515
|
+
/**
|
|
516
|
+
* IDs and references that created the BusinessUnit.
|
|
517
|
+
*
|
|
518
|
+
*
|
|
519
|
+
*/
|
|
520
|
+
readonly createdBy?: CreatedBy;
|
|
521
|
+
/**
|
|
522
|
+
* User-defined unique and immutable identifier of the Business Unit.
|
|
523
|
+
*
|
|
524
|
+
*
|
|
525
|
+
*/
|
|
526
|
+
readonly key: string;
|
|
527
|
+
/**
|
|
528
|
+
* Indicates whether the Business Unit can be edited and used in [Orders](/../api/projects/orders).
|
|
529
|
+
*
|
|
530
|
+
*
|
|
531
|
+
*/
|
|
532
|
+
readonly status: BusinessUnitStatus;
|
|
533
|
+
/**
|
|
534
|
+
* References to [Stores](ctp:api:type:Store) the Business Unit is associated with. Only present when `storeMode` is `Explicit`.
|
|
535
|
+
*
|
|
536
|
+
* If the Business Unit has Stores defined, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must belong to one of the Business Unit's Stores.
|
|
537
|
+
*
|
|
538
|
+
* If the Business Unit has no Stores, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must not belong to any Store.
|
|
539
|
+
*
|
|
540
|
+
*
|
|
541
|
+
*/
|
|
542
|
+
readonly stores?: StoreKeyReference[];
|
|
543
|
+
/**
|
|
544
|
+
* Defines whether the Stores of the Division are set explicitly or inherited from a parent Business Unit.
|
|
545
|
+
*
|
|
546
|
+
*
|
|
547
|
+
*/
|
|
548
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
549
|
+
/**
|
|
550
|
+
* Name of the Business Unit.
|
|
551
|
+
*
|
|
552
|
+
*
|
|
553
|
+
*/
|
|
554
|
+
readonly name: string;
|
|
555
|
+
/**
|
|
556
|
+
* Email address of the Business Unit.
|
|
557
|
+
*
|
|
558
|
+
*
|
|
559
|
+
*/
|
|
560
|
+
readonly contactEmail?: string;
|
|
561
|
+
/**
|
|
562
|
+
* Custom Fields for the Business Unit.
|
|
563
|
+
*
|
|
564
|
+
*
|
|
565
|
+
*/
|
|
566
|
+
readonly custom?: CustomFields;
|
|
567
|
+
/**
|
|
568
|
+
* Addresses used by the Business Unit.
|
|
569
|
+
*
|
|
570
|
+
*
|
|
571
|
+
*/
|
|
572
|
+
readonly addresses: Address[];
|
|
573
|
+
/**
|
|
574
|
+
* Unique identifiers of addresses used as shipping addresses.
|
|
575
|
+
*
|
|
576
|
+
*
|
|
577
|
+
*/
|
|
578
|
+
readonly shippingAddressIds?: string[];
|
|
579
|
+
/**
|
|
580
|
+
* Unique identifier of the address used as the default shipping address.
|
|
581
|
+
*
|
|
582
|
+
*
|
|
583
|
+
*/
|
|
584
|
+
readonly defaultShippingAddressId?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Unique identifiers of addresses used as billing addresses.
|
|
587
|
+
*
|
|
588
|
+
*
|
|
589
|
+
*/
|
|
590
|
+
readonly billingAddressIds?: string[];
|
|
591
|
+
/**
|
|
592
|
+
* Unique identifier of the address used as the default billing address.
|
|
593
|
+
*
|
|
594
|
+
*
|
|
595
|
+
*/
|
|
596
|
+
readonly defaultBillingAddressId?: string;
|
|
597
|
+
/**
|
|
598
|
+
* Determines whether the Division can inherit Associates from a parent.
|
|
599
|
+
*
|
|
600
|
+
*
|
|
601
|
+
*/
|
|
602
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
603
|
+
/**
|
|
604
|
+
* Associates that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole).
|
|
605
|
+
*
|
|
606
|
+
*
|
|
607
|
+
*/
|
|
608
|
+
readonly associates: Associate[];
|
|
609
|
+
/**
|
|
610
|
+
* Associates that are inherited from a parent Business Unit. The value of this field is [eventually consistent](/../api/general-concepts#eventual-consistency) and is only present when the `associateMode` is set to `ExplicitAndFromParent`.
|
|
611
|
+
*
|
|
612
|
+
*
|
|
613
|
+
*/
|
|
614
|
+
readonly inheritedAssociates?: InheritedAssociate[];
|
|
615
|
+
/**
|
|
616
|
+
* Parent unit of the Division.
|
|
617
|
+
*
|
|
618
|
+
*
|
|
619
|
+
*/
|
|
620
|
+
readonly parentUnit: BusinessUnitKeyReference;
|
|
621
|
+
/**
|
|
622
|
+
* Top-level unit of the Business Unit. The top-level unit is of `unitType` `Company`.
|
|
623
|
+
*
|
|
624
|
+
*
|
|
625
|
+
*/
|
|
626
|
+
readonly topLevelUnit: BusinessUnitKeyReference;
|
|
627
|
+
/**
|
|
628
|
+
* Determines whether a Business Unit can inherit Approval Rules from a parent.
|
|
629
|
+
*
|
|
630
|
+
*
|
|
631
|
+
*/
|
|
632
|
+
readonly approvalRuleMode: BusinessUnitApprovalRuleMode;
|
|
633
|
+
}
|
|
634
|
+
/**
|
|
635
|
+
* Draft type to model divisions that are part of a [Company](ctp:api:type:Company) or a higher-order [Division](ctp:api:type:Division).
|
|
636
|
+
* Contains the fields and values of the generic [BusinessUnitDraft](ctp:api:type:BusinessUnitDraft) that are used specifically for creating a Division.
|
|
637
|
+
*
|
|
638
|
+
*/
|
|
639
|
+
export interface DivisionDraft {
|
|
640
|
+
readonly unitType: 'Division';
|
|
641
|
+
/**
|
|
642
|
+
* User-defined unique and immutable identifier for the Business Unit.
|
|
643
|
+
*
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
readonly key: string;
|
|
647
|
+
/**
|
|
648
|
+
* Indicates whether the Business Unit can be edited and used in [Orders](/../api/projects/orders).
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
*/
|
|
652
|
+
readonly status?: BusinessUnitStatus;
|
|
653
|
+
/**
|
|
654
|
+
* Sets the [Stores](ctp:api:type:Store) the Business Unit is associated with. Can only be set when `storeMode` is `Explicit`.
|
|
655
|
+
* Defaults to empty for [Companies](ctp:api:type:BusinessUnitType) and not set for [Divisions](ctp:api:type:BusinessUnitType).
|
|
656
|
+
*
|
|
657
|
+
* If the Business Unit has Stores defined, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must belong to one of the Business Unit's Stores.
|
|
658
|
+
*
|
|
659
|
+
* If the Business Unit has no Stores, then all of its [Carts](ctp:api:type:Cart), [Orders](ctp:api:type:Order), [Quotes](ctp:api:type:Quote), or [Quote Requests](ctp:api:type:QuoteRequest) must not belong to any Store.
|
|
660
|
+
*
|
|
661
|
+
*
|
|
662
|
+
*/
|
|
663
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
664
|
+
/**
|
|
665
|
+
* If not set, the Division inherits the [Stores](ctp:api:type:Store) from a parent unit.
|
|
666
|
+
* Set this to `Explicit` if you want to set the Stores explicitly in the `stores` field instead.
|
|
667
|
+
*
|
|
668
|
+
*
|
|
669
|
+
*/
|
|
670
|
+
readonly storeMode?: BusinessUnitStoreMode;
|
|
671
|
+
/**
|
|
672
|
+
* Name of the Business Unit.
|
|
673
|
+
*
|
|
674
|
+
*
|
|
675
|
+
*/
|
|
676
|
+
readonly name: string;
|
|
677
|
+
/**
|
|
678
|
+
* Email address of the Business Unit.
|
|
679
|
+
*
|
|
680
|
+
*
|
|
681
|
+
*/
|
|
682
|
+
readonly contactEmail?: string;
|
|
683
|
+
/**
|
|
684
|
+
* Determines whether the Division can inherit Associates from a parent.
|
|
685
|
+
*
|
|
686
|
+
*
|
|
687
|
+
*/
|
|
688
|
+
readonly associateMode?: BusinessUnitAssociateMode;
|
|
689
|
+
/**
|
|
690
|
+
* List of members that are part of the Business Unit in specific [roles](ctp:api:type:AssociateRole).
|
|
691
|
+
*
|
|
692
|
+
*
|
|
693
|
+
*/
|
|
694
|
+
readonly associates?: AssociateDraft[];
|
|
695
|
+
/**
|
|
696
|
+
* Determines whether the Division can inherit Approval Rules from a parent.
|
|
697
|
+
*
|
|
698
|
+
*
|
|
699
|
+
*/
|
|
700
|
+
readonly approvalRuleMode?: BusinessUnitApprovalRuleMode;
|
|
701
|
+
/**
|
|
702
|
+
* Addresses used by the Business Unit.
|
|
703
|
+
*
|
|
704
|
+
*
|
|
705
|
+
*/
|
|
706
|
+
readonly addresses?: BaseAddress[];
|
|
707
|
+
/**
|
|
708
|
+
* Indexes of entries in `addresses` to set as shipping addresses.
|
|
709
|
+
* The `shippingAddressIds` of the [Customer](ctp:api:type:Customer) will be replaced by these addresses.
|
|
710
|
+
*
|
|
711
|
+
*
|
|
712
|
+
*/
|
|
713
|
+
readonly shippingAddresses?: number[];
|
|
714
|
+
/**
|
|
715
|
+
* Index of the entry in `addresses` to set as the default shipping address.
|
|
716
|
+
*
|
|
717
|
+
*
|
|
718
|
+
*/
|
|
719
|
+
readonly defaultShippingAddress?: number;
|
|
720
|
+
/**
|
|
721
|
+
* Indexes of entries in `addresses` to set as billing addresses.
|
|
722
|
+
* The `billingAddressIds` of the [Customer](ctp:api:type:Customer) will be replaced by these addresses.
|
|
723
|
+
*
|
|
724
|
+
*
|
|
725
|
+
*/
|
|
726
|
+
readonly billingAddresses?: number[];
|
|
727
|
+
/**
|
|
728
|
+
* Index of the entry in `addresses` to set as the default billing address.
|
|
729
|
+
*
|
|
730
|
+
*
|
|
731
|
+
*/
|
|
732
|
+
readonly defaultBillingAddress?: number;
|
|
733
|
+
/**
|
|
734
|
+
* Custom Fields for the Business Unit.
|
|
735
|
+
*
|
|
736
|
+
*
|
|
737
|
+
*/
|
|
738
|
+
readonly custom?: CustomFieldsDraft;
|
|
739
|
+
/**
|
|
740
|
+
* The parent unit of this Division. Can be a Company or a Division.
|
|
741
|
+
*
|
|
742
|
+
*
|
|
743
|
+
*/
|
|
744
|
+
readonly parentUnit: BusinessUnitResourceIdentifier;
|
|
745
|
+
}
|
|
746
|
+
export interface InheritedAssociate {
|
|
747
|
+
/**
|
|
748
|
+
* Inherited roles of the Associate within a Business Unit.
|
|
749
|
+
*
|
|
750
|
+
*
|
|
751
|
+
*/
|
|
752
|
+
readonly associateRoleAssignments: InheritedAssociateRoleAssignment[];
|
|
753
|
+
/**
|
|
754
|
+
* The [Customer](ctp:api:type:Customer) that acts as an Associate in the Business Unit.
|
|
755
|
+
*
|
|
756
|
+
*
|
|
757
|
+
*/
|
|
758
|
+
readonly customer: CustomerReference;
|
|
759
|
+
}
|
|
760
|
+
export interface InheritedAssociateRoleAssignment {
|
|
761
|
+
/**
|
|
762
|
+
* Inherited role the Associate holds within a Business Unit.
|
|
763
|
+
*
|
|
764
|
+
*
|
|
765
|
+
*/
|
|
766
|
+
readonly associateRole: AssociateRoleKeyReference;
|
|
767
|
+
/**
|
|
768
|
+
* Reference to the parent Business Unit where the assignment is defined explicitly.
|
|
769
|
+
*
|
|
770
|
+
*
|
|
771
|
+
*/
|
|
772
|
+
readonly source: BusinessUnitKeyReference;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* Adding an address to a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitAddressAdded](ctp:api:type:BusinessUnitAddressAddedMessage) Message.
|
|
776
|
+
*
|
|
777
|
+
*/
|
|
778
|
+
export interface BusinessUnitAddAddressAction {
|
|
779
|
+
readonly action: 'addAddress';
|
|
780
|
+
/**
|
|
781
|
+
* Address to add to the addresses of the [Business Unit](ctp:api:type:BusinessUnit).
|
|
782
|
+
*
|
|
783
|
+
*
|
|
784
|
+
*/
|
|
785
|
+
readonly address: _BaseAddress;
|
|
786
|
+
}
|
|
787
|
+
/**
|
|
788
|
+
* Adding an Associate to a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitAssociateAdded](ctp:api:type:BusinessUnitAssociateAddedMessage) Message.
|
|
789
|
+
*
|
|
790
|
+
*/
|
|
791
|
+
export interface BusinessUnitAddAssociateAction {
|
|
792
|
+
readonly action: 'addAssociate';
|
|
793
|
+
/**
|
|
794
|
+
* The Associate to add.
|
|
795
|
+
*
|
|
796
|
+
*
|
|
797
|
+
*/
|
|
798
|
+
readonly associate: AssociateDraft;
|
|
799
|
+
}
|
|
800
|
+
/**
|
|
801
|
+
* Adding a billing address to a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitBillingAddressAdded](ctp:api:type:BusinessUnitBillingAddressAddedMessage) Message.
|
|
802
|
+
*
|
|
803
|
+
*/
|
|
804
|
+
export interface BusinessUnitAddBillingAddressIdAction {
|
|
805
|
+
readonly action: 'addBillingAddressId';
|
|
806
|
+
/**
|
|
807
|
+
* ID of the address to add as a billing address. Either `addressId` or `addressKey` is required.
|
|
808
|
+
*
|
|
809
|
+
*
|
|
810
|
+
*/
|
|
811
|
+
readonly addressId?: string;
|
|
812
|
+
/**
|
|
813
|
+
* Key of the address to add as a billing address. Either `addressId` or `addressKey` is required.
|
|
814
|
+
*
|
|
815
|
+
*
|
|
816
|
+
*/
|
|
817
|
+
readonly addressKey?: string;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* Adding a shipping address to a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitShippingAddressAdded](ctp:api:type:BusinessUnitShippingAddressAddedMessage) Message.
|
|
821
|
+
*
|
|
822
|
+
*/
|
|
823
|
+
export interface BusinessUnitAddShippingAddressIdAction {
|
|
824
|
+
readonly action: 'addShippingAddressId';
|
|
825
|
+
/**
|
|
826
|
+
* ID of the address to add as a shipping address. Either `addressId` or `addressKey` is required.
|
|
827
|
+
*
|
|
828
|
+
*
|
|
829
|
+
*/
|
|
830
|
+
readonly addressId?: string;
|
|
831
|
+
/**
|
|
832
|
+
* Key of the address to add as a shipping address. Either `addressId` or `addressKey` is required.
|
|
833
|
+
*
|
|
834
|
+
*
|
|
835
|
+
*/
|
|
836
|
+
readonly addressKey?: string;
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Adding a [Store](ctp:api:type:Store) to a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitStoreAdded](ctp:api:type:BusinessUnitStoreAddedMessage) Message.
|
|
840
|
+
* Only applicable when `storeMode` is `Explicit`.
|
|
841
|
+
*
|
|
842
|
+
*/
|
|
843
|
+
export interface BusinessUnitAddStoreAction {
|
|
844
|
+
readonly action: 'addStore';
|
|
845
|
+
/**
|
|
846
|
+
* [Store](ctp:api:type:Store) to add.
|
|
847
|
+
*
|
|
848
|
+
*
|
|
849
|
+
*/
|
|
850
|
+
readonly store: StoreResourceIdentifier;
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Changing the address on a Business Unit generates the [BusinessUnitAddressChanged](ctp:api:type:BusinessUnitAddressChangedMessage) Message.
|
|
854
|
+
*
|
|
855
|
+
*/
|
|
856
|
+
export interface BusinessUnitChangeAddressAction {
|
|
857
|
+
readonly action: 'changeAddress';
|
|
858
|
+
/**
|
|
859
|
+
* ID of the address to change. Either `addressId` or `addressKey` is required.
|
|
860
|
+
*
|
|
861
|
+
*
|
|
862
|
+
*/
|
|
863
|
+
readonly addressId?: string;
|
|
864
|
+
/**
|
|
865
|
+
* Key of the address to change. Either `addressId` or `addressKey` is required.
|
|
866
|
+
*
|
|
867
|
+
*
|
|
868
|
+
*/
|
|
869
|
+
readonly addressKey?: string;
|
|
870
|
+
/**
|
|
871
|
+
* New address to set.
|
|
872
|
+
*
|
|
873
|
+
*
|
|
874
|
+
*/
|
|
875
|
+
readonly address: _BaseAddress;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Updates [Approval Rules](/projects/approval-rules) inheritance behavior between Business Units.
|
|
879
|
+
*
|
|
880
|
+
* Only Business Units of type `Division` can be changed to `ExplicitAndFromParent`.
|
|
881
|
+
*
|
|
882
|
+
* This update action generates a [BusinessUnitApprovalRuleModeChanged](ctp:api:type:BusinessUnitApprovalRuleModeChangedMessage) Message.
|
|
883
|
+
*
|
|
884
|
+
*/
|
|
885
|
+
export interface BusinessUnitChangeApprovalRuleModeAction {
|
|
886
|
+
readonly action: 'changeApprovalRuleMode';
|
|
887
|
+
/**
|
|
888
|
+
* The new value for `approvalRuleMode`.
|
|
889
|
+
*
|
|
890
|
+
*
|
|
891
|
+
*/
|
|
892
|
+
readonly approvalRuleMode: BusinessUnitApprovalRuleMode;
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* Updating the [Associate](ctp:api:type:Associate) on a [Business Unit](ctp:api:type:BusinessUnit) generates the [BusinessUnitAssociateChanged](ctp:api:type:BusinessUnitAssociateChangedMessage) Message.
|
|
896
|
+
*
|
|
897
|
+
*/
|
|
898
|
+
export interface BusinessUnitChangeAssociateAction {
|
|
899
|
+
readonly action: 'changeAssociate';
|
|
900
|
+
/**
|
|
901
|
+
* New version of an existing Associate.
|
|
902
|
+
*
|
|
903
|
+
*
|
|
904
|
+
*/
|
|
905
|
+
readonly associate: AssociateDraft;
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* Only Business Units of type `Division` can be changed to `ExplicitAndFromParent`.
|
|
909
|
+
* This update action generates a [BusinessUnitAssociateModeChanged](ctp:api:type:BusinessUnitAssociateModeChangedMessage) Message.
|
|
910
|
+
*
|
|
911
|
+
*/
|
|
912
|
+
export interface BusinessUnitChangeAssociateModeAction {
|
|
913
|
+
readonly action: 'changeAssociateMode';
|
|
914
|
+
/**
|
|
915
|
+
* The new value for `associateMode`.
|
|
916
|
+
*
|
|
917
|
+
*
|
|
918
|
+
*/
|
|
919
|
+
readonly associateMode: BusinessUnitAssociateMode;
|
|
920
|
+
}
|
|
921
|
+
/**
|
|
922
|
+
* Updating the name on a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitNameChanged](ctp:api:type:BusinessUnitNameChangedMessage) Message.
|
|
923
|
+
*
|
|
924
|
+
*/
|
|
925
|
+
export interface BusinessUnitChangeNameAction {
|
|
926
|
+
readonly action: 'changeName';
|
|
927
|
+
/**
|
|
928
|
+
* New name to set.
|
|
929
|
+
*
|
|
930
|
+
*
|
|
931
|
+
*/
|
|
932
|
+
readonly name: string;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* Changing the parent of a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitParentChanged](ctp:api:type:BusinessUnitParentChangedMessage) Message.
|
|
936
|
+
*
|
|
937
|
+
*/
|
|
938
|
+
export interface BusinessUnitChangeParentUnitAction {
|
|
939
|
+
readonly action: 'changeParentUnit';
|
|
940
|
+
/**
|
|
941
|
+
* New parent unit of the [Business Unit](ctp:api:type:BusinessUnit). The new parent unit must have the same top-level unit as the old parent unit.
|
|
942
|
+
*
|
|
943
|
+
*
|
|
944
|
+
*/
|
|
945
|
+
readonly parentUnit: BusinessUnitResourceIdentifier;
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Changing the status of a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitStatusChanged](ctp:api:type:BusinessUnitStatusChangedMessage) Message.
|
|
949
|
+
*
|
|
950
|
+
*/
|
|
951
|
+
export interface BusinessUnitChangeStatusAction {
|
|
952
|
+
readonly action: 'changeStatus';
|
|
953
|
+
/**
|
|
954
|
+
* New status to set.
|
|
955
|
+
*
|
|
956
|
+
*
|
|
957
|
+
*/
|
|
958
|
+
readonly status: string;
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Removing the address from a [Business Unit](ctp:api:type:BusinessUnit) generates the [BusinessUnitAddressRemoved](ctp:api:type:BusinessUnitAddressRemovedMessage) Message.
|
|
962
|
+
*
|
|
963
|
+
*/
|
|
964
|
+
export interface BusinessUnitRemoveAddressAction {
|
|
965
|
+
readonly action: 'removeAddress';
|
|
966
|
+
/**
|
|
967
|
+
* ID of the address to be removed. Either `addressId` or `addressKey` is required.
|
|
968
|
+
*
|
|
969
|
+
*
|
|
970
|
+
*/
|
|
971
|
+
readonly addressId?: string;
|
|
972
|
+
/**
|
|
973
|
+
* Key of the address to be removed. Either `addressId` or `addressKey` is required.
|
|
974
|
+
*
|
|
975
|
+
*
|
|
976
|
+
*/
|
|
977
|
+
readonly addressKey?: string;
|
|
978
|
+
}
|
|
979
|
+
/**
|
|
980
|
+
* Removing an [Associate](ctp:api:type:Associate) from a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitAssociateRemoved](ctp:api:type:BusinessUnitAssociateRemovedMessage) Message.
|
|
981
|
+
*
|
|
982
|
+
*/
|
|
983
|
+
export interface BusinessUnitRemoveAssociateAction {
|
|
984
|
+
readonly action: 'removeAssociate';
|
|
985
|
+
/**
|
|
986
|
+
* [Associate](ctp:api:type:Associate) to remove.
|
|
987
|
+
*
|
|
988
|
+
*
|
|
989
|
+
*/
|
|
990
|
+
readonly customer: CustomerResourceIdentifier;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Removing a billing address from a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitBillingAddressRemoved](ctp:api:type:BusinessUnitBillingAddressRemovedMessage) Message.
|
|
994
|
+
*
|
|
995
|
+
*/
|
|
996
|
+
export interface BusinessUnitRemoveBillingAddressIdAction {
|
|
997
|
+
readonly action: 'removeBillingAddressId';
|
|
998
|
+
/**
|
|
999
|
+
* ID of the address to be removed from `billingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
1000
|
+
*
|
|
1001
|
+
*
|
|
1002
|
+
*/
|
|
1003
|
+
readonly addressId?: string;
|
|
1004
|
+
/**
|
|
1005
|
+
* Key of the address to be removed from `billingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
1006
|
+
*
|
|
1007
|
+
*
|
|
1008
|
+
*/
|
|
1009
|
+
readonly addressKey?: string;
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Removing a shipping address from a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitShippingAddressRemoved](ctp:api:type:BusinessUnitShippingAddressRemovedMessage) Message.
|
|
1013
|
+
*
|
|
1014
|
+
*/
|
|
1015
|
+
export interface BusinessUnitRemoveShippingAddressIdAction {
|
|
1016
|
+
readonly action: 'removeShippingAddressId';
|
|
1017
|
+
/**
|
|
1018
|
+
* ID of the address to be removed from `shippingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
1019
|
+
*
|
|
1020
|
+
*
|
|
1021
|
+
*/
|
|
1022
|
+
readonly addressId?: string;
|
|
1023
|
+
/**
|
|
1024
|
+
* Key of the address to be removed from `shippingAddressIds`. Either `addressId` or `addressKey` is required.
|
|
1025
|
+
*
|
|
1026
|
+
*
|
|
1027
|
+
*/
|
|
1028
|
+
readonly addressKey?: string;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* Removes a Store from the Business Unit.
|
|
1032
|
+
* Newly created [Carts](ctp:api:type:Cart) and [Orders](ctp:api:type:Order) can no longer reference the removed Store for the Business Unit.
|
|
1033
|
+
* We recommend cleaning up unordered Carts that still have the Store assigned after calling this update action since those cannot be converted to Orders.
|
|
1034
|
+
* Orders created before the Store was removed remain unchanged.
|
|
1035
|
+
* Generates a [BusinessUnitStoreRemoved](ctp:api:type:BusinessUnitStoreRemovedMessage) Message.
|
|
1036
|
+
* Only applicable when `storeMode` is `Explicit`.
|
|
1037
|
+
*
|
|
1038
|
+
*/
|
|
1039
|
+
export interface BusinessUnitRemoveStoreAction {
|
|
1040
|
+
readonly action: 'removeStore';
|
|
1041
|
+
/**
|
|
1042
|
+
* [Store](ctp:api:type:Store) to remove.
|
|
1043
|
+
*
|
|
1044
|
+
*
|
|
1045
|
+
*/
|
|
1046
|
+
readonly store: StoreResourceIdentifier;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* Adding a Custom Field to an Address of a Business Unit generates the [BusinessUnitAddressCustomFieldAdded](ctp:api:type:BusinessUnitAddressCustomFieldAddedMessage) Message, removing one generates the [BusinessUnitAddressCustomFieldRemoved](ctp:api:type:BusinessUnitAddressCustomFieldRemovedMessage) Message, and updating an existing one generates the [BusinessUnitAddressCustomFieldChanged](ctp:api:type:BusinessUnitAddressCustomFieldChangedMessage) Message.
|
|
1050
|
+
*
|
|
1051
|
+
*/
|
|
1052
|
+
export interface BusinessUnitSetAddressCustomFieldAction {
|
|
1053
|
+
readonly action: 'setAddressCustomField';
|
|
1054
|
+
/**
|
|
1055
|
+
* ID of the address to be extended.
|
|
1056
|
+
*
|
|
1057
|
+
*
|
|
1058
|
+
*/
|
|
1059
|
+
readonly addressId: string;
|
|
1060
|
+
/**
|
|
1061
|
+
* Name of the [Custom Field](/../api/projects/custom-fields).
|
|
1062
|
+
*
|
|
1063
|
+
*
|
|
1064
|
+
*/
|
|
1065
|
+
readonly name: string;
|
|
1066
|
+
/**
|
|
1067
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
1068
|
+
* Trying to remove a field that does not exist will fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
1069
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
1070
|
+
*
|
|
1071
|
+
*
|
|
1072
|
+
*/
|
|
1073
|
+
readonly value?: any;
|
|
1074
|
+
}
|
|
1075
|
+
/**
|
|
1076
|
+
* Adding or updating a Custom Type on an Address of a Business Unit generates the [BusinessUnitAddressCustomTypeSet](ctp:api:type:BusinessUnitAddressCustomTypeSetMessage) Message, and removing one generates the [BusinessUnitAddressCustomTypeRemoved](ctp:api:type:BusinessUnitAddressCustomTypeRemovedMessage) Message.
|
|
1077
|
+
*
|
|
1078
|
+
*/
|
|
1079
|
+
export interface BusinessUnitSetAddressCustomTypeAction {
|
|
1080
|
+
readonly action: 'setAddressCustomType';
|
|
1081
|
+
/**
|
|
1082
|
+
* Defines the [Type](ctp:api:type:Type) that extends the `address` with [Custom Fields](/../api/projects/custom-fields).
|
|
1083
|
+
* If absent, any existing Type and Custom Fields are removed from the `address`.
|
|
1084
|
+
*
|
|
1085
|
+
*
|
|
1086
|
+
*/
|
|
1087
|
+
readonly type?: TypeResourceIdentifier;
|
|
1088
|
+
/**
|
|
1089
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) for the `address`.
|
|
1090
|
+
*
|
|
1091
|
+
*
|
|
1092
|
+
*/
|
|
1093
|
+
readonly fields?: FieldContainer;
|
|
1094
|
+
/**
|
|
1095
|
+
* ID of the address to be extended.
|
|
1096
|
+
*
|
|
1097
|
+
*
|
|
1098
|
+
*/
|
|
1099
|
+
readonly addressId: string;
|
|
1100
|
+
}
|
|
1101
|
+
/**
|
|
1102
|
+
* Changes the Associates of a [Business Unit](ctp:api:type:BusinessUnit), generates a [BusinessUnitAssociatesSet](ctp:api:type:BusinessUnitAssociatesSetMessage) Message.
|
|
1103
|
+
*
|
|
1104
|
+
*/
|
|
1105
|
+
export interface BusinessUnitSetAssociatesAction {
|
|
1106
|
+
readonly action: 'setAssociates';
|
|
1107
|
+
/**
|
|
1108
|
+
* The new list of Associates. If empty, existing values will be removed.
|
|
1109
|
+
*
|
|
1110
|
+
*
|
|
1111
|
+
*/
|
|
1112
|
+
readonly associates: AssociateDraft[];
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* Setting the contact email on a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitContactEmailSet](ctp:api:type:BusinessUnitContactEmailSetMessage) Message.
|
|
1116
|
+
*
|
|
1117
|
+
*/
|
|
1118
|
+
export interface BusinessUnitSetContactEmailAction {
|
|
1119
|
+
readonly action: 'setContactEmail';
|
|
1120
|
+
/**
|
|
1121
|
+
* Email to set.
|
|
1122
|
+
* If `contactEmail` is absent or `null`, the existing contact email, if any, will be removed.
|
|
1123
|
+
*
|
|
1124
|
+
*
|
|
1125
|
+
*/
|
|
1126
|
+
readonly contactEmail?: string;
|
|
1127
|
+
}
|
|
1128
|
+
/**
|
|
1129
|
+
* Adding a Custom Field to a Business Unit generates the [BusinessUnitCustomFieldAdded](ctp:api:type:BusinessUnitCustomFieldAddedMessage) Message, removing one generates the [BusinessUnitCustomFieldRemoved](ctp:api:type:BusinessUnitCustomFieldRemovedMessage) Message, and updating an existing one generates the [BusinessUnitCustomFieldChanged](ctp:api:type:BusinessUnitCustomFieldChangedMessage) Message.
|
|
1130
|
+
*
|
|
1131
|
+
*/
|
|
1132
|
+
export interface BusinessUnitSetCustomFieldAction {
|
|
1133
|
+
readonly action: 'setCustomField';
|
|
1134
|
+
/**
|
|
1135
|
+
* Name of the [Custom Field](/../api/projects/custom-fields) to add, update, or remove.
|
|
1136
|
+
*
|
|
1137
|
+
*
|
|
1138
|
+
*/
|
|
1139
|
+
readonly name: string;
|
|
1140
|
+
/**
|
|
1141
|
+
* If `value` is absent or `null`, this field will be removed if it exists.
|
|
1142
|
+
* Trying to remove a field that does not exist will fail with an [InvalidOperation](ctp:api:type:InvalidOperationError) error.
|
|
1143
|
+
* If `value` is provided, it is set for the field defined by `name`.
|
|
1144
|
+
*
|
|
1145
|
+
*
|
|
1146
|
+
*/
|
|
1147
|
+
readonly value?: any;
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Adding or updating a Custom Type on a Business Unit generates the [BusinessUnitCustomTypeSet](ctp:api:type:BusinessUnitCustomTypeSetMessage) Message, removing one generates the [BusinessUnitCustomTypeRemoved](ctp:api:type:BusinessUnitCustomTypeRemovedMessage) Message.
|
|
1151
|
+
*
|
|
1152
|
+
*/
|
|
1153
|
+
export interface BusinessUnitSetCustomTypeAction {
|
|
1154
|
+
readonly action: 'setCustomType';
|
|
1155
|
+
/**
|
|
1156
|
+
* Defines the [Type](ctp:api:type:Type) that extends the BusinessUnit with [Custom Fields](ctp:api:type:CustomFields).
|
|
1157
|
+
* If absent, any existing Type and Custom Fields are removed from the BusinessUnit.
|
|
1158
|
+
*
|
|
1159
|
+
*
|
|
1160
|
+
*/
|
|
1161
|
+
readonly type?: TypeResourceIdentifier;
|
|
1162
|
+
/**
|
|
1163
|
+
* Sets the [Custom Fields](/../api/projects/custom-fields) for the BusinessUnit.
|
|
1164
|
+
*
|
|
1165
|
+
*
|
|
1166
|
+
*/
|
|
1167
|
+
readonly fields?: FieldContainer;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Setting the default billing address on a [Business Unit](ctp:api:type:BusinessUnit) generates the [BusinessUnitDefaultBillingAddressSet](ctp:api:type:BusinessUnitDefaultBillingAddressSetMessage) Message.
|
|
1171
|
+
*
|
|
1172
|
+
*/
|
|
1173
|
+
export interface BusinessUnitSetDefaultBillingAddressAction {
|
|
1174
|
+
readonly action: 'setDefaultBillingAddress';
|
|
1175
|
+
/**
|
|
1176
|
+
* ID of the address to add as a billing address. Either `addressId` or `addressKey` is required.
|
|
1177
|
+
*
|
|
1178
|
+
*
|
|
1179
|
+
*/
|
|
1180
|
+
readonly addressId?: string;
|
|
1181
|
+
/**
|
|
1182
|
+
* Key of the address to add as a billing address. Either `addressId` or `addressKey` is required.
|
|
1183
|
+
*
|
|
1184
|
+
*
|
|
1185
|
+
*/
|
|
1186
|
+
readonly addressKey?: string;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Setting the default shipping address on a [Business Unit](ctp:api:type:BusinessUnit) generates a [BusinessUnitDefaultShippingAddressSet](ctp:api:type:BusinessUnitDefaultShippingAddressSetMessage) Message.
|
|
1190
|
+
*
|
|
1191
|
+
*/
|
|
1192
|
+
export interface BusinessUnitSetDefaultShippingAddressAction {
|
|
1193
|
+
readonly action: 'setDefaultShippingAddress';
|
|
1194
|
+
/**
|
|
1195
|
+
* ID of the address to add as a shipping address. Either `addressId` or `addressKey` is required.
|
|
1196
|
+
*
|
|
1197
|
+
*
|
|
1198
|
+
*/
|
|
1199
|
+
readonly addressId?: string;
|
|
1200
|
+
/**
|
|
1201
|
+
* Key of the address to add as a shipping address. Either `addressId` or `addressKey` is required.
|
|
1202
|
+
*
|
|
1203
|
+
*
|
|
1204
|
+
*/
|
|
1205
|
+
readonly addressKey?: string;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Only Business Units of type `Division` can be have a store mode of `FromParent`. Changing the `storeMode` to `FromParent` empties the `stores` array on the BusinessUnit.
|
|
1209
|
+
* This update action generates a [BusinessUnitStoreModeChanged](ctp:api:type:BusinessUnitStoreModeChangedMessage) Message.
|
|
1210
|
+
*
|
|
1211
|
+
*/
|
|
1212
|
+
export interface BusinessUnitSetStoreModeAction {
|
|
1213
|
+
readonly action: 'setStoreMode';
|
|
1214
|
+
/**
|
|
1215
|
+
* Set to `Explicit` to specify Stores for the Business Unit. Set to `FromParent` to inherit Stores from a parent.
|
|
1216
|
+
*
|
|
1217
|
+
*
|
|
1218
|
+
*/
|
|
1219
|
+
readonly storeMode: BusinessUnitStoreMode;
|
|
1220
|
+
/**
|
|
1221
|
+
* Set the [Stores](ctp:api:type:Store) the Business Unit is associated with. Can only be set if `storeMode` is `Explicit`.
|
|
1222
|
+
*
|
|
1223
|
+
*
|
|
1224
|
+
*/
|
|
1225
|
+
readonly stores?: StoreResourceIdentifier[];
|
|
1226
|
+
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Sets the Stores of the Business Unit. Can only be set if the Business Unit `storeMode` is `Explicit`.
|
|
1229
|
+
* [Carts](ctp:api:type:Cart) and [Orders](ctp:api:type:Order) created after the Set Stores update must use the new Stores of
|
|
1230
|
+
* the Business Unit and, if set, their [Product Selections](ctp:api:type:ProductSelection), and [Channels](ctp:api:type:Channel).
|
|
1231
|
+
* Orders created before the Set Stores update action remain unchanged.
|
|
1232
|
+
* Setting the Stores on a Business Unit generates a [BusinessUnitStoresSet](ctp:api:type:BusinessUnitStoresSetMessage) Message.
|
|
1233
|
+
*
|
|
1234
|
+
*/
|
|
1235
|
+
export interface BusinessUnitSetStoresAction {
|
|
1236
|
+
readonly action: 'setStores';
|
|
1237
|
+
/**
|
|
1238
|
+
* [Stores](ctp:api:type:Store) to set. Overrides the current list of Stores.
|
|
1239
|
+
*
|
|
1240
|
+
*
|
|
1241
|
+
*/
|
|
1242
|
+
readonly stores: StoreResourceIdentifier[];
|
|
1243
|
+
}
|
|
1244
|
+
//# sourceMappingURL=business-unit.d.ts.map
|