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

Problem with AdjustmentType #447

Closed
AlexanderGaivorontsev opened this issue Oct 27, 2021 · 5 comments · Fixed by #448
Closed

Problem with AdjustmentType #447

AlexanderGaivorontsev opened this issue Oct 27, 2021 · 5 comments · Fixed by #448
Labels

Comments

@AlexanderGaivorontsev
Copy link
Contributor

Hi! I use your lib for working with Amazon. But I met this problem:
Problem with the value of property "ListFinancialEventsByNextTokenResponse": Problem with the value of property "ListFinancialEventsByNextTokenResult": Problem with the value of property "FinancialEvents": Problem with the value of property "AdjustmentEventList": One of the following problems occured: (0) Problem with the value at index 3: Problem with the value of property "AdjustmentType": One of the following problems occured: (0) Expected an enum member, but received a string with value "Other", (1) Expected an undefined, but received a string with value "Other", (1) Expected an undefined, but received an object with value {"AdjustmentEvent":[{"AdjustmentType":"PostageBilling_DeliveryConfirmation","AdjustmentAmount":{"CurrencyAmount":0,"CurrencyCode":"USD"},"PostedDate":"2021-09-28T23:46:48.032Z"},{"AdjustmentType":"PostageBilling_Postage","AdjustmentAmount":{"CurrencyAmount":-5.27,"CurrencyCode":"USD"},"PostedDate":"2021-09-28T23:46:48.032Z"},{"AdjustmentType":"PostageBilling_TransactionFee","AdjustmentAmount":{"CurrencyAmount":0,"CurrencyCode":"USD"},"PostedDate":"2021-09-28T23:46:48.032Z"},{"AdjustmentType":"Other","AdjustmentAmount":{"CurrencyAmount":0,"CurrencyCode":"USD"},"PostedDate":"2021-09-28T23:46:48.032Z"}]}

I found AdjustmentTypeEnum into the codec.d file:
image

Amazon sends me data types like this:
image
and this:
image
I like your lib and I want to use it and I want to help you. Thanks!

@moltar
Copy link
Contributor

moltar commented Oct 27, 2021

Привет Алекс! Вы могли бы создать PR с решением?

Ну или хотя бы скиньте анонимизированный ответ целиком.

@AlexanderGaivorontsev
Copy link
Contributor Author

Привет! Я нашел еще больше отсутствующих типов. Добавлю PR с решением

@AlexanderGaivorontsev
Copy link
Contributor Author

PR: #448

moltar pushed a commit that referenced this issue Oct 27, 2021
github-actions bot pushed a commit that referenced this issue Oct 27, 2021
## [2.0.5](v2.0.4...v2.0.5) (2021-10-27)

### Bug Fixes

* adds types to `ChargeTypeEnum`, `TaxCollectionModelEnum`, `AdjustmentTypeEnum` ([#448](#448)) ([8b3261a](8b3261a)), closes [#447](#447)
@github-actions
Copy link

🎉 This issue has been resolved in version 2.0.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@moltar
Copy link
Contributor

moltar commented Oct 27, 2021

Thanks for the PR! 🎉

AlexanderGaivorontsev added a commit to AlexanderGaivorontsev/amazon-mws-api-sdk that referenced this issue Oct 28, 2021
AlexanderGaivorontsev pushed a commit to AlexanderGaivorontsev/amazon-mws-api-sdk that referenced this issue Oct 28, 2021
## [2.0.5](ScaleLeap/amazon-mws-api-sdk@v2.0.4...v2.0.5) (2021-10-27)

### Bug Fixes

* adds types to `ChargeTypeEnum`, `TaxCollectionModelEnum`, `AdjustmentTypeEnum` ([ScaleLeap#448](ScaleLeap#448)) ([8b3261a](ScaleLeap@8b3261a)), closes [ScaleLeap#447](ScaleLeap#447)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants