-
Notifications
You must be signed in to change notification settings - Fork 136
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
Creation of AccountHolder from webhook contents fails #1320
Comments
Hi @vincenthartsteen , Thanks for raising this issue. We will try to provide more webhooks support in the future. Kind Regards, |
We are experiencing the same problem. AccountHolderNotificationRequest.fromJson tries to deserialize to an AccountHolder (in the AccountHolderNotificationData), which fails as the status enum is no longer correct as the values we are actually getting are capitalized (e.g. "Active") Cannot construct instance of |
Hi Wouter, I'm afraid that doesn't work. The
Here you see a |
Hi @vincenthartsteen and @Arnfinng, Which webhook versions are you using? You can check this on the Balance Platform Customer Area. Best, Jilling |
Hi Jilling,
For the Transfer webhook I see version 3. For the Report, Configuration and Balance webhooks I see version 1
Mvg,
Vincent Hartsteen
…On 22 Jul 2024 at 14:22 +0200, jillingk ***@***.***>, wrote:
Hi @vincenthartsteen and @Arnfinng,
Which webhook versions are you using? You can check this on the Balance Platform Customer Area.
Best, Jilling
Adyen
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Could you try to update the configured versions to the latest ones? E.g. I'm pretty sure the Configuration version is now at v2, which is unfortunately the only version we support in this library. There's some small quirky changes like the enum casing changing that we sadly had to introduce across versions. Best, Jilling |
Hi Jilling,
Can I change the version from the CA? When I try to edit a webhook I don’t see how I can change the version.
Mvg,
Vincent Hartsteen
…On 22 Jul 2024 at 15:39 +0200, jillingk ***@***.***>, wrote:
Hi @vincenthartsteen,
Could you try to update the configured versions to the latest ones? E.g. I'm pretty sure the Configuration version is now at v2, which is unfortunately the only version we support in this library. There's some small quirky changes like the enum casing changing that we sadly had to introduce across versions.
Best, Jilling
Adyen
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Yes for the webhooks with multiple versions you should be able to change it. I found the similar issue we had a short while ago that might offer you some more insight. Let me know if you're able to sort it out. Best, Jilling |
Oh ok. That is a bit confusing. So the webhooks for the balance platform can also be edited from the “old” CA environment… And the version can only be changed on the “old” CA and not on the “balance” CA. I need a coffee :-)
Changed the version now and will test it.
Mvg,
Vincent Hartsteen
…On 22 Jul 2024 at 16:05 +0200, jillingk ***@***.***>, wrote:
Hi @vincenthartsteen,
Yes for the webhooks with multiple versions you should be able to change it. I found the similar issue we had a short while ago that might offer you some more insight. Let me know if you're able to sort it out.
Best, Jilling
Adyen
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
These quirks are exactly the reason my colleagues are trying to unify the two platforms :) Apologies for the confusion, let us know if you are able to get it working! Best, Jilling |
Hi Jilling,
Yes I see that the response changed :-)
Thanks for your assistance!
Mvg,
Vincent Hartsteen
…On 24 Jul 2024 at 09:38 +0200, jillingk ***@***.***>, wrote:
Hi @vincenthartsteen,
These quirks are exactly the reason my colleagues are trying to unify the two platforms :)
Apologies for the confusion, let us know if you are able to get it working!
Best, Jilling
Adyen
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
This issue has been automatically marked as stale due to inactivity and will be closed in 7 days if no further activity occurs. |
This issue was closed due to inactivity. Please reopen if you still encounter this problem or have more information to add. |
Describe the bug
Mapping of the
accountHolder
that is part of e.g. thebalancePlatform.accountHolder.updated
webhook fails. Thestatus
field for that account-holder isActive
but that value can't be mapped to theAccountHolder$StatusEnum
.How to reproduce
Create or update an account-holder on the Balance platform. A webhook similar to the following will be sent:
From that webhook, get the value for the
accountHolder
and pass that intoAccountHolder.fromJson(...)
Notice that an exception is thrown:
The enum (
AccountHolder$StatusEnum
) only has values in lowercase. I created a simple test for this and indeed when I changeActive
toactive
the method returns an AccountHolder object.So either the enum should accept the
Active
or the contents of the webhook should exactly match the values of the enum.Expected behavior
The
AccountHolder.fromJson
should return a valid AccountHolder object based on the contents of the webhook.Screenshots
Error message is shown in previous section.
Desktop (please complete the following information):
Additional context
We are migrating our application from the Bank environment to the Balance platform and are now receiving these webhooks on the TEST environment.
The text was updated successfully, but these errors were encountered: