@be-link/pos-cli-nodejs 1.0.22 → 1.0.24

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/pos-cli-nodejs",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -3,6 +3,7 @@ import BaseService from '../service';
3
3
  import { IPositiveOrderInvoice } from '../../../types';
4
4
  declare class OrderCoreService extends BaseService implements Service.OrderCoreController {
5
5
  protected prefixUrl: string;
6
+ orderFulfill(request: Service.Request.orderFulfill): Promise<void>;
6
7
  updateOrderInvoice(request: IPositiveOrderInvoice): Promise<string>;
7
8
  orderCreateInvoice(request: IPositiveOrderInvoice): Promise<IPositiveOrderInvoice>;
8
9
  onRefundTrigger(request: Service.Request.onRefundTrigger): Promise<void>;
@@ -10,6 +10,9 @@ class OrderCoreService extends service_1.default {
10
10
  super(...arguments);
11
11
  this.prefixUrl = '/core';
12
12
  }
13
+ orderFulfill(request) {
14
+ return (0, http_1.callApi)(this.getApiUrl(this.orderFulfill), request);
15
+ }
13
16
  updateOrderInvoice(request) {
14
17
  return (0, http_1.callApi)(this.getApiUrl(this.updateOrderInvoice), request);
15
18
  }
@@ -174,6 +174,14 @@ export declare namespace Service {
174
174
  /** 操作人角色 */
175
175
  operatorRole: PosConstants.TradeOperatorRoleEnum;
176
176
  }
177
+ interface orderFulfill {
178
+ /** 订单Id */
179
+ tradeOrderId: string;
180
+ /** 操作人 */
181
+ operator: 'SYSTEM';
182
+ /** 操作人角色 */
183
+ operatorRole: PosConstants.TradeOperatorRoleEnum;
184
+ }
177
185
  interface changeOrderContactInfo {
178
186
  /** 联系人姓名 */
179
187
  name: string;
@@ -279,6 +287,11 @@ export declare namespace Service {
279
287
  * @path /core/order-settled
280
288
  */
281
289
  orderSettled(request: Request.orderSettled): Promise<void>;
290
+ /**
291
+ * 订单履约
292
+ * @path /core/order-fulfill
293
+ */
294
+ orderFulfill(request: Request.orderFulfill): Promise<void>;
282
295
  /**
283
296
  * 修改联系人信息
284
297
  * @path /core/change-order-contact-info
@@ -13,6 +13,8 @@ export declare namespace Service {
13
13
  tradeOrderId: string;
14
14
  /** 备注类型 */
15
15
  type: PosConstants.NoteTypeEnum;
16
+ /** 备注状态 */
17
+ status?: PosConstants.NoteStatusEnum;
16
18
  }
17
19
  interface queryNoteByOrderIdList {
18
20
  /** 订单Id列表 */