@longvansoftware/storefront-js-client 1.8.0 → 1.8.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/dist/src/lib/SDK.js +3 -0
- package/package.json +1 -1
package/dist/src/lib/SDK.js
CHANGED
|
@@ -56,6 +56,7 @@ class SDK {
|
|
|
56
56
|
this.paymentV2.setToken(token);
|
|
57
57
|
this.warehouseV2.setToken(token);
|
|
58
58
|
this.deepLinkVietQr.setToken(token);
|
|
59
|
+
this.campaign.setToken(token);
|
|
59
60
|
// Set token for other services here
|
|
60
61
|
}
|
|
61
62
|
// các module export từ serviceSDK.ts set storeId vào serviceSDK.ts
|
|
@@ -74,6 +75,7 @@ class SDK {
|
|
|
74
75
|
this.paymentV2.setStoreId(storeId);
|
|
75
76
|
this.warehouseV2.setStoreId(storeId);
|
|
76
77
|
this.deepLinkVietQr.setStoreId(storeId);
|
|
78
|
+
this.campaign.setStoreId(storeId);
|
|
77
79
|
// Set storeId for other services here
|
|
78
80
|
}
|
|
79
81
|
setOrgId(orgId) {
|
|
@@ -90,6 +92,7 @@ class SDK {
|
|
|
90
92
|
this.paymentV2.setOrgId(orgId);
|
|
91
93
|
this.warehouseV2.setOrgId(orgId);
|
|
92
94
|
this.deepLinkVietQr.setOrgId(orgId);
|
|
95
|
+
this.campaign.setOrgId(orgId);
|
|
93
96
|
}
|
|
94
97
|
}
|
|
95
98
|
exports.SDK = SDK;
|