@reactionary/fake 0.10.48 → 0.10.50

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.
@@ -197,7 +197,9 @@ class FakeCartCapability extends CartCapability {
197
197
  code: payload.couponCode,
198
198
  isCouponCode: true,
199
199
  name: `Promotion for ${payload.couponCode}`,
200
- description: `Description for promotion with code ${payload.couponCode}`
200
+ description: `Description for promotion with code ${payload.couponCode}`,
201
+ amount: { value: 10, currency: cart.price.grandTotal.currency }
202
+ // For simplicity, every coupon gives a $10 discount
201
203
  });
202
204
  cart.price.totalDiscount.value += 10;
203
205
  cart.price.grandTotal.value -= 10;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/fake",
3
- "version": "0.10.48",
3
+ "version": "0.10.50",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/Solteq/reactionary.git"
10
10
  },
11
11
  "dependencies": {
12
- "@reactionary/core": "0.10.48",
12
+ "@reactionary/core": "0.10.50",
13
13
  "zod": "4.1.9",
14
14
  "@faker-js/faker": "^9.8.0"
15
15
  },