From a5b241044c5b7c344f60b0d966463b3f7a38c056 Mon Sep 17 00:00:00 2001 From: jaebradley Date: Mon, 19 Feb 2018 01:40:03 -0500 Subject: [PATCH] fix(missing-partner-param): add partner param --- README.md | 1 + src/client.js | 2 ++ src/flightSearchParameterBuilder.js | 2 ++ 3 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 7056d3e..79c7d97 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,7 @@ const locationDump = await getLocationDump({ * `maximumStopOverCount: (optional; non-negative integer)` - Maximum number of stopovers * `airlinesFilter: (optional; object)` - Either *excludes* or *includes* the specified airlines. The `airlinesFilter` object has two properties: `airlines` (an `array` of `IATA` codes) and `type` (an `AIRLINES_FILTER_TYPE` value). +* `partner: (optional; string)` - The Skypicker Partner ID assigned to your account. Use `picky` for testing. ```javascript { diff --git a/src/client.js b/src/client.js index c575d7f..dd1c475 100644 --- a/src/client.js +++ b/src/client.js @@ -149,6 +149,7 @@ const searchFlights = ({ priceRange, maximumStopOverCount, airlinesFilter, + partner, locale, offset, limit, @@ -167,6 +168,7 @@ const searchFlights = ({ priceRange, maximumStopOverCount, airlinesFilter, + partner, locale, offset, limit, diff --git a/src/flightSearchParameterBuilder.js b/src/flightSearchParameterBuilder.js index f382b45..527db89 100644 --- a/src/flightSearchParameterBuilder.js +++ b/src/flightSearchParameterBuilder.js @@ -55,6 +55,7 @@ const buildFlightSearchParameters = ({ priceRange, maximumStopOverCount, airlinesFilter, + partner, locale, offset, limit, @@ -63,6 +64,7 @@ const buildFlightSearchParameters = ({ const parameters = { flyFrom: departureIdentifier, to: arrivalIdentifier, + partner, locale, offset, limit,