@vendit-dev/thirdparty-adapters 0.7.31 → 0.7.33-beta.1
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/lib/adapters/externalChannelManagers/externalChannelManager.type.d.ts +1 -0
- package/lib/adapters/externalChannelManagers/tl-lincoln.helper.d.ts +1 -1
- package/lib/adapters/externalChannelManagers/tl-lincoln.helper.js +1 -0
- package/lib/adapters/externalChannelManagers/tl-lincoln.js +11 -17
- package/package.json +50 -50
- package/test copy.json +0 -90
- package/test.json +0 -52
|
@@ -26,6 +26,7 @@ export type ReservationStatus = 'CANCELLED' | 'AWAIT' | 'RESERVED' | 'ROOM_ASSIG
|
|
|
26
26
|
export type ExternalReservationType = 'CREATED' | 'UPDATED' | 'CANCELLED';
|
|
27
27
|
export interface ExternalReservation {
|
|
28
28
|
type: ExternalReservationType;
|
|
29
|
+
outputId: string;
|
|
29
30
|
externalId: string;
|
|
30
31
|
externalRevision: string;
|
|
31
32
|
guestOrGroupInfo: {
|
|
@@ -16,7 +16,7 @@ export declare function getReservationStatusFromDataClassification(dataClassific
|
|
|
16
16
|
export declare function getExternalReservationTypeFromDataClassification(dataClassification: DataClassificationType): ExternalReservationType;
|
|
17
17
|
export declare const formattedNameForMealCondition: (mealCondition: MealConditionType, specificMealCondition?: SpecificMealConditionType) => string;
|
|
18
18
|
export declare const formattedPaxCountText: (roomInformation: RoomInformation | TBasicInformation, genderDivision?: boolean) => string;
|
|
19
|
-
export declare const refineReservationData: (infoTravelXML: InfoTravelXML) => ExternalReservation
|
|
19
|
+
export declare const refineReservationData: (infoTravelXML: InfoTravelXML) => Omit<ExternalReservation, 'outputId'>;
|
|
20
20
|
export declare const withAsyncBandwidth: <T = unknown>(array: T[], asyncMapper: (arg0: T, index: number) => void, { bandwidth }?: {
|
|
21
21
|
bandwidth?: number | undefined;
|
|
22
22
|
}) => Promise<void>[];
|
|
@@ -215,6 +215,7 @@ var makePaymentInfo = function (_a) {
|
|
|
215
215
|
useStartAt: "".concat((_h = (_g = (0, tl_lincoln_types_1.makeArray)((_f = datas === null || datas === void 0 ? void 0 : datas[0]) === null || _f === void 0 ? void 0 : _f.RoomRateInformation)) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.RoomDate).concat((basicInformation === null || basicInformation === void 0 ? void 0 : basicInformation.CheckInTime)
|
|
216
216
|
? " ".concat(basicInformation === null || basicInformation === void 0 ? void 0 : basicInformation.CheckInTime)
|
|
217
217
|
: ''),
|
|
218
|
+
type: 'platform',
|
|
218
219
|
}
|
|
219
220
|
: datas.reduce(function (paymentInput, _a) {
|
|
220
221
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
@@ -80,17 +80,13 @@ var TlLincoln = /** @class */ (function () {
|
|
|
80
80
|
TlLincoln.prototype.getReservations = function (input, options) {
|
|
81
81
|
var _a;
|
|
82
82
|
return __awaiter(this, void 0, void 0, function () {
|
|
83
|
-
var
|
|
83
|
+
var result, reservations, _b, isSuccess, errorDescription, failureReason, _c, bookingInfoList, configurationSettings, refinedArrayReservationList;
|
|
84
84
|
return __generator(this, function (_d) {
|
|
85
85
|
switch (_d.label) {
|
|
86
86
|
case 0:
|
|
87
|
-
continueFetching = true;
|
|
88
87
|
result = __spreadArray([], ((_a = options === null || options === void 0 ? void 0 : options.mergedReservations) !== null && _a !== void 0 ? _a : []), true);
|
|
89
|
-
_d.label = 1;
|
|
90
|
-
case 1:
|
|
91
|
-
if (!continueFetching) return [3 /*break*/, 5];
|
|
92
88
|
return [4 /*yield*/, this.bookingInfoOutputService(input)];
|
|
93
|
-
case
|
|
89
|
+
case 1:
|
|
94
90
|
reservations = _d.sent();
|
|
95
91
|
_b = reservations['S:Envelope']['S:Body']['ns2:executeResponse'].return
|
|
96
92
|
.commonResponse, isSuccess = _b.isSuccess, errorDescription = _b.errorDescription, failureReason = _b.failureReason;
|
|
@@ -110,23 +106,21 @@ var TlLincoln = /** @class */ (function () {
|
|
|
110
106
|
description: 'outputId is not found',
|
|
111
107
|
});
|
|
112
108
|
}
|
|
113
|
-
if (!(
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
if (!(configurationSettings === null || configurationSettings === void 0 ? void 0 : configurationSettings.outputId)) {
|
|
110
|
+
throw new externalChannelManager_type_1.ExternalChannelManagerError({
|
|
111
|
+
message: 'Failed to load Reservations - outputId is not found',
|
|
112
|
+
code: 'outputId is not found',
|
|
113
|
+
description: 'outputId is not found',
|
|
114
|
+
});
|
|
115
|
+
}
|
|
119
116
|
result = refinedArrayReservationList.reduce(function (acc, reservation) {
|
|
120
117
|
if (reservation === null || reservation === void 0 ? void 0 : reservation.infoTravelXML) {
|
|
121
118
|
var refinedData = (0, tl_lincoln_helper_1.refineReservationData)((0, tl_lincoln_helper_1.xmlToJson)(reservation.infoTravelXML));
|
|
122
|
-
acc.push(refinedData);
|
|
119
|
+
acc.push(__assign(__assign({}, refinedData), { outputId: configurationSettings.outputId }));
|
|
123
120
|
}
|
|
124
121
|
return acc;
|
|
125
122
|
}, result);
|
|
126
|
-
|
|
127
|
-
continueFetching = refinedArrayReservationList.length === 100;
|
|
128
|
-
return [3 /*break*/, 1];
|
|
129
|
-
case 5: return [2 /*return*/, result];
|
|
123
|
+
return [2 /*return*/, result];
|
|
130
124
|
}
|
|
131
125
|
});
|
|
132
126
|
});
|
package/package.json
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
"name": "@vendit-dev/thirdparty-adapters",
|
|
3
|
+
"version": "0.7.33-beta.1",
|
|
4
|
+
"description": "Third party adapters between v-cloud and other PMS/CMS providers.",
|
|
5
|
+
"main": "lib/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc",
|
|
8
|
+
"dev": "node ./test/tl-lincoln.test.js",
|
|
9
|
+
"npm-login": "npm login",
|
|
10
|
+
"publish": "npm publish"
|
|
11
|
+
},
|
|
12
|
+
"keywords": [
|
|
13
|
+
"vendit"
|
|
14
|
+
],
|
|
15
|
+
"author": "Vendit <dev@vendit.co.kr> (https://vendit.co.kr)",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@babel/cli": "^7.10.5",
|
|
19
|
+
"@babel/core": "^7.10.5",
|
|
20
|
+
"@babel/node": "^7.10.5",
|
|
21
|
+
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
22
|
+
"@babel/plugin-proposal-optional-chaining": "^7.10.4",
|
|
23
|
+
"@babel/preset-env": "^7.10.4",
|
|
24
|
+
"@babel/preset-flow": "^7.10.4",
|
|
25
|
+
"@types/ioredis": "^5.0.0",
|
|
26
|
+
"@types/node": "^20.4.5",
|
|
27
|
+
"@types/node-fetch": "^2.6.1",
|
|
28
|
+
"@types/npm": "^7.19.1",
|
|
29
|
+
"@types/sequelize": "^4.28.15",
|
|
30
|
+
"@types/tedious": "^4.0.9",
|
|
31
|
+
"@types/validator": "^13.7.17",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^3.6.1",
|
|
33
|
+
"@typescript-eslint/parser": "^3.6.1",
|
|
34
|
+
"@vendit-dev/utility-modules": "^0.20.1",
|
|
35
|
+
"babel-eslint": "^10.1.0",
|
|
36
|
+
"babel-plugin-module-resolver": "^4.0.0",
|
|
37
|
+
"cross-env": "^7.0.2",
|
|
38
|
+
"eslint": "^7.4.0",
|
|
39
|
+
"eslint-config-airbnb-base": "^13.1.0",
|
|
40
|
+
"eslint-plugin-import": "^2.16.0",
|
|
41
|
+
"typescript": "4.9.3"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"fast-xml-parser": "^4.4.0",
|
|
45
|
+
"moment": "^2.29.2",
|
|
46
|
+
"node-fetch": "2",
|
|
47
|
+
"npm": "6",
|
|
48
|
+
"sequelize": "^6.32.1",
|
|
49
|
+
"tedious": "6.2.1",
|
|
50
|
+
"uuid": "^8.3.2"
|
|
51
|
+
}
|
|
52
52
|
}
|
package/test copy.json
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "CREATED",
|
|
4
|
-
"externalId": "1123291933",
|
|
5
|
-
"externalRevision": "1",
|
|
6
|
-
"guestOrGroupInfo": {
|
|
7
|
-
"isGroupReservation": false,
|
|
8
|
-
"name": "Chihyung Li",
|
|
9
|
-
"reservedBy": "Expedia",
|
|
10
|
-
"memo": "Chihyung Li Room Only(1-2名)(SellRate)\n[요청사항]\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\n[추가정보]\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\n성인 2명\n[결제정보]\n지불수단: Hotel Collect\n\n수수료율: 정보 없음\n수수료 총액: 정보 없음\n[할인정보]\n",
|
|
11
|
-
"status": "reserved",
|
|
12
|
-
"phone": "0007091047109",
|
|
13
|
-
"useExpireAt": "2025-09-04",
|
|
14
|
-
"useStartAt": "2025-08-29",
|
|
15
|
-
"platform": "EXPEDIA",
|
|
16
|
-
"externalPlatformCode": 52,
|
|
17
|
-
"externalPlatformName": "Expedia"
|
|
18
|
-
},
|
|
19
|
-
"reservations": [
|
|
20
|
-
{
|
|
21
|
-
"useStartAt": "2025-08-29",
|
|
22
|
-
"useExpireAt": "2025-09-04",
|
|
23
|
-
"sleeps": 2,
|
|
24
|
-
"guestName": "Chihyung Li",
|
|
25
|
-
"externalPlatformCode": 52,
|
|
26
|
-
"externalPlatformName": "Expedia",
|
|
27
|
-
"cmsOtaNumber": "2262724972",
|
|
28
|
-
"cmsProductName": "Twin Room, Non Smoking",
|
|
29
|
-
"platform": "EXPEDIA",
|
|
30
|
-
"otaNumber": "EXPEDIA|2262724972",
|
|
31
|
-
"externalRoomTypeCode": 4,
|
|
32
|
-
"externalRoomTypeName": "Twin Room, Non Smoking",
|
|
33
|
-
"type": "lodge",
|
|
34
|
-
"phone": "0007091047109",
|
|
35
|
-
"status": "RESERVED",
|
|
36
|
-
"memoContent": "Chihyung Li Twin Room, Non Smoking\n[요청사항]\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\n[추가정보]\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\n[인원정보]\n성인 2명\n",
|
|
37
|
-
"paymentInfo": {
|
|
38
|
-
"amount": 0,
|
|
39
|
-
"commissionAmount": 0,
|
|
40
|
-
"reservationType": "lodge",
|
|
41
|
-
"segments": [
|
|
42
|
-
{
|
|
43
|
-
"amount": 149571,
|
|
44
|
-
"servedAt": "2025-08-29",
|
|
45
|
-
"referenceType": "RESERVATION",
|
|
46
|
-
"referenceSubType": "lodge"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"amount": 149571,
|
|
50
|
-
"servedAt": "2025-08-30",
|
|
51
|
-
"referenceType": "RESERVATION",
|
|
52
|
-
"referenceSubType": "lodge"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"amount": 91613,
|
|
56
|
-
"servedAt": "2025-08-31",
|
|
57
|
-
"referenceType": "RESERVATION",
|
|
58
|
-
"referenceSubType": "lodge"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"amount": 91613,
|
|
62
|
-
"servedAt": "2025-09-01",
|
|
63
|
-
"referenceType": "RESERVATION",
|
|
64
|
-
"referenceSubType": "lodge"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"amount": 91613,
|
|
68
|
-
"servedAt": "2025-09-02",
|
|
69
|
-
"referenceType": "RESERVATION",
|
|
70
|
-
"referenceSubType": "lodge"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"amount": 91613,
|
|
74
|
-
"servedAt": "2025-09-03",
|
|
75
|
-
"referenceType": "RESERVATION",
|
|
76
|
-
"referenceSubType": "lodge"
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"externalRoomTypeCode": 4,
|
|
80
|
-
"externalRoomTypeName": "Twin Room, Non Smoking",
|
|
81
|
-
"type": "platform",
|
|
82
|
-
"useStartAt": "2025-08-29",
|
|
83
|
-
"isFullyPaid": false,
|
|
84
|
-
"outstandingAmount": 665594
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
],
|
|
88
|
-
"rawData": "{\"?xml\":\"\",\"AllotmentBookingReport\":{\"TransactionType\":{\"DataFrom\":\"FromTravelAgency\",\"DataClassification\":\"NewBookReport\",\"DataID\":\"1123291933-1\",\"SystemDate\":\"2025-08-07\"},\"AccommodationInformation\":{\"AccommodationName\":\"K-POP HOTEL SEOUL STATION\",\"AccommodationCode\":8460576},\"SalesOfficeInformation\":{\"SalesOfficeCompanyName\":\"Expedia\",\"SalesOfficeName\":\"A-Hotels.com\",\"SalesOfficeCode\":52},\"BasicInformation\":{\"TravelAgencyBookingNumber\":2262724972,\"TravelAgencyBookingDate\":\"2025-08-07\",\"TravelAgencyBookingTime\":\"22:38:38\",\"TravelAgencyReportNumber\":1113,\"GuestOrGroupNameSingleByte\":\"Chihyung Li\",\"GuestOrGroupNameKanjiName\":\"Chihyung Li\",\"CheckInDate\":\"2025-08-29\",\"CheckOutDate\":\"2025-09-04\",\"Nights\":6,\"TotalRoomCount\":1,\"GrandTotalPaxCount\":2,\"TotalPaxMaleCount\":2,\"TotalChildA70Count\":0,\"TotalChildB50Count\":0,\"TotalChildC30Count\":0,\"TotalChildDNoneCount\":0,\"PackagePlanName\":\"Room Only(1-2名)(SellRate)\",\"PackagePlanCode\":207397920,\"MealCondition\":\"Other\",\"SpecificMealCondition\":\"None Specified\",\"OtherServiceInformation\":\"Payment:Hotel Collect\\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\"},\"BasicRateInformation\":{\"RoomRateOrPersonalRate\":\"RoomRate\",\"TaxServiceFee\":\"IncludingServiceAndTax\",\"Payment\":\"Hotel Collect\",\"TotalAccommodationCharge\":665594},\"RoomAndGuestInformation\":{\"RoomAndGuestList\":[{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-29\",\"TotalPerRoomRate\":149571}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-30\",\"TotalPerRoomRate\":149571}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-31\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-01\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-02\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-03\",\"TotalPerRoomRate\":91613}}]},\"RisaplsInformation\":{\"RisaplsCommonInformation\":{\"Basic\":{\"SalesOfficeCompanyCode\":47,\"TelegramDiv\":\"\",\"RisaplsDataID\":\"\",\"RisaplsTelegramNumber\":\"\",\"TelegramData\":\"NewBook Expedia SNT-NET 08-07 22:38 (47)\\nBooking No.: 2262724972 NO.00001113 K-POP HOTEL SEOUL STATION(8460576)\\nGuest:\\n Chihyung Li TEL:0-0-07091047109\\n Chihyung Li\\n Mail:2791bi85wm@m.expediapartnercentral.com\\n\\nRate Name:Room Only(1-2名)(SellRate)(207397920)\\nCheck-In:2025.08.29 6night incl. service charge and taxes\\nTransportaion: Check-in time:\\nNo. of Guests: 2Person Details:(Adults)2Person\\nNo. of Rooms : 1Room\\n08.29 200723118- 1Room (Twin Room, Non Smoking) 149,571KRW\\n Adults 2Person\\n08.30 200723118- 1Room (Twin Room, Non Smoking) 149,571KRW\\n Adults 2Person\\n08.31 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.01 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.02 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.03 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n Accommodation cost : 665,594KRW\\n\\n Total Cost : 665,594KRW\\n ----------------------------------------------------------------\\nPayment :Hotel Collect\\n\\nRemarks:\\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\\n\\nSales channels:\\nA-Hotels.com(47) TEL\\n\\n[source]A-Hotels.com\\n---\",\"PhoneNumber\":\"0-0-07091047109\",\"Email\":\"2791bi85wm@m.expediapartnercentral.com\",\"TotalPaxManCount\":2,\"Version\":2,\"AccommodationId\":\"W54781\"},\"Allotment\":{\"AssignDiv\":0,\"GenderDiv\":0,\"HandleDiv\":1,\"RsvUserDiv\":0,\"UseDiv\":0},\"RoomAndRoomRateInformation\":[{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-29\",\"TotalPerRoomRate\":149571,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-30\",\"TotalPerRoomRate\":149571,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-31\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-01\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-02\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-03\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}}],\"OtherInfo\":{\"GuestRequest\":\"[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\",\"AdditionalInformation\":\"[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\"}}}}}"
|
|
89
|
-
}
|
|
90
|
-
]
|
package/test.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "CREATED",
|
|
4
|
-
"externalId": "1123291933",
|
|
5
|
-
"externalRevision": "1",
|
|
6
|
-
"guestOrGroupInfo": {
|
|
7
|
-
"isGroupReservation": false,
|
|
8
|
-
"name": "Chihyung Li",
|
|
9
|
-
"reservedBy": "Expedia",
|
|
10
|
-
"memo": "Chihyung Li Room Only(1-2名)(SellRate)\n[요청사항]\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\n[추가정보]\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\n성인 2명\n[결제정보]\n지불수단: Hotel Collect\n\n수수료율: 정보 없음\n수수료 총액: 정보 없음\n[할인정보]\n",
|
|
11
|
-
"status": "reserved",
|
|
12
|
-
"phone": "0007091047109",
|
|
13
|
-
"useExpireAt": "2025-09-04",
|
|
14
|
-
"useStartAt": "2025-08-29",
|
|
15
|
-
"platform": "EXPEDIA",
|
|
16
|
-
"externalPlatformCode": 52,
|
|
17
|
-
"externalPlatformName": "Expedia"
|
|
18
|
-
},
|
|
19
|
-
"reservations": [
|
|
20
|
-
{
|
|
21
|
-
"useStartAt": "2025-08-29",
|
|
22
|
-
"useExpireAt": "2025-09-04",
|
|
23
|
-
"sleeps": 2,
|
|
24
|
-
"guestName": "Chihyung Li",
|
|
25
|
-
"externalPlatformCode": 52,
|
|
26
|
-
"externalPlatformName": "Expedia",
|
|
27
|
-
"cmsOtaNumber": "2262724972",
|
|
28
|
-
"cmsProductName": "Twin Room, Non Smoking",
|
|
29
|
-
"platform": "EXPEDIA",
|
|
30
|
-
"otaNumber": "EXPEDIA|2262724972",
|
|
31
|
-
"externalRoomTypeCode": 4,
|
|
32
|
-
"externalRoomTypeName": "Twin Room, Non Smoking",
|
|
33
|
-
"type": "lodge",
|
|
34
|
-
"phone": "0007091047109",
|
|
35
|
-
"status": "RESERVED",
|
|
36
|
-
"memoContent": "Chihyung Li Twin Room, Non Smoking\n[요청사항]\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\n[추가정보]\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\n[인원정보]\n성인 2명\n",
|
|
37
|
-
"paymentInfo": {
|
|
38
|
-
"amount": 0,
|
|
39
|
-
"commissionAmount": 0,
|
|
40
|
-
"reservationType": "lodge",
|
|
41
|
-
"segments": [],
|
|
42
|
-
"externalRoomTypeCode": 4,
|
|
43
|
-
"externalRoomTypeName": "Twin Room, Non Smoking",
|
|
44
|
-
"useStartAt": "2025-08-29",
|
|
45
|
-
"isFullyPaid": false,
|
|
46
|
-
"outstandingAmount": 665594
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
"rawData": "{\"?xml\":\"\",\"AllotmentBookingReport\":{\"TransactionType\":{\"DataFrom\":\"FromTravelAgency\",\"DataClassification\":\"NewBookReport\",\"DataID\":\"1123291933-1\",\"SystemDate\":\"2025-08-07\"},\"AccommodationInformation\":{\"AccommodationName\":\"K-POP HOTEL SEOUL STATION\",\"AccommodationCode\":8460576},\"SalesOfficeInformation\":{\"SalesOfficeCompanyName\":\"Expedia\",\"SalesOfficeName\":\"A-Hotels.com\",\"SalesOfficeCode\":52},\"BasicInformation\":{\"TravelAgencyBookingNumber\":2262724972,\"TravelAgencyBookingDate\":\"2025-08-07\",\"TravelAgencyBookingTime\":\"22:38:38\",\"TravelAgencyReportNumber\":1113,\"GuestOrGroupNameSingleByte\":\"Chihyung Li\",\"GuestOrGroupNameKanjiName\":\"Chihyung Li\",\"CheckInDate\":\"2025-08-29\",\"CheckOutDate\":\"2025-09-04\",\"Nights\":6,\"TotalRoomCount\":1,\"GrandTotalPaxCount\":2,\"TotalPaxMaleCount\":2,\"TotalChildA70Count\":0,\"TotalChildB50Count\":0,\"TotalChildC30Count\":0,\"TotalChildDNoneCount\":0,\"PackagePlanName\":\"Room Only(1-2名)(SellRate)\",\"PackagePlanCode\":207397920,\"MealCondition\":\"Other\",\"SpecificMealCondition\":\"None Specified\",\"OtherServiceInformation\":\"Payment:Hotel Collect\\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\"},\"BasicRateInformation\":{\"RoomRateOrPersonalRate\":\"RoomRate\",\"TaxServiceFee\":\"IncludingServiceAndTax\",\"Payment\":\"Hotel Collect\",\"TotalAccommodationCharge\":665594},\"RoomAndGuestInformation\":{\"RoomAndGuestList\":[{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-29\",\"TotalPerRoomRate\":149571}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-30\",\"TotalPerRoomRate\":149571}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-31\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-01\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-02\",\"TotalPerRoomRate\":91613}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-03\",\"TotalPerRoomRate\":91613}}]},\"RisaplsInformation\":{\"RisaplsCommonInformation\":{\"Basic\":{\"SalesOfficeCompanyCode\":47,\"TelegramDiv\":\"\",\"RisaplsDataID\":\"\",\"RisaplsTelegramNumber\":\"\",\"TelegramData\":\"NewBook Expedia SNT-NET 08-07 22:38 (47)\\nBooking No.: 2262724972 NO.00001113 K-POP HOTEL SEOUL STATION(8460576)\\nGuest:\\n Chihyung Li TEL:0-0-07091047109\\n Chihyung Li\\n Mail:2791bi85wm@m.expediapartnercentral.com\\n\\nRate Name:Room Only(1-2名)(SellRate)(207397920)\\nCheck-In:2025.08.29 6night incl. service charge and taxes\\nTransportaion: Check-in time:\\nNo. of Guests: 2Person Details:(Adults)2Person\\nNo. of Rooms : 1Room\\n08.29 200723118- 1Room (Twin Room, Non Smoking) 149,571KRW\\n Adults 2Person\\n08.30 200723118- 1Room (Twin Room, Non Smoking) 149,571KRW\\n Adults 2Person\\n08.31 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.01 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.02 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n09.03 200723118- 1Room (Twin Room, Non Smoking) 91,613KRW\\n Adults 2Person\\n Accommodation cost : 665,594KRW\\n\\n Total Cost : 665,594KRW\\n ----------------------------------------------------------------\\nPayment :Hotel Collect\\n\\nRemarks:\\n[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\\n[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\\n\\nSales channels:\\nA-Hotels.com(47) TEL\\n\\n[source]A-Hotels.com\\n---\",\"PhoneNumber\":\"0-0-07091047109\",\"Email\":\"2791bi85wm@m.expediapartnercentral.com\",\"TotalPaxManCount\":2,\"Version\":2,\"AccommodationId\":\"W54781\"},\"Allotment\":{\"AssignDiv\":0,\"GenderDiv\":0,\"HandleDiv\":1,\"RsvUserDiv\":0,\"UseDiv\":0},\"RoomAndRoomRateInformation\":[{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-29\",\"TotalPerRoomRate\":149571,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-30\",\"TotalPerRoomRate\":149571,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-08-31\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-01\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-02\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}},{\"RoomInformation\":{\"RoomTypeCode\":200723118,\"RoomTypeName\":\"Twin Room, Non Smoking\",\"PerRoomPaxCount\":2,\"RoomPaxMaleCount\":2,\"RoomPaxFemaleCount\":0,\"RoomChildA70Count\":0,\"RoomChildB50Count\":0,\"RoomChildC30Count\":0,\"RoomChildDNoneCount\":0,\"RoomTypeAgent\":47,\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":2},\"RoomRateInformation\":{\"RoomDate\":\"2025-09-03\",\"TotalPerRoomRate\":91613,\"RoomRatePaxMaleCount\":2,\"RoomRatePaxFemaleCount\":0,\"RoomRateChildA70Count\":0,\"RoomRateChildB50Count\":0,\"RoomRateChildC30Count\":0,\"RoomRateChildDNoneCount\":0}}],\"OtherInfo\":{\"GuestRequest\":\"[Bedding type]2 Twin Beds [Smoking/Non-smoking]Non-Smoking [Payment instructions]Hotel Collect Booking Collect Payment From Guest. [Payment instructions]Hotel Collect Booking credit card cannot be sent through this channel. Please refer to EPC.\",\"AdditionalInformation\":\"[PromoName]MinLos,MinLos,MinLos,MinLos,MinLos,MinLos\"}}}}}"
|
|
51
|
-
}
|
|
52
|
-
]
|