@labdigital/commercetools-mock 2.31.0 → 2.31.1

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/index.js CHANGED
@@ -2401,7 +2401,7 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
2401
2401
  resource.itemShippingAddresses.push(newAddress);
2402
2402
  }
2403
2403
  }
2404
- addLineItem(context, resource, { productId, variantId, sku, quantity = 1 }) {
2404
+ addLineItem(context, resource, { productId, variantId, sku, custom, quantity = 1 }) {
2405
2405
  let product = null;
2406
2406
  if (productId && variantId) {
2407
2407
  product = this._storage.get(context.projectKey, "product", productId, {});
@@ -2485,7 +2485,8 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
2485
2485
  discountedPricePerQuantity: [],
2486
2486
  lineItemMode: "Standard",
2487
2487
  priceMode: "Platform",
2488
- state: []
2488
+ state: [],
2489
+ custom: createCustomFields(custom, context.projectKey, this._storage)
2489
2490
  });
2490
2491
  }
2491
2492
  resource.totalPrice.centAmount = calculateCartTotalPrice(resource);