You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due this case discrepancy, the deserialization fails, and, as the enum has defined the @JsonCreator fromValue method, we can not override this behaviour.
How to reproduce
Launch a payment into a related authorization webhook defined.
Expected behavior
The enum should have the value defined into the library object.
Describe the bug
We are receiving a value "Active" into the paymentInstrument.status relayed authorization request, but the com.adyen.model.configurationwebhooks.PaymentInstrument.status field is defined as:
ACTIVE("active")
.Due this case discrepancy, the deserialization fails, and, as the enum has defined the @JsonCreator fromValue method, we can not override this behaviour.
How to reproduce
Launch a payment into a related authorization webhook defined.
Expected behavior
The enum should have the value defined into the library object.
Request
{ "accountHolder": { "description": "**** Account Holder", "id": "AH32272223226K5K8TNTZB68S" }, "amount": { "currency": "EUR", "value": -42 }, "authCode": "009518", "authorisationDecision": { "reasonCode": "APPROVED", "status": "Authorised", "statusCode": "APPROVED" }, "authorisationType": "defaultAuthorisation", "balanceAccount": { "description": "**** Liable Balance Account", "id": "****" }, "balanceMutations": [ { "balanceAfter": { "currency": "EUR", "value": 9821307 }, "balanceBefore": { "currency": "EUR", "value": 9821349 }, "currency": "EUR", "mutationAmount": { "currency": "EUR", "value": -42 }, "type": "AuthorisedOutgoing" } ], "balancePlatform": "****", "entryMode": "manual", "id": "****", "merchantData": { "acquirerId": "****", "mcc": "5947", "merchantId": "****", "nameLocation": { "city": "Amsterdam", "country": "NLD", "name": "****-_ISSUING_TEST", "rawData": "****-_ISSUING_TEST Amsterdam NL" } }, "originalAmount": { "currency": "EUR", "value": -42 }, "paymentInstrument": { "balanceAccountId": "****", "description": "test - Virtual card", "issuingCountryCode": "NL", "status": "Active", "type": "card", "card": { "brand": "visa", "brandVariant": "visa_debit_f", "cardholderName": "test", "formFactor": "virtual", "bin": "****", "expiration": { "month": "11", "year": "2027" }, "lastFour": "1401" }, "id": "****" }, "processingType": "ecommerce", "reference": "****", "schemeUniqueTransactionId": "****", "transactionRulesResult": { "advice": "AuthorizeAndBlockPaymentInstrument", "allRulesPassed": "true", "failedTransactionRules": [ { "reason": "Transaction completes the maximum allowed usage of the card (1 transactions)", "transactionRule": { "description": "Single usage restriction", "id": "****", "reference": "TR#SINGLEUSE#****" }, "transactionRuleSource": { "id": "****", "type": "PaymentInstrument" } } ], "score": 0 }, "validationResult": [ { "result": "valid", "type": "PaymentInstrumentActive" }, { "result": "valid", "type": "Screening" }, { "result": "valid", "type": "InputExpiryDateCheck" }, { "result": "notValidated", "type": "MITAllowedMerchant" }, { "result": "valid", "type": "CardholderAuthentication" }, { "result": "valid", "type": "CVC2" }, { "result": "valid", "type": "PaymentInstrument" }, { "result": "valid", "type": "PaymentInstrumentFound" }, { "result": "valid", "type": "CardAuthentication" }, { "result": "valid", "type": "PaymentInstrumentExpirationCheck" }, { "result": "valid", "type": "PartyScreening" }, { "result": "valid", "type": "TransactionValidation" }, { "result": "valid", "type": "TransactionRules" }, { "result": "valid", "type": "RealBalanceAvailable" }, { "result": "valid", "type": "AccountLookup" }, { "result": "valid", "type": "BalanceCheck" } ] }
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: