@labdigital/commercetools-mock 2.16.1 → 2.17.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/dist/index.cjs CHANGED
@@ -2603,6 +2603,12 @@ var CartRepository = class extends AbstractResourceRepository {
2603
2603
  };
2604
2604
  }
2605
2605
  },
2606
+ setDirectDiscounts: (context, resource, { discounts }) => {
2607
+ resource.directDiscounts = discounts.map((discount) => ({
2608
+ ...discount,
2609
+ id: (0, import_uuid4.v4)()
2610
+ }));
2611
+ },
2606
2612
  setLocale: (context, resource, { locale }) => {
2607
2613
  resource.locale = locale;
2608
2614
  },