@longvansoftware/storefront-js-client 1.2.2 → 1.2.4
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/graphql/product/queries.d.ts +1 -0
- package/dist/src/graphql/product/queries.js +10 -1
- package/dist/src/lib/order/index.d.ts +130 -116
- package/dist/src/lib/order/index.js +252 -163
- package/dist/src/lib/product/index.d.ts +1 -0
- package/dist/src/lib/product/index.js +16 -0
- package/dist/src/lib/service.js +3 -0
- package/dist/src/types/order.d.ts +46 -0
- package/package.json +1 -1
|
@@ -8,3 +8,4 @@ export declare const GET_BRANDS_QUERY = "\nquery GetBrands($partnerId: String!,
|
|
|
8
8
|
export declare const GET_BRANDS_BY_CATEGORY_QUERY = "\nquery GetBrandsByCategory($partnerId: String!, $storeChannel: String!, $categoryId: String!) {\n\tgetBrandsByCategory(partnerId: $partnerId, storeChannel: $storeChannel, categoryId: $categoryId) {\n\t\tid\n\t\tname\n\t\timage\n\t\timageIcon\n\t}\n}\n";
|
|
9
9
|
export declare const GET_BRAND_DETAIL_QUERY = "\n query GetBrandDetail($partnerId: String!, $brandId: String!, $storeChannel: String!) {\n getDetail(partnerId: $partnerId, brandId: $brandId, storeChannel: $storeChannel) {\n id\n name\n image\n imageIcon\n }\n }\n";
|
|
10
10
|
export declare const GET_PRODUCT_OPTION: import("graphql").DocumentNode;
|
|
11
|
+
export declare const GET_POLICY: import("graphql").DocumentNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
|
3
|
+
exports.GET_POLICY = exports.GET_PRODUCT_OPTION = exports.GET_BRAND_DETAIL_QUERY = exports.GET_BRANDS_BY_CATEGORY_QUERY = exports.GET_BRANDS_QUERY = exports.GET_CATEGORY_BY_ID_QUERY = exports.GET_CATEGORY_BY_HANDLE_QUERY = exports.GET_CATEGORIES_QUERY = exports.GET_SIMPLE_PRODUCTS_QUERY = exports.GET_PRODUCT_BY_SLUG_QUERY = exports.GET_PRODUCT_BY_ID_QUERY = void 0;
|
|
4
4
|
const graphql_tag_1 = require("graphql-tag");
|
|
5
5
|
// export const GET_PRODUCT_BY_ID_QUERY = gql`
|
|
6
6
|
// query GetProductById(
|
|
@@ -413,3 +413,12 @@ exports.GET_PRODUCT_OPTION = (0, graphql_tag_1.gql) `
|
|
|
413
413
|
}
|
|
414
414
|
}
|
|
415
415
|
`;
|
|
416
|
+
exports.GET_POLICY = (0, graphql_tag_1.gql) `
|
|
417
|
+
query GetPolicy(
|
|
418
|
+
$groupId: String!
|
|
419
|
+
) {
|
|
420
|
+
getPolicy(groupId: $groupId) {
|
|
421
|
+
value
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LineItem } from "../../types/order";
|
|
1
|
+
import { LineItem, DiscountCampaign, CancelOrder, MemberDiscount, CampaignPromotion, OrderQuery } from "../../types/order";
|
|
2
2
|
import { Service } from "../service";
|
|
3
3
|
/**
|
|
4
4
|
* Represents a service for managing orders.
|
|
@@ -86,7 +86,7 @@ export declare class OrderService extends Service {
|
|
|
86
86
|
*/
|
|
87
87
|
addOrderLineItems(orderId: string, lineItems: LineItem[]): Promise<any>;
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Update Quantity in an order
|
|
90
90
|
* @param orderId - The id of the order .
|
|
91
91
|
* @param orderItemId - The id of order item.
|
|
92
92
|
* @param quantity - Quantity of profuct in order.
|
|
@@ -95,25 +95,25 @@ export declare class OrderService extends Service {
|
|
|
95
95
|
*/
|
|
96
96
|
updateQuantityProductInOrder(orderId: string, orderItemId: string, quantity: number): Promise<any>;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
*Updates sale Employee
|
|
99
99
|
* @param orderId - The ID of the order.
|
|
100
100
|
* @param saleId - The Id of saler.
|
|
101
|
-
* @param
|
|
101
|
+
* @param updatedBy - Who update.
|
|
102
102
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
103
103
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
104
104
|
*/
|
|
105
|
-
updateSaleEmployee(orderId: string, saleId: string,
|
|
105
|
+
updateSaleEmployee(orderId: string, saleId: string, updatedBy: string): Promise<any>;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
*Update type of order
|
|
108
108
|
* @param orderId - The ID of the order.
|
|
109
109
|
* @param orderType - The type of order.
|
|
110
|
-
* @param
|
|
110
|
+
* @param updatedBy - Id of person update
|
|
111
111
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
112
112
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
113
113
|
*/
|
|
114
|
-
updateOrderType(orderId: string, orderType: string,
|
|
114
|
+
updateOrderType(orderId: string, orderType: string, updatedBy: string): Promise<any>;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Update new price in order
|
|
117
117
|
* @param orderId - The ID of the order.
|
|
118
118
|
* @param orderItemId - The id of order.
|
|
119
119
|
* @param priceNew - the new price after update
|
|
@@ -122,31 +122,24 @@ export declare class OrderService extends Service {
|
|
|
122
122
|
*/
|
|
123
123
|
updatePriceInOrder(orderId: string, orderItemId: string, priceNew: number): Promise<any>;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Update discount price in order
|
|
126
126
|
* @param orderId - The ID of the order.
|
|
127
127
|
* @param orderItemId - The id of order.
|
|
128
|
-
* @param
|
|
129
|
-
* @param discount_amount
|
|
130
|
-
* @param campaign_id
|
|
131
|
-
* @param campaign_action_id
|
|
132
|
-
* @param campaign_action_type
|
|
128
|
+
* @param requestData - The request data
|
|
133
129
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
134
130
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
135
131
|
*/
|
|
136
|
-
updateDiscountPriceInOrder(orderId: string, orderItemId: string,
|
|
132
|
+
updateDiscountPriceInOrder(orderId: string, orderItemId: string, requestData: DiscountCampaign): Promise<any>;
|
|
137
133
|
/**
|
|
138
|
-
*
|
|
134
|
+
* Update cancel order
|
|
139
135
|
* @param orderId - The ID of the order.
|
|
140
|
-
* @param
|
|
141
|
-
* @param updatedBy
|
|
142
|
-
* @param note
|
|
143
|
-
* @param orderType
|
|
136
|
+
* @param requestData
|
|
144
137
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
145
138
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
146
139
|
*/
|
|
147
|
-
updateCancelOrder(orderId: string,
|
|
140
|
+
updateCancelOrder(orderId: string, requestData: CancelOrder): Promise<any>;
|
|
148
141
|
/**
|
|
149
|
-
*
|
|
142
|
+
* Update status of return order
|
|
150
143
|
* @param orderId - The ID of the order.
|
|
151
144
|
* @param statusNew - the new status of order
|
|
152
145
|
* @param updatedBy - Id of person update
|
|
@@ -155,16 +148,16 @@ export declare class OrderService extends Service {
|
|
|
155
148
|
*/
|
|
156
149
|
updateStatusReturnOrder(orderId: string, statusNew: string, updatedBy: string): Promise<any>;
|
|
157
150
|
/**
|
|
158
|
-
*
|
|
151
|
+
* Update Shipping service
|
|
159
152
|
* @param orderId - The ID of the order.
|
|
160
153
|
* @param shippingServiceId - the id of shipping service
|
|
161
|
-
* @param
|
|
154
|
+
* @param updatedBy - Id of person update
|
|
162
155
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
163
156
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
164
157
|
*/
|
|
165
|
-
updateShippngService(orderId: string, shippingServiceId: string,
|
|
158
|
+
updateShippngService(orderId: string, shippingServiceId: string, updatedBy: string): Promise<any>;
|
|
166
159
|
/**
|
|
167
|
-
*
|
|
160
|
+
* Update shipping order
|
|
168
161
|
* @param orderId - The ID of the order.
|
|
169
162
|
* @param shippingId - the id of shipping
|
|
170
163
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -172,7 +165,7 @@ export declare class OrderService extends Service {
|
|
|
172
165
|
*/
|
|
173
166
|
updateShippingOrder(orderId: string, shippingId: string): Promise<any>;
|
|
174
167
|
/**
|
|
175
|
-
*
|
|
168
|
+
* Update shipping fee
|
|
176
169
|
* @param orderId - The ID of the order.
|
|
177
170
|
* @param shippingFee - the fee of shipping
|
|
178
171
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -180,16 +173,16 @@ export declare class OrderService extends Service {
|
|
|
180
173
|
*/
|
|
181
174
|
updateShippingFee(orderId: string, shipingFee: Number): Promise<any>;
|
|
182
175
|
/**
|
|
183
|
-
*
|
|
176
|
+
* Update Financial Status after payment success
|
|
184
177
|
* @param orderId - The ID of the order.
|
|
185
178
|
* @param financialStatus - the status of financial
|
|
186
|
-
* @param
|
|
179
|
+
* @param updatedBy - Id of person update
|
|
187
180
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
188
181
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
189
182
|
*/
|
|
190
|
-
updateFinancialStatus(orderId: string, financialStatus: string,
|
|
183
|
+
updateFinancialStatus(orderId: string, financialStatus: string, updatedBy: string): Promise<any>;
|
|
191
184
|
/**
|
|
192
|
-
*
|
|
185
|
+
* Update warehouse of order
|
|
193
186
|
* @param orderId - The ID of the order.
|
|
194
187
|
* @param warehouseId - the status of warehouse
|
|
195
188
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -197,7 +190,7 @@ export declare class OrderService extends Service {
|
|
|
197
190
|
*/
|
|
198
191
|
updateWareHouseOrder(orderId: String, warehouseId: string): Promise<any>;
|
|
199
192
|
/**
|
|
200
|
-
*
|
|
193
|
+
* Update voucher
|
|
201
194
|
* @param orderId - The ID of the order.
|
|
202
195
|
* @param voucherCode - the code of voucher
|
|
203
196
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -205,7 +198,7 @@ export declare class OrderService extends Service {
|
|
|
205
198
|
*/
|
|
206
199
|
updateVoucher(orderId: string, voucherCode: string): Promise<any>;
|
|
207
200
|
/**
|
|
208
|
-
*
|
|
201
|
+
* Update Vat
|
|
209
202
|
* @param orderId - The ID of the order.
|
|
210
203
|
* @param vatFee - The fee of VAT
|
|
211
204
|
* @param vatType - The type of vat
|
|
@@ -214,7 +207,7 @@ export declare class OrderService extends Service {
|
|
|
214
207
|
*/
|
|
215
208
|
updateVat(orderId: string, vatFee: number, vatType: string): Promise<any>;
|
|
216
209
|
/**
|
|
217
|
-
*
|
|
210
|
+
* Update Status of l order
|
|
218
211
|
* @param orderId - The ID of the order.
|
|
219
212
|
* @param status - The status of sell order
|
|
220
213
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -222,36 +215,32 @@ export declare class OrderService extends Service {
|
|
|
222
215
|
*/
|
|
223
216
|
updateStatusSellOrder(orderId: string, status: string): Promise<any>;
|
|
224
217
|
/**
|
|
225
|
-
*
|
|
218
|
+
* Update date remain in total price
|
|
226
219
|
* @param orderId - The ID of the order.
|
|
227
|
-
* @param
|
|
220
|
+
* @param updatedBy - Id of person update
|
|
228
221
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
229
222
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
230
223
|
*/
|
|
231
|
-
updateRemainToTalPrice(orderId: string,
|
|
224
|
+
updateRemainToTalPrice(orderId: string, updatedBy: string): Promise<any>;
|
|
232
225
|
/**
|
|
233
|
-
*
|
|
226
|
+
* Update date create order
|
|
234
227
|
* @param orderId - The ID of the order.
|
|
235
228
|
* @param orderDate - The date of order
|
|
236
|
-
* @param
|
|
229
|
+
* @param updatedBy - Id of person update
|
|
237
230
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
238
231
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
239
232
|
*/
|
|
240
|
-
updateDateCreateOrder(orderId: string, orderDate: number,
|
|
233
|
+
updateDateCreateOrder(orderId: string, orderDate: number, updatedBy: string): Promise<any>;
|
|
241
234
|
/**
|
|
242
|
-
*
|
|
235
|
+
* Update membership discount
|
|
243
236
|
* @param orderId - The ID of the order.
|
|
244
|
-
* @param
|
|
245
|
-
* @param amount - The amount of campaign promotion
|
|
246
|
-
* @param campaignId - The id of the campaign promotion
|
|
247
|
-
* @param campaignActionId - The id of action campaign promotion
|
|
248
|
-
* @param campaignActionType - The type of action campaign promotion
|
|
237
|
+
* @param requestData
|
|
249
238
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
250
239
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
251
240
|
*/
|
|
252
|
-
updateMemberDiscount(orderId: string,
|
|
241
|
+
updateMemberDiscount(orderId: string, requestData: MemberDiscount): Promise<any>;
|
|
253
242
|
/**
|
|
254
|
-
*
|
|
243
|
+
* Update status editable order
|
|
255
244
|
* @param orderId - The ID of the order.
|
|
256
245
|
* @param editable - The editable of
|
|
257
246
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -259,56 +248,50 @@ export declare class OrderService extends Service {
|
|
|
259
248
|
*/
|
|
260
249
|
updateEditableOrder(orderId: string, editable: boolean): Promise<any>;
|
|
261
250
|
/**
|
|
262
|
-
*
|
|
251
|
+
* Update discount
|
|
263
252
|
* @param orderId - The ID of the order.
|
|
264
|
-
* @param
|
|
265
|
-
* @param amount - The amount of campaign promotion
|
|
266
|
-
* @param campaignId - The id of the campaign promotion
|
|
267
|
-
* @param campaignActionId - The id of action campaign promotion
|
|
268
|
-
* @param campaignActionType - The type of action campaign promotion
|
|
253
|
+
* @param requestData
|
|
269
254
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
270
255
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
271
256
|
*/
|
|
272
|
-
updateDiscount(orderId: string,
|
|
257
|
+
updateDiscount(orderId: string, requestData: MemberDiscount): Promise<any>;
|
|
273
258
|
/**
|
|
274
|
-
*
|
|
259
|
+
* Update info campaign promotion
|
|
275
260
|
* @param orderId - The ID of the order.
|
|
276
|
-
* @param
|
|
277
|
-
* @param campaign_action_id - The ID of the campaign action
|
|
278
|
-
* @param campaign_action_type - The type of campaign action
|
|
261
|
+
* @param requestData
|
|
279
262
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
280
263
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
281
264
|
*/
|
|
282
|
-
updateInfoCampaignPromotion(orderId: string,
|
|
265
|
+
updateInfoCampaignPromotion(orderId: string, requestData: CampaignPromotion): Promise<any>;
|
|
283
266
|
/**
|
|
284
|
-
*
|
|
267
|
+
* Get list shipping service
|
|
285
268
|
* @param shippingCarrierId - The ID of the campaign
|
|
286
269
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
287
270
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
288
271
|
*/
|
|
289
272
|
getListShippingService(shippingCarrierId: string): Promise<any>;
|
|
290
273
|
/**
|
|
291
|
-
*
|
|
274
|
+
* Get info sell order
|
|
292
275
|
* @param orderId - The ID of the order.
|
|
293
276
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
294
277
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
295
278
|
*/
|
|
296
279
|
getInfoSellOrder(orderId: string): Promise<any>;
|
|
297
280
|
/**
|
|
298
|
-
*
|
|
281
|
+
* Get info return order
|
|
299
282
|
* @param orderId - The ID of the order.
|
|
300
283
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
301
284
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
302
285
|
*/
|
|
303
286
|
getInfoReturnOrder(orderId: string): Promise<any>;
|
|
304
287
|
/**
|
|
305
|
-
*
|
|
288
|
+
* Get list type order
|
|
306
289
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
307
290
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
308
291
|
*/
|
|
309
292
|
getListTypeOrder(): Promise<any>;
|
|
310
293
|
/**
|
|
311
|
-
*
|
|
294
|
+
* GEt list shipping carrier
|
|
312
295
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
313
296
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
314
297
|
*/
|
|
@@ -316,28 +299,11 @@ export declare class OrderService extends Service {
|
|
|
316
299
|
/**
|
|
317
300
|
* Get list sell order
|
|
318
301
|
* @param orderId
|
|
319
|
-
* @param
|
|
320
|
-
* @param statusIgnore
|
|
321
|
-
* @param subStatus
|
|
322
|
-
* @param ffmStatus
|
|
323
|
-
* @param subType
|
|
324
|
-
* @param paymentMethod
|
|
325
|
-
* @param keyword
|
|
326
|
-
* @param customerMultiValue
|
|
327
|
-
* @param productMultiValue
|
|
328
|
-
* @param customerId
|
|
329
|
-
* @param createdBy
|
|
330
|
-
* @param dateCreateFrom
|
|
331
|
-
* @param dateCreateTo
|
|
332
|
-
* @param dateUpdateFrom
|
|
333
|
-
* @param dateUpdateTo
|
|
334
|
-
* @param employeeAssign
|
|
335
|
-
* @param currentPage
|
|
336
|
-
* @param maxResult
|
|
302
|
+
* @param requestData
|
|
337
303
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
338
304
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
339
305
|
*/
|
|
340
|
-
getListSellOrder(
|
|
306
|
+
getListSellOrder(requestData: OrderQuery): Promise<any>;
|
|
341
307
|
/**
|
|
342
308
|
* Get list sale order status
|
|
343
309
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -346,46 +312,28 @@ export declare class OrderService extends Service {
|
|
|
346
312
|
getListSaleOrderStatus(): Promise<any>;
|
|
347
313
|
/**
|
|
348
314
|
* Get list return order
|
|
349
|
-
* @param orderId
|
|
350
|
-
* @param
|
|
351
|
-
* @param statusIgnore
|
|
352
|
-
* @param subStatus
|
|
353
|
-
* @param ffmStatus
|
|
354
|
-
* @param subType
|
|
355
|
-
* @param paymentMethod
|
|
356
|
-
* @param keyword
|
|
357
|
-
* @param customerMultiValue
|
|
358
|
-
* @param productMultiValue
|
|
359
|
-
* @param customerId
|
|
360
|
-
* @param createdBy
|
|
361
|
-
* @param dateCreateFrom
|
|
362
|
-
* @param dateCreateTo
|
|
363
|
-
* @param dateUpdateFrom
|
|
364
|
-
* @param dateUpdateTo
|
|
365
|
-
* @param employeeAssign
|
|
366
|
-
* @param currentPage
|
|
367
|
-
* @param maxResult
|
|
315
|
+
* @param orderId - The id of the order
|
|
316
|
+
* @param requestData
|
|
368
317
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
369
318
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
370
319
|
*/
|
|
371
|
-
getListReturnOrder(orderId: string,
|
|
320
|
+
getListReturnOrder(orderId: string, requestData: OrderQuery): Promise<any>;
|
|
372
321
|
/**
|
|
373
|
-
* Get list
|
|
322
|
+
* Get list return order status
|
|
374
323
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
375
324
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
376
325
|
*/
|
|
377
326
|
getListReturnOrderStatus(): Promise<any>;
|
|
378
327
|
/**
|
|
379
|
-
*
|
|
380
|
-
* @param storeId - The id of store
|
|
328
|
+
* remove draft order
|
|
381
329
|
* @param orderId - The id of order
|
|
382
330
|
* @param updatedBy - Thi id of person update
|
|
383
331
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
384
332
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
385
333
|
*/
|
|
386
|
-
removeDraftOrder(
|
|
334
|
+
removeDraftOrder(orderId: string, updatedBy: string): Promise<any>;
|
|
387
335
|
/**
|
|
388
|
-
*
|
|
336
|
+
* Cancel product in order
|
|
389
337
|
* @param orderId - The id of order
|
|
390
338
|
* @param orderItemId - Thi id of item order
|
|
391
339
|
* @param reason - The reason of cancel product in order
|
|
@@ -394,7 +342,7 @@ export declare class OrderService extends Service {
|
|
|
394
342
|
*/
|
|
395
343
|
cancelProductInOrder(orderId: string, orderItemId: string, reason: string): Promise<any>;
|
|
396
344
|
/**
|
|
397
|
-
*
|
|
345
|
+
* Remove Product in order
|
|
398
346
|
* @param orderId - The id of order
|
|
399
347
|
* @param orderItemId - Thi id of item order
|
|
400
348
|
* @param reason - The reason of cancel product in order
|
|
@@ -403,7 +351,7 @@ export declare class OrderService extends Service {
|
|
|
403
351
|
*/
|
|
404
352
|
removeProductInOrder(orderId: string, orderItemId: string, reason: string): Promise<any>;
|
|
405
353
|
/**
|
|
406
|
-
*
|
|
354
|
+
* Print order pdf
|
|
407
355
|
* @param orderId - The id of order
|
|
408
356
|
* @param paymentMethod - Thi id of item order
|
|
409
357
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -411,7 +359,7 @@ export declare class OrderService extends Service {
|
|
|
411
359
|
*/
|
|
412
360
|
printOrderPdf(orderId: string, paymentMethod: string): Promise<any>;
|
|
413
361
|
/**
|
|
414
|
-
*
|
|
362
|
+
* Print order HTML
|
|
415
363
|
* @param orderId - The id of order
|
|
416
364
|
* @param paymentMethod - Thi id of item order
|
|
417
365
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
@@ -419,17 +367,83 @@ export declare class OrderService extends Service {
|
|
|
419
367
|
*/
|
|
420
368
|
printOrderHtml(orderId: string, paymentMethod: string): Promise<any>;
|
|
421
369
|
/**
|
|
422
|
-
*
|
|
370
|
+
* Create an orderReturn
|
|
423
371
|
* @param orderData - The id of order
|
|
424
372
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
425
373
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
426
374
|
*/
|
|
427
375
|
createOrderReturn(orderData: any): Promise<any>;
|
|
428
376
|
/**
|
|
429
|
-
*
|
|
430
|
-
* @param orderData - The
|
|
377
|
+
* Caculate the order
|
|
378
|
+
* @param orderData - The data from the order
|
|
431
379
|
* @returns A promise that resolves when the customer and shipping address are updated.
|
|
432
380
|
* @throws If an error occurs while updating the customer and shipping address.
|
|
433
381
|
*/
|
|
434
382
|
calculateOrder(orderData: any): Promise<any>;
|
|
383
|
+
/**
|
|
384
|
+
* get amount product able order
|
|
385
|
+
* @param productIds - The id of product
|
|
386
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
387
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
388
|
+
*/
|
|
389
|
+
getQuantityAbleOrder(productIds: string[]): Promise<any>;
|
|
390
|
+
/**
|
|
391
|
+
* updatee note without login
|
|
392
|
+
* @param orderId - The id of the order
|
|
393
|
+
* @param noteId - The id of the note
|
|
394
|
+
* @param note - The content of the note
|
|
395
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
396
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
397
|
+
*/
|
|
398
|
+
updateNoteWithoutLogin(orderId: string, noteId: string, note: string): Promise<any>;
|
|
399
|
+
/**
|
|
400
|
+
* add voucher without login
|
|
401
|
+
* @param orderId - The id of the order
|
|
402
|
+
* @param voucherCode - The code of voucher
|
|
403
|
+
* @param updatedBy
|
|
404
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
405
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
406
|
+
*/
|
|
407
|
+
addVoucherWithoutLogin(orderId: string, voucherCode: string, updatedBy: "SYSTEM"): Promise<any>;
|
|
408
|
+
/**
|
|
409
|
+
* delete voucher without login
|
|
410
|
+
* @param orderId - The id of the order
|
|
411
|
+
* @param voucherCode - The code of voucher
|
|
412
|
+
* @param updatedBy
|
|
413
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
414
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
415
|
+
*/
|
|
416
|
+
deleteVoucherLogin(orderId: string, voucherCode: string, updatedBy: "SYSTEM"): Promise<any>;
|
|
417
|
+
/**
|
|
418
|
+
* get list note without login
|
|
419
|
+
* @param orderId - The id of the order
|
|
420
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
421
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
422
|
+
*/
|
|
423
|
+
getListNoteWithoutLogin(orderId: string): Promise<any>;
|
|
424
|
+
/**
|
|
425
|
+
* create note without login
|
|
426
|
+
* @param orderId - The id of the order
|
|
427
|
+
* @param createdBy
|
|
428
|
+
* @param note
|
|
429
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
430
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
431
|
+
*/
|
|
432
|
+
createNoteWithoutLogin(orderId: string, createdBy: string, note: string): Promise<any>;
|
|
433
|
+
/**
|
|
434
|
+
* get list order realation
|
|
435
|
+
* @param orderIds
|
|
436
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
437
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
438
|
+
*/
|
|
439
|
+
getListOrderRelationsWithoutLogin(orderIds: string[]): Promise<any>;
|
|
440
|
+
/**
|
|
441
|
+
* get list order realation
|
|
442
|
+
* @param orderId - The id of order
|
|
443
|
+
* @param noteId - The id of note
|
|
444
|
+
* @param deletedBy - The id of person delete
|
|
445
|
+
* @returns A prom that resolves when the customer and shipping address are updated.
|
|
446
|
+
* @throws If an error occurs while updating the customer and shipping address.
|
|
447
|
+
*/
|
|
448
|
+
deleteNoteWithoutLogin(orderId: string, noteId: string, deletedBy: string): Promise<any>;
|
|
435
449
|
}
|