From 642a273df4a474cc6112befa6992ee711d231139 Mon Sep 17 00:00:00 2001 From: EarthlingDavey <15802017+EarthlingDavey@users.noreply.github.com> Date: Thu, 18 Mar 2021 04:01:36 +0000 Subject: [PATCH] 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 --- src/common-utils/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common-utils/index.js b/src/common-utils/index.js index 92fb906..cc3fb14 100644 --- a/src/common-utils/index.js +++ b/src/common-utils/index.js @@ -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}&`; } @@ -97,4 +97,4 @@ module.exports = { }, base64Encode, constructAdditionalParams -}; \ No newline at end of file +};