Skip to content

Commit

Permalink
Merge pull request #8 from jaebradley/add-partner-to-flight-search
Browse files Browse the repository at this point in the history
fix(missing-partner-param): add partner param
  • Loading branch information
jaebradley authored Feb 19, 2018
2 parents 79dc0fc + a5b2410 commit 5ebe9b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 2 additions & 0 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ const searchFlights = ({
priceRange,
maximumStopOverCount,
airlinesFilter,
partner,
locale,
offset,
limit,
Expand All @@ -167,6 +168,7 @@ const searchFlights = ({
priceRange,
maximumStopOverCount,
airlinesFilter,
partner,
locale,
offset,
limit,
Expand Down
2 changes: 2 additions & 0 deletions src/flightSearchParameterBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const buildFlightSearchParameters = ({
priceRange,
maximumStopOverCount,
airlinesFilter,
partner,
locale,
offset,
limit,
Expand All @@ -63,6 +64,7 @@ const buildFlightSearchParameters = ({
const parameters = {
flyFrom: departureIdentifier,
to: arrivalIdentifier,
partner,
locale,
offset,
limit,
Expand Down

0 comments on commit 5ebe9b4

Please sign in to comment.