@infrab4a/connect 4.8.0-beta.0 → 4.8.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/index.cjs.js CHANGED
@@ -2249,6 +2249,9 @@ class UpdateUserImage {
2249
2249
  }
2250
2250
 
2251
2251
  class LineItem extends Product {
2252
+ get pricePaidWithDiscount() {
2253
+ return this.pricePaid - this.discount;
2254
+ }
2252
2255
  }
2253
2256
 
2254
2257
  class ShippingMethod extends BaseModel {
package/index.esm.js CHANGED
@@ -2225,6 +2225,9 @@ class UpdateUserImage {
2225
2225
  }
2226
2226
 
2227
2227
  class LineItem extends Product {
2228
+ get pricePaidWithDiscount() {
2229
+ return this.pricePaid - this.discount;
2230
+ }
2228
2231
  }
2229
2232
 
2230
2233
  class ShippingMethod extends BaseModel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.8.0-beta.0",
3
+ "version": "4.8.0",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -13,7 +13,7 @@
13
13
  "class-transformer": "^0.5.1",
14
14
  "date-fns": "^2.28.0",
15
15
  "debug": "^4.3.4",
16
- "firebase": "^10.7.0",
16
+ "firebase": "^9.9.0",
17
17
  "gql-query-builder": "3.7.0",
18
18
  "lodash": "^4.17.21",
19
19
  "reflect-metadata": "^0.1.13",
@@ -4,5 +4,7 @@ export declare class LineItem extends Product {
4
4
  quantity: number;
5
5
  isGift?: boolean;
6
6
  pricePaid?: number;
7
+ discount?: number;
7
8
  image?: string;
9
+ get pricePaidWithDiscount(): number;
8
10
  }