@be-link/ecommerce-trade-service-node-sdk 0.1.9 → 0.1.11
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.
|
@@ -147,6 +147,10 @@ export declare namespace RosOrderQueryService {
|
|
|
147
147
|
arrivalStatus: ENUM.ReverseArrivalStatus;
|
|
148
148
|
/** 审核原因 */
|
|
149
149
|
approvalReason: string;
|
|
150
|
+
/** 退款到账时间 */
|
|
151
|
+
arrivalTime?: number;
|
|
152
|
+
/** 操作人昵称 */
|
|
153
|
+
operatorNickname?: string;
|
|
150
154
|
};
|
|
151
155
|
/** 正向订单信息 */
|
|
152
156
|
positiveOrder: {
|
|
@@ -158,6 +162,28 @@ export declare namespace RosOrderQueryService {
|
|
|
158
162
|
orderStatus: ENUM.OrderStatus;
|
|
159
163
|
/** 核销状态 */
|
|
160
164
|
verificationStatus: ENUM.OrderVerificationStatus;
|
|
165
|
+
/** 订单实付金额 */
|
|
166
|
+
actualAmount: number;
|
|
167
|
+
/** 下单份数 */
|
|
168
|
+
quantity: number;
|
|
169
|
+
};
|
|
170
|
+
/** 用户信息 */
|
|
171
|
+
user: {
|
|
172
|
+
/** 用户ID */
|
|
173
|
+
userId: string;
|
|
174
|
+
/** 用户昵称 */
|
|
175
|
+
nickname?: string;
|
|
176
|
+
};
|
|
177
|
+
/** 商品信息 */
|
|
178
|
+
product: {
|
|
179
|
+
/** 商品ID */
|
|
180
|
+
productId: string;
|
|
181
|
+
/** 商品名称 */
|
|
182
|
+
productName: string;
|
|
183
|
+
/** 规格名称 */
|
|
184
|
+
specName: string;
|
|
185
|
+
/** 规格编码 */
|
|
186
|
+
skuCode: string;
|
|
161
187
|
};
|
|
162
188
|
/** 门店信息 */
|
|
163
189
|
store: {
|
|
@@ -179,6 +205,10 @@ export declare namespace RosOrderQueryService {
|
|
|
179
205
|
/** 数据 */
|
|
180
206
|
data: string[][];
|
|
181
207
|
}
|
|
208
|
+
interface ICountPendingOrders {
|
|
209
|
+
/** 待商家审核的订单数量 */
|
|
210
|
+
count: number;
|
|
211
|
+
}
|
|
182
212
|
}
|
|
183
213
|
interface QueryByWebController {
|
|
184
214
|
orderList(request: RosOrderQueryService.Request.IOrderList): Promise<DTO.ReverseQueryResult[]>;
|
|
@@ -188,6 +218,8 @@ export declare namespace RosOrderQueryService {
|
|
|
188
218
|
getApplyRefundInfo(request: RosOrderQueryService.Request.IGetApplyRefundInfo): Promise<RosOrderQueryService.Response.IGetApplyRefundInfo>;
|
|
189
219
|
/** 获取申请退款待返还的优惠资源信息 */
|
|
190
220
|
getRefundCouponInfo(request: RosOrderQueryService.Request.IGetRefundCouponInfo): Promise<RosOrderQueryService.Response.IGetRefundCouponInfo>;
|
|
221
|
+
/** 统计待商家审核的订单数量 */
|
|
222
|
+
countPendingOrders(): Promise<RosOrderQueryService.Response.ICountPendingOrders>;
|
|
191
223
|
}
|
|
192
224
|
namespace ByUser {
|
|
193
225
|
namespace Request {
|
|
@@ -8,6 +8,7 @@ declare class OrderQueryByWebService extends BaseService implements RosOrderQuer
|
|
|
8
8
|
orderExport(request: RosOrderQueryService.Request.IExportOrderData): Promise<RosOrderQueryService.Response.IExportOrderData>;
|
|
9
9
|
getApplyRefundInfo(request: RosOrderQueryService.Request.IGetApplyRefundInfo): Promise<RosOrderQueryService.Response.IGetApplyRefundInfo>;
|
|
10
10
|
getRefundCouponInfo(request: RosOrderQueryService.Request.IGetRefundCouponInfo): Promise<RosOrderQueryService.Response.IGetRefundCouponInfo>;
|
|
11
|
+
countPendingOrders(): Promise<RosOrderQueryService.Response.ICountPendingOrders>;
|
|
11
12
|
}
|
|
12
13
|
export declare const orderQueryByWebService: OrderQueryByWebService;
|
|
13
14
|
export default orderQueryByWebService;
|
|
@@ -36,6 +36,9 @@ let OrderQueryByWebService = class OrderQueryByWebService extends BaseService_1.
|
|
|
36
36
|
getRefundCouponInfo(request) {
|
|
37
37
|
return (0, http_1.callApi)(this.getApiUrl(this.getRefundCouponInfo), request);
|
|
38
38
|
}
|
|
39
|
+
countPendingOrders() {
|
|
40
|
+
return (0, http_1.callApi)(this.getApiUrl(this.countPendingOrders));
|
|
41
|
+
}
|
|
39
42
|
};
|
|
40
43
|
__decorate([
|
|
41
44
|
(0, tsoa_1.OperationId)('订单列表查询, 给外部服务使用'),
|
|
@@ -62,6 +65,10 @@ __decorate([
|
|
|
62
65
|
(0, tsoa_1.Post)('get-refund-coupon-info'),
|
|
63
66
|
__param(0, (0, tsoa_1.Body)())
|
|
64
67
|
], OrderQueryByWebService.prototype, "getRefundCouponInfo", null);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, tsoa_1.OperationId)('统计待商家审核的订单数量'),
|
|
70
|
+
(0, tsoa_1.Post)('count-pending-orders')
|
|
71
|
+
], OrderQueryByWebService.prototype, "countPendingOrders", null);
|
|
65
72
|
OrderQueryByWebService = __decorate([
|
|
66
73
|
(0, tsoa_1.Route)('ros/query/web'),
|
|
67
74
|
(0, tsoa_1.Tags)('RosOrderQuery')
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -237,6 +237,10 @@ export interface RosOrderPayload {
|
|
|
237
237
|
/** 退款份数 */
|
|
238
238
|
quantity: number;
|
|
239
239
|
}
|
|
240
|
+
export interface RosOrderHeaders {
|
|
241
|
+
/** 是否全单退(0=否,1=是)退最后一份也算全单退 */
|
|
242
|
+
isFullRefund: string;
|
|
243
|
+
}
|
|
240
244
|
/** 支付参数 */
|
|
241
245
|
/** 微信支付参数 */
|
|
242
246
|
export interface IWePayParam {
|