@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.cjs CHANGED
@@ -2438,7 +2438,7 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
2438
2438
  resource.itemShippingAddresses.push(newAddress);
2439
2439
  }
2440
2440
  }
2441
- addLineItem(context, resource, { productId, variantId, sku, quantity = 1 }) {
2441
+ addLineItem(context, resource, { productId, variantId, sku, custom, quantity = 1 }) {
2442
2442
  let product = null;
2443
2443
  if (productId && variantId) {
2444
2444
  product = this._storage.get(context.projectKey, "product", productId, {});
@@ -2522,7 +2522,8 @@ var CartUpdateHandler = class extends AbstractUpdateHandler {
2522
2522
  discountedPricePerQuantity: [],
2523
2523
  lineItemMode: "Standard",
2524
2524
  priceMode: "Platform",
2525
- state: []
2525
+ state: [],
2526
+ custom: createCustomFields(custom, context.projectKey, this._storage)
2526
2527
  });
2527
2528
  }
2528
2529
  resource.totalPrice.centAmount = calculateCartTotalPrice(resource);