Last active
December 24, 2015 11:19
-
-
Save shadeglare/6790175 to your computer and use it in GitHub Desktop.
Models for booking an offer with a single flight segment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var BookingModels = { | |
"passenger": { | |
properties: { | |
"firstName": "", | |
"lastName": "", | |
"email": {}, | |
"birthDate": { | |
day: 0, | |
month: 0, | |
year: 0 | |
} | |
}, | |
relations: { | |
} | |
}, | |
"offer": { | |
properties: { | |
"marketingCarrier": "", | |
"operatingCarrier": "", | |
"from": "", | |
"to": "", | |
"departure": { | |
"minutes": 0, | |
"hours": 0, | |
"day": 0, | |
"month": 0, | |
"year": 0 | |
}, | |
"arrival": { | |
"minutes": 0, | |
"hours": 0, | |
"day": 0, | |
"month": 0, | |
"year": 0 | |
}, | |
"price": { | |
"value": 0, | |
"currency": "" | |
} | |
}, | |
relations: { | |
} | |
}, | |
"bonusCard": { | |
"carrier": "", | |
"number": "" | |
}, | |
"booking": { | |
properties: { | |
"locator": "", | |
"timeLimit": { | |
"minutes": 0, | |
"hours": 0, | |
"day": 0, | |
"month": 0, | |
"year": 0 | |
}, | |
"bonusCards": [] | |
}, | |
relations: { | |
"offer" : {}, | |
"passengers" : {} | |
} | |
} | |
}; | |
module.exports.BookingModels = BookingModels; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment