@be-link/pos-cli-nodejs 0.0.132 → 0.0.134
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
|
@@ -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<
|
|
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<
|
|
225
|
+
orderCreateInvoice(request: Request.createOrderInvoice): Promise<DTO.IPositiveOrderInvoice>;
|
|
226
226
|
/**
|
|
227
227
|
* 订单创建
|
|
228
228
|
* @path /core/order-create
|
|
@@ -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
|
}
|