@longvansoftware/storefront-js-client 1.1.8 → 1.1.9
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.
|
@@ -11,6 +11,7 @@ export declare class OrderService extends Service {
|
|
|
11
11
|
* @param storeId - The store ID.
|
|
12
12
|
*/
|
|
13
13
|
constructor(endpoint: string, orgId: string, storeId: string);
|
|
14
|
+
setToken(token: string): void;
|
|
14
15
|
/**
|
|
15
16
|
* Creates a new order.
|
|
16
17
|
* @param orderData - The data for the order.
|
|
@@ -24,6 +24,10 @@ class OrderService extends service_1.Service {
|
|
|
24
24
|
constructor(endpoint, orgId, storeId) {
|
|
25
25
|
super(endpoint, orgId, storeId);
|
|
26
26
|
}
|
|
27
|
+
setToken(token) {
|
|
28
|
+
console.log("🚀 ~ OrderService ~ setToken ~ token:", token);
|
|
29
|
+
this.token = token;
|
|
30
|
+
}
|
|
27
31
|
/**
|
|
28
32
|
* Creates a new order.
|
|
29
33
|
* @param orderData - The data for the order.
|