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

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.133",
3
+ "version": "0.0.135",
4
4
  "description": "正向订单服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -670,6 +670,12 @@ export declare namespace Service {
670
670
  * @path /query/user/list-order-invoice
671
671
  */
672
672
  listOrderInvoice(request: Request.getOrderInvoiceRequest): Promise<DTO.IPositiveOrderInvoice[]>;
673
+ /**
674
+ * list开票记录
675
+ * @returns 开票记录
676
+ * @path /query/user/list-order-invoice-count
677
+ */
678
+ listOrderInvoiceCount(request: Request.getOrderInvoiceRequest): Promise<number>;
673
679
  /**
674
680
  * 根据订单id查询开票记录
675
681
  * @returns 开票记录
@@ -3,6 +3,7 @@ import { Service } from './types';
3
3
  import * as DTO from '../../../types';
4
4
  declare class QueryByUserService extends BaseService implements Service.QueryByUserController {
5
5
  protected prefixUrl: string;
6
+ listOrderInvoiceCount(request: Service.Request.getOrderInvoiceRequest): Promise<number>;
6
7
  listOrderInvoice(request: Service.Request.getOrderInvoiceRequest): Promise<DTO.IPositiveOrderInvoice[]>;
7
8
  getOrderInvoiceByOrderId(request: any): Promise<DTO.IPositiveOrderInvoice>;
8
9
  getOrderById<K extends (keyof DTO.QueryDataBlockTypeMap)[]>(request: Service.Request.getOrderById<K>): Promise<DTO.QueryDataRes<K>>;
@@ -10,6 +10,9 @@ class QueryByUserService extends service_1.default {
10
10
  super(...arguments);
11
11
  this.prefixUrl = '/query/user';
12
12
  }
13
+ listOrderInvoiceCount(request) {
14
+ return (0, http_1.callApi)(this.getApiUrl(this.listOrderInvoiceCount), request);
15
+ }
13
16
  listOrderInvoice(request) {
14
17
  return (0, http_1.callApi)(this.getApiUrl(this.listOrderInvoice), request);
15
18
  }
package/types.d.ts CHANGED
@@ -868,6 +868,8 @@ export interface IPositiveOrderInvoice {
868
868
  url?: string;
869
869
  /** 开票方 */
870
870
  invoiceBase?: string;
871
+ /** 开票金额 */
872
+ invoiceMoney?: number;
871
873
  /** 收货地址 */
872
874
  receivingExtraInfo?: {
873
875
  /** 收货地址 */