@one-commerce/sdk-core 1.19.0-alpha.0 → 1.19.1-alpha.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.
@@ -301,6 +301,53 @@ var BaseCallClass = /*#__PURE__*/function () {
301
301
  return BaseCallClass;
302
302
  }();
303
303
 
304
+ var AddToCartContext = /*#__PURE__*/function (_BaseCallClass) {
305
+ _inherits(AddToCartContext, _BaseCallClass);
306
+
307
+ var _super = _createSuper(AddToCartContext);
308
+
309
+ function AddToCartContext() {
310
+ var _this;
311
+
312
+ _classCallCheck(this, AddToCartContext);
313
+
314
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
315
+ args[_key] = arguments[_key];
316
+ }
317
+
318
+ _this = _super.call.apply(_super, [this].concat(args));
319
+
320
+ _defineProperty(_assertThisInitialized(_this), "serviceName", main.Backoffice.Context.AvailableContext.ADD_TO_CART);
321
+
322
+ _defineProperty(_assertThisInitialized(_this), "productId", void 0);
323
+
324
+ _defineProperty(_assertThisInitialized(_this), "cartId", void 0);
325
+
326
+ _defineProperty(_assertThisInitialized(_this), "warehouses", void 0);
327
+
328
+ return _this;
329
+ }
330
+
331
+ _createClass(AddToCartContext, [{
332
+ key: "closePlugin",
333
+ value: function closePlugin() {
334
+ return this.call('closePlugin');
335
+ }
336
+ }, {
337
+ key: "closePluginAndAddToCart",
338
+ value: function closePluginAndAddToCart() {
339
+ return this.call('closePluginAndAddToCart');
340
+ }
341
+ }, {
342
+ key: "closePluginAndRefreshCart",
343
+ value: function closePluginAndRefreshCart() {
344
+ return this.call('closePluginAndRefreshCart');
345
+ }
346
+ }]);
347
+
348
+ return AddToCartContext;
349
+ }(BaseCallClass);
350
+
304
351
  var BackofficeCatalog = /*#__PURE__*/function (_BaseCallClass) {
305
352
  _inherits(BackofficeCatalog, _BaseCallClass);
306
353
 
@@ -1136,5 +1183,5 @@ var ShopSdk = /*#__PURE__*/function (_Sdk2) {
1136
1183
  return _createClass(ShopSdk);
1137
1184
  }(Sdk);
1138
1185
 
1139
- export { BackofficeSdk, SdkEvents, ShopSdk };
1186
+ export { AddToCartContext, BackofficeSdk, SdkEvents, ShopSdk };
1140
1187
  //# sourceMappingURL=bundle.esm.js.map