@longvansoftware/storefront-js-client 2.8.3 → 2.8.5
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.
|
@@ -82,6 +82,7 @@ exports.REQUEST_UNPUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
|
|
|
82
82
|
sourceId
|
|
83
83
|
sourceType
|
|
84
84
|
previewLink
|
|
85
|
+
lookupLink
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
`;
|
|
@@ -124,6 +125,7 @@ exports.REQUEST_PUBLISH_VAT_INVOICE = (0, graphql_tag_1.gql) `
|
|
|
124
125
|
sourceId
|
|
125
126
|
sourceType
|
|
126
127
|
previewLink
|
|
128
|
+
lookupLink
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
131
|
`;
|
|
@@ -80,6 +80,10 @@ exports.GET_INVOICES_OF_ORDER = (0, graphql_tag_1.gql) `
|
|
|
80
80
|
originalTotalPrice
|
|
81
81
|
totalVAT
|
|
82
82
|
appliedAmount
|
|
83
|
+
attributes {
|
|
84
|
+
name
|
|
85
|
+
value
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
}
|
|
85
89
|
`;
|
|
@@ -92,6 +96,7 @@ exports.VIEW_PUBLISHED_INVOICE = (0, graphql_tag_1.gql) `
|
|
|
92
96
|
sourceId
|
|
93
97
|
sourceType
|
|
94
98
|
previewLink
|
|
99
|
+
lookupLink
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
`;
|
|
@@ -509,4 +509,5 @@ export declare class OrderService extends Service {
|
|
|
509
509
|
updateExchangeOrder(exchangeOrder: string, returnOrder: string, sellOrder: string): Promise<any>;
|
|
510
510
|
removeShippingAddress(orderId: string, updateBy: string): Promise<any>;
|
|
511
511
|
removeShippingInfo(orderId: string, updateBy: string): Promise<any>;
|
|
512
|
+
updateVatInorder(orderId: string, orderItemId: string, vatRate: string): Promise<any>;
|
|
512
513
|
}
|
|
@@ -1497,5 +1497,18 @@ class OrderService extends serviceSDK_1.Service {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
1499
|
}
|
|
1500
|
+
updateVatInorder(orderId, orderItemId, vatRate) {
|
|
1501
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1502
|
+
const endpoint = `/orders/${this.orgId}/${this.storeId}/${orderId}/${orderItemId}/${vatRate}/vatProduct`;
|
|
1503
|
+
const method = 'PUT';
|
|
1504
|
+
try {
|
|
1505
|
+
const response = yield this.restApiCallWithToken(endpoint, method);
|
|
1506
|
+
return response;
|
|
1507
|
+
}
|
|
1508
|
+
catch (error) {
|
|
1509
|
+
throw error;
|
|
1510
|
+
}
|
|
1511
|
+
});
|
|
1512
|
+
}
|
|
1500
1513
|
}
|
|
1501
1514
|
exports.OrderService = OrderService;
|