Booking information includes information such as the arrival and departure dates, checkout time, the date after which a refund is not possible, as well as reservation and payment status. For simplicity, in this illustration, payments is in the currency associated with the property (see PropInfo.currency). Here is our first draft for BookingInfo:
BookingInfo = {
"arrivalDate" : <yyyy-mm-dd hh:mm>,
"departureDate" : <yyyy-mm-dd hh:mm>,
"checkoutTime" : <hh:mm>,
"refundableUntil" : <yyyy-mm-dd hh:mm>,
"reservationStatus" : <rsvStatus>,
"paymentStatus" : <payStatus>,
}
As with the other structures, certain common elements are defined. Here, we can see common elements associated with booking information:
Common = [
{ "rsvStatus" : ['pending','confirmed','cancelled'] },
{ "...