@be-link/pos-cli-nodejs 0.0.131 → 0.0.133

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": "0.0.131",
3
+ "version": "0.0.133",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,7 +4,7 @@ import { IPositiveOrderInvoice } from '../../../types';
4
4
  declare class OrderCoreService extends BaseService implements Service.OrderCoreController {
5
5
  protected prefixUrl: string;
6
6
  updateOrderInvoice(request: IPositiveOrderInvoice): Promise<string>;
7
- orderCreateInvoice(request: IPositiveOrderInvoice): Promise<string>;
7
+ orderCreateInvoice(request: IPositiveOrderInvoice): Promise<IPositiveOrderInvoice>;
8
8
  onRefundTrigger(request: Service.Request.onRefundTrigger): Promise<void>;
9
9
  orderCreate(request: Service.Request.orderCreate): Promise<Service.Response.orderCreate>;
10
10
  thirdOrderInfoConfirmed(request: Service.Request.thirdOrderInfoConfirmed): Promise<void>;
@@ -222,7 +222,7 @@ export declare namespace Service {
222
222
  * 订单发票创建
223
223
  * @path /core/order-create-invoice
224
224
  */
225
- orderCreateInvoice(request: Request.createOrderInvoice): Promise<string>;
225
+ orderCreateInvoice(request: Request.createOrderInvoice): Promise<DTO.IPositiveOrderInvoice>;
226
226
  /**
227
227
  * 订单创建
228
228
  * @path /core/order-create
@@ -675,7 +675,7 @@ export declare namespace Service {
675
675
  * @returns 开票记录
676
676
  * @path /query/user/get-order-invoice-by-order-id
677
677
  */
678
- getOrderInvoiceByOrderId(orderId: string): Promise<DTO.IPositiveOrderInvoice>;
678
+ getOrderInvoiceByOrderId(request: any): Promise<DTO.IPositiveOrderInvoice>;
679
679
  /**
680
680
  * 根据订单id查询订单
681
681
  * @path /query/user/get-order-by-id
@@ -4,7 +4,7 @@ import * as DTO from '../../../types';
4
4
  declare class QueryByUserService extends BaseService implements Service.QueryByUserController {
5
5
  protected prefixUrl: string;
6
6
  listOrderInvoice(request: Service.Request.getOrderInvoiceRequest): Promise<DTO.IPositiveOrderInvoice[]>;
7
- getOrderInvoiceByOrderId(orderId: string): Promise<DTO.IPositiveOrderInvoice>;
7
+ getOrderInvoiceByOrderId(request: any): Promise<DTO.IPositiveOrderInvoice>;
8
8
  getOrderById<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.getOrderById<K>): Promise<DTO.QueryDataRes<K>>;
9
9
  queryOrderByIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderByIdList<K>): Promise<DTO.QueryDataRes<K>[]>;
10
10
  queryUserOrder<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryUserOrder<K>): Promise<DTO.QueryDataRes<K>[]>;
@@ -13,8 +13,8 @@ class QueryByUserService extends service_1.default {
13
13
  listOrderInvoice(request) {
14
14
  return (0, http_1.callApi)(this.getApiUrl(this.listOrderInvoice), request);
15
15
  }
16
- getOrderInvoiceByOrderId(orderId) {
17
- return (0, http_1.callApi)(this.getApiUrl(this.getOrderInvoiceByOrderId), orderId);
16
+ getOrderInvoiceByOrderId(request) {
17
+ return (0, http_1.callApi)(this.getApiUrl(this.getOrderInvoiceByOrderId), request);
18
18
  }
19
19
  getOrderById(request) {
20
20
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderById), request);