@@ -6,7 +6,6 @@ const makeString = require('make-string');
66
77const getAllCategories = function ( categoryID ) {
88 const requestURL = `${ urlObject . buildShoppingUrl ( this . options , 'GetCategoryInfo' ) } &${ stringifyUrl ( { 'CategoryID' : categoryID || - 1 } ) } ` ;
9- console . log ( requestURL ) ;
109 return getRequest ( requestURL ) . then ( ( data ) => {
1110 return JSON . parse ( data ) ;
1211 } , console . error // eslint-disable-line no-console
@@ -16,8 +15,8 @@ const getAllCategories = function (categoryID) {
1615const getUserDetails = function ( input ) {
1716 if ( ! input || typeof input !== 'object' ) throw new Error ( 'invalid_request_error -> Invalid input' ) ;
1817 if ( ! input . userId ) throw new Error ( 'invalid_request_error -> userId is null or invalid' ) ;
18+ input . includeSelector = input . includeSelector ? input . includeSelector : 'Details' ;
1919 const requestUrl = `${ urlObject . buildShoppingUrl ( this . options , 'GetUserProfile' ) } &${ stringifyUrl ( input ) } ` ;
20- console . log ( requestUrl ) ;
2120 return getRequest ( requestUrl ) . then ( ( data ) => {
2221 return JSON . parse ( data ) ;
2322 } , console . error // eslint-disable-line no-console
@@ -30,7 +29,6 @@ const getItemStatus = function (itemIds) {
3029 'ItemID' : makeString ( itemIds , { braces : 'false' , quotes : 'no' } )
3130 } ;
3231 const requestUrl = `${ urlObject . buildShoppingUrl ( this . options , 'GetItemStatus' ) } &${ stringifyUrl ( paramsObj ) } ` ;
33- console . log ( requestUrl ) ;
3432 return getRequest ( requestUrl ) . then ( ( data ) => {
3533 return JSON . parse ( data ) ;
3634 } , console . error // eslint-disable-line no-console
@@ -41,7 +39,6 @@ const getShippingCosts = function (input) {
4139 if ( ! input || typeof input !== 'object' ) throw new Error ( 'invalid_request_error -> Invalid input' ) ;
4240 if ( ! input . itemId ) throw new Error ( 'invalid_request_error -> Item id is null or invalid' ) ;
4341 const url = `${ urlObject . buildShoppingUrl ( this . options , 'GetShippingCosts' ) } &${ stringifyUrl ( input ) } ` ;
44- console . log ( url ) ;
4542 return getRequest ( url ) . then ( ( data ) => {
4643 return JSON . parse ( data ) ;
4744 } , console . error // eslint-disable-line no-console
@@ -56,7 +53,6 @@ const getShippingCosts = function (input) {
5653const getMultipleItems = function ( options ) {
5754 if ( ! options || ! options . itemId ) throw new Error ( 'invalid_request_error -> Item ID is null or invalid' ) ;
5855 const requestUrl = `${ urlObject . buildShoppingUrl ( this . options , 'GetMultipleItems' ) } &${ stringifyUrl ( { 'itemId' : makeString ( options . itemId , { braces : 'false' , quotes : 'no' } ) } ) } ` ;
59- console . log ( requestUrl ) ;
6056 return getRequest ( requestUrl ) . then ( ( data ) => {
6157 return JSON . parse ( data ) ;
6258 } , console . error // eslint-disable-line no-console
0 commit comments