-
Notifications
You must be signed in to change notification settings - Fork 115
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
Explicitly configure ContractResolver for SaleToPOIMessage serialization #1095
Explicitly configure ContractResolver for SaleToPOIMessage serialization #1095
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly what was need!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution, I've left some minor comments.
Adyen/ApiSerialization/Converter/JsonConvertSerializerWrapper.cs
Outdated
Show resolved
Hide resolved
Quality Gate passedIssues Measures |
@Kwok-he-Chu, could you merge my changes, please? I don't have permissions even after your approval. Thank you. |
Merged, thank you for the contribution! @alexander-olesiyuk-apaleo |
Description
Explicitly configure
ContractResolver
forSaleToPOIMessage
andSaleToPoiMessageSecured
serialization to useDefaultContractResolver
. This is necessary to always use the same property naming strategy and not depend onJsonConvert.DefaultSettings
as it can be changed by running app which can cause failure when parsing request on the server.Tested scenarios
Added tests for
SaleToPoiMessage
andSaleToPoiMessageSecured
which compare results of serialization whenJsonConvert.DefaultSettings
are not set and configured to useCamelCaseNamingStrategy
. ForSaleToPoiMessageSecured
clearedSecurityTrailer.Nonce
andNexoBlob
as they are different for each execution.Fixed issue: #1093