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

Explicitly configure ContractResolver for SaleToPOIMessage serialization #1095

Conversation

alexander-olesiyuk-apaleo
Copy link
Contributor

Description
Explicitly configure ContractResolver for SaleToPOIMessage and SaleToPoiMessageSecured serialization to use DefaultContractResolver. This is necessary to always use the same property naming strategy and not depend on JsonConvert.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 and SaleToPoiMessageSecured which compare results of serialization when JsonConvert.DefaultSettings are not set and configured to use CamelCaseNamingStrategy. For SaleToPoiMessageSecured cleared SecurityTrailer.Nonce and NexoBlob as they are different for each execution.

Fixed issue: #1093

@alexander-olesiyuk-apaleo alexander-olesiyuk-apaleo requested a review from a team as a code owner December 16, 2024 16:16
Copy link

@JonasBr68 JonasBr68 left a 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!

@Kwok-he-Chu Kwok-he-Chu self-requested a review December 23, 2024 09:25
Copy link
Contributor

@Kwok-he-Chu Kwok-he-Chu left a 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.

@alexander-olesiyuk-apaleo
Copy link
Contributor Author

@Kwok-he-Chu, could you merge my changes, please? I don't have permissions even after your approval. Thank you.

@Kwok-he-Chu Kwok-he-Chu merged commit 901250b into Adyen:main Jan 2, 2025
2 checks passed
@Kwok-he-Chu
Copy link
Contributor

Merged, thank you for the contribution! @alexander-olesiyuk-apaleo

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.

3 participants