Skip to content

misc(payment): Add reasonCode to HyperwalletPayment #212

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

oualidsr
Copy link
Contributor

@oualidsr oualidsr commented Apr 29, 2024

Hello 👋

We (BlaBlaCar) recently activated the reasonCode field and we are facing an issue when parsing notifications with the HyperwalletPayment object (+ couldn't get the reasonCode) :

<#2f49d778> c.f.j.d.e.UnrecognizedPropertyException: Unrecognized field "reasonCode" (class com.hyperwallet.clientsdk.model.HyperwalletPayment), not marked as ignorable (14 known properties: "notes", "releaseOn", "createdOn", "destinationToken", "currency", "status", "expiresOn", "programToken", "clientPaymentId", "amount", "token", "memo", "purpose", "links"])

There could probably be a workaround to avoid this error by skipping unknown fields on our Mapper, but we extended this POJO in our codebase as a workaround to add the reasonCode field which is quite useful for us.

Feel free to push on this branch or close this PR if not relevant

Thanks 🙏

@grmeyer-hw-dev grmeyer-hw-dev merged commit 6484267 into hyperwallet:master Jul 4, 2024
1 check passed
@grmeyer-hw-dev
Copy link
Collaborator

Hi @oualidsr

Thanks for your contribution.
This change will be available on Java V4 SDK v2.4.9

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

Successfully merging this pull request may close these issues.

2 participants