@be-link/tfs-cli-nodejs 0.0.43 → 0.0.44
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
|
@@ -2,6 +2,7 @@ import BaseService from '../baseService';
|
|
|
2
2
|
import { CouponCode } from './type';
|
|
3
3
|
declare class CouponCodeService extends BaseService implements CouponCode.Controller {
|
|
4
4
|
protected prefixUrl: string;
|
|
5
|
+
listCouponCodeRecord(request: CouponCode.Request.listCouponCodeReq): Promise<CouponCode.Response.queryTradeOrderCouponCodeRecordList>;
|
|
5
6
|
updateCouponCode(request: CouponCode.Request.updateCouponCodeReq): Promise<void>;
|
|
6
7
|
createCouponCode(request: CouponCode.Request.createCouponCodeReq): Promise<void>;
|
|
7
8
|
redeemCouponCode(request: CouponCode.Request.redeemCouponCodeReq): Promise<void>;
|
|
@@ -10,6 +10,9 @@ class CouponCodeService extends baseService_1.default {
|
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.prefixUrl = '/trade-coupon';
|
|
12
12
|
}
|
|
13
|
+
listCouponCodeRecord(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.listCouponCodeRecord), request);
|
|
15
|
+
}
|
|
13
16
|
updateCouponCode(request) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.updateCouponCode), 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,SAAQ,qBAAW;IAA3C;;QAEY,cAAS,GAAW,eAAe,CAAA;IAiB/C,CAAC;IAfC,oBAAoB,CAAC,OAA6C;QAChE,OAAO,IAAA,cAAO,EAAgD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC,CAAA;IACnH,CAAC;IACD,gBAAgB,CAAC,OAA+C;QAC9D,OAAO,IAAA,cAAO,EAA4C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3G,CAAC;IACD,gBAAgB,CAAC,OAA+C;QAC9D,OAAO,IAAA,cAAO,EAA4C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3G,CAAC;IACD,gBAAgB,CAAC,OAA+C;QAC9D,OAAO,IAAA,cAAO,EAA4C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC,CAAA;IAC3G,CAAC;IACD,cAAc,CAAC,OAA6C;QAC1D,OAAO,IAAA,cAAO,EAA0C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,CAAA;IACvG,CAAC;CACF;AAED,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAA;AAEjD,kBAAe,iBAAiB,CAAA"}
|
|
@@ -20,8 +20,14 @@ export declare namespace CouponCode {
|
|
|
20
20
|
}
|
|
21
21
|
namespace Response {
|
|
22
22
|
type queryTradeOrderCouponCodeList = Fulfill.Entity.TradeOrderCouponCode[];
|
|
23
|
+
type queryTradeOrderCouponCodeRecordList = Fulfill.Entity.TradeOrderCouponCodeRecord[];
|
|
23
24
|
}
|
|
24
25
|
interface Controller {
|
|
26
|
+
/**
|
|
27
|
+
* 订单券码核销记录
|
|
28
|
+
* @path /trade-coupon/list-coupon-code-record
|
|
29
|
+
*/
|
|
30
|
+
listCouponCodeRecord(request: Request.listCouponCodeReq): Promise<Response.queryTradeOrderCouponCodeRecordList>;
|
|
25
31
|
/**
|
|
26
32
|
* 订单券码list
|
|
27
33
|
* @path /trade-coupon/list-coupon-code
|
package/types.d.ts
CHANGED
|
@@ -163,6 +163,25 @@ export declare namespace Fulfill {
|
|
|
163
163
|
/** 订单ID */
|
|
164
164
|
tradeOrderId: string;
|
|
165
165
|
}
|
|
166
|
+
interface TradeOrderCouponCodeRecord {
|
|
167
|
+
/** id */
|
|
168
|
+
id: string;
|
|
169
|
+
/** 券码id */
|
|
170
|
+
couponCodeId: string;
|
|
171
|
+
/** 券码 */
|
|
172
|
+
code: number;
|
|
173
|
+
/** 创建时间 */
|
|
174
|
+
createdAt: number;
|
|
175
|
+
/** 更新时间 */
|
|
176
|
+
updatedAt: number;
|
|
177
|
+
operatorRole: string;
|
|
178
|
+
operator: string;
|
|
179
|
+
storeId: string;
|
|
180
|
+
/** 门店名称 */
|
|
181
|
+
storeName: string;
|
|
182
|
+
/** 订单ID */
|
|
183
|
+
tradeOrderId: string;
|
|
184
|
+
}
|
|
166
185
|
interface DepartureGroupSearchInfo {
|
|
167
186
|
/** id */
|
|
168
187
|
id: string;
|