Skip to content

Instantly share code, notes, and snippets.

@leandrojo
Last active March 15, 2016 19:16
Show Gist options
  • Select an option

  • Save leandrojo/39850e356f4e7e505eb5 to your computer and use it in GitHub Desktop.

Select an option

Save leandrojo/39850e356f4e7e505eb5 to your computer and use it in GitHub Desktop.
HotelRoomReservationRequest: {
hotelId: room['hotelId'],
arrivalDate: room.arrivalDate,
departureDate: room.departureDate,
supplierType: 'E',
rateKey: room.rateKey,
roomTypeCode: room.roomTypeCode,
rateCode: room.rateCode,
chargeableRate: room.chargeableRate,
sendReservationEmail: true,
affiliateConfirmationId: crypto.createHash('md5').update(opts.session + room.rateKey + room.rateCode).digest("hex"),
RoomGroup: {
Room: {
numberOfAdults: 2,
firstName: user.firstName,
lastName: user.lastName,
bedTypeId: room.bedTypeId,
smokingPreference: 'NS'
}
},
ReservationInfo: {
email: user.email,
firstName: creditCard.firstName,
lastName: creditCard.lastName,
homePhone: user.phone,
creditCardType: creditCard.type || 'CA',
creditCardNumber: creditCard.number,
creditCardIdentifier: creditCard.identifier,
creditCardExpirationMonth: creditCard.expirationMonth,
creditCardExpirationYear: creditCard.expirationYear
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment