@nuskin/ns-product-lib 2.11.0-cx24-5092.33 → 2.11.0-cx24-5092.34
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/productGraphQL.js +12 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
# [2.11.0-cx24-5092.34](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.33...v2.11.0-cx24-5092.34) (2023-09-19)
|
2
|
+
|
3
|
+
|
4
|
+
### New
|
5
|
+
|
6
|
+
* Moving from AEM to CS for EQ markets ([9f649ff](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/commit/9f649ff3b0e5f6e076d2bdbf429c24b45e685ff6))
|
7
|
+
|
1
8
|
# [2.11.0-cx24-5092.33](https://code.tls.nuskin.io/ns-am/product/js-libs/ns-product-lib/compare/v2.11.0-cx24-5092.32...v2.11.0-cx24-5092.33) (2023-09-19)
|
2
9
|
|
3
10
|
|
package/package.json
CHANGED
package/src/productGraphQL.js
CHANGED
@@ -120,7 +120,7 @@ const ProductGraphQL = {
|
|
120
120
|
|
121
121
|
mapProductRegular: async function (response, market, locale) {
|
122
122
|
let res = {
|
123
|
-
"sku": response.variants[0].
|
123
|
+
"sku": response.variants[0].sku,
|
124
124
|
"globalProductID": response.id,
|
125
125
|
"title": response.variants[0].title,
|
126
126
|
"country": market,
|
@@ -269,6 +269,17 @@ const ProductGraphQL = {
|
|
269
269
|
mapProductBundle: async function (response, market, locale) {
|
270
270
|
let res;
|
271
271
|
res = this.mapProductRegular(response.bundle.kitProducts[0].product, market, locale)
|
272
|
+
res.priceMap = {
|
273
|
+
"WRTL": (response.bundle.totalPrice) ? response.bundle.totalPrice.retail : response.bundle.price.retail,
|
274
|
+
"WADW-WRTL": (response.bundle.totalPrice) ? response.bundle.totalPrice.retailSubscription : response.bundle.price.retail,
|
275
|
+
"WADR": (response.bundle.totalPrice) ? response.bundle.totalPrice.retailSubscription : response.bundle.price.retailSubscription, //retail ADR (subscription) price
|
276
|
+
"RTL": (response.bundle.totalPrice) ? response.bundle.totalPrice.retail : response.bundle.price.retail,
|
277
|
+
"WWHL": (response.bundle.totalPrice) ? response.bundle.totalPrice.wholesale : response.bundle.price.wholesale,
|
278
|
+
"WADW": (response.bundle.totalPrice) ? response.bundle.totalPrice.wholesaleSubscription : response.bundle.price.wholesaleSubscription,//wholesale ADR (subscription price)
|
279
|
+
"WHL": (response.bundle.totalPrice) ? response.bundle.totalPrice.wholesale : response.bundle.price.wholesale
|
280
|
+
}
|
281
|
+
res.status = this.switchStatusFromEquinox(response.bundle.status.status)
|
282
|
+
|
272
283
|
return res;
|
273
284
|
},
|
274
285
|
/**
|