Skip to content

Instantly share code, notes, and snippets.

@shadeglare
Created October 4, 2013 07:33
Show Gist options
  • Save shadeglare/6822272 to your computer and use it in GitHub Desktop.
Save shadeglare/6822272 to your computer and use it in GitHub Desktop.
{
"passenger": {
"properties": {
"firstName": "",
"lastName": "",
"email": {},
"birthDate": {
"day": 0,
"month": 0,
"year": 0
}
},
"relations": {
}
},
"flight": {
"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": {
"properties": {
"carrier": "",
"number": ""
},
"relations": {
}
},
"booking": {
"properties": {
"locator": "",
"timeLimit": {
"minutes": 0,
"hours": 0,
"day": 0,
"month": 0,
"year": 0
},
"bonusCards": []
},
"relations": {
"flight" : {},
"passengers" : {}
}
},
"36dd1132-e37f-4ca6-8459-2cd9aabaa14e": {
"properties": {
"firstName": "Vasily",
"lastName": "Ivanov",
"email": "[email protected]",
"birthDate": {
"day": 10,
"month": 3,
"year": 1966
}
},
"relations": {
"model": "passenger"
}
},
"0dc72026-54ff-4d21-beb0-03f207364df1": {
"properties": {
"firstName": "Peter",
"lastName": "Petrov",
"email": "[email protected]",
"birthDate": {
"day": 3,
"month": 9,
"year": 1975
}
},
"relations": {
"model": "passenger"
}
},
"3dcc66e2-d508-42e4-ad50-fa60048e2bf2": {
"properties": {
"marketingCarrier": "SU",
"operatingCarrier": "SU",
"from": "LHR",
"to": "MOW",
"departure": {
"minutes": 35,
"hours": 17,
"day": 13,
"month": 10,
"year": 2013
},
"arrival": {
"minutes": 5,
"hours": 20,
"day": 13,
"month": 10,
"year": 2013
},
"price": {
"value": 13500,
"currency": "RUB"
}
},
"relations": {
"model": "flight"
}
},
"507c751f-d3e5-41d4-b485-f3d1d79af36d": {
"properties": {
"marketingCarrier": "BA",
"operatingCarrier": "BA",
"from": "PAR",
"to": "RIX",
"departure": {
"minutes": 5,
"hours": 12,
"day": 7,
"month": 11,
"year": 2013
},
"arrival": {
"minutes": 15,
"hours": 13,
"day": 7,
"month": 11,
"year": 2013
},
"price": {
"value": 6500,
"currency": "RUB"
}
},
"relations": {
"model": "flight"
}
},
"61ff6f45-4e84-4d69-bda4-124f10561d9c": {
"properties": {
"locator": "ZVATP3",
"timeLimit": {
"minutes": 35,
"hours": 10,
"day": 13,
"month": 10,
"year": 2013
},
"bonusCards": [
{
"carrier": "SU",
"number": "34521239"
}
]
},
"relations": {
"model": "booking",
"flight": "3dcc66e2-d508-42e4-ad50-fa60048e2bf2",
"passengers": [
"36dd1132-e37f-4ca6-8459-2cd9aabaa14e",
"0dc72026-54ff-4d21-beb0-03f207364df1"
]
}
},
"681d78d8-1460-4246-88ad-1e12ac1fa669": {
"properties": {
"locator": "ZVATN8",
"timeLimit": {
"minutes": 5,
"hours": 8,
"day": 6,
"month": 11,
"year": 2013
},
"bonusCards": [
{
"carrier": "SU",
"number": "34521239"
},
{
"carrier": "BA",
"number": "76483245"
},
{
"image": "http://example.com/img.png"
}
]
},
"relations": {
"model": "booking",
"flight": "507c751f-d3e5-41d4-b485-f3d1d79af36d",
"passengers": [
"0dc72026-54ff-4d21-beb0-03f207364df1"
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment