bookingAPI
bookingAPI copied to clipboard
loaded latest prices in trip screen
Asynchroincally load prices ("Abpreise") using the /prices resource.
/prices returns two prices - which of them is the "Abpreis"? To distinguish different prices in code maybe we should use an enum and not the "description" in german...
[ { "description": "Normalpreis", "price": 22, "_links": { "self": { "href": "/api/prices?originId=8507000&destinationId=8507100&date=2017-06-14&time=20%3A04" }, "offer": { "href": "offers/?originId=8507000&destinationId=8507100&date=2017-06-14&time=20%3A04&productId=125&age=42&reduction=half-fare-2nd" } } }, { "description": "Sparpreis", "price": 12, "_links": { "self": { "href": "/api/prices?originId=8507000&destinationId=8507100&date=2017-06-14&time=20%3A04" }, "offer": { "href": "offers/?originId=8507000&destinationId=8507100&date=2017-06-14&time=20%3A04&productId=4004&age=42&reduction=half-fare-2nd" } } } ]