@one-commerce/sdk-core 1.19.7 → 1.21.0-UNITYONE-12325.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.
@@ -218,7 +218,11 @@ Object.defineProperty(api, "__esModule", { value: true });
218
218
  (function (exports) {
219
219
  var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
220
220
  if (k2 === undefined) k2 = k;
221
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
221
+ var desc = Object.getOwnPropertyDescriptor(m, k);
222
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
223
+ desc = { enumerable: true, get: function() { return m[k]; } };
224
+ }
225
+ Object.defineProperty(o, k2, desc);
222
226
  }) : (function(o, m, k, k2) {
223
227
  if (k2 === undefined) k2 = k;
224
228
  o[k2] = m[k];
@@ -334,8 +338,12 @@ var AddToCartContext = /*#__PURE__*/function (_ContextCallClass) {
334
338
 
335
339
  _defineProperty(_assertThisInitialized(_this2), "cartId", void 0);
336
340
 
341
+ _defineProperty(_assertThisInitialized(_this2), "offerId", void 0);
342
+
337
343
  _defineProperty(_assertThisInitialized(_this2), "warehouses", void 0);
338
344
 
345
+ _defineProperty(_assertThisInitialized(_this2), "warehouseId", void 0);
346
+
339
347
  _defineProperty(_assertThisInitialized(_this2), "meta", void 0);
340
348
 
341
349
  return _this2;
@@ -567,6 +575,41 @@ var BackofficePlugin = /*#__PURE__*/function (_BaseCallClass7) {
567
575
 
568
576
  return _createClass(BackofficePlugin);
569
577
  }(BaseCallClass);
578
+ var BackofficeOrderpath = /*#__PURE__*/function (_BaseCallClass8) {
579
+ _inherits(BackofficeOrderpath, _BaseCallClass8);
580
+
581
+ var _super8 = _createSuper(BackofficeOrderpath);
582
+
583
+ function BackofficeOrderpath() {
584
+ var _this8;
585
+
586
+ _classCallCheck(this, BackofficeOrderpath);
587
+
588
+ for (var _len8 = arguments.length, args = new Array(_len8), _key8 = 0; _key8 < _len8; _key8++) {
589
+ args[_key8] = arguments[_key8];
590
+ }
591
+
592
+ _this8 = _super8.call.apply(_super8, [this].concat(args));
593
+
594
+ _defineProperty(_assertThisInitialized(_this8), "serviceName", 'orderpath');
595
+
596
+ return _this8;
597
+ }
598
+
599
+ _createClass(BackofficeOrderpath, [{
600
+ key: "fetchCart",
601
+ value: function fetchCart(id) {
602
+ return this.call('fetchCart', id);
603
+ }
604
+ }, {
605
+ key: "fetchOffer",
606
+ value: function fetchOffer(id) {
607
+ return this.call('fetchOffer', id);
608
+ }
609
+ }]);
610
+
611
+ return BackofficeOrderpath;
612
+ }(BaseCallClass);
570
613
 
571
614
  var Events = /*#__PURE__*/function () {
572
615
  function Events() {
@@ -1176,6 +1219,7 @@ var BackofficeSdk = /*#__PURE__*/function (_Sdk) {
1176
1219
  authorization: new BackofficeAuthorization(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1177
1220
  customer: new BackofficeCustomer(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1178
1221
  plugin: new BackofficePlugin(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1222
+ orderpath: new BackofficeOrderpath(_this5.callFunction.bind(_assertThisInitialized(_this5))),
1179
1223
  context: _this5.initializeContextClass()
1180
1224
  });
1181
1225