Skip to content

7.1.0

Choose a tag to compare

@github-actions github-actions released this 12 Mar 11:39
d628aff

Release - 7.1.0 (#552)

This release introduces improved handling of request serialization and adds support for new identity-related API clients. The most significant update is the refactoring of the transport layer to support both JSON and form-encoded requests, making it more flexible for different content types. Additionally, several new clients for identity verification and screening have been integrated into the main API interface.

Transport layer improvements

  • Refactored ApacheHttpClientTransport to accept an Object as the request payload, allowing both JSON and UrlEncodedFormEntity form-encoded requests. Added logic to serialize objects to JSON or pass form entities directly, and set the appropriate Content-Type header. (src/main/java/com/checkout/ApacheHttpClientTransport.java) [1] [2] [3]
  • Updated ApiClientImpl methods to pass raw request objects to the transport layer instead of pre-serializing them, aligning with the new transport interface. (src/main/java/com/checkout/ApiClientImpl.java) [1] [2] [3] [4]

Identity API client integration

  • Added new identity-related clients (FaceAuthenticationClient, ApplicantClient, IdentityVerificationClient, IdDocumentVerificationClient, AmlScreeningClient) to CheckoutApi and CheckoutApiImpl, including their instantiation and interface methods. (src/main/java/com/checkout/CheckoutApi.java, src/main/java/com/checkout/CheckoutApiImpl.java) [1] [2] [3] [4] [5] [6]

Supporting changes

  • Updated imports in GsonSerializer.java to support form-encoded serialization, including UrlEncodedFormEntity and related classes. (src/main/java/com/checkout/GsonSerializer.java) [1] [2]

These changes enhance the SDK's flexibility for handling different request types and expand its functionality for identity verification workflows.