@djust-b2b/djust-front-sdk 3.0.0-beta.9 → 3.0.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/README.md +34 -30
- package/dist/.tsbuildinfo +1 -1
- package/dist/.tsbuildinfo-esm +1 -1
- package/dist/client/create-client.d.ts +18 -0
- package/dist/client/create-client.d.ts.map +1 -1
- package/dist/client/transport.d.ts +5 -0
- package/dist/client/transport.d.ts.map +1 -1
- package/dist/errors/classes/not-found.error.d.ts +1 -1
- package/dist/errors/classes/not-found.error.d.ts.map +1 -1
- package/dist/errors/factory.d.ts.map +1 -1
- package/dist/errors/helpers/djust-api-error.d.ts +29 -0
- package/dist/errors/helpers/djust-api-error.d.ts.map +1 -0
- package/dist/errors/types.d.ts +4 -0
- package/dist/errors/types.d.ts.map +1 -1
- package/dist/index.d.ts +42 -40
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +269 -63
- package/dist/interfaces/index.d.ts +15 -3
- package/dist/interfaces/index.d.ts.map +1 -1
- package/dist/services/base.service.d.ts +2 -0
- package/dist/services/base.service.d.ts.map +1 -1
- package/dist/services/commercial-order/commercial-order.service.d.ts +8 -5
- package/dist/services/commercial-order/commercial-order.service.d.ts.map +1 -1
- package/dist/services/commercial-order/definitions.d.ts +13 -0
- package/dist/services/commercial-order/definitions.d.ts.map +1 -1
- package/dist/services/commercial-order/index.d.ts +30 -19
- package/dist/services/commercial-order/index.d.ts.map +1 -1
- package/dist/services/commercial-order/module.d.ts +1 -1
- package/dist/services/commercial-order/module.d.ts.map +1 -1
- package/dist/services/commercial-order/types.d.ts +1 -0
- package/dist/services/commercial-order/types.d.ts.map +1 -1
- package/dist/services/logistic-order/definitions.d.ts +23 -1
- package/dist/services/logistic-order/definitions.d.ts.map +1 -1
- package/dist/services/logistic-order/endpoints.d.ts +1 -0
- package/dist/services/logistic-order/endpoints.d.ts.map +1 -1
- package/dist/services/logistic-order/index.d.ts +77 -1
- package/dist/services/logistic-order/index.d.ts.map +1 -1
- package/dist/services/logistic-order/logistic-order.service.d.ts +6 -1
- package/dist/services/logistic-order/logistic-order.service.d.ts.map +1 -1
- package/dist/services/logistic-order/module.d.ts +1 -1
- package/dist/services/logistic-order/module.d.ts.map +1 -1
- package/dist/services/logistic-order/types.d.ts +9 -0
- package/dist/services/logistic-order/types.d.ts.map +1 -1
- package/dist/services/operation/definitions.d.ts +1 -18
- package/dist/services/operation/definitions.d.ts.map +1 -1
- package/dist/services/payment/definitions.d.ts +0 -10
- package/dist/services/payment/definitions.d.ts.map +1 -1
- package/dist/services/product/definitions.d.ts +1 -0
- package/dist/services/product/definitions.d.ts.map +1 -1
- package/dist/services/product/index.d.ts +6 -5
- package/dist/services/product/index.d.ts.map +1 -1
- package/dist/services/product-variant/definitions.d.ts +3 -142
- package/dist/services/product-variant/definitions.d.ts.map +1 -1
- package/dist/services/quote/index.d.ts +1 -1
- package/dist/settings/fetch-instance.d.ts.map +1 -1
- package/dist/settings/sdk-version.d.ts +3 -0
- package/dist/settings/sdk-version.d.ts.map +1 -0
- package/lib/.tsbuildinfo +1 -0
- package/lib/client/create-client.d.ts +251 -0
- package/lib/client/create-client.d.ts.map +1 -0
- package/lib/client/create-client.js +233 -0
- package/lib/client/create-client.js.map +1 -0
- package/lib/client/index.d.ts +14 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +91 -0
- package/lib/client/index.js.map +1 -0
- package/lib/client/performance.d.ts +203 -0
- package/lib/client/performance.d.ts.map +1 -0
- package/lib/client/performance.js +409 -0
- package/lib/client/performance.js.map +1 -0
- package/lib/client/transport.d.ts +372 -0
- package/lib/client/transport.d.ts.map +1 -0
- package/lib/client/transport.js +735 -0
- package/lib/client/transport.js.map +1 -0
- package/lib/errors/base.d.ts +101 -0
- package/lib/errors/base.d.ts.map +1 -0
- package/lib/errors/base.js +145 -0
- package/lib/errors/base.js.map +1 -0
- package/lib/errors/classes/auth.error.d.ts +64 -0
- package/lib/errors/classes/auth.error.d.ts.map +1 -0
- package/lib/errors/classes/auth.error.js +116 -0
- package/lib/errors/classes/auth.error.js.map +1 -0
- package/lib/errors/classes/forbidden.error.d.ts +52 -0
- package/lib/errors/classes/forbidden.error.d.ts.map +1 -0
- package/lib/errors/classes/forbidden.error.js +90 -0
- package/lib/errors/classes/forbidden.error.js.map +1 -0
- package/lib/errors/classes/index.d.ts +17 -0
- package/lib/errors/classes/index.d.ts.map +1 -0
- package/lib/errors/classes/index.js +29 -0
- package/lib/errors/classes/index.js.map +1 -0
- package/lib/errors/classes/network.error.d.ts +63 -0
- package/lib/errors/classes/network.error.d.ts.map +1 -0
- package/lib/errors/classes/network.error.js +122 -0
- package/lib/errors/classes/network.error.js.map +1 -0
- package/lib/errors/classes/not-found.error.d.ts +58 -0
- package/lib/errors/classes/not-found.error.d.ts.map +1 -0
- package/lib/errors/classes/not-found.error.js +120 -0
- package/lib/errors/classes/not-found.error.js.map +1 -0
- package/lib/errors/classes/rate-limit.error.d.ts +49 -0
- package/lib/errors/classes/rate-limit.error.d.ts.map +1 -0
- package/lib/errors/classes/rate-limit.error.js +107 -0
- package/lib/errors/classes/rate-limit.error.js.map +1 -0
- package/lib/errors/classes/server.error.d.ts +63 -0
- package/lib/errors/classes/server.error.d.ts.map +1 -0
- package/lib/errors/classes/server.error.js +156 -0
- package/lib/errors/classes/server.error.js.map +1 -0
- package/lib/errors/classes/timeout.error.d.ts +64 -0
- package/lib/errors/classes/timeout.error.d.ts.map +1 -0
- package/lib/errors/classes/timeout.error.js +90 -0
- package/lib/errors/classes/timeout.error.js.map +1 -0
- package/lib/errors/classes/unexpected.error.d.ts +70 -0
- package/lib/errors/classes/unexpected.error.d.ts.map +1 -0
- package/lib/errors/classes/unexpected.error.js +105 -0
- package/lib/errors/classes/unexpected.error.js.map +1 -0
- package/lib/errors/classes/validation.error.d.ts +68 -0
- package/lib/errors/classes/validation.error.d.ts.map +1 -0
- package/lib/errors/classes/validation.error.js +103 -0
- package/lib/errors/classes/validation.error.js.map +1 -0
- package/lib/errors/codes.d.ts +111 -0
- package/lib/errors/codes.d.ts.map +1 -0
- package/lib/errors/codes.js +143 -0
- package/lib/errors/codes.js.map +1 -0
- package/lib/errors/compat.d.ts +99 -0
- package/lib/errors/compat.d.ts.map +1 -0
- package/lib/errors/compat.js +280 -0
- package/lib/errors/compat.js.map +1 -0
- package/lib/errors/factory.d.ts +33 -0
- package/lib/errors/factory.d.ts.map +1 -0
- package/lib/errors/factory.js +298 -0
- package/lib/errors/factory.js.map +1 -0
- package/lib/errors/guards.d.ts +142 -0
- package/lib/errors/guards.d.ts.map +1 -0
- package/lib/errors/guards.js +281 -0
- package/lib/errors/guards.js.map +1 -0
- package/lib/errors/helpers/djust-api-error.d.ts +29 -0
- package/lib/errors/helpers/djust-api-error.d.ts.map +1 -0
- package/lib/errors/helpers/djust-api-error.js +49 -0
- package/lib/errors/helpers/djust-api-error.js.map +1 -0
- package/lib/errors/index.d.ts +25 -0
- package/lib/errors/index.d.ts.map +1 -0
- package/lib/errors/index.js +89 -0
- package/lib/errors/index.js.map +1 -0
- package/lib/errors/types.d.ts +104 -0
- package/lib/errors/types.d.ts.map +1 -0
- package/lib/errors/types.js +10 -0
- package/lib/errors/types.js.map +1 -0
- package/lib/helpers/index.d.ts +42 -0
- package/lib/helpers/index.d.ts.map +1 -0
- package/lib/helpers/index.js +102 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/parameters-validation.d.ts +3 -0
- package/lib/helpers/parameters-validation.d.ts.map +1 -0
- package/lib/helpers/parameters-validation.js +22 -0
- package/lib/helpers/parameters-validation.js.map +1 -0
- package/lib/helpers/utils.d.ts +5 -0
- package/lib/helpers/utils.d.ts.map +1 -0
- package/lib/helpers/utils.js +30 -0
- package/lib/helpers/utils.js.map +1 -0
- package/lib/index.d.ts +267 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +182 -0
- package/lib/index.js.map +1 -0
- package/lib/interfaces/index.d.ts +43 -0
- package/lib/interfaces/index.d.ts.map +1 -0
- package/lib/interfaces/index.js +36 -0
- package/lib/interfaces/index.js.map +1 -0
- package/lib/interfaces/models/address.d.ts +61 -0
- package/lib/interfaces/models/address.d.ts.map +1 -0
- package/lib/interfaces/models/address.js +3 -0
- package/lib/interfaces/models/address.js.map +1 -0
- package/lib/interfaces/models/attribute.d.ts +31 -0
- package/lib/interfaces/models/attribute.d.ts.map +1 -0
- package/lib/interfaces/models/attribute.js +3 -0
- package/lib/interfaces/models/attribute.js.map +1 -0
- package/lib/interfaces/models/auth.d.ts +37 -0
- package/lib/interfaces/models/auth.d.ts.map +1 -0
- package/lib/interfaces/models/auth.js +3 -0
- package/lib/interfaces/models/auth.js.map +1 -0
- package/lib/interfaces/models/cart.d.ts +64 -0
- package/lib/interfaces/models/cart.d.ts.map +1 -0
- package/lib/interfaces/models/cart.js +3 -0
- package/lib/interfaces/models/cart.js.map +1 -0
- package/lib/interfaces/models/common.d.ts +68 -0
- package/lib/interfaces/models/common.d.ts.map +1 -0
- package/lib/interfaces/models/common.js +3 -0
- package/lib/interfaces/models/common.js.map +1 -0
- package/lib/interfaces/models/custom-field.d.ts +57 -0
- package/lib/interfaces/models/custom-field.d.ts.map +1 -0
- package/lib/interfaces/models/custom-field.js +3 -0
- package/lib/interfaces/models/custom-field.js.map +1 -0
- package/lib/interfaces/models/customer-account.d.ts +52 -0
- package/lib/interfaces/models/customer-account.d.ts.map +1 -0
- package/lib/interfaces/models/customer-account.js +3 -0
- package/lib/interfaces/models/customer-account.js.map +1 -0
- package/lib/interfaces/models/customer-organisation.d.ts +14 -0
- package/lib/interfaces/models/customer-organisation.d.ts.map +1 -0
- package/lib/interfaces/models/customer-organisation.js +3 -0
- package/lib/interfaces/models/customer-organisation.js.map +1 -0
- package/lib/interfaces/models/customer-user.d.ts +114 -0
- package/lib/interfaces/models/customer-user.d.ts.map +1 -0
- package/lib/interfaces/models/customer-user.js +3 -0
- package/lib/interfaces/models/customer-user.js.map +1 -0
- package/lib/interfaces/models/incident.d.ts +37 -0
- package/lib/interfaces/models/incident.d.ts.map +1 -0
- package/lib/interfaces/models/incident.js +3 -0
- package/lib/interfaces/models/incident.js.map +1 -0
- package/lib/interfaces/models/navigation-category.d.ts +22 -0
- package/lib/interfaces/models/navigation-category.d.ts.map +1 -0
- package/lib/interfaces/models/navigation-category.js +3 -0
- package/lib/interfaces/models/navigation-category.js.map +1 -0
- package/lib/interfaces/models/offer.d.ts +151 -0
- package/lib/interfaces/models/offer.d.ts.map +1 -0
- package/lib/interfaces/models/offer.js +3 -0
- package/lib/interfaces/models/offer.js.map +1 -0
- package/lib/interfaces/models/order.d.ts +701 -0
- package/lib/interfaces/models/order.d.ts.map +1 -0
- package/lib/interfaces/models/order.js +3 -0
- package/lib/interfaces/models/order.js.map +1 -0
- package/lib/interfaces/models/payment.d.ts +20 -0
- package/lib/interfaces/models/payment.d.ts.map +1 -0
- package/lib/interfaces/models/payment.js +3 -0
- package/lib/interfaces/models/payment.js.map +1 -0
- package/lib/interfaces/models/price.d.ts +6 -0
- package/lib/interfaces/models/price.d.ts.map +1 -0
- package/lib/interfaces/models/price.js +3 -0
- package/lib/interfaces/models/price.js.map +1 -0
- package/lib/interfaces/models/product.d.ts +243 -0
- package/lib/interfaces/models/product.d.ts.map +1 -0
- package/lib/interfaces/models/product.js +3 -0
- package/lib/interfaces/models/product.js.map +1 -0
- package/lib/interfaces/models/quote.d.ts +77 -0
- package/lib/interfaces/models/quote.d.ts.map +1 -0
- package/lib/interfaces/models/quote.js +3 -0
- package/lib/interfaces/models/quote.js.map +1 -0
- package/lib/interfaces/models/searchProduct.d.ts +128 -0
- package/lib/interfaces/models/searchProduct.d.ts.map +1 -0
- package/lib/interfaces/models/searchProduct.js +3 -0
- package/lib/interfaces/models/searchProduct.js.map +1 -0
- package/lib/interfaces/models/supplier.d.ts +72 -0
- package/lib/interfaces/models/supplier.d.ts.map +1 -0
- package/lib/interfaces/models/supplier.js +3 -0
- package/lib/interfaces/models/supplier.js.map +1 -0
- package/lib/services/attributes/attributes.service.d.ts +18 -0
- package/lib/services/attributes/attributes.service.d.ts.map +1 -0
- package/lib/services/attributes/attributes.service.js +37 -0
- package/lib/services/attributes/attributes.service.js.map +1 -0
- package/lib/services/attributes/definitions.d.ts +28 -0
- package/lib/services/attributes/definitions.d.ts.map +1 -0
- package/lib/services/attributes/definitions.js +3 -0
- package/lib/services/attributes/definitions.js.map +1 -0
- package/lib/services/attributes/endpoints.d.ts +12 -0
- package/lib/services/attributes/endpoints.d.ts.map +1 -0
- package/lib/services/attributes/endpoints.js +14 -0
- package/lib/services/attributes/endpoints.js.map +1 -0
- package/lib/services/attributes/index.d.ts +33 -0
- package/lib/services/attributes/index.d.ts.map +1 -0
- package/lib/services/attributes/index.js +50 -0
- package/lib/services/attributes/index.js.map +1 -0
- package/lib/services/attributes/module.d.ts +11 -0
- package/lib/services/attributes/module.d.ts.map +1 -0
- package/lib/services/attributes/module.js +15 -0
- package/lib/services/attributes/module.js.map +1 -0
- package/lib/services/attributes/types.d.ts +35 -0
- package/lib/services/attributes/types.d.ts.map +1 -0
- package/lib/services/attributes/types.js +10 -0
- package/lib/services/attributes/types.js.map +1 -0
- package/lib/services/auth/__mocks__/auth.mocks.d.ts +249 -0
- package/lib/services/auth/__mocks__/auth.mocks.d.ts.map +1 -0
- package/lib/services/auth/__mocks__/auth.mocks.js +221 -0
- package/lib/services/auth/__mocks__/auth.mocks.js.map +1 -0
- package/lib/services/auth/auth.service.d.ts +286 -0
- package/lib/services/auth/auth.service.d.ts.map +1 -0
- package/lib/services/auth/auth.service.js +423 -0
- package/lib/services/auth/auth.service.js.map +1 -0
- package/lib/services/auth/definitions.d.ts +69 -0
- package/lib/services/auth/definitions.d.ts.map +1 -0
- package/lib/services/auth/definitions.js +3 -0
- package/lib/services/auth/definitions.js.map +1 -0
- package/lib/services/auth/definitions.requests.d.ts +25 -0
- package/lib/services/auth/definitions.requests.d.ts.map +1 -0
- package/lib/services/auth/definitions.requests.js +6 -0
- package/lib/services/auth/definitions.requests.js.map +1 -0
- package/lib/services/auth/endpoints.d.ts +30 -0
- package/lib/services/auth/endpoints.d.ts.map +1 -0
- package/lib/services/auth/endpoints.js +32 -0
- package/lib/services/auth/endpoints.js.map +1 -0
- package/lib/services/auth/index.d.ts +232 -0
- package/lib/services/auth/index.d.ts.map +1 -0
- package/lib/services/auth/index.js +310 -0
- package/lib/services/auth/index.js.map +1 -0
- package/lib/services/auth/module.d.ts +11 -0
- package/lib/services/auth/module.d.ts.map +1 -0
- package/lib/services/auth/module.js +17 -0
- package/lib/services/auth/module.js.map +1 -0
- package/lib/services/auth/types.d.ts +124 -0
- package/lib/services/auth/types.d.ts.map +1 -0
- package/lib/services/auth/types.js +10 -0
- package/lib/services/auth/types.js.map +1 -0
- package/lib/services/base.service.d.ts +83 -0
- package/lib/services/base.service.d.ts.map +1 -0
- package/lib/services/base.service.js +121 -0
- package/lib/services/base.service.js.map +1 -0
- package/lib/services/cart/cart.service.d.ts +443 -0
- package/lib/services/cart/cart.service.d.ts.map +1 -0
- package/lib/services/cart/cart.service.js +551 -0
- package/lib/services/cart/cart.service.js.map +1 -0
- package/lib/services/cart/definitions.d.ts +84 -0
- package/lib/services/cart/definitions.d.ts.map +1 -0
- package/lib/services/cart/definitions.js +3 -0
- package/lib/services/cart/definitions.js.map +1 -0
- package/lib/services/cart/endpoints.d.ts +24 -0
- package/lib/services/cart/endpoints.d.ts.map +1 -0
- package/lib/services/cart/endpoints.js +26 -0
- package/lib/services/cart/endpoints.js.map +1 -0
- package/lib/services/cart/index.d.ts +330 -0
- package/lib/services/cart/index.d.ts.map +1 -0
- package/lib/services/cart/index.js +464 -0
- package/lib/services/cart/index.js.map +1 -0
- package/lib/services/cart/module.d.ts +11 -0
- package/lib/services/cart/module.d.ts.map +1 -0
- package/lib/services/cart/module.js +17 -0
- package/lib/services/cart/module.js.map +1 -0
- package/lib/services/cart/types.d.ts +236 -0
- package/lib/services/cart/types.d.ts.map +1 -0
- package/lib/services/cart/types.js +10 -0
- package/lib/services/cart/types.js.map +1 -0
- package/lib/services/commercial-order/commercial-order.service.d.ts +435 -0
- package/lib/services/commercial-order/commercial-order.service.d.ts.map +1 -0
- package/lib/services/commercial-order/commercial-order.service.js +690 -0
- package/lib/services/commercial-order/commercial-order.service.js.map +1 -0
- package/lib/services/commercial-order/definitions.d.ts +182 -0
- package/lib/services/commercial-order/definitions.d.ts.map +1 -0
- package/lib/services/commercial-order/definitions.js +3 -0
- package/lib/services/commercial-order/definitions.js.map +1 -0
- package/lib/services/commercial-order/endpoints.d.ts +28 -0
- package/lib/services/commercial-order/endpoints.d.ts.map +1 -0
- package/lib/services/commercial-order/endpoints.js +33 -0
- package/lib/services/commercial-order/endpoints.js.map +1 -0
- package/lib/services/commercial-order/index.d.ts +721 -0
- package/lib/services/commercial-order/index.d.ts.map +1 -0
- package/lib/services/commercial-order/index.js +986 -0
- package/lib/services/commercial-order/index.js.map +1 -0
- package/lib/services/commercial-order/module.d.ts +11 -0
- package/lib/services/commercial-order/module.d.ts.map +1 -0
- package/lib/services/commercial-order/module.js +15 -0
- package/lib/services/commercial-order/module.js.map +1 -0
- package/lib/services/commercial-order/types.d.ts +244 -0
- package/lib/services/commercial-order/types.d.ts.map +1 -0
- package/lib/services/commercial-order/types.js +10 -0
- package/lib/services/commercial-order/types.js.map +1 -0
- package/lib/services/custom-field/custom-field.service.d.ts +23 -0
- package/lib/services/custom-field/custom-field.service.d.ts.map +1 -0
- package/lib/services/custom-field/custom-field.service.js +64 -0
- package/lib/services/custom-field/custom-field.service.js.map +1 -0
- package/lib/services/custom-field/definitions.d.ts +107 -0
- package/lib/services/custom-field/definitions.d.ts.map +1 -0
- package/lib/services/custom-field/definitions.js +61 -0
- package/lib/services/custom-field/definitions.js.map +1 -0
- package/lib/services/custom-field/endpoints.d.ts +13 -0
- package/lib/services/custom-field/endpoints.d.ts.map +1 -0
- package/lib/services/custom-field/endpoints.js +15 -0
- package/lib/services/custom-field/endpoints.js.map +1 -0
- package/lib/services/custom-field/index.d.ts +115 -0
- package/lib/services/custom-field/index.d.ts.map +1 -0
- package/lib/services/custom-field/index.js +144 -0
- package/lib/services/custom-field/index.js.map +1 -0
- package/lib/services/custom-field/module.d.ts +11 -0
- package/lib/services/custom-field/module.d.ts.map +1 -0
- package/lib/services/custom-field/module.js +15 -0
- package/lib/services/custom-field/module.js.map +1 -0
- package/lib/services/custom-field/types.d.ts +51 -0
- package/lib/services/custom-field/types.d.ts.map +1 -0
- package/lib/services/custom-field/types.js +10 -0
- package/lib/services/custom-field/types.js.map +1 -0
- package/lib/services/customer-account/customer-account.service.d.ts +387 -0
- package/lib/services/customer-account/customer-account.service.d.ts.map +1 -0
- package/lib/services/customer-account/customer-account.service.js +579 -0
- package/lib/services/customer-account/customer-account.service.js.map +1 -0
- package/lib/services/customer-account/definitions.d.ts +164 -0
- package/lib/services/customer-account/definitions.d.ts.map +1 -0
- package/lib/services/customer-account/definitions.js +3 -0
- package/lib/services/customer-account/definitions.js.map +1 -0
- package/lib/services/customer-account/endpoints.d.ts +25 -0
- package/lib/services/customer-account/endpoints.d.ts.map +1 -0
- package/lib/services/customer-account/endpoints.js +33 -0
- package/lib/services/customer-account/endpoints.js.map +1 -0
- package/lib/services/customer-account/index.d.ts +656 -0
- package/lib/services/customer-account/index.d.ts.map +1 -0
- package/lib/services/customer-account/index.js +929 -0
- package/lib/services/customer-account/index.js.map +1 -0
- package/lib/services/customer-account/module.d.ts +11 -0
- package/lib/services/customer-account/module.d.ts.map +1 -0
- package/lib/services/customer-account/module.js +15 -0
- package/lib/services/customer-account/module.js.map +1 -0
- package/lib/services/customer-account/types.d.ts +253 -0
- package/lib/services/customer-account/types.d.ts.map +1 -0
- package/lib/services/customer-account/types.js +10 -0
- package/lib/services/customer-account/types.js.map +1 -0
- package/lib/services/customer-user/customer-user.service.d.ts +280 -0
- package/lib/services/customer-user/customer-user.service.d.ts.map +1 -0
- package/lib/services/customer-user/customer-user.service.js +402 -0
- package/lib/services/customer-user/customer-user.service.js.map +1 -0
- package/lib/services/customer-user/definitions.d.ts +84 -0
- package/lib/services/customer-user/definitions.d.ts.map +1 -0
- package/lib/services/customer-user/definitions.js +3 -0
- package/lib/services/customer-user/definitions.js.map +1 -0
- package/lib/services/customer-user/endpoints.d.ts +19 -0
- package/lib/services/customer-user/endpoints.d.ts.map +1 -0
- package/lib/services/customer-user/endpoints.js +21 -0
- package/lib/services/customer-user/endpoints.js.map +1 -0
- package/lib/services/customer-user/index.d.ts +394 -0
- package/lib/services/customer-user/index.d.ts.map +1 -0
- package/lib/services/customer-user/index.js +528 -0
- package/lib/services/customer-user/index.js.map +1 -0
- package/lib/services/customer-user/module.d.ts +11 -0
- package/lib/services/customer-user/module.d.ts.map +1 -0
- package/lib/services/customer-user/module.js +15 -0
- package/lib/services/customer-user/module.js.map +1 -0
- package/lib/services/customer-user/types.d.ts +118 -0
- package/lib/services/customer-user/types.d.ts.map +1 -0
- package/lib/services/customer-user/types.js +10 -0
- package/lib/services/customer-user/types.js.map +1 -0
- package/lib/services/factory.d.ts +104 -0
- package/lib/services/factory.d.ts.map +1 -0
- package/lib/services/factory.js +89 -0
- package/lib/services/factory.js.map +1 -0
- package/lib/services/incident/definitions.d.ts +85 -0
- package/lib/services/incident/definitions.d.ts.map +1 -0
- package/lib/services/incident/definitions.js +3 -0
- package/lib/services/incident/definitions.js.map +1 -0
- package/lib/services/incident/endpoints.d.ts +17 -0
- package/lib/services/incident/endpoints.d.ts.map +1 -0
- package/lib/services/incident/endpoints.js +19 -0
- package/lib/services/incident/endpoints.js.map +1 -0
- package/lib/services/incident/incident.service.d.ts +24 -0
- package/lib/services/incident/incident.service.d.ts.map +1 -0
- package/lib/services/incident/incident.service.js +141 -0
- package/lib/services/incident/incident.service.js.map +1 -0
- package/lib/services/incident/index.d.ts +270 -0
- package/lib/services/incident/index.d.ts.map +1 -0
- package/lib/services/incident/index.js +389 -0
- package/lib/services/incident/index.js.map +1 -0
- package/lib/services/incident/module.d.ts +11 -0
- package/lib/services/incident/module.d.ts.map +1 -0
- package/lib/services/incident/module.js +15 -0
- package/lib/services/incident/module.js.map +1 -0
- package/lib/services/incident/types.d.ts +116 -0
- package/lib/services/incident/types.d.ts.map +1 -0
- package/lib/services/incident/types.js +10 -0
- package/lib/services/incident/types.js.map +1 -0
- package/lib/services/logistic-order/definitions.d.ts +315 -0
- package/lib/services/logistic-order/definitions.d.ts.map +1 -0
- package/lib/services/logistic-order/definitions.js +3 -0
- package/lib/services/logistic-order/definitions.js.map +1 -0
- package/lib/services/logistic-order/endpoints.d.ts +44 -0
- package/lib/services/logistic-order/endpoints.d.ts.map +1 -0
- package/lib/services/logistic-order/endpoints.js +57 -0
- package/lib/services/logistic-order/endpoints.js.map +1 -0
- package/lib/services/logistic-order/index.d.ts +1376 -0
- package/lib/services/logistic-order/index.d.ts.map +1 -0
- package/lib/services/logistic-order/index.js +1823 -0
- package/lib/services/logistic-order/index.js.map +1 -0
- package/lib/services/logistic-order/logistic-order.service.d.ts +62 -0
- package/lib/services/logistic-order/logistic-order.service.d.ts.map +1 -0
- package/lib/services/logistic-order/logistic-order.service.js +499 -0
- package/lib/services/logistic-order/logistic-order.service.js.map +1 -0
- package/lib/services/logistic-order/module.d.ts +11 -0
- package/lib/services/logistic-order/module.d.ts.map +1 -0
- package/lib/services/logistic-order/module.js +15 -0
- package/lib/services/logistic-order/module.js.map +1 -0
- package/lib/services/logistic-order/types.d.ts +411 -0
- package/lib/services/logistic-order/types.d.ts.map +1 -0
- package/lib/services/logistic-order/types.js +10 -0
- package/lib/services/logistic-order/types.js.map +1 -0
- package/lib/services/module.d.ts +64 -0
- package/lib/services/module.d.ts.map +1 -0
- package/lib/services/module.js +147 -0
- package/lib/services/module.js.map +1 -0
- package/lib/services/navigation-category/definitions.d.ts +31 -0
- package/lib/services/navigation-category/definitions.d.ts.map +1 -0
- package/lib/services/navigation-category/definitions.js +3 -0
- package/lib/services/navigation-category/definitions.js.map +1 -0
- package/lib/services/navigation-category/endpoints.d.ts +15 -0
- package/lib/services/navigation-category/endpoints.d.ts.map +1 -0
- package/lib/services/navigation-category/endpoints.js +17 -0
- package/lib/services/navigation-category/endpoints.js.map +1 -0
- package/lib/services/navigation-category/index.d.ts +114 -0
- package/lib/services/navigation-category/index.d.ts.map +1 -0
- package/lib/services/navigation-category/index.js +160 -0
- package/lib/services/navigation-category/index.js.map +1 -0
- package/lib/services/navigation-category/module.d.ts +11 -0
- package/lib/services/navigation-category/module.d.ts.map +1 -0
- package/lib/services/navigation-category/module.js +15 -0
- package/lib/services/navigation-category/module.js.map +1 -0
- package/lib/services/navigation-category/navigation-category.service.d.ts +148 -0
- package/lib/services/navigation-category/navigation-category.service.d.ts.map +1 -0
- package/lib/services/navigation-category/navigation-category.service.js +191 -0
- package/lib/services/navigation-category/navigation-category.service.js.map +1 -0
- package/lib/services/navigation-category/types.d.ts +51 -0
- package/lib/services/navigation-category/types.d.ts.map +1 -0
- package/lib/services/navigation-category/types.js +10 -0
- package/lib/services/navigation-category/types.js.map +1 -0
- package/lib/services/offer-inventories/definitions.d.ts +73 -0
- package/lib/services/offer-inventories/definitions.d.ts.map +1 -0
- package/lib/services/offer-inventories/definitions.js +3 -0
- package/lib/services/offer-inventories/definitions.js.map +1 -0
- package/lib/services/offer-inventories/endpoints.d.ts +16 -0
- package/lib/services/offer-inventories/endpoints.d.ts.map +1 -0
- package/lib/services/offer-inventories/endpoints.js +18 -0
- package/lib/services/offer-inventories/endpoints.js.map +1 -0
- package/lib/services/offer-inventories/index.d.ts +120 -0
- package/lib/services/offer-inventories/index.d.ts.map +1 -0
- package/lib/services/offer-inventories/index.js +175 -0
- package/lib/services/offer-inventories/index.js.map +1 -0
- package/lib/services/offer-inventories/module.d.ts +11 -0
- package/lib/services/offer-inventories/module.d.ts.map +1 -0
- package/lib/services/offer-inventories/module.js +15 -0
- package/lib/services/offer-inventories/module.js.map +1 -0
- package/lib/services/offer-inventories/offer-inventories.service.d.ts +26 -0
- package/lib/services/offer-inventories/offer-inventories.service.d.ts.map +1 -0
- package/lib/services/offer-inventories/offer-inventories.service.js +80 -0
- package/lib/services/offer-inventories/offer-inventories.service.js.map +1 -0
- package/lib/services/offer-inventories/types.d.ts +85 -0
- package/lib/services/offer-inventories/types.d.ts.map +1 -0
- package/lib/services/offer-inventories/types.js +10 -0
- package/lib/services/offer-inventories/types.js.map +1 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts +109 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.d.ts.map +1 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js +201 -0
- package/lib/services/offer-prices/__mocks__/offer-prices.mocks.js.map +1 -0
- package/lib/services/offer-prices/definitions.d.ts +24 -0
- package/lib/services/offer-prices/definitions.d.ts.map +1 -0
- package/lib/services/offer-prices/definitions.js +3 -0
- package/lib/services/offer-prices/definitions.js.map +1 -0
- package/lib/services/offer-prices/endpoints.d.ts +12 -0
- package/lib/services/offer-prices/endpoints.d.ts.map +1 -0
- package/lib/services/offer-prices/endpoints.js +14 -0
- package/lib/services/offer-prices/endpoints.js.map +1 -0
- package/lib/services/offer-prices/index.d.ts +36 -0
- package/lib/services/offer-prices/index.d.ts.map +1 -0
- package/lib/services/offer-prices/index.js +53 -0
- package/lib/services/offer-prices/index.js.map +1 -0
- package/lib/services/offer-prices/module.d.ts +11 -0
- package/lib/services/offer-prices/module.d.ts.map +1 -0
- package/lib/services/offer-prices/module.js +15 -0
- package/lib/services/offer-prices/module.js.map +1 -0
- package/lib/services/offer-prices/offer-prices.service.d.ts +18 -0
- package/lib/services/offer-prices/offer-prices.service.d.ts.map +1 -0
- package/lib/services/offer-prices/offer-prices.service.js +36 -0
- package/lib/services/offer-prices/offer-prices.service.js.map +1 -0
- package/lib/services/offer-prices/types.d.ts +33 -0
- package/lib/services/offer-prices/types.d.ts.map +1 -0
- package/lib/services/offer-prices/types.js +10 -0
- package/lib/services/offer-prices/types.js.map +1 -0
- package/lib/services/operation/definitions.d.ts +263 -0
- package/lib/services/operation/definitions.d.ts.map +1 -0
- package/lib/services/operation/definitions.js +18 -0
- package/lib/services/operation/definitions.js.map +1 -0
- package/lib/services/operation/endpoints.d.ts +18 -0
- package/lib/services/operation/endpoints.d.ts.map +1 -0
- package/lib/services/operation/endpoints.js +22 -0
- package/lib/services/operation/endpoints.js.map +1 -0
- package/lib/services/operation/index.d.ts +520 -0
- package/lib/services/operation/index.d.ts.map +1 -0
- package/lib/services/operation/index.js +704 -0
- package/lib/services/operation/index.js.map +1 -0
- package/lib/services/operation/module.d.ts +11 -0
- package/lib/services/operation/module.d.ts.map +1 -0
- package/lib/services/operation/module.js +15 -0
- package/lib/services/operation/module.js.map +1 -0
- package/lib/services/operation/operation.service.d.ts +32 -0
- package/lib/services/operation/operation.service.d.ts.map +1 -0
- package/lib/services/operation/operation.service.js +206 -0
- package/lib/services/operation/operation.service.js.map +1 -0
- package/lib/services/operation/types.d.ts +174 -0
- package/lib/services/operation/types.d.ts.map +1 -0
- package/lib/services/operation/types.js +10 -0
- package/lib/services/operation/types.js.map +1 -0
- package/lib/services/payment/definitions.d.ts +69 -0
- package/lib/services/payment/definitions.d.ts.map +1 -0
- package/lib/services/payment/definitions.js +3 -0
- package/lib/services/payment/definitions.js.map +1 -0
- package/lib/services/payment/endpoints.d.ts +16 -0
- package/lib/services/payment/endpoints.d.ts.map +1 -0
- package/lib/services/payment/endpoints.js +18 -0
- package/lib/services/payment/endpoints.js.map +1 -0
- package/lib/services/payment/index.d.ts +150 -0
- package/lib/services/payment/index.d.ts.map +1 -0
- package/lib/services/payment/index.js +220 -0
- package/lib/services/payment/index.js.map +1 -0
- package/lib/services/payment/module.d.ts +11 -0
- package/lib/services/payment/module.d.ts.map +1 -0
- package/lib/services/payment/module.js +15 -0
- package/lib/services/payment/module.js.map +1 -0
- package/lib/services/payment/payment.service.d.ts +224 -0
- package/lib/services/payment/payment.service.d.ts.map +1 -0
- package/lib/services/payment/payment.service.js +288 -0
- package/lib/services/payment/payment.service.js.map +1 -0
- package/lib/services/payment/types.d.ts +93 -0
- package/lib/services/payment/types.d.ts.map +1 -0
- package/lib/services/payment/types.js +10 -0
- package/lib/services/payment/types.js.map +1 -0
- package/lib/services/product/definitions.d.ts +150 -0
- package/lib/services/product/definitions.d.ts.map +1 -0
- package/lib/services/product/definitions.js +9 -0
- package/lib/services/product/definitions.js.map +1 -0
- package/lib/services/product/endpoints.d.ts +40 -0
- package/lib/services/product/endpoints.d.ts.map +1 -0
- package/lib/services/product/endpoints.js +42 -0
- package/lib/services/product/endpoints.js.map +1 -0
- package/lib/services/product/index.d.ts +388 -0
- package/lib/services/product/index.d.ts.map +1 -0
- package/lib/services/product/index.js +564 -0
- package/lib/services/product/index.js.map +1 -0
- package/lib/services/product/module.d.ts +11 -0
- package/lib/services/product/module.d.ts.map +1 -0
- package/lib/services/product/module.js +17 -0
- package/lib/services/product/module.js.map +1 -0
- package/lib/services/product/product.service.d.ts +452 -0
- package/lib/services/product/product.service.d.ts.map +1 -0
- package/lib/services/product/product.service.js +624 -0
- package/lib/services/product/product.service.js.map +1 -0
- package/lib/services/product/types.d.ts +344 -0
- package/lib/services/product/types.d.ts.map +1 -0
- package/lib/services/product/types.js +10 -0
- package/lib/services/product/types.js.map +1 -0
- package/lib/services/product-variant/definitions.d.ts +33 -0
- package/lib/services/product-variant/definitions.d.ts.map +1 -0
- package/lib/services/product-variant/definitions.js +7 -0
- package/lib/services/product-variant/definitions.js.map +1 -0
- package/lib/services/product-variant/endpoints.d.ts +15 -0
- package/lib/services/product-variant/endpoints.d.ts.map +1 -0
- package/lib/services/product-variant/endpoints.js +17 -0
- package/lib/services/product-variant/endpoints.js.map +1 -0
- package/lib/services/product-variant/index.d.ts +123 -0
- package/lib/services/product-variant/index.d.ts.map +1 -0
- package/lib/services/product-variant/index.js +172 -0
- package/lib/services/product-variant/index.js.map +1 -0
- package/lib/services/product-variant/module.d.ts +11 -0
- package/lib/services/product-variant/module.d.ts.map +1 -0
- package/lib/services/product-variant/module.js +15 -0
- package/lib/services/product-variant/module.js.map +1 -0
- package/lib/services/product-variant/product-variant.service.d.ts +21 -0
- package/lib/services/product-variant/product-variant.service.d.ts.map +1 -0
- package/lib/services/product-variant/product-variant.service.js +69 -0
- package/lib/services/product-variant/product-variant.service.js.map +1 -0
- package/lib/services/product-variant/types.d.ts +73 -0
- package/lib/services/product-variant/types.d.ts.map +1 -0
- package/lib/services/product-variant/types.js +10 -0
- package/lib/services/product-variant/types.js.map +1 -0
- package/lib/services/quote/definitions.d.ts +102 -0
- package/lib/services/quote/definitions.d.ts.map +1 -0
- package/lib/services/quote/definitions.js +3 -0
- package/lib/services/quote/definitions.js.map +1 -0
- package/lib/services/quote/endpoints.d.ts +20 -0
- package/lib/services/quote/endpoints.d.ts.map +1 -0
- package/lib/services/quote/endpoints.js +24 -0
- package/lib/services/quote/endpoints.js.map +1 -0
- package/lib/services/quote/index.d.ts +378 -0
- package/lib/services/quote/index.d.ts.map +1 -0
- package/lib/services/quote/index.js +506 -0
- package/lib/services/quote/index.js.map +1 -0
- package/lib/services/quote/module.d.ts +11 -0
- package/lib/services/quote/module.d.ts.map +1 -0
- package/lib/services/quote/module.js +15 -0
- package/lib/services/quote/module.js.map +1 -0
- package/lib/services/quote/quote.service.d.ts +346 -0
- package/lib/services/quote/quote.service.d.ts.map +1 -0
- package/lib/services/quote/quote.service.js +479 -0
- package/lib/services/quote/quote.service.js.map +1 -0
- package/lib/services/quote/types.d.ts +160 -0
- package/lib/services/quote/types.d.ts.map +1 -0
- package/lib/services/quote/types.js +10 -0
- package/lib/services/quote/types.js.map +1 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.d.ts +49 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.d.ts.map +1 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.js +168 -0
- package/lib/services/supplier/__mocks__/supplier-mocks.js.map +1 -0
- package/lib/services/supplier/definitions.d.ts +30 -0
- package/lib/services/supplier/definitions.d.ts.map +1 -0
- package/lib/services/supplier/definitions.js +3 -0
- package/lib/services/supplier/definitions.js.map +1 -0
- package/lib/services/supplier/endpoints.d.ts +14 -0
- package/lib/services/supplier/endpoints.d.ts.map +1 -0
- package/lib/services/supplier/endpoints.js +16 -0
- package/lib/services/supplier/endpoints.js.map +1 -0
- package/lib/services/supplier/index.d.ts +102 -0
- package/lib/services/supplier/index.d.ts.map +1 -0
- package/lib/services/supplier/index.js +146 -0
- package/lib/services/supplier/index.js.map +1 -0
- package/lib/services/supplier/module.d.ts +11 -0
- package/lib/services/supplier/module.d.ts.map +1 -0
- package/lib/services/supplier/module.js +15 -0
- package/lib/services/supplier/module.js.map +1 -0
- package/lib/services/supplier/supplier.service.d.ts +20 -0
- package/lib/services/supplier/supplier.service.d.ts.map +1 -0
- package/lib/services/supplier/supplier.service.js +63 -0
- package/lib/services/supplier/supplier.service.js.map +1 -0
- package/lib/services/supplier/types.d.ts +58 -0
- package/lib/services/supplier/types.d.ts.map +1 -0
- package/lib/services/supplier/types.js +10 -0
- package/lib/services/supplier/types.js.map +1 -0
- package/lib/services/types.d.ts +81 -0
- package/lib/services/types.d.ts.map +1 -0
- package/lib/services/types.js +10 -0
- package/lib/services/types.js.map +1 -0
- package/lib/settings/fetch-instance.d.ts +30 -0
- package/lib/settings/fetch-instance.d.ts.map +1 -0
- package/lib/settings/fetch-instance.js +223 -0
- package/lib/settings/fetch-instance.js.map +1 -0
- package/lib/settings/sdk-version.d.ts +3 -0
- package/lib/settings/sdk-version.d.ts.map +1 -0
- package/lib/settings/sdk-version.js +6 -0
- package/lib/settings/sdk-version.js.map +1 -0
- package/package.json +27 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commercial-order.service.d.ts","sourceRoot":"","sources":["../../../src/services/commercial-order/commercial-order.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,690 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* # Commercial Order Service
|
|
4
|
+
*
|
|
5
|
+
* Complete order management for B2B commerce workflows.
|
|
6
|
+
*
|
|
7
|
+
* ## Features
|
|
8
|
+
* - Order creation and lifecycle management
|
|
9
|
+
* - Payment processing and card registration
|
|
10
|
+
* - Shipping and billing configuration
|
|
11
|
+
* - Order line management
|
|
12
|
+
* - Punchout/OCI integration
|
|
13
|
+
*
|
|
14
|
+
* @module services/commercial-order
|
|
15
|
+
* @since 2.17.0
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommercialOrderService = void 0;
|
|
19
|
+
const base_service_1 = require("../base.service");
|
|
20
|
+
const endpoints_1 = require("./endpoints");
|
|
21
|
+
/**
|
|
22
|
+
* Service for commercial order management.
|
|
23
|
+
*
|
|
24
|
+
* Handles the complete order lifecycle from creation to fulfillment:
|
|
25
|
+
* - Order creation from carts or quotes
|
|
26
|
+
* - Payment processing
|
|
27
|
+
* - Shipping and billing configuration
|
|
28
|
+
* - Order status management
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import { createDjustClient } from '@djust-b2b/djust-front-sdk';
|
|
33
|
+
*
|
|
34
|
+
* const client = createDjustClient({ baseUrl, clientId, apiKey });
|
|
35
|
+
*
|
|
36
|
+
* // Get orders
|
|
37
|
+
* const { content: orders } = await client.commercialOrder.getCommercialOrdersV2({
|
|
38
|
+
* locale: 'en-US',
|
|
39
|
+
* page: 0,
|
|
40
|
+
* size: 10,
|
|
41
|
+
* });
|
|
42
|
+
*
|
|
43
|
+
* // Get single order details
|
|
44
|
+
* const order = await client.commercialOrder.getCommercialOrder({
|
|
45
|
+
* orderId: 'ORD-12345',
|
|
46
|
+
* locale: 'en-US',
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
class CommercialOrderService extends base_service_1.BaseService {
|
|
51
|
+
constructor() {
|
|
52
|
+
super(...arguments);
|
|
53
|
+
this.serviceName = "commercial-order";
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Get paginated list of commercial orders (v1).
|
|
57
|
+
*
|
|
58
|
+
* **Endpoint**: `GET /v1/shop/commercial-orders [ORD-100]`
|
|
59
|
+
*
|
|
60
|
+
* | Parameter | Type | Required | Description |
|
|
61
|
+
* |----------------------|------------|----------|--------------------------------|
|
|
62
|
+
* | `locale` | `string` | Yes | Locale for translations |
|
|
63
|
+
* | `page` | `number` | No | Page number (0-based) |
|
|
64
|
+
* | `size` | `number` | No | Items per page |
|
|
65
|
+
* | `sort` | `string` | No | Sort criteria |
|
|
66
|
+
* | `connectedUserOnly` | `boolean` | No | Filter to current user's orders|
|
|
67
|
+
* | `customerAccountIds` | `string[]` | No | Filter by customer accounts |
|
|
68
|
+
* | `sourceTypes` | `string[]` | No | Filter by order source |
|
|
69
|
+
* | `isValidated` | `boolean` | No | Filter by validation status |
|
|
70
|
+
*
|
|
71
|
+
* @param params - Query parameters
|
|
72
|
+
* @param context - Optional SSR request context
|
|
73
|
+
* @throws {ValidationError} If locale is missing
|
|
74
|
+
* @returns Paginated order list
|
|
75
|
+
*/
|
|
76
|
+
async getCommercialOrders(params, context) {
|
|
77
|
+
this.required(params, ["locale"]);
|
|
78
|
+
return this.request({
|
|
79
|
+
method: "GET",
|
|
80
|
+
path: endpoints_1.CommercialOrderEndpoints.ORDERS_V1,
|
|
81
|
+
params: this.buildParams({
|
|
82
|
+
locale: params.locale,
|
|
83
|
+
nbPreviewLines: params.nbPreviewLines,
|
|
84
|
+
page: params.page,
|
|
85
|
+
size: params.size,
|
|
86
|
+
sort: params.sort,
|
|
87
|
+
connectedUserOnly: params.connectedUserOnly,
|
|
88
|
+
customerAccountIds: params.customerAccountIds,
|
|
89
|
+
sourceTypes: params.sourceTypes,
|
|
90
|
+
isValidated: params.isValidated,
|
|
91
|
+
}),
|
|
92
|
+
}, context);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Get paginated list of commercial orders (v2).
|
|
96
|
+
*
|
|
97
|
+
* Enhanced version with additional filtering capabilities.
|
|
98
|
+
*
|
|
99
|
+
* **Endpoint**: `GET /v2/shop/commercial-orders [ORD-101]`
|
|
100
|
+
*
|
|
101
|
+
* | Parameter | Type | Required | Description |
|
|
102
|
+
* |----------------------|------------|----------|--------------------------------|
|
|
103
|
+
* | `locale` | `string` | Yes | Locale for translations |
|
|
104
|
+
* | `page` | `number` | No | Page number (0-based) |
|
|
105
|
+
* | `size` | `number` | No | Items per page |
|
|
106
|
+
* | `sort` | `string` | No | Sort criteria |
|
|
107
|
+
* | `sourceIds` | `string[]` | No | Filter by source IDs |
|
|
108
|
+
* | `sourceTypes` | `string[]` | No | Filter by source types |
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* const { content: orders, totalElements } = await client.commercialOrder.getCommercialOrdersV2({
|
|
113
|
+
* locale: 'fr-FR',
|
|
114
|
+
* page: 0,
|
|
115
|
+
* size: 20,
|
|
116
|
+
* sort: 'createdAt,desc',
|
|
117
|
+
* });
|
|
118
|
+
*
|
|
119
|
+
* orders.forEach(order => {
|
|
120
|
+
* console.log(`${order.businessId}: ${order.status} - ${order.total}`);
|
|
121
|
+
* });
|
|
122
|
+
* ```
|
|
123
|
+
*
|
|
124
|
+
* @param params - Query parameters
|
|
125
|
+
* @param context - Optional SSR request context
|
|
126
|
+
* @throws {ValidationError} If locale is missing
|
|
127
|
+
* @returns Paginated order list
|
|
128
|
+
*/
|
|
129
|
+
async getCommercialOrdersV2(params, context) {
|
|
130
|
+
this.required(params, ["locale"]);
|
|
131
|
+
return this.request({
|
|
132
|
+
method: "GET",
|
|
133
|
+
path: endpoints_1.CommercialOrderEndpoints.ORDERS_V2,
|
|
134
|
+
params: this.buildParams({
|
|
135
|
+
page: params.page,
|
|
136
|
+
size: params.size,
|
|
137
|
+
sort: params.sort,
|
|
138
|
+
locale: params.locale,
|
|
139
|
+
connectedUserOnly: params.connectedUserOnly,
|
|
140
|
+
customerAccountIds: params.customerAccountIds,
|
|
141
|
+
sourceTypes: params.sourceTypes,
|
|
142
|
+
sourceIds: params.sourceIds,
|
|
143
|
+
isValidated: params.isValidated,
|
|
144
|
+
nbPreviewLines: params.nbPreviewLines,
|
|
145
|
+
}),
|
|
146
|
+
}, context);
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Create a new commercial order from a cart or quote.
|
|
150
|
+
*
|
|
151
|
+
* **Endpoint**: `POST /v1/shop/commercial-orders [ORD-102]`
|
|
152
|
+
*
|
|
153
|
+
* | Parameter | Type | Required | Description |
|
|
154
|
+
* |----------------|----------|----------|--------------------------------|
|
|
155
|
+
* | `locale` | `string` | Yes | Locale for the order |
|
|
156
|
+
* | `origin` | `string` | Yes | Origin type (CART, QUOTE) |
|
|
157
|
+
* | `originId` | `string` | Yes | ID of the cart or quote |
|
|
158
|
+
* | `channel` | `string` | No | Sales channel |
|
|
159
|
+
* | `customFields` | `object` | No | Custom field values |
|
|
160
|
+
* | `paymentInfo` | `object` | No | Payment configuration |
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```typescript
|
|
164
|
+
* const order = await client.commercialOrder.createCommercialOrder({
|
|
165
|
+
* locale: 'en-US',
|
|
166
|
+
* origin: 'CART',
|
|
167
|
+
* originId: 'cart-123',
|
|
168
|
+
* paymentInfo: { method: 'INVOICE' },
|
|
169
|
+
* });
|
|
170
|
+
*
|
|
171
|
+
* console.log(`Order created: ${order.businessId}`);
|
|
172
|
+
* ```
|
|
173
|
+
*
|
|
174
|
+
* @param params - Order creation parameters
|
|
175
|
+
* @param context - Optional SSR request context
|
|
176
|
+
* @throws {ValidationError} If required parameters are missing
|
|
177
|
+
* @returns Created order details
|
|
178
|
+
*/
|
|
179
|
+
async createCommercialOrder(params, context) {
|
|
180
|
+
this.required(params, ["locale", "origin", "originId"]);
|
|
181
|
+
return this.request({
|
|
182
|
+
method: "POST",
|
|
183
|
+
path: endpoints_1.CommercialOrderEndpoints.ORDERS_V1,
|
|
184
|
+
params: this.buildParams({ nbPreviewLines: params.nbPreviewLines }),
|
|
185
|
+
body: {
|
|
186
|
+
channel: params.channel,
|
|
187
|
+
customFields: params.customFields,
|
|
188
|
+
locale: params.locale,
|
|
189
|
+
origin: params.origin,
|
|
190
|
+
originId: params.originId,
|
|
191
|
+
paymentInfo: params.paymentInfo,
|
|
192
|
+
},
|
|
193
|
+
}, context);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Create a commercial order (v2).
|
|
197
|
+
*
|
|
198
|
+
* Enhanced creation endpoint with more flexibility.
|
|
199
|
+
*
|
|
200
|
+
* **Endpoint**: `POST /v2/shop/commercial-orders [ORD-103]`
|
|
201
|
+
*
|
|
202
|
+
* | Parameter | Type | Required | Description |
|
|
203
|
+
* |---------------------|----------|----------|--------------------------------|
|
|
204
|
+
* | `sourceType` | `string` | No | Source type (CART, QUOTE) |
|
|
205
|
+
* | `sourceId` | `string` | No | Source ID |
|
|
206
|
+
* | `customFields` | `object` | No | Custom field values |
|
|
207
|
+
* | `customFieldIdType` | `string` | No | ID type for custom fields |
|
|
208
|
+
* | `isFull` | `boolean`| No | Include full order details |
|
|
209
|
+
*
|
|
210
|
+
* @param params - Order creation parameters
|
|
211
|
+
* @param context - Optional SSR request context
|
|
212
|
+
* @returns Created order details
|
|
213
|
+
*/
|
|
214
|
+
async createCommercialOrderV2(params, context) {
|
|
215
|
+
return this.request({
|
|
216
|
+
method: "POST",
|
|
217
|
+
path: endpoints_1.CommercialOrderEndpoints.ORDERS_V2,
|
|
218
|
+
body: {
|
|
219
|
+
customFieldIdType: params.customFieldIdType,
|
|
220
|
+
customFields: params.customFields,
|
|
221
|
+
isFull: params.isFull,
|
|
222
|
+
sourceId: params.sourceId,
|
|
223
|
+
sourceType: params.sourceType,
|
|
224
|
+
},
|
|
225
|
+
}, context);
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* Get detailed information about a specific order.
|
|
229
|
+
*
|
|
230
|
+
* **Endpoint**: `GET /v1/shop/commercial-orders/{orderId} [ORD-104]`
|
|
231
|
+
*
|
|
232
|
+
* | Parameter | Type | Required | Description |
|
|
233
|
+
* |------------|----------|----------|--------------------------------|
|
|
234
|
+
* | `orderId` | `string` | Yes | Order ID or business ID |
|
|
235
|
+
* | `locale` | `string` | Yes | Locale for translations |
|
|
236
|
+
* | `idType` | `string` | No | ID type (id, businessId) |
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```typescript
|
|
240
|
+
* const order = await client.commercialOrder.getCommercialOrder({
|
|
241
|
+
* orderId: 'ORD-2024-001234',
|
|
242
|
+
* locale: 'en-US',
|
|
243
|
+
* idType: 'businessId',
|
|
244
|
+
* });
|
|
245
|
+
*
|
|
246
|
+
* console.log(`Order: ${order.businessId}`);
|
|
247
|
+
* console.log(`Status: ${order.status}`);
|
|
248
|
+
* console.log(`Total: ${order.totalAmount} ${order.currency}`);
|
|
249
|
+
* ```
|
|
250
|
+
*
|
|
251
|
+
* @param params - Order identification parameters
|
|
252
|
+
* @param context - Optional SSR request context
|
|
253
|
+
* @throws {ValidationError} If required parameters are missing
|
|
254
|
+
* @throws {NotFoundError} If order doesn't exist
|
|
255
|
+
* @returns Full order details
|
|
256
|
+
*/
|
|
257
|
+
async getCommercialOrder(params, context) {
|
|
258
|
+
this.required(params, ["orderId", "locale"]);
|
|
259
|
+
return this.request({
|
|
260
|
+
method: "GET",
|
|
261
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V1, {
|
|
262
|
+
orderId: params.orderId,
|
|
263
|
+
}),
|
|
264
|
+
params: this.buildParams({
|
|
265
|
+
locale: params.locale,
|
|
266
|
+
idType: params.idType,
|
|
267
|
+
nbPreviewLines: params.nbPreviewLines,
|
|
268
|
+
}),
|
|
269
|
+
}, context);
|
|
270
|
+
}
|
|
271
|
+
/**
|
|
272
|
+
* Update commercial order custom fields.
|
|
273
|
+
*
|
|
274
|
+
* **Endpoint**: `PUT /v2/shop/commercial-orders/{orderId} [ORD-105]`
|
|
275
|
+
*
|
|
276
|
+
* @param params - Update parameters
|
|
277
|
+
* @param context - Optional SSR request context
|
|
278
|
+
* @throws {ValidationError} If commercialOrderId is missing
|
|
279
|
+
*/
|
|
280
|
+
async updateCommercialOrder(params, context) {
|
|
281
|
+
this.required(params, ["commercialOrderId"]);
|
|
282
|
+
await this.request({
|
|
283
|
+
method: "PUT",
|
|
284
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V2, {
|
|
285
|
+
commercialOrderId: params.commercialOrderId,
|
|
286
|
+
}),
|
|
287
|
+
body: {
|
|
288
|
+
customFieldIdType: params.customFieldIdType,
|
|
289
|
+
customFields: params.customFields,
|
|
290
|
+
},
|
|
291
|
+
}, context);
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Create a card registration for payment.
|
|
295
|
+
*
|
|
296
|
+
* Initiates the card registration process with the payment provider.
|
|
297
|
+
*
|
|
298
|
+
* **Endpoint**: `POST /v1/shop/commercial-orders/{orderId}/card-registration [PAY-100]`
|
|
299
|
+
*
|
|
300
|
+
* | Parameter | Type | Required | Description |
|
|
301
|
+
* |-------------------|----------|----------|--------------------------|
|
|
302
|
+
* | `orderId` | `string` | Yes | Order ID |
|
|
303
|
+
* | `paymentProvider` | `string` | Yes | Provider (MANGOPAY, etc) |
|
|
304
|
+
* | `currency` | `string` | Yes | Currency code |
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* ```typescript
|
|
308
|
+
* const registration = await client.commercialOrder.createCardRegistration({
|
|
309
|
+
* orderId: 'order-123',
|
|
310
|
+
* paymentProvider: 'MANGOPAY',
|
|
311
|
+
* currency: 'EUR',
|
|
312
|
+
* });
|
|
313
|
+
*
|
|
314
|
+
* // Use registration data to tokenize card
|
|
315
|
+
* console.log(registration.cardRegistrationUrl);
|
|
316
|
+
* ```
|
|
317
|
+
*
|
|
318
|
+
* @param params - Card registration parameters
|
|
319
|
+
* @param context - Optional SSR request context
|
|
320
|
+
* @throws {ValidationError} If required parameters are missing
|
|
321
|
+
* @returns Card registration details
|
|
322
|
+
*/
|
|
323
|
+
async createCardRegistration(params, context) {
|
|
324
|
+
this.required(params, ["orderId", "paymentProvider", "currency"]);
|
|
325
|
+
return this.request({
|
|
326
|
+
method: "POST",
|
|
327
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.CARD_REGISTRATION, {
|
|
328
|
+
orderId: params.orderId,
|
|
329
|
+
}),
|
|
330
|
+
body: {
|
|
331
|
+
paymentProvider: params.paymentProvider,
|
|
332
|
+
currency: params.currency,
|
|
333
|
+
},
|
|
334
|
+
}, context);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Update billing information for an order.
|
|
338
|
+
*
|
|
339
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/billing-information [ORD-106]`
|
|
340
|
+
*
|
|
341
|
+
* | Parameter | Type | Required | Description |
|
|
342
|
+
* |--------------------|----------|----------|--------------------------|
|
|
343
|
+
* | `orderId` | `string` | Yes | Order ID |
|
|
344
|
+
* | `billingAddressId` | `string` | Yes | Billing address ID |
|
|
345
|
+
*
|
|
346
|
+
* @param params - Billing update parameters
|
|
347
|
+
* @param context - Optional SSR request context
|
|
348
|
+
* @throws {ValidationError} If required parameters are missing
|
|
349
|
+
*/
|
|
350
|
+
async updateBillingInformation(params, context) {
|
|
351
|
+
this.required(params, ["orderId", "billingAddressId"]);
|
|
352
|
+
await this.request({
|
|
353
|
+
method: "PUT",
|
|
354
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.BILLING_INFORMATION, {
|
|
355
|
+
orderId: params.orderId,
|
|
356
|
+
}),
|
|
357
|
+
body: { billingAddressId: params.billingAddressId },
|
|
358
|
+
}, context);
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* Set order status to CREATED (finalize order).
|
|
362
|
+
*
|
|
363
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/set-status-as-created [ORD-107]`
|
|
364
|
+
*
|
|
365
|
+
* @example
|
|
366
|
+
* ```typescript
|
|
367
|
+
* await client.commercialOrder.setStatusAsCreated({
|
|
368
|
+
* orderId: 'order-123',
|
|
369
|
+
* paymentInfo: { method: 'CARD', transactionId: 'txn-456' },
|
|
370
|
+
* });
|
|
371
|
+
* ```
|
|
372
|
+
*
|
|
373
|
+
* @param params - Status update parameters
|
|
374
|
+
* @param context - Optional SSR request context
|
|
375
|
+
* @throws {ValidationError} If orderId is missing
|
|
376
|
+
*/
|
|
377
|
+
async setStatusAsCreated(params, context) {
|
|
378
|
+
this.required(params, ["orderId"]);
|
|
379
|
+
await this.request({
|
|
380
|
+
method: "PUT",
|
|
381
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.STATUS_CREATED, {
|
|
382
|
+
orderId: params.orderId,
|
|
383
|
+
}),
|
|
384
|
+
body: params.paymentInfo ?? null,
|
|
385
|
+
}, context);
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Set order status to ON_HOLD.
|
|
389
|
+
*
|
|
390
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/set-status-as-hold [ORD-108]`
|
|
391
|
+
*
|
|
392
|
+
* @param params - Order identification
|
|
393
|
+
* @param context - Optional SSR request context
|
|
394
|
+
* @throws {ValidationError} If orderId is missing
|
|
395
|
+
*/
|
|
396
|
+
async setStatusAsOnHold(params, context) {
|
|
397
|
+
this.required(params, ["orderId"]);
|
|
398
|
+
await this.request({
|
|
399
|
+
method: "PUT",
|
|
400
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.STATUS_HOLD, {
|
|
401
|
+
orderId: params.orderId,
|
|
402
|
+
}),
|
|
403
|
+
}, context);
|
|
404
|
+
}
|
|
405
|
+
/**
|
|
406
|
+
* Synchronize order with external systems (ORDER-223).
|
|
407
|
+
*
|
|
408
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/sync`
|
|
409
|
+
*
|
|
410
|
+
* Returns the set of synchronisation warnings. Empty array if no warning.
|
|
411
|
+
*
|
|
412
|
+
* @param params - Order identification (REFERENCE only; business/external IDs not supported)
|
|
413
|
+
* @param context - Optional SSR request context
|
|
414
|
+
* @returns Synchronisation warnings; empty array if none
|
|
415
|
+
* @throws {ValidationError} If orderId is missing
|
|
416
|
+
*/
|
|
417
|
+
async syncCommercialOrder(params, context) {
|
|
418
|
+
this.required(params, ["orderId"]);
|
|
419
|
+
return this.request({
|
|
420
|
+
method: "PUT",
|
|
421
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SYNC, {
|
|
422
|
+
orderId: params.orderId,
|
|
423
|
+
}),
|
|
424
|
+
body: {},
|
|
425
|
+
}, context);
|
|
426
|
+
}
|
|
427
|
+
/**
|
|
428
|
+
* Get payment page URL for online payment.
|
|
429
|
+
*
|
|
430
|
+
* **Endpoint**: `GET /v1/shop/commercial-orders/{orderId}/payment-page [PAY-101]`
|
|
431
|
+
*
|
|
432
|
+
* | Parameter | Type | Required | Description |
|
|
433
|
+
* |-------------------|----------|----------|--------------------------|
|
|
434
|
+
* | `orderId` | `string` | Yes | Order ID |
|
|
435
|
+
* | `paymentOption` | `string` | Yes | Payment option selected |
|
|
436
|
+
* | `paymentProvider` | `string` | No | Specific provider |
|
|
437
|
+
*
|
|
438
|
+
* @example
|
|
439
|
+
* ```typescript
|
|
440
|
+
* const paymentUrl = await client.commercialOrder.getPaymentPageUrl({
|
|
441
|
+
* orderId: 'order-123',
|
|
442
|
+
* paymentOption: 'CARD',
|
|
443
|
+
* });
|
|
444
|
+
*
|
|
445
|
+
* // Redirect user to payment page
|
|
446
|
+
* window.location.href = paymentUrl;
|
|
447
|
+
* ```
|
|
448
|
+
*
|
|
449
|
+
* @param params - Payment page parameters
|
|
450
|
+
* @param context - Optional SSR request context
|
|
451
|
+
* @throws {ValidationError} If required parameters are missing
|
|
452
|
+
* @returns Payment page URL
|
|
453
|
+
*/
|
|
454
|
+
async getPaymentPageUrl(params, context) {
|
|
455
|
+
this.required(params, ["orderId", "paymentOption"]);
|
|
456
|
+
const response = await this.request({
|
|
457
|
+
method: "GET",
|
|
458
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.PAYMENT_PAGE, {
|
|
459
|
+
orderId: params.orderId,
|
|
460
|
+
}),
|
|
461
|
+
params: this.buildParams({
|
|
462
|
+
paymentOption: params.paymentOption,
|
|
463
|
+
paymentProvider: params.paymentProvider,
|
|
464
|
+
}),
|
|
465
|
+
}, context);
|
|
466
|
+
return response.url;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Create a payment preauthorization.
|
|
470
|
+
*
|
|
471
|
+
* **Endpoint**: `POST /v1/shop/commercial-orders/{orderId}/preauthorization [PAY-102]`
|
|
472
|
+
*
|
|
473
|
+
* @param params - Preauthorization parameters
|
|
474
|
+
* @param context - Optional SSR request context
|
|
475
|
+
* @throws {ValidationError} If required parameters are missing
|
|
476
|
+
* @returns Preauthorization result
|
|
477
|
+
*/
|
|
478
|
+
async createPreauthorization(params, context) {
|
|
479
|
+
this.required(params, ["orderId", "paymentProvider", "paymentCardInfo"]);
|
|
480
|
+
return this.request({
|
|
481
|
+
method: "POST",
|
|
482
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.PREAUTHORIZATION, {
|
|
483
|
+
orderId: params.orderId,
|
|
484
|
+
}),
|
|
485
|
+
body: {
|
|
486
|
+
paymentProvider: params.paymentProvider,
|
|
487
|
+
authorId: params.authorId,
|
|
488
|
+
browserInfo: params.browserInfo,
|
|
489
|
+
ipAddress: params.ipAddress,
|
|
490
|
+
paymentCardInfo: params.paymentCardInfo,
|
|
491
|
+
},
|
|
492
|
+
}, context);
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Update shipping address for an order.
|
|
496
|
+
*
|
|
497
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-address [ORD-110]`
|
|
498
|
+
*
|
|
499
|
+
* @param params - Shipping address update parameters
|
|
500
|
+
* @param context - Optional SSR request context
|
|
501
|
+
* @throws {ValidationError} If required parameters are missing
|
|
502
|
+
*/
|
|
503
|
+
async updateShippingAddress(params, context) {
|
|
504
|
+
this.required(params, ["orderId", "shippingAddressId"]);
|
|
505
|
+
await this.request({
|
|
506
|
+
method: "PUT",
|
|
507
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_ADDRESS, {
|
|
508
|
+
orderId: params.orderId,
|
|
509
|
+
}),
|
|
510
|
+
body: { shippingAddressId: params.shippingAddressId },
|
|
511
|
+
}, context);
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* Update complete shipping information.
|
|
515
|
+
*
|
|
516
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-information [ORD-111]`
|
|
517
|
+
*
|
|
518
|
+
* @param params - Shipping information parameters
|
|
519
|
+
* @param context - Optional SSR request context
|
|
520
|
+
* @throws {ValidationError} If required parameters are missing
|
|
521
|
+
*/
|
|
522
|
+
async updateShippingInformation(params, context) {
|
|
523
|
+
this.required(params, ["orderId", "shippingAddressId", "shippingType"]);
|
|
524
|
+
await this.request({
|
|
525
|
+
method: "PUT",
|
|
526
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_INFORMATION, {
|
|
527
|
+
orderId: params.orderId,
|
|
528
|
+
}),
|
|
529
|
+
body: {
|
|
530
|
+
shippingAddressId: params.shippingAddressId,
|
|
531
|
+
shippingType: params.shippingType,
|
|
532
|
+
},
|
|
533
|
+
}, context);
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Update shipping type only.
|
|
537
|
+
*
|
|
538
|
+
* **Endpoint**: `PUT /v1/shop/commercial-orders/{orderId}/shipping-type [ORD-112]`
|
|
539
|
+
*
|
|
540
|
+
* @param params - Shipping type parameters
|
|
541
|
+
* @param context - Optional SSR request context
|
|
542
|
+
* @throws {ValidationError} If required parameters are missing
|
|
543
|
+
*/
|
|
544
|
+
async updateShippingType(params, context) {
|
|
545
|
+
this.required(params, ["orderId", "shippingType"]);
|
|
546
|
+
await this.request({
|
|
547
|
+
method: "PUT",
|
|
548
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.SHIPPING_TYPE, {
|
|
549
|
+
orderId: params.orderId,
|
|
550
|
+
}),
|
|
551
|
+
body: { shippingType: params.shippingType },
|
|
552
|
+
}, context);
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Delete a commercial order.
|
|
556
|
+
*
|
|
557
|
+
* **Endpoint**: `DELETE /v2/shop/commercial-orders/{orderId} [ORD-113]`
|
|
558
|
+
*
|
|
559
|
+
* @param params - Order identification
|
|
560
|
+
* @param context - Optional SSR request context
|
|
561
|
+
* @throws {ValidationError} If commercialOrderId is missing
|
|
562
|
+
* @throws {NotFoundError} If order doesn't exist
|
|
563
|
+
*/
|
|
564
|
+
async deleteCommercialOrder(params, context) {
|
|
565
|
+
this.required(params, ["commercialOrderId"]);
|
|
566
|
+
await this.request({
|
|
567
|
+
method: "DELETE",
|
|
568
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.ORDER_V2, {
|
|
569
|
+
commercialOrderId: params.commercialOrderId,
|
|
570
|
+
}),
|
|
571
|
+
}, context);
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Get order lines with pagination.
|
|
575
|
+
*
|
|
576
|
+
* **Endpoint**: `GET /v1/shop/commercial-orders/{orderId}/lines [ORD-114]`
|
|
577
|
+
*
|
|
578
|
+
* @example
|
|
579
|
+
* ```typescript
|
|
580
|
+
* const { content: lines } = await client.commercialOrder.getCommercialOrderLines({
|
|
581
|
+
* commercialOrderId: 'order-123',
|
|
582
|
+
* page: 0,
|
|
583
|
+
* size: 50,
|
|
584
|
+
* locale: 'en-US',
|
|
585
|
+
* });
|
|
586
|
+
*
|
|
587
|
+
* lines.forEach(line => {
|
|
588
|
+
* console.log(`${line.productName}: ${line.quantity} x ${line.unitPrice}`);
|
|
589
|
+
* });
|
|
590
|
+
* ```
|
|
591
|
+
*
|
|
592
|
+
* @param params - Query parameters
|
|
593
|
+
* @param context - Optional SSR request context
|
|
594
|
+
* @throws {ValidationError} If commercialOrderId is missing
|
|
595
|
+
* @returns Paginated order lines
|
|
596
|
+
*/
|
|
597
|
+
async getCommercialOrderLines(params, context) {
|
|
598
|
+
this.required(params, ["commercialOrderId"]);
|
|
599
|
+
return this.request({
|
|
600
|
+
method: "GET",
|
|
601
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V1, {
|
|
602
|
+
commercialOrderId: params.commercialOrderId,
|
|
603
|
+
}),
|
|
604
|
+
params: this.buildParams({
|
|
605
|
+
page: params.page,
|
|
606
|
+
size: params.size,
|
|
607
|
+
sort: params.sort,
|
|
608
|
+
supplierIds: params.supplierIds,
|
|
609
|
+
productVariantIds: params.productVariantIds,
|
|
610
|
+
offerPriceIds: params.offerPriceIds,
|
|
611
|
+
idType: params.idType,
|
|
612
|
+
locale: params.locale,
|
|
613
|
+
}),
|
|
614
|
+
}, context);
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Update order lines (quantities, custom fields).
|
|
618
|
+
*
|
|
619
|
+
* **Endpoint**: `PUT /v2/shop/commercial-orders/{orderId}/lines [ORD-115]`
|
|
620
|
+
*
|
|
621
|
+
* @param params - Update parameters
|
|
622
|
+
* @param context - Optional SSR request context
|
|
623
|
+
* @throws {ValidationError} If commercialOrderId is missing
|
|
624
|
+
* @returns Updated lines information
|
|
625
|
+
*/
|
|
626
|
+
async updateCommercialOrderLines(params, context) {
|
|
627
|
+
this.required(params, ["commercialOrderId"]);
|
|
628
|
+
return this.request({
|
|
629
|
+
method: "PUT",
|
|
630
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V2, {
|
|
631
|
+
commercialOrderId: params.commercialOrderId,
|
|
632
|
+
}),
|
|
633
|
+
body: {
|
|
634
|
+
customFieldIdType: params.customFieldIdType,
|
|
635
|
+
lineIdType: params.lineIdType,
|
|
636
|
+
lineType: params.lineType,
|
|
637
|
+
updateOrderCommercialLines: params.updateOrderCommercialLines,
|
|
638
|
+
metadata: params.metadata,
|
|
639
|
+
},
|
|
640
|
+
}, context);
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Delete order lines.
|
|
644
|
+
*
|
|
645
|
+
* **Endpoint**: `DELETE /v2/shop/commercial-orders/{orderId}/lines [ORD-116]`
|
|
646
|
+
*
|
|
647
|
+
* @param params - Deletion parameters
|
|
648
|
+
* @param context - Optional SSR request context
|
|
649
|
+
* @throws {ValidationError} If commercialOrderId is missing
|
|
650
|
+
* @returns Deletion result
|
|
651
|
+
*/
|
|
652
|
+
async deleteCommercialOrderLines(params, context) {
|
|
653
|
+
this.required(params, ["commercialOrderId"]);
|
|
654
|
+
return this.request({
|
|
655
|
+
method: "DELETE",
|
|
656
|
+
path: this.buildPath(endpoints_1.CommercialOrderEndpoints.LINES_V2, {
|
|
657
|
+
commercialOrderId: params.commercialOrderId,
|
|
658
|
+
}),
|
|
659
|
+
body: params.body || [],
|
|
660
|
+
}, context);
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Get OCI punchout data for procurement integration.
|
|
664
|
+
*
|
|
665
|
+
* Returns order data in OCI format for SAP Ariba, Coupa, etc.
|
|
666
|
+
*
|
|
667
|
+
* **Endpoint**: `GET /cxml/punchout/oci/{configKey}/commercial-orders/{orderId} [PUNCHOUT-100]`
|
|
668
|
+
*
|
|
669
|
+
* | Parameter | Type | Required | Description |
|
|
670
|
+
* |---------------------------|----------|----------|--------------------------|
|
|
671
|
+
* | `commercialOrderId` | `string` | Yes | Order ID |
|
|
672
|
+
* | `tenantConfigurationKey` | `string` | Yes | OCI configuration key |
|
|
673
|
+
* | `locale` | `string` | No | Locale for data |
|
|
674
|
+
*
|
|
675
|
+
* @param params - Punchout parameters
|
|
676
|
+
* @param context - Optional SSR request context
|
|
677
|
+
* @throws {ValidationError} If required parameters are missing
|
|
678
|
+
* @returns OCI field mapping for the order
|
|
679
|
+
*/
|
|
680
|
+
async punchoutOci(params, context) {
|
|
681
|
+
this.required(params, ["commercialOrderId", "tenantConfigurationKey"]);
|
|
682
|
+
return this.request({
|
|
683
|
+
method: "GET",
|
|
684
|
+
path: `/cxml/punchout/oci/${params.tenantConfigurationKey}/commercial-orders/${params.commercialOrderId}`,
|
|
685
|
+
params: this.buildParams({ locale: params.locale }),
|
|
686
|
+
}, context);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
exports.CommercialOrderService = CommercialOrderService;
|
|
690
|
+
//# sourceMappingURL=commercial-order.service.js.map
|