@infrab4a/connect 4.4.1-beta.0 → 4.4.1-beta.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/index.cjs.js CHANGED
@@ -2248,6 +2248,9 @@ class UpdateUserImage {
2248
2248
  }
2249
2249
 
2250
2250
  class LineItem extends Product {
2251
+ get pricePaidWithDiscount() {
2252
+ return this.pricePaid - this.discount;
2253
+ }
2251
2254
  }
2252
2255
 
2253
2256
  class ShippingMethod extends BaseModel {
package/index.esm.js CHANGED
@@ -2224,6 +2224,9 @@ class UpdateUserImage {
2224
2224
  }
2225
2225
 
2226
2226
  class LineItem extends Product {
2227
+ get pricePaidWithDiscount() {
2228
+ return this.pricePaid - this.discount;
2229
+ }
2227
2230
  }
2228
2231
 
2229
2232
  class ShippingMethod extends BaseModel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infrab4a/connect",
3
- "version": "4.4.1-beta.0",
3
+ "version": "4.4.1-beta.1",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org"
6
6
  },
@@ -4,7 +4,7 @@ export declare class LineItem extends Product {
4
4
  quantity: number;
5
5
  isGift?: boolean;
6
6
  pricePaid?: number;
7
- pricePaidOriginal?: number;
8
7
  discount?: number;
9
8
  image?: string;
9
+ get pricePaidWithDiscount(): number;
10
10
  }