@be-link/pos-cli-nodejs 0.0.141 → 0.0.143

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.141",
3
+ "version": "0.0.143",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -685,6 +685,12 @@ export declare namespace Service {
685
685
  * @path /query/user/get-order-invoice-by-order-id
686
686
  */
687
687
  getOrderInvoiceByOrderId(request: any): Promise<DTO.IPositiveOrderInvoice>;
688
+ /**
689
+ * 根据发票 id 查询发票
690
+ * @returns 开票记录
691
+ * @path /query/user/get-order-invoice-by-invoice-id
692
+ */
693
+ getOrderInvoiceByInvoiceId(request: any): Promise<DTO.IPositiveOrderInvoice>;
688
694
  /**
689
695
  * 根据订单id查询订单
690
696
  * @path /query/user/get-order-by-id
@@ -6,6 +6,7 @@ declare class QueryByUserService extends BaseService implements Service.QueryByU
6
6
  listOrderInvoiceCount(request: Service.Request.getOrderInvoiceRequest): Promise<number>;
7
7
  listOrderInvoice(request: Service.Request.getOrderInvoiceRequest): Promise<DTO.IPositiveOrderInvoice[]>;
8
8
  getOrderInvoiceByOrderId(request: any): Promise<DTO.IPositiveOrderInvoice>;
9
+ getOrderInvoiceByInvoiceId(request: any): Promise<DTO.IPositiveOrderInvoice>;
9
10
  getOrderById<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.getOrderById<K>): Promise<DTO.QueryDataRes<K>>;
10
11
  queryOrderByIdList<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryOrderByIdList<K>): Promise<DTO.QueryDataRes<K>[]>;
11
12
  queryUserOrder<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.queryUserOrder<K>): Promise<DTO.QueryDataRes<K>[]>;
@@ -19,6 +19,9 @@ class QueryByUserService extends service_1.default {
19
19
  getOrderInvoiceByOrderId(request) {
20
20
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderInvoiceByOrderId), request);
21
21
  }
22
+ getOrderInvoiceByInvoiceId(request) {
23
+ return (0, http_1.callApi)(this.getApiUrl(this.getOrderInvoiceByInvoiceId), request);
24
+ }
22
25
  getOrderById(request) {
23
26
  return (0, http_1.callApi)(this.getApiUrl(this.getOrderById), request);
24
27
  }
package/types.d.ts CHANGED
@@ -882,9 +882,11 @@ export interface IPositiveOrderInvoice {
882
882
  receivingMobile?: string;
883
883
  };
884
884
  /** 商品名称 */
885
- itemName: string;
885
+ itemName?: string;
886
886
  /** 二级类目*/
887
- categoryTwo: string;
887
+ categoryTwo?: string;
888
+ /** 备注 */
889
+ remark?: string;
888
890
  }
889
891
  /** 订单查询结果 */
890
892
  export type QueryDataRes<K extends (keyof QueryDataBlockTypeMap)[]> = {