@longvansoftware/storefront-js-client 2.5.6 → 2.5.8
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.
|
@@ -40,6 +40,7 @@ exports.PAYMENTS_BY_ORDERS = (0, graphql_tag_1.gql) `
|
|
|
40
40
|
confirmPaidDate
|
|
41
41
|
qrCode
|
|
42
42
|
payUrl
|
|
43
|
+
paymentNote
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
`;
|
|
@@ -165,21 +166,21 @@ exports.PAYMENT_STATUS = (0, graphql_tag_1.gql) `
|
|
|
165
166
|
}
|
|
166
167
|
`;
|
|
167
168
|
exports.GW_CONFIG_DETAIL = (0, graphql_tag_1.gql) `
|
|
168
|
-
query GwConfigDetail
|
|
169
|
-
gwConfigDetail(configId: $configId){
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
169
|
+
query GwConfigDetail($configId: String!) {
|
|
170
|
+
gwConfigDetail(configId: $configId) {
|
|
171
|
+
id
|
|
172
|
+
name
|
|
173
|
+
methodCode
|
|
174
|
+
partnerCode
|
|
175
|
+
subMethodCode
|
|
176
|
+
gwPartnerCode
|
|
177
|
+
gwPartnerName
|
|
178
|
+
gwSubChannel
|
|
179
|
+
gwMethodVersion
|
|
180
|
+
accessKey
|
|
181
|
+
secretKey
|
|
182
|
+
description
|
|
183
|
+
activated
|
|
183
184
|
}
|
|
184
185
|
}
|
|
185
186
|
`;
|
|
@@ -507,4 +507,6 @@ export declare class OrderService extends Service {
|
|
|
507
507
|
*/
|
|
508
508
|
reporByStores(date_from: number, date_to: number): Promise<any>;
|
|
509
509
|
updateExchangeOrder(exchangeOrder: string, returnOrder: string, sellOrder: string): Promise<any>;
|
|
510
|
+
removeShippingAddress(orderId: string, updateBy: string): Promise<any>;
|
|
511
|
+
removeShippingInfo(orderId: string, updateBy: string): Promise<any>;
|
|
510
512
|
}
|
|
@@ -1468,5 +1468,31 @@ class OrderService extends serviceSDK_1.Service {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
});
|
|
1470
1470
|
}
|
|
1471
|
+
removeShippingAddress(orderId, updateBy) {
|
|
1472
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1473
|
+
const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/removeShippingAddressInfo?updated_by=${updateBy}`;
|
|
1474
|
+
const method = "PUT";
|
|
1475
|
+
try {
|
|
1476
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
|
1477
|
+
return response;
|
|
1478
|
+
}
|
|
1479
|
+
catch (error) {
|
|
1480
|
+
throw error;
|
|
1481
|
+
}
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
removeShippingInfo(orderId, updateBy) {
|
|
1485
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1486
|
+
const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/removeShippingInfo?updated_by=${updateBy}`;
|
|
1487
|
+
const method = "PUT";
|
|
1488
|
+
try {
|
|
1489
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
|
1490
|
+
return response;
|
|
1491
|
+
}
|
|
1492
|
+
catch (error) {
|
|
1493
|
+
throw error;
|
|
1494
|
+
}
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1471
1497
|
}
|
|
1472
1498
|
exports.OrderService = OrderService;
|
|
@@ -6,4 +6,6 @@ export declare class PortalService extends Service {
|
|
|
6
6
|
createTag(title: string, createBy: string, partnerId?: string): Promise<any>;
|
|
7
7
|
searchTag(partnerId?: string, title?: string, id?: string, search?: string): Promise<any>;
|
|
8
8
|
redirectLink(sku?: string, id?: string): string;
|
|
9
|
+
imageProduct(parentId: string, parentType: string, width?: number, height?: number): string;
|
|
10
|
+
imagesProduct(parentId: string, parentType: string, width?: number, height?: number): string;
|
|
9
11
|
}
|
|
@@ -77,5 +77,13 @@ class PortalService extends serviceSDK_1.Service {
|
|
|
77
77
|
const url = `${this.endpoint}/facility/manager/session/inventory-item-by-product.xhtml?${sku ? `sku=${sku}` : `id=${id}`}&orgId=${this.orgId}`;
|
|
78
78
|
return url;
|
|
79
79
|
}
|
|
80
|
+
imageProduct(parentId, parentType, width, height) {
|
|
81
|
+
const url = `${this.endpoint}/image-gateway/public/image/${parentType}/${parentId}${width ? `?w=${width}` : ``}${`${height ? `&h=${height}` : ``}`} `;
|
|
82
|
+
return url;
|
|
83
|
+
}
|
|
84
|
+
imagesProduct(parentId, parentType, width, height) {
|
|
85
|
+
const url = `${this.endpoint}/image-gateway/public/images/${parentType}/${parentId}?w=${width}&h=${height}`;
|
|
86
|
+
return url;
|
|
87
|
+
}
|
|
80
88
|
}
|
|
81
89
|
exports.PortalService = PortalService;
|