Skip to content
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

Fixes https://github.com/jlevers/selling-partner-api/issues/758 #760

Closed
wants to merge 2 commits into from

Conversation

civilCornball
Copy link

@civilCornball civilCornball commented Jul 22, 2024

Look. I'm not great at coding. But this works.

It allows SellingPartnerApi->seller()->catalogItems->catalogApi->getCatalogItem() to work, getting around the 'datetime cannot be false' issue via the use of 'Union' types.

Accepting this PR would probably break a lot of things that I'm not aware of.

But it doesn't give me any errors.

So I'm putting this here, so other coders can add to this.

I know I'm not supposed to edit this. But this is the only way I could think of.
@simonsolutions
Copy link
Contributor

Removing the DateTime Deserialize function isn't a good idea i suppose. The question would be what datetime format is delivered in the api response that could possibly be taken into account of the function to deserialize.
First try version 7.1.1 with the original code, there was a new format added. maybe then it already works for you without problems.

@simonsolutions
Copy link
Contributor

Referring to PR #746

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants