Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
fix: fix parameters get matching product for id
Browse files Browse the repository at this point in the history
  • Loading branch information
justinemmanuelmercado committed May 26, 2020
1 parent 1f3d298 commit 0c29949
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/sections/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ export class Products {
})
}

/**
*
* @todo Think about converting GetMatchingProductResposne to array to match getMatchingProductForId
*/
async getMatchingProduct(
parameters: GetMatchingProductParameters,
): Promise<[MatchingProduct, RequestMeta]> {
Expand Down Expand Up @@ -280,7 +276,11 @@ export class Products {
resource: Resource.Products,
version: PRODUCTS_API_VERSION,
action: 'GetMatchingProductForId',
parameters,
parameters: {
'IdList.Id': parameters.IdList,
IdType: parameters.IdType,
MarketplaceId: parameters.MarketplaceId,
},
})

return GetMatchingProductForIdResponseCodec.decode(response).caseOf({
Expand Down

0 comments on commit 0c29949

Please sign in to comment.