Skip to content

Commit

Permalink
Add (#138)
Browse files Browse the repository at this point in the history
Add buyerPostalCode to the list of options that are a key and value query string pair.
eBay docs reference: https://developer.ebay.com/devzone/finding/callref/findItemsByKeywords.html
  • Loading branch information
EarthlingDavey authored Mar 18, 2021
1 parent cce21ff commit 642a273
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common-utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function constructAdditionalParams(options){
if (['entriesPerPage', 'pageNumber'].includes(key)) {
params += `paginationInput.${key}=${value}&`;
}
else if (['keywords', 'categoryId', 'productId', 'sortOrder', 'storeName'].includes(key)) {
else if (['keywords', 'categoryId', 'productId', 'sortOrder', 'storeName', 'buyerPostalCode'].includes(key)) {
const encodeParam = encodeURIComponent(value);
params += `${key}=${encodeParam}&`;
}
Expand Down Expand Up @@ -97,4 +97,4 @@ module.exports = {
},
base64Encode,
constructAdditionalParams
};
};

0 comments on commit 642a273

Please sign in to comment.