-
Notifications
You must be signed in to change notification settings - Fork 114
Description
Description
Unsupported dataReview error/suberror type
Steps to reproduce
Hello,
I noticed an error when using the Adyen\Service\BalancePlatform::updateAccountHolder() method:
Actual behavior
An exception is thrown in Adyen\Model\BalancePlatform\VerificationError::setType()
InvalidArgumentException :
Invalid value 'dataReview' for 'type', must be one of 'dataMissing', 'invalidInput', 'pendingStatus'
Expected behavior
The API documentation mentions this type as one of the possible values, but this PHP library does not support it because the Adyen\Model\BalancePlatform\VerificationError does not have the TYPE_DATA_REVIEW constant.
I checked the other VerificationError classes; some of them do support it, and some do not.
For exemple, Adyen\Model\ConfigurationWebhooks\VerificationError does not have the constant TYPE_DATA_REVIEW but Adyen\Model\LegalEntityManagement\VerificationError does have it.
Code snippet or screenshots (if applicable)
No response
Adyen PHP API Library version
v19 but the latest version also have the issue
PHP version
8.3
Operating System
Linux
Additional context
No response