@be-link/ecommerce-trade-service-node-sdk 0.1.8 → 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 +1 -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
|
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
|
+
}
|