intuit / QuickBooks-V3-Java-SDK

Java SDK for QuickBooks REST API v3 services
Apache License 2.0
70 stars 142 forks source link

Deserialization error when processing an ECheck for a business account #142

Closed danjohnson11 closed 4 years ago

danjohnson11 commented 4 years ago

When I set the BankAccount.accountType to BankAccount.AccountType.BUSINESS_SAVINGS or BankAccount.AccountType.BUSINESS_CHECKING and pass the ECheck to ECheckService.create() I get the follow error:

com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type com.intuit.payment.data.ECheck$PaymentModeType from String "CCD": not one of the values accepted for Enum class: [WEB] at [Source: (String)"{"id":"amyxeq2p","authCode":"063-451","created":"2020-08-26T16:55:33Z","status":"PENDING","amount":"5.00","bankAccount":{"name":"bob","inputType":"KEYED","routingNumber":"xxxxx2676","accountNumber":"xxxxx6789","accountType":"BUSINESS_CHECKING","phone":"8015551212"},"paymentMode":"CCD"}"; line: 1, column: 281] (through reference chain: com.intuit.payment.data.ECheck["paymentMode"])

It looks like CCD needs to be added to the ECheck.PaymentModeType enum.

nimisha84 commented 4 years ago

We have created IPP-17608 to this issue. Someone from our team will follow up with engineering.

fjolin-intuit commented 4 years ago

Fixed in release 6.0.10