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,