@be-link/ecommerce-trade-service-node-sdk 0.1.88 → 0.1.90
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/enums.d.ts +9 -0
- package/enums.js +10 -0
- package/modules/pos/orderCore/types.d.ts +2 -0
- package/modules/pos/orderQuery/types.d.ts +8 -0
- package/package.json +1 -1
- package/types.d.ts +8 -0
package/enums.d.ts
CHANGED
|
@@ -62,6 +62,15 @@ export declare namespace ENUM {
|
|
|
62
62
|
/** 支付失败 */
|
|
63
63
|
FAILED = "FAILED"
|
|
64
64
|
}
|
|
65
|
+
/** 微信支付方式 */
|
|
66
|
+
enum WePayWay {
|
|
67
|
+
/** H5支付 */
|
|
68
|
+
H5 = "H5",
|
|
69
|
+
/** 小程序JSAPI支付 */
|
|
70
|
+
JSAPI = "JSAPI",
|
|
71
|
+
/** APP支付 */
|
|
72
|
+
APP = "APP"
|
|
73
|
+
}
|
|
65
74
|
/** 退款状态 */
|
|
66
75
|
enum OrderRefundStatus {
|
|
67
76
|
/** 无售后 */
|
package/enums.js
CHANGED
|
@@ -71,6 +71,16 @@ var ENUM;
|
|
|
71
71
|
/** 支付失败 */
|
|
72
72
|
OrderPayStatus["FAILED"] = "FAILED";
|
|
73
73
|
})(OrderPayStatus = ENUM.OrderPayStatus || (ENUM.OrderPayStatus = {}));
|
|
74
|
+
/** 微信支付方式 */
|
|
75
|
+
let WePayWay;
|
|
76
|
+
(function (WePayWay) {
|
|
77
|
+
/** H5支付 */
|
|
78
|
+
WePayWay["H5"] = "H5";
|
|
79
|
+
/** 小程序JSAPI支付 */
|
|
80
|
+
WePayWay["JSAPI"] = "JSAPI";
|
|
81
|
+
/** APP支付 */
|
|
82
|
+
WePayWay["APP"] = "APP";
|
|
83
|
+
})(WePayWay = ENUM.WePayWay || (ENUM.WePayWay = {}));
|
|
74
84
|
/** 退款状态 */
|
|
75
85
|
let OrderRefundStatus;
|
|
76
86
|
(function (OrderRefundStatus) {
|
|
@@ -253,6 +253,8 @@ export declare namespace PosOrderQueryService {
|
|
|
253
253
|
couponId: string;
|
|
254
254
|
/** 核销状态:UNVERIFIED-未核销,VERIFIED-已核销,EXPIRED-已过期 */
|
|
255
255
|
status: ENUM.CouponVerificationStatus;
|
|
256
|
+
/** 门店ID */
|
|
257
|
+
storeId?: string;
|
|
256
258
|
}
|
|
257
259
|
}
|
|
258
260
|
namespace Response {
|
|
@@ -282,6 +284,10 @@ export declare namespace PosOrderQueryService {
|
|
|
282
284
|
productDispatch: string;
|
|
283
285
|
orderType: ENUM.OrderType;
|
|
284
286
|
liveRoomGroupName?: string;
|
|
287
|
+
/** 直播间ID */
|
|
288
|
+
liveRoomId?: string;
|
|
289
|
+
/** 直播间名称 */
|
|
290
|
+
liveRoomName?: string;
|
|
285
291
|
/** 门店ID */
|
|
286
292
|
storeId?: string;
|
|
287
293
|
/** 门店名称 */
|
|
@@ -474,6 +480,8 @@ export declare namespace PosOrderQueryService {
|
|
|
474
480
|
orderType: ENUM.OrderType;
|
|
475
481
|
dispatchWay: string;
|
|
476
482
|
productPick: string;
|
|
483
|
+
/** 直播间名称 */
|
|
484
|
+
liveRoomName?: string;
|
|
477
485
|
store: {
|
|
478
486
|
storeId: string;
|
|
479
487
|
storeName: string;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -200,6 +200,8 @@ export interface IBizExtraInfo {
|
|
|
200
200
|
skuId: string;
|
|
201
201
|
/** 退款金额(资金类型时) */
|
|
202
202
|
amount?: number;
|
|
203
|
+
/** 订单总金额(资金类型时) */
|
|
204
|
+
totalAmount?: number;
|
|
203
205
|
/** 退款积分数量(积分类型时) */
|
|
204
206
|
pointNum?: number;
|
|
205
207
|
/** 退款券列表(优惠券类型时) */
|
|
@@ -208,6 +210,10 @@ export interface IBizExtraInfo {
|
|
|
208
210
|
name: string;
|
|
209
211
|
code: string;
|
|
210
212
|
}[];
|
|
213
|
+
/** 小程序 appId(资金类型时,从支付记录获取) */
|
|
214
|
+
appId?: string;
|
|
215
|
+
/** 支付渠道(资金类型时,用于退款) */
|
|
216
|
+
payChannel?: ENUM.PayChannel;
|
|
211
217
|
/** 商户号信息(资金类型时,用于退款) */
|
|
212
218
|
merchantInfo?: IMerchantInfo;
|
|
213
219
|
}
|
|
@@ -274,6 +280,8 @@ export interface PosOrderPayload {
|
|
|
274
280
|
quantity?: number;
|
|
275
281
|
/** 订单实付金额 */
|
|
276
282
|
actualAmount?: number;
|
|
283
|
+
/** 剩余可退金额 */
|
|
284
|
+
remainingAmount?: number;
|
|
277
285
|
/** 直播间ID */
|
|
278
286
|
liveRoomId?: string;
|
|
279
287
|
}
|