@be-link/ecommerce-trade-service-node-sdk 0.1.7 → 0.1.9
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/consts.d.ts +2 -0
- package/consts.js +3 -1
- package/modules/pos/orderQuery/types.d.ts +7 -1
- package/package.json +1 -1
- package/types.d.ts +10 -0
package/consts.d.ts
CHANGED
|
@@ -14,5 +14,7 @@ export declare const ReverseRefundWayMap: Record<ENUM.ReverseRefundWay, string>;
|
|
|
14
14
|
export declare const PayChannelMap: Record<ENUM.PayChannel, string>;
|
|
15
15
|
export declare const PayPlatformMap: Record<ENUM.PayPlatform, string>;
|
|
16
16
|
export declare const PayWayMap: Record<ENUM.PayWay, string>;
|
|
17
|
+
/** 交易 MQ */
|
|
18
|
+
export declare const TradeVHOST = "etrade";
|
|
17
19
|
export declare const POSTopicName = "trade-positive-topic";
|
|
18
20
|
export declare const ROSTopicName = "trade-reverse-topic";
|
package/consts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROSTopicName = exports.POSTopicName = exports.PayWayMap = exports.PayPlatformMap = exports.PayChannelMap = exports.ReverseRefundWayMap = exports.ReverseRefundTypeMap = exports.ReverseArrivalStatusMap = exports.ReverseOrderStatusMap = exports.ReverseResourceTypeMap = exports.OrderVerificationStatusMap = exports.OrderRefundStatusMap = exports.OrderPayStatusMap = exports.OrderStatusMap = exports.OrderOsTypeMap = exports.OrderPlatformMap = exports.OrderSourceMap = void 0;
|
|
3
|
+
exports.ROSTopicName = exports.POSTopicName = exports.TradeVHOST = exports.PayWayMap = exports.PayPlatformMap = exports.PayChannelMap = exports.ReverseRefundWayMap = exports.ReverseRefundTypeMap = exports.ReverseArrivalStatusMap = exports.ReverseOrderStatusMap = exports.ReverseResourceTypeMap = exports.OrderVerificationStatusMap = exports.OrderRefundStatusMap = exports.OrderPayStatusMap = exports.OrderStatusMap = exports.OrderOsTypeMap = exports.OrderPlatformMap = exports.OrderSourceMap = void 0;
|
|
4
4
|
const enums_1 = require("./enums");
|
|
5
5
|
exports.OrderSourceMap = {
|
|
6
6
|
[enums_1.ENUM.OrderSource.LIVE]: '直播订单',
|
|
@@ -93,6 +93,8 @@ exports.PayWayMap = {
|
|
|
93
93
|
[enums_1.ENUM.PayWay.POINTS]: '积分',
|
|
94
94
|
[enums_1.ENUM.PayWay.VOUCHER]: '核销券',
|
|
95
95
|
};
|
|
96
|
+
/** 交易 MQ */
|
|
97
|
+
exports.TradeVHOST = 'etrade';
|
|
96
98
|
// 交易 正向订单 TOPIC
|
|
97
99
|
exports.POSTopicName = 'trade-positive-topic';
|
|
98
100
|
// 逆向订单 TOPIC
|
|
@@ -411,6 +411,8 @@ export declare namespace PosOrderQueryService {
|
|
|
411
411
|
totalAmount: number;
|
|
412
412
|
/** 订单状态 */
|
|
413
413
|
orderStatus: ENUM.OrderStatus;
|
|
414
|
+
/** 订单退款状态 */
|
|
415
|
+
refundStatus: ENUM.OrderRefundStatus;
|
|
414
416
|
/** 商品主图URL */
|
|
415
417
|
productImage: string;
|
|
416
418
|
/** 商品提货方式 */
|
|
@@ -463,6 +465,8 @@ export declare namespace PosOrderQueryService {
|
|
|
463
465
|
receiverPhone: string;
|
|
464
466
|
/** 收货地址 */
|
|
465
467
|
detailAddress?: string;
|
|
468
|
+
/** 申请退款状态 */
|
|
469
|
+
applyRefund: ENUM.ApplyRefundStatus;
|
|
466
470
|
};
|
|
467
471
|
/** 商品信息 */
|
|
468
472
|
product: {
|
|
@@ -494,6 +498,8 @@ export declare namespace PosOrderQueryService {
|
|
|
494
498
|
};
|
|
495
499
|
/** 退款订单记录 */
|
|
496
500
|
refund: {
|
|
501
|
+
/** 退款订单ID */
|
|
502
|
+
reverseOrderId: string;
|
|
497
503
|
/** 退款订单状态 */
|
|
498
504
|
status: ENUM.ReverseOrderStatus;
|
|
499
505
|
/** 退款金额 */
|
|
@@ -563,7 +569,7 @@ export declare namespace PosOrderQueryService {
|
|
|
563
569
|
/** 预支付ID */
|
|
564
570
|
prepayId: string;
|
|
565
571
|
/** 微信支付请求参数 */
|
|
566
|
-
payment:
|
|
572
|
+
payment: DTO.IWePayParam;
|
|
567
573
|
}
|
|
568
574
|
}
|
|
569
575
|
interface QueryController {
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -237,3 +237,13 @@ export interface RosOrderPayload {
|
|
|
237
237
|
/** 退款份数 */
|
|
238
238
|
quantity: number;
|
|
239
239
|
}
|
|
240
|
+
/** 支付参数 */
|
|
241
|
+
/** 微信支付参数 */
|
|
242
|
+
export interface IWePayParam {
|
|
243
|
+
appId: string;
|
|
244
|
+
timeStamp: string;
|
|
245
|
+
nonceStr: string;
|
|
246
|
+
package: string;
|
|
247
|
+
signType: string;
|
|
248
|
+
paySign: string;
|
|
249
|
+
}
|