mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
DB: put todos
This commit is contained in:
parent
4116b53e9b
commit
b8f0ab0fd6
1 changed files with 23 additions and 0 deletions
|
@ -178,6 +178,10 @@ const transformJourneysQuery = ({opt}, query) => {
|
||||||
const tvlrAgeGroup = ('age' in opt) ? ageGroupFromAge(opt.age) : opt.ageGroup
|
const tvlrAgeGroup = ('age' in opt) ? ageGroupFromAge(opt.age) : opt.ageGroup
|
||||||
|
|
||||||
query.trfReq = {
|
query.trfReq = {
|
||||||
|
// todo:
|
||||||
|
// "directESuiteCall": true,
|
||||||
|
// "rType": "DB-PE",
|
||||||
|
|
||||||
jnyCl: opt.firstClass === true ? 1 : 2,
|
jnyCl: opt.firstClass === true ? 1 : 2,
|
||||||
// todo [breaking]: support multiple travelers
|
// todo [breaking]: support multiple travelers
|
||||||
tvlrProf: [{
|
tvlrProf: [{
|
||||||
|
@ -240,6 +244,25 @@ const parseJourneyWithPrice = ({parsed}, raw) => {
|
||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
// }
|
// }
|
||||||
|
// "fareSetL": [
|
||||||
|
// {
|
||||||
|
// "fareL": [
|
||||||
|
// {
|
||||||
|
// "isFromPrice": true,
|
||||||
|
// "isPartPrice": false,
|
||||||
|
// "isBookable": true,
|
||||||
|
// "isUpsell": false,
|
||||||
|
// "targetCtx": "D",
|
||||||
|
// "buttonText": "To offer selection",
|
||||||
|
// "price": {
|
||||||
|
// "amount": 13990
|
||||||
|
// },
|
||||||
|
// "retPriceIsCompletePrice": false,
|
||||||
|
// "retPrice": -1
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
|
// }
|
||||||
|
// ]
|
||||||
if (
|
if (
|
||||||
raw.trfRes &&
|
raw.trfRes &&
|
||||||
Array.isArray(raw.trfRes.fareSetL) &&
|
Array.isArray(raw.trfRes.fareSetL) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue