@be-link/tfs-cli-nodejs 0.0.45 → 0.0.47
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
|
+
listStoreByCode(request: CouponCode.Request.listStoreByCodeReq): Promise<CouponCode.Response.IStore[]>;
|
|
5
6
|
listCouponCodeRecord(request: CouponCode.Request.listCouponCodeReq): Promise<CouponCode.Response.queryTradeOrderCouponCodeRecordList>;
|
|
6
7
|
updateCouponCode(request: CouponCode.Request.updateCouponCodeReq): Promise<void>;
|
|
7
8
|
createCouponCode(request: CouponCode.Request.createCouponCodeReq): 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
|
+
listStoreByCode(request) {
|
|
14
|
+
return (0, http_1.callApi)(this.getApiUrl(this.listStoreByCode), request);
|
|
15
|
+
}
|
|
13
16
|
listCouponCodeRecord(request) {
|
|
14
17
|
return (0, http_1.callApi)(this.getApiUrl(this.listCouponCodeRecord), 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;;QAEY,cAAS,GAAW,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../src/tfs/modules/tradeOrderCouponCode/service.ts"],"names":[],"mappings":";;;;;AAAA,qCAAoC;AACpC,iEAAwC;AAGxC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|
interface listCouponCodeReq {
|
|
9
10
|
orderId: string;
|
|
10
11
|
}
|
|
12
|
+
interface listStoreByCodeReq {
|
|
13
|
+
code: string;
|
|
14
|
+
}
|
|
11
15
|
interface createCouponCodeReq {
|
|
12
16
|
orderId: string;
|
|
13
17
|
}
|
|
@@ -21,8 +25,100 @@ export declare namespace CouponCode {
|
|
|
21
25
|
namespace Response {
|
|
22
26
|
type queryTradeOrderCouponCodeList = Fulfill.Entity.TradeOrderCouponCode[];
|
|
23
27
|
type queryTradeOrderCouponCodeRecordList = Fulfill.Entity.TradeOrderCouponCodeRecord[];
|
|
28
|
+
interface IStore {
|
|
29
|
+
_id: string;
|
|
30
|
+
diamond: number;
|
|
31
|
+
star: number;
|
|
32
|
+
openTime: string;
|
|
33
|
+
closeTime: string;
|
|
34
|
+
_createTime: number;
|
|
35
|
+
_updateTime: number;
|
|
36
|
+
name: string;
|
|
37
|
+
phone: string;
|
|
38
|
+
isInsideScenicSpot?: boolean;
|
|
39
|
+
isFriendlyForPet?: boolean;
|
|
40
|
+
chatId: string;
|
|
41
|
+
mealInfo?: {
|
|
42
|
+
breakfast: {
|
|
43
|
+
begin: string;
|
|
44
|
+
end: string;
|
|
45
|
+
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL';
|
|
46
|
+
pricePerPerson: number;
|
|
47
|
+
};
|
|
48
|
+
lunch: {
|
|
49
|
+
begin: string;
|
|
50
|
+
end: string;
|
|
51
|
+
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL';
|
|
52
|
+
pricePerPerson: number;
|
|
53
|
+
};
|
|
54
|
+
dinner: {
|
|
55
|
+
begin: string;
|
|
56
|
+
end: string;
|
|
57
|
+
type: 'BUFFET' | 'ORDER' | 'COMBO' | 'LIGHTMEAL';
|
|
58
|
+
pricePerPerson: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
trafficInfo?: {
|
|
62
|
+
parking: {
|
|
63
|
+
pricePerHour: number;
|
|
64
|
+
};
|
|
65
|
+
pickUp: string;
|
|
66
|
+
desc: {
|
|
67
|
+
metro: string;
|
|
68
|
+
bus: string;
|
|
69
|
+
};
|
|
70
|
+
shuttleBus: {
|
|
71
|
+
pricePerPerson: number;
|
|
72
|
+
boardingPoint: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
facilities?: string[];
|
|
76
|
+
customerRoomInfo?: {
|
|
77
|
+
delayCheckOutPricePerHour: number;
|
|
78
|
+
isOfferToiletries: boolean;
|
|
79
|
+
checkInTime: string;
|
|
80
|
+
checkOutTime: string;
|
|
81
|
+
room: {
|
|
82
|
+
singleBed?: {
|
|
83
|
+
area: number;
|
|
84
|
+
};
|
|
85
|
+
doubleBed?: {
|
|
86
|
+
area: number;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
attractionInfoV2?: {
|
|
91
|
+
name: string;
|
|
92
|
+
images: string[];
|
|
93
|
+
distanceDesc: string;
|
|
94
|
+
ticket: {
|
|
95
|
+
isNeedTicket: boolean;
|
|
96
|
+
purchaseDesc: string;
|
|
97
|
+
discount: {
|
|
98
|
+
crowd: string;
|
|
99
|
+
application: string;
|
|
100
|
+
policy: string;
|
|
101
|
+
}[];
|
|
102
|
+
};
|
|
103
|
+
openTime: string;
|
|
104
|
+
desc: string;
|
|
105
|
+
}[];
|
|
106
|
+
poi: {
|
|
107
|
+
province: string;
|
|
108
|
+
city: string;
|
|
109
|
+
region: string;
|
|
110
|
+
address: string;
|
|
111
|
+
longitude: number;
|
|
112
|
+
latitude: number;
|
|
113
|
+
};
|
|
114
|
+
}
|
|
24
115
|
}
|
|
25
116
|
interface Controller {
|
|
117
|
+
/**
|
|
118
|
+
* 根据券码查询门店list
|
|
119
|
+
* @param request
|
|
120
|
+
*/
|
|
121
|
+
listStoreByCode(request: Request.listStoreByCodeReq): Promise<Response.IStore[]>;
|
|
26
122
|
/**
|
|
27
123
|
* 订单券码核销记录
|
|
28
124
|
* @path /trade-coupon/list-coupon-code-record
|