When processing payment responses from Adyen POS terminals, the additionalData.fundingSource field can return DEFFERED_DEBIT, which is not present in com.adyen.model.checkout.CardDetails.FundingSourceEnum.
The current enum only contains: CREDIT, DEBIT, PREPAID.
This causes FundingSourceEnum.fromValue() to throw an exception for a valid terminal funding source, resulting in errors like:
fundingType unknown: AdditionalResponse[additionalData=AdditionalData[fundingSource=DEFFERED_DEBIT, acquirerResponseCode=00 : Approved or completed successfully, cardScheme=visastandardcredit, applicationLabel=Visa, ...]]
Could the enum be extended to cover this value, or is there some other enum for webhook parsing?
When processing payment responses from Adyen POS terminals, the
additionalData.fundingSourcefield can returnDEFFERED_DEBIT, which is not present incom.adyen.model.checkout.CardDetails.FundingSourceEnum.The current enum only contains:
CREDIT,DEBIT,PREPAID.This causes
FundingSourceEnum.fromValue()to throw an exception for a valid terminal funding source, resulting in errors like:Could the enum be extended to cover this value, or is there some other enum for webhook parsing?