@labdigital/commercetools-mock 1.9.0 → 1.10.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
@@ -2329,6 +2329,11 @@ var CartRepository = class extends AbstractResourceRepository {
2329
2329
  ...address,
2330
2330
  custom
2331
2331
  };
2332
+ },
2333
+ removeDiscountCode: (context, resource, { discountCode }) => {
2334
+ resource.discountCodes = resource.discountCodes.filter(
2335
+ (code) => code.discountCode.id !== discountCode.id
2336
+ );
2332
2337
  }
2333
2338
  };
2334
2339
  draftLineItemtoLineItem = (projectKey, draftLineItem, currency, country) => {