7.1.0
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
ApacheHttpClientTransportto accept anObjectas the request payload, allowing both JSON andUrlEncodedFormEntityform-encoded requests. Added logic to serialize objects to JSON or pass form entities directly, and set the appropriateContent-Typeheader. (src/main/java/com/checkout/ApacheHttpClientTransport.java) [1] [2] [3] - Updated
ApiClientImplmethods 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) toCheckoutApiandCheckoutApiImpl, 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.javato support form-encoded serialization, includingUrlEncodedFormEntityand 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.