Skip to content
This repository was archived by the owner on Apr 29, 2024. It is now read-only.

Commit d74b147

Browse files
Merge branch 'hotfix-1.0.1'
2 parents 25d30f5 + eb560cb commit d74b147

File tree

3 files changed

+14
-42
lines changed

3 files changed

+14
-42
lines changed

antiFraud/index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,22 +78,6 @@ function check(requestBody) {
7878
})
7979
}
8080

81-
for (let i = 0; i < requestBody.order.hotelReservations.length; i++) {
82-
let hotelReservation = requestBody.order.hotelReservations[i];
83-
csOrder.HotelReservations.push({
84-
HotelReservation: {
85-
Hotel: hotelReservation.hotelName,
86-
City: hotelReservation.city,
87-
State: hotelReservation.state,
88-
Country: hotelReservation.country,
89-
ReservationDate: hotelReservation.reservationDate,
90-
ReservationExpirationDate: hotelReservation.reservationExpirationDate,
91-
CheckInDate: hotelReservation.checkInDate,
92-
CheckOutDate: hotelReservation.checkOutDate
93-
}
94-
})
95-
}
96-
9781
return request({
9882
method: "POST",
9983
uri: `${process.env.CLEAR_SALE_API_URL}/SendOrders`,

antiFraud/requestDataStructure.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,20 @@ module.exports = {
154154
// }
155155
// }
156156
],
157-
HotelReservations: [
158-
// {
159-
// HotelReservation: {
160-
// Hotel: null,
161-
// City: null,
162-
// State: null,
163-
// Country: null,
164-
// ReservationDate: null,
165-
// ReservationExpirationDate: null,
166-
// CheckInDate: null,
167-
// CheckOutDate: null
168-
// }
169-
// }
170-
]
157+
// HotelReservations: [
158+
// // {
159+
// // HotelReservation: {
160+
// // Hotel: null,
161+
// // City: null,
162+
// // State: null,
163+
// // Country: null,
164+
// // ReservationDate: null,
165+
// // ReservationExpirationDate: null,
166+
// // CheckInDate: null,
167+
// // CheckOutDate: null
168+
// // }
169+
// // }
170+
// ]
171171
}
172172
}
173173
}

test/orderObject.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ module.exports = {
2727
arrivalDate: "2017-01-16T00:40:00"
2828
}
2929
],
30-
hotelReservations: [
31-
{
32-
hotelName: "Haymarket Hotel",
33-
city: "London",
34-
state: "London",
35-
country: "England",
36-
reservationDate: "2017-01-16T22:40:00",
37-
reservationExpirationDate: "2017-01-17T21:40:00",
38-
checkInDate: "2017-01-16T22:40:00",
39-
checkOutDate: "2017-01-18T22:40:00"
40-
}
41-
],
4230
Customer: {
4331
Name: "Comprador Teste",
4432
Phones: [

0 commit comments

Comments
 (0)