@nuskin/ns-product-lib 1.3.7 → 1.4.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/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # [1.4.0](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.3.7...v1.4.0) (2022-03-31)
2
+
3
+
4
+ ### Update
5
+
6
+ * adding locallyProduced flag (#CX16-5842) ([9213365](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/92133654db85e4af7f46a2223a5d999f75dbc9a5)), closes [#CX16-5842](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX16-5842)
7
+ * adding locallyProduced flag (#CX16-5842) ([7e303af](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/7e303af1f14fd870ef571376e1960eb40fb7bd12)), closes [#CX16-5842](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/issues/CX16-5842)
8
+
1
9
  ## [1.3.7](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v1.3.6...v1.3.7) (2021-09-17)
2
10
 
3
11
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuskin/ns-product-lib",
3
- "version": "1.3.7",
3
+ "version": "1.4.0",
4
4
  "description": "This project contains shared Product models and code between the backend and frontend.",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
package/src/product.js CHANGED
@@ -17,6 +17,7 @@ const Product = function(productData) {
17
17
  this.custTypes = [];
18
18
  this.addOns = [];
19
19
  this.productCarouselImages = [];
20
+ this.locallyProduced = false;
20
21
 
21
22
  //class variables to be used instead of getters/setters
22
23
  this.globalProductID = "";
@@ -349,7 +350,7 @@ const Product = function(productData) {
349
350
  }
350
351
  return retVal;
351
352
  };
352
-
353
+
353
354
  this.getEventPriceTypes = () => {
354
355
  const eventPriceTypes = [];
355
356
 
@@ -490,6 +491,7 @@ const Product = function(productData) {
490
491
  retData.custTypes = this.custTypes;
491
492
  retData.division = this.division;
492
493
  retData.backOrderDate = this.backOrderDate;
494
+ retData.locallyProduced = this.locallyProduced;
493
495
  retData.agelocme = this.agelocme ? this.agelocme.toJSON() : null;
494
496
  retData.count = this.count;
495
497
  retData.flavor = this.flavor;
@@ -597,6 +599,7 @@ const Product = function(productData) {
597
599
  if (data.priceType) {
598
600
  this.priceType = data.priceType;
599
601
  }
602
+ this.locallyProduced = data.locallyProduced;
600
603
  this.count = productData.count;
601
604
  this.flavor = productData.flavor;
602
605
  this.size = productData.size;