@be-link/pos-cli-nodejs 0.0.130 → 0.0.132
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,23 +4,23 @@ export declare namespace Service {
|
|
|
4
4
|
namespace Request {
|
|
5
5
|
interface createOrderInvoice {
|
|
6
6
|
/** 快照:订单ID */
|
|
7
|
-
tradeOrderId
|
|
7
|
+
tradeOrderId?: string;
|
|
8
8
|
/** 开票类型 */
|
|
9
|
-
invoiceType
|
|
9
|
+
invoiceType?: string;
|
|
10
10
|
/** 发票抬头 */
|
|
11
|
-
invoiceHeader
|
|
11
|
+
invoiceHeader?: string;
|
|
12
12
|
/** 发票抬头类型 */
|
|
13
|
-
invoiceHeaderType
|
|
13
|
+
invoiceHeaderType?: string;
|
|
14
14
|
/** 税号 */
|
|
15
|
-
taxNumber
|
|
15
|
+
taxNumber?: string;
|
|
16
16
|
/** address */
|
|
17
|
-
address
|
|
17
|
+
address?: string;
|
|
18
18
|
/** 注册电话 */
|
|
19
|
-
mobile
|
|
19
|
+
mobile?: string;
|
|
20
20
|
/** 开户银行 */
|
|
21
|
-
bankBase
|
|
21
|
+
bankBase?: string;
|
|
22
22
|
/** 银行账号 */
|
|
23
|
-
bankAccount
|
|
23
|
+
bankAccount?: string;
|
|
24
24
|
/** 收货地址 */
|
|
25
25
|
receivingExtraInfo?: {
|
|
26
26
|
/** 收货地址 */
|
|
@@ -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(
|
|
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(
|
|
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(
|
|
17
|
-
return (0, http_1.callApi)(this.getApiUrl(this.getOrderInvoiceByOrderId),
|
|
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);
|
package/types.d.ts
CHANGED
|
@@ -837,37 +837,37 @@ export interface QueryDataBlockTypeMap {
|
|
|
837
837
|
}
|
|
838
838
|
export interface IPositiveOrderInvoice {
|
|
839
839
|
/** ID */
|
|
840
|
-
id
|
|
840
|
+
id?: string;
|
|
841
841
|
/** status */
|
|
842
|
-
status
|
|
842
|
+
status?: string;
|
|
843
843
|
/** 创建时间 */
|
|
844
|
-
createdAt
|
|
844
|
+
createdAt?: number;
|
|
845
845
|
/** 更新时间 */
|
|
846
|
-
updatedAt
|
|
846
|
+
updatedAt?: number;
|
|
847
847
|
/** 是否删除 0否1是 */
|
|
848
|
-
isDeleted
|
|
848
|
+
isDeleted?: number;
|
|
849
849
|
/** 快照:订单ID */
|
|
850
|
-
tradeOrderId
|
|
850
|
+
tradeOrderId?: string;
|
|
851
851
|
/** 开票类型 */
|
|
852
|
-
invoiceType
|
|
852
|
+
invoiceType?: string;
|
|
853
853
|
/** 发票抬头 */
|
|
854
|
-
invoiceHeader
|
|
854
|
+
invoiceHeader?: string;
|
|
855
855
|
/** 发票抬头类型 */
|
|
856
|
-
invoiceHeaderType
|
|
856
|
+
invoiceHeaderType?: string;
|
|
857
857
|
/** 税号 */
|
|
858
|
-
taxNumber
|
|
858
|
+
taxNumber?: string;
|
|
859
859
|
/** address */
|
|
860
|
-
address
|
|
860
|
+
address?: string;
|
|
861
861
|
/** 注册电话 */
|
|
862
|
-
mobile
|
|
862
|
+
mobile?: string;
|
|
863
863
|
/** 开户银行 */
|
|
864
|
-
bankBase
|
|
864
|
+
bankBase?: string;
|
|
865
865
|
/** 银行账号 */
|
|
866
|
-
bankAccount
|
|
866
|
+
bankAccount?: string;
|
|
867
867
|
/** url */
|
|
868
|
-
url
|
|
868
|
+
url?: string;
|
|
869
869
|
/** 开票方 */
|
|
870
|
-
invoiceBase
|
|
870
|
+
invoiceBase?: string;
|
|
871
871
|
/** 收货地址 */
|
|
872
872
|
receivingExtraInfo?: {
|
|
873
873
|
/** 收货地址 */
|