@be-link/pos-cli-nodejs 1.0.222 → 1.0.224
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/package.json +1 -1
- package/pos/modules/orderCore/service.d.ts +1 -0
- package/pos/modules/orderCore/service.js +3 -0
- package/pos/modules/orderCore/types.d.ts +13 -0
- package/pos/modules/tongcheng/service.d.ts +1 -1
- package/pos/modules/tongcheng/service.js +2 -2
- package/pos/modules/tongcheng/types.d.ts +14 -11
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@ declare class OrderCoreService extends BaseService implements Service.OrderCoreC
|
|
|
13
13
|
platformReject(request: Service.Request.platformReject): Promise<void>;
|
|
14
14
|
supplierRejected(request: Service.Request.supplierRejected): Promise<void | Service.BatchDealResult>;
|
|
15
15
|
supplierConfirmed(request: Service.Request.supplierConfirmed): Promise<void | Service.BatchDealResult>;
|
|
16
|
+
supplierReconfirm(request: Service.Request.supplierReconfirm): Promise<void>;
|
|
16
17
|
submittedToSupplier(request: Service.Request.submittedToSupplier): Promise<void>;
|
|
17
18
|
sendOrderPaidNotification(request: Service.Request.sendOrderPaidNotification): Promise<void>;
|
|
18
19
|
orderSettled(request: Service.Request.orderSettled): Promise<void>;
|
|
@@ -40,6 +40,9 @@ class OrderCoreService extends service_1.default {
|
|
|
40
40
|
supplierConfirmed(request) {
|
|
41
41
|
return (0, http_1.callApi)(this.getApiUrl(this.supplierConfirmed), request);
|
|
42
42
|
}
|
|
43
|
+
supplierReconfirm(request) {
|
|
44
|
+
return (0, http_1.callApi)(this.getApiUrl(this.supplierReconfirm), request);
|
|
45
|
+
}
|
|
43
46
|
submittedToSupplier(request) {
|
|
44
47
|
return (0, http_1.callApi)(this.getApiUrl(this.submittedToSupplier), request);
|
|
45
48
|
}
|
|
@@ -279,6 +279,14 @@ export declare namespace Service {
|
|
|
279
279
|
/** 操作人角色 */
|
|
280
280
|
operatorRole: PosConstants.TradeOperatorRoleEnum;
|
|
281
281
|
}
|
|
282
|
+
interface supplierReconfirm {
|
|
283
|
+
/** 订单id(仅主单) */
|
|
284
|
+
tradeOrderId: string;
|
|
285
|
+
/** 操作人 */
|
|
286
|
+
operator: string;
|
|
287
|
+
/** 操作人角色 */
|
|
288
|
+
operatorRole: PosConstants.TradeOperatorRoleEnum;
|
|
289
|
+
}
|
|
282
290
|
interface sendOrderPaidNotification {
|
|
283
291
|
/** 订单Id */
|
|
284
292
|
tradeOrderId: string;
|
|
@@ -582,6 +590,11 @@ export declare namespace Service {
|
|
|
582
590
|
* @path /core/supplier-confirmed
|
|
583
591
|
*/
|
|
584
592
|
supplierConfirmed(request: Request.supplierConfirmed): Promise<void | BatchDealResult>;
|
|
593
|
+
/**
|
|
594
|
+
* 商家重新接单:已拒单的酒店订单直接推进到待履约(仅主单)
|
|
595
|
+
* @path /core/supplier-reconfirm
|
|
596
|
+
*/
|
|
597
|
+
supplierReconfirm(request: Request.supplierReconfirm): Promise<void>;
|
|
585
598
|
/**
|
|
586
599
|
* 提交给供应商
|
|
587
600
|
* @path /core/submitted-to-supplier
|
|
@@ -3,7 +3,7 @@ import { Service } from './types';
|
|
|
3
3
|
declare class TongchengService extends BaseService implements Service.TongchengController {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
5
|
searchBindingOrders(request: Service.Request.SearchBindingOrders): Promise<Service.Response.SearchBindingOrders>;
|
|
6
|
-
|
|
6
|
+
getBindingContext(request: Service.Request.GetBindingContext): Promise<Service.Response.GetBindingContext>;
|
|
7
7
|
getPositiveOrderRelation(request: Service.Request.GetPositiveOrderRelation): Promise<Service.Response.GetPositiveOrderRelation>;
|
|
8
8
|
confirmBindOrder(request: Service.Request.ConfirmBindOrder): Promise<Service.Response.ConfirmBindOrder>;
|
|
9
9
|
createBindingToken(request: Service.Request.CreateBindingToken): Promise<Service.Response.CreateBindingToken>;
|
|
@@ -13,8 +13,8 @@ class TongchengService extends service_1.default {
|
|
|
13
13
|
searchBindingOrders(request) {
|
|
14
14
|
return (0, http_1.callApi)(this.getApiUrl(this.searchBindingOrders), request);
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
return (0, http_1.callApi)(this.getApiUrl(this.
|
|
16
|
+
getBindingContext(request) {
|
|
17
|
+
return (0, http_1.callApi)(this.getApiUrl(this.getBindingContext), request);
|
|
18
18
|
}
|
|
19
19
|
getPositiveOrderRelation(request) {
|
|
20
20
|
return (0, http_1.callApi)(this.getApiUrl(this.getPositiveOrderRelation), request);
|
|
@@ -15,9 +15,12 @@ export declare namespace Service {
|
|
|
15
15
|
fulfillAt: number;
|
|
16
16
|
createdAt: number;
|
|
17
17
|
};
|
|
18
|
-
type
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
type TongchengBindingContext = {
|
|
19
|
+
tongchengOrderId: string;
|
|
20
|
+
positiveOrderId: string;
|
|
21
|
+
unionId: string;
|
|
22
|
+
fromUnionId: string;
|
|
23
|
+
fromUserRole: string;
|
|
21
24
|
};
|
|
22
25
|
type ConfirmBindOrderResult = {
|
|
23
26
|
positiveOrderId: string;
|
|
@@ -31,9 +34,9 @@ export declare namespace Service {
|
|
|
31
34
|
guestName: string;
|
|
32
35
|
guestMobile: string;
|
|
33
36
|
};
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
type GetBindingContext = {
|
|
38
|
+
unionId: string;
|
|
39
|
+
token: string;
|
|
37
40
|
};
|
|
38
41
|
type GetPositiveOrderRelation = {
|
|
39
42
|
positiveOrderId: string;
|
|
@@ -57,7 +60,7 @@ export declare namespace Service {
|
|
|
57
60
|
fromUserRole: string;
|
|
58
61
|
};
|
|
59
62
|
type searchBindingOrders = SearchBindingOrders;
|
|
60
|
-
type
|
|
63
|
+
type getBindingContext = GetBindingContext;
|
|
61
64
|
type getPositiveOrderRelation = GetPositiveOrderRelation;
|
|
62
65
|
type confirmBindOrder = ConfirmBindOrder;
|
|
63
66
|
type createBindingToken = CreateBindingToken;
|
|
@@ -124,12 +127,12 @@ export declare namespace Service {
|
|
|
124
127
|
updatedAt: number;
|
|
125
128
|
}
|
|
126
129
|
type SearchBindingOrders = BindingOrderSummary[];
|
|
127
|
-
type
|
|
130
|
+
type GetBindingContext = TongchengBindingContext;
|
|
128
131
|
type GetPositiveOrderRelation = TongchengPositiveOrderRelation | null;
|
|
129
132
|
type ConfirmBindOrder = ConfirmBindOrderResult;
|
|
130
133
|
type CreateBindingToken = CreateBindingTokenResult;
|
|
131
134
|
type searchBindingOrders = SearchBindingOrders;
|
|
132
|
-
type
|
|
135
|
+
type getBindingContext = GetBindingContext;
|
|
133
136
|
type getPositiveOrderRelation = GetPositiveOrderRelation;
|
|
134
137
|
type confirmBindOrder = ConfirmBindOrder;
|
|
135
138
|
type createBindingToken = CreateBindingToken;
|
|
@@ -137,8 +140,8 @@ export declare namespace Service {
|
|
|
137
140
|
interface TongchengController {
|
|
138
141
|
/** @path /tongcheng/search-binding-orders */
|
|
139
142
|
searchBindingOrders(request: Request.SearchBindingOrders): Promise<Response.SearchBindingOrders>;
|
|
140
|
-
/** @path /tongcheng/get-binding-
|
|
141
|
-
|
|
143
|
+
/** @path /tongcheng/get-binding-context */
|
|
144
|
+
getBindingContext(request: Request.GetBindingContext): Promise<Response.GetBindingContext>;
|
|
142
145
|
/**
|
|
143
146
|
* 根据 POS 订单 ID、同程订单 ID 或二者查询关联。
|
|
144
147
|
* 两个 ID 同时提供时,仅在二者属于同一关联时返回结果;未命中返回 null。
|