Skip to content

Commit 642a273

Browse files
Add (#138)
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
1 parent cce21ff commit 642a273

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common-utils/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function constructAdditionalParams(options){
2828
if (['entriesPerPage', 'pageNumber'].includes(key)) {
2929
params += `paginationInput.${key}=${value}&`;
3030
}
31-
else if (['keywords', 'categoryId', 'productId', 'sortOrder', 'storeName'].includes(key)) {
31+
else if (['keywords', 'categoryId', 'productId', 'sortOrder', 'storeName', 'buyerPostalCode'].includes(key)) {
3232
const encodeParam = encodeURIComponent(value);
3333
params += `${key}=${encodeParam}&`;
3434
}
@@ -97,4 +97,4 @@ module.exports = {
9797
},
9898
base64Encode,
9999
constructAdditionalParams
100-
};
100+
};

0 commit comments

Comments
 (0)