CyberSource / cybersource-sdk-java

Java SDK for CyberSource Simple Order API
Other
51 stars 84 forks source link

Types missmatch on "consumerAuthenticationInformation.acsOperatorID" field #171

Open sumitkamboj opened 1 year ago

sumitkamboj commented 1 year ago

Hi, I'm currently developing on a solution that call CheckPayerAuthEnrollment, when I get a response from the server the SDK breaks throwing the error java.lang.NumberFormatException: For input string: "MerchantACS"

at Invokers.JSON.deserialize(JSON.java:103) at Invokers.ApiClient.deserialize(ApiClient.java:1069) at Invokers.ApiClient.handleResponse(ApiClient.java:1293) at Invokers.ApiClient.execute(ApiClient.java:1213) at Api.PayerAuthenticationApi.checkPayerAuthEnrollmentWithHttpInfo(PayerAuthenticationApi.java:163) at Api.PayerAuthenticationApi.checkPayerAuthEnrollment(PayerAuthenticationApi.java:148) at com.api.cybersource.EnrollWithPendingAuthentication.run(EnrollWithPendingAuthentication.java:102)

It is happening because acsOperatorID is Integer field in SDK but as per API field it should be string and response being returned from cyber source is String. Please check.