-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CatalogItems API is returning MerchantFulfillment::Item
not CatalogItems::Item
#41
Comments
it's brittle but you need to pass the api client into the initializer like this https://github.com/ericcj/amz_sp_api#getting-started |
hey @ericcj, appreciate your response! After looking into this a bit more, it seems like this was were things were breaking down: Line 239 in 84cd2df
Think the ordering of the constants is not consistently guaranteed so that in conjunction with the Since we're inheriting off We changed
|
I believe the same issue is happening with the ListingsApi.
We also have a model called |
just encountered this as well. Also noticed that the PR spocket-co#1 was reverted (maybe when the new version was generated?) - or maybe github is confusing me and this was never merged? |
I'm making a request to
get_catalog_item
hereI have the debugging logger enabled and I can see that my request is returning a 200 with the appropriate data. However, the gem returns me the incorrect
Item
type. I am expected to be returnedAmzSpApi::CatalogItemsApiModel::Item
https://github.com/ericcj/amz_sp_api/blob/main/lib/catalog-items-api-model/docs/Item.mdInstead, I'm being returned a
AmzSpApi::MerchantFulfillmentApiModel::Item
https://github.com/ericcj/amz_sp_api/blob/main/lib/merchant-fulfillment-api-model/docs/Item.mdFrom what I can tell from debugging, this is due to the incorrect
ApiClient.default
being instantiatedCould anyone help me figure out how to fix this?
The text was updated successfully, but these errors were encountered: