SalesforceCommerceCloud / commerce-sdk

https://salesforcecommercecloud.github.io/commerce-sdk/
BSD 3-Clause "New" or "Revised" License
149 stars 48 forks source link

searchProduct lacks expands parameter in types #387

Closed michaelKurowski closed 1 year ago

michaelKurowski commented 1 year ago

The API docs suggest that one can use expand parameter, but there's no such thing in the SCAPI SDK types. Docs: https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-search?meta=productSearch

vcua-mobify commented 1 year ago

Thanks for reporting this.

I'll add a work item to update the type and include that parameter.

joeluong-sfcc commented 1 year ago

Hey @michaelKurowski, there are actually two places productSearch methods you can call. If you see the one under Discovery module, it has the expand query parameter: https://salesforcecommercecloud.github.io/commerce-sdk/classes/discovery.shoppersearch.html, if you need the expand query parameter, give that method a shot instead.