@vendit-dev/thirdparty-adapters 0.7.30 → 0.7.32
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.
|
@@ -202,6 +202,7 @@ function formatPhoneNumber(text) {
|
|
|
202
202
|
return onlyNumberText;
|
|
203
203
|
}
|
|
204
204
|
var makePaymentInfo = function (_a) {
|
|
205
|
+
var _b, _c, _d, _e, _f, _g, _h;
|
|
205
206
|
var datas = _a.datas, basicInformation = _a.basicInformation, reservationType = _a.reservationType, OptionList = _a.OptionList, PointDiscountList = _a.PointDiscountList, basicRateInformation = _a.basicRateInformation;
|
|
206
207
|
var paymentInfo = (basicRateInformation === null || basicRateInformation === void 0 ? void 0 : basicRateInformation.Payment) === 'Hotel Collect'
|
|
207
208
|
? {
|
|
@@ -209,7 +210,12 @@ var makePaymentInfo = function (_a) {
|
|
|
209
210
|
commissionAmount: basicRateInformation.TotalAccommodationCommissionAmount || 0,
|
|
210
211
|
reservationType: reservationType,
|
|
211
212
|
segments: [],
|
|
212
|
-
externalRoomTypeCode:
|
|
213
|
+
externalRoomTypeCode: (_c = (_b = datas === null || datas === void 0 ? void 0 : datas[0]) === null || _b === void 0 ? void 0 : _b.RoomInformation) === null || _c === void 0 ? void 0 : _c.NetRmTypeGroupCode,
|
|
214
|
+
externalRoomTypeName: (_e = (_d = datas === null || datas === void 0 ? void 0 : datas[0]) === null || _d === void 0 ? void 0 : _d.RoomInformation) === null || _e === void 0 ? void 0 : _e.RoomTypeName,
|
|
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
|
+
? " ".concat(basicInformation === null || basicInformation === void 0 ? void 0 : basicInformation.CheckInTime)
|
|
217
|
+
: ''),
|
|
218
|
+
type: 'platform',
|
|
213
219
|
}
|
|
214
220
|
: datas.reduce(function (paymentInput, _a) {
|
|
215
221
|
var _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
package/package.json
CHANGED
package/test.json
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": "CREATED",
|
|
4
|
-
"externalId": "1116603917",
|
|
5
|
-
"externalRevision": "1",
|
|
6
|
-
"guestOrGroupInfo": {
|
|
7
|
-
"isGroupReservation": false,
|
|
8
|
-
"name": "JUNG ARIN",
|
|
9
|
-
"reservedBy": "Trip.com Group(new)",
|
|
10
|
-
"memo": "JUNG/ARIN 스위트 - 1478366334\n[요청사항]\nQuiet room preferred;Good view;Away from elevator;Basic Deal;For contacting the guest please dial: +82269178710(verification code:797800)or +827079157125(verification code:797800);Please contact guest by system generated mail (jejucenterpoint.337smd7gml930rt@guest.trip.com), preferred language: (Korean);This booking was made through Trip.com, a Ctrip Group brand.;Customer phone number:82-1062719614;Contact guest by Korean; Contact Trip.com via hotelSupport@trip.com\n[추가정보]\nGuest Names: JUNG ARIN; JUNG HOEGYEONG; JUNG WOOHYEOK; LEE JAESUN\n성인 2명, 아동 2명\n[결제정보]\n지불수단: 정보 없음\n\n수수료율: 정보 없음\n수수료 총액: 정보 없음\n[할인정보]\n",
|
|
11
|
-
"status": "reserved",
|
|
12
|
-
"phone": "",
|
|
13
|
-
"useExpireAt": "2025-08-07",
|
|
14
|
-
"useStartAt": "2025-08-06 15:00:00",
|
|
15
|
-
"platform": "TRIPDOTCOM",
|
|
16
|
-
"externalPlatformCode": "2Z",
|
|
17
|
-
"externalPlatformName": "Trip.com Group(new)"
|
|
18
|
-
},
|
|
19
|
-
"reservations": [
|
|
20
|
-
{
|
|
21
|
-
"useStartAt": "2025-08-06 15:00:00",
|
|
22
|
-
"useExpireAt": "2025-08-07",
|
|
23
|
-
"sleeps": 4,
|
|
24
|
-
"guestName": "JUNG ARIN",
|
|
25
|
-
"externalPlatformCode": "2Z",
|
|
26
|
-
"externalPlatformName": "Trip.com Group(new)",
|
|
27
|
-
"cmsOtaNumber": "1400819165251503",
|
|
28
|
-
"cmsProductName": "Suite - 515064650",
|
|
29
|
-
"platform": "TRIPDOTCOM",
|
|
30
|
-
"otaNumber": "TRIPDOTCOM|1400819165251503",
|
|
31
|
-
"externalRoomTypeCode": 4,
|
|
32
|
-
"externalRoomTypeName": "Suite - 515064650",
|
|
33
|
-
"type": "lodge",
|
|
34
|
-
"phone": "",
|
|
35
|
-
"status": "RESERVED",
|
|
36
|
-
"memoContent": "JUNG/ARIN Suite - 515064650\n[요청사항]\nQuiet room preferred;Good view;Away from elevator;Basic Deal;For contacting the guest please dial: +82269178710(verification code:797800)or +827079157125(verification code:797800);Please contact guest by system generated mail (jejucenterpoint.337smd7gml930rt@guest.trip.com), preferred language: (Korean);This booking was made through Trip.com, a Ctrip Group brand.;Customer phone number:82-1062719614;Contact guest by Korean; Contact Trip.com via hotelSupport@trip.com\n[추가정보]\nGuest Names: JUNG ARIN; JUNG HOEGYEONG; JUNG WOOHYEOK; LEE JAESUN\n[인원정보]\n성인 2명, 아동 2명\n",
|
|
37
|
-
"paymentInfo": {
|
|
38
|
-
"amount": 110500,
|
|
39
|
-
"commissionAmount": 0,
|
|
40
|
-
"reservationType": "lodge",
|
|
41
|
-
"segments": [
|
|
42
|
-
{
|
|
43
|
-
"amount": 110500,
|
|
44
|
-
"servedAt": "2025-08-06",
|
|
45
|
-
"referenceType": "RESERVATION",
|
|
46
|
-
"referenceSubType": "lodge"
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
"externalRoomTypeCode": 4,
|
|
50
|
-
"externalRoomTypeName": "Suite - 515064650",
|
|
51
|
-
"type": "platform",
|
|
52
|
-
"useStartAt": "2025-08-06 15:00:00"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
|
-
"rawData": "{\"?xml\":\"\",\"AllotmentBookingReport\":{\"TransactionType\":{\"DataFrom\":\"FromTravelAgency\",\"DataClassification\":\"NewBookReport\",\"DataID\":\"1116603917-1\",\"SystemDate\":\"2025-07-22\"},\"AccommodationInformation\":{\"AccommodationName\":\"Jeju Centerpoint N\",\"AccommodationCode\":109485531},\"SalesOfficeInformation\":{\"SalesOfficeCompanyName\":\"Trip.com Group(new)\",\"SalesOfficeName\":\"Trip.com Group(new)\",\"SalesOfficeCode\":\"2Z\",\"SalesOfficeEmail\":\"hotelSupport@trip.com\",\"SalesOfficePhoneNumber\":8216883666},\"BasicInformation\":{\"TravelAgencyBookingNumber\":1400819165251503,\"TravelAgencyBookingDate\":\"2025-07-22\",\"TravelAgencyBookingTime\":\"07:50:53\",\"TravelAgencyReportNumber\":4972,\"GuestOrGroupNameSingleByte\":\"JUNG ARIN\",\"GuestOrGroupNameKanjiName\":\"JUNG ARIN\",\"CheckInDate\":\"2025-08-06\",\"CheckInTime\":\"15:00:00\",\"CheckOutDate\":\"2025-08-07\",\"Nights\":1,\"TotalRoomCount\":1,\"GrandTotalPaxCount\":4,\"TotalPaxMaleCount\":2,\"TotalChildB50Count\":2,\"PackagePlanName\":\"스위트 - 1478366334\",\"PackagePlanCode\":1478366334,\"MealCondition\":\"WithoutMeal\",\"SpecificMealCondition\":\"None Specified\",\"OtherServiceInformation\":\"Method of settlement: Travel company settlement\\nQuiet room preferred;Good view;Away from elevator;Basic Deal;For contacting the guest please dial: +82269178710(verification code:797800)or +827079157125(verification code:797800);Please contact guest by system generated mail (jejucenterpoint.337smd7gml930rt@guest.trip.com), preferred language: (Korean);This booking was made through Trip.com, a Ctrip Group brand.;Customer phone number:82-1062719614;Contact guest by Korean; Contact Trip.com via hotelSupport@trip.com\\nGuest Names: JUNG ARIN; JUNG HOEGYEONG; JUNG WOOHYEOK; LEE JAESUN\"},\"BasicRateInformation\":{\"RoomRateOrPersonalRate\":\"RoomRate\",\"TaxServiceFee\":\"IncludingServiceAndTax\",\"TotalAccommodationCharge\":110500},\"RoomAndGuestInformation\":{\"RoomAndGuestList\":{\"RoomInformation\":{\"RoomTypeCode\":515064650,\"RoomTypeName\":\"Suite - 515064650\",\"PerRoomPaxCount\":4,\"RoomPaxMaleCount\":2,\"RoomChildB50Count\":2},\"RoomRateInformation\":[{\"RoomDate\":\"2025-08-06\",\"TotalPerRoomRate\":110500},{\"RoomDate\":\"2025-08-06\"}]}},\"RisaplsInformation\":{\"RisaplsCommonInformation\":{\"Basic\":{\"SalesOfficeCompanyCode\":\"2Z\",\"TelegramDiv\":\"\",\"RisaplsDataID\":\"\",\"RisaplsTelegramNumber\":\"\",\"TelegramData\":\"NewBook Trip.com Group(new) SNT-NET 07-22 07:50 (2Z)\\nBooking No.: 1400819165251503 NO.00004972 Jeju Centerpoint N(109485531)\\nGuest:\\n JUNG ARIN TEL:\\n JUNG ARIN\\n Mail:jejucenterpoint.337smd7gml930rt@guest.trip.com\\n\\nMember:\\n JUNG/ARIN\\n JUNG/ARIN\\n\\nRate Name:스위트 - 1478366334(1478366334)\\nCheck-In:2025.08.06 1night No Meals incl. service charge and taxes\\nTransportaion: Check-in time:15:00\\nNo. of Guests: 4Person Details:(Adults)2Person+(KidsB)2Person\\nNo. of Rooms : 1Room\\n08.06 515064650 (Suite - 515064650) 110,500KRW Guest:JUNG ARIN\\n Adults 2Person\\n KidsB 1Person 添寝有・食事無(11歳)\\n KidsB 1Person 添寝有・食事無(12歳)\\n Accommodation cost : 110,500KRW\\n\\n Total Cost : 110,500KRW\\n [ Amounts claimed ] : 0KRW\\n ----------------------------------------------------------------\\n Method of settlement: Travel company settlement\\nRemarks:\\nQuiet room preferred;Good view;Away from elevator;Basic Deal;For contacting the guest please dial: +82269178710(verification code:797800)or +827079157125(verification code:797800);Please contact guest by system generated mail (jejucenterpoint.337smd7gml930rt@guest.trip.com), preferred language: (Korean);This booking was made through Trip.com, a Ctrip Group brand.;Customer phone number:82-1062719614;Contact guest by Korean; Contact Trip.com via hotelSupport@trip.com\\nGuest Names: JUNG ARIN; JUNG HOEGYEONG; JUNG WOOHYEOK; LEE JAESUN\\n\\nSales channels:\\nTrip.com Group(new)(2Z) TEL 008216883666\\nMail hotelSupport@trip.com\\n\\nRoom cost will be covered by Trip.com Group according to the contract.\\n---\",\"Email\":\"jejucenterpoint.337smd7gml930rt@guest.trip.com\",\"TotalPaxManCount\":2,\"Version\":2,\"AccommodationId\":\"I58252\"},\"Allotment\":{\"AssignDiv\":1,\"GenderDiv\":0,\"HandleDiv\":1,\"RsvUserDiv\":1,\"UseDiv\":1},\"RoomAndRoomRateInformation\":{\"RoomInformation\":{\"RoomTypeCode\":515064650,\"RoomTypeName\":\"Suite - 515064650\",\"PerRoomPaxCount\":4,\"RoomPaxMaleCount\":2,\"RoomChildB50Count\":2,\"RoomChildB50Request\":\"添寝有・食事無(11歳)\\n添寝有・食事無(12歳)\",\"RoomTypeAgent\":\"2Z\",\"RoomFrame\":\"--\",\"NetRmTypeGroupCode\":4,\"PlanGroupCode\":4,\"RepresentativePersonName\":\"JUNG ARIN\"},\"RoomRateInformation\":[{\"RoomDate\":\"2025-08-06\",\"TotalPerRoomRate\":110500,\"RoomRatePaxMaleCount\":2,\"RoomRateChildB50Count\":1,\"RoomRateChildB50Request\":\"添寝有・食事無(11歳)\"},{\"RoomDate\":\"2025-08-06\",\"RoomRateChildB50Count\":1,\"RoomRateChildB50Request\":\"添寝有・食事無(12歳)\"}]},\"Member\":{\"UserName\":\"JUNG/ARIN\",\"UserKana\":\"JUNG/ARIN\"},\"OtherInfo\":{\"GuestRequest\":\"Quiet room preferred;Good view;Away from elevator;Basic Deal;For contacting the guest please dial: +82269178710(verification code:797800)or +827079157125(verification code:797800);Please contact guest by system generated mail (jejucenterpoint.337smd7gml930rt@guest.trip.com), preferred language: (Korean);This booking was made through Trip.com, a Ctrip Group brand.;Customer phone number:82-1062719614;Contact guest by Korean; Contact Trip.com via hotelSupport@trip.com\",\"AdditionalInformation\":\"Guest Names: JUNG ARIN; JUNG HOEGYEONG; JUNG WOOHYEOK; LEE JAESUN\"}},\"AgentNativeInformation\":{\"Extend\":{\"AmountClaimed\":0},\"Extendmytrip\":{\"SettlementDiv\":6}}}}}"
|
|
57
|
-
}
|
|
58
|
-
]
|