File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -73,10 +73,11 @@ const getVersion = function () {
73
73
const findItemsByProduct = function ( options ) {
74
74
if ( ! options ) throw new Error ( 'INVALID_REQUEST_PARMS --> Please enter the Valid input.' ) ;
75
75
if ( ! options . productId ) throw new Error ( 'INVALID_REQUEST_PARMS --> Product ID is required.' ) ;
76
+ let type = options . type ? options . type : 'ReferenceID' ;
76
77
this . options . operationName = 'findItemsByProduct' ;
77
78
this . options . additionalParam = constructAdditionalParams ( options ) ;
78
79
let url = urlObject . buildSearchUrl ( this . options ) ;
79
- url = `${ url } &productId.@type=ReferenceID ` ;
80
+ url = `${ url } &productId.@type=${ type } ` ;
80
81
return getRequest ( url ) . then ( ( data ) => {
81
82
return JSON . parse ( data ) . findItemsByProductResponse ;
82
83
You can’t perform that action at this time.
0 commit comments