@be-link/tfs-cli-nodejs 0.0.47 → 0.0.49
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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import BaseService from '../baseService';
|
|
2
2
|
import { CouponCode } from './type';
|
|
3
3
|
declare class CouponCodeService extends BaseService implements CouponCode.Controller {
|
|
4
|
+
listCouponCodeRecordByOrderList(request: CouponCode.Request.listCouponCodeOrderIdsReq): Promise<CouponCode.Response.queryTradeOrderCouponCodeRecordList>;
|
|
4
5
|
protected prefixUrl: string;
|
|
5
6
|
listStoreByCode(request: CouponCode.Request.listStoreByCodeReq): Promise<CouponCode.Response.IStore[]>;
|
|
6
7
|
listCouponCodeRecord(request: CouponCode.Request.listCouponCodeReq): Promise<CouponCode.Response.queryTradeOrderCouponCodeRecordList>;
|
|
@@ -10,6 +10,9 @@ class CouponCodeService extends baseService_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/trade-coupon';
|
|
12
12
|
}
|
|
13
|
+
listCouponCodeRecordByOrderList(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.listCouponCodeRecordByOrderList), request);
|
|
15
|
+
}
|
|
13
16
|
listStoreByCode(request) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.listStoreByCode), request);
|
|
15
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tradeOrderCouponCode/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,iBAAkB,SAAQ,qBAAW;IAA3C;;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tradeOrderCouponCode/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC,MAAM,iBAAkB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odeReq {
|
|
10
10
|
orderId: string;
|
|
11
11
|
}
|
|
12
|
+
interface listCouponCodeOrderIdsReq {
|
|
13
|
+
orderIds: string[];
|
|
14
|
+
}
|
|
12
15
|
interface listStoreByCodeReq {
|
|
13
16
|
code: string;
|
|
14
17
|
}
|
|
@@ -124,6 +127,11 @@ export declare namespace CouponCode {
|
|
|
124
127
|
* @path /trade-coupon/list-coupon-code-record
|
|
125
128
|
*/
|
|
126
129
|
listCouponCodeRecord(request: Request.listCouponCodeReq): Promise<Response.queryTradeOrderCouponCodeRecordList>;
|
|
130
|
+
/**
|
|
131
|
+
* 订单券码核销记录
|
|
132
|
+
* @path /trade-coupon/list-coupon-code-record-by-order-list
|
|
133
|
+
*/
|
|
134
|
+
listCouponCodeRecordByOrderList(request: Request.listCouponCodeOrderIdsReq): Promise<Response.queryTradeOrderCouponCodeRecordList>;
|
|
127
135
|
/**
|
|
128
136
|
* 订单券码list
|
|
129
137
|
* @path /trade-coupon/list-coupon-code
|