diff --git a/lib/SellingPartner.js b/lib/SellingPartner.js index 6e28a3b..f892ffd 100644 --- a/lib/SellingPartner.js +++ b/lib/SellingPartner.js @@ -719,13 +719,7 @@ class SellingPartner { throw new CustomError(error); } - // If there is a pagination outside payload (like for getInventorySummaries), this will include it with the result - if (json_res.pagination && json_res.payload) { - return Object.assign(json_res.pagination, json_res.payload); - } - - // Some calls do not return response in payload but directly (i.e. operation "getSmallAndLightEligibilityBySellerSKU")! - return json_res.payload || json_res; + return json_res; } // Download a report or feed result