From b8f0ab0fd6e64ca0c031de3b026af8334860b995 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Mon, 15 May 2023 12:58:40 +0200 Subject: [PATCH] DB: put todos --- p/db/index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/p/db/index.js b/p/db/index.js index a0a15992..b4c1e3a1 100644 --- a/p/db/index.js +++ b/p/db/index.js @@ -178,6 +178,10 @@ const transformJourneysQuery = ({opt}, query) => { const tvlrAgeGroup = ('age' in opt) ? ageGroupFromAge(opt.age) : opt.ageGroup query.trfReq = { + // todo: + // "directESuiteCall": true, + // "rType": "DB-PE", + jnyCl: opt.firstClass === true ? 1 : 2, // todo [breaking]: support multiple travelers 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 ( raw.trfRes && Array.isArray(raw.trfRes.fareSetL) &&