Skip to content

Feature/int 1594#551

Open
david-ruiz-cko wants to merge 21 commits intomasterfrom
feature/INT-1594
Open

Feature/int 1594#551
david-ruiz-cko wants to merge 21 commits intomasterfrom
feature/INT-1594

Conversation

@david-ruiz-cko
Copy link
Contributor

This pull request 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.

@david-ruiz-cko david-ruiz-cko requested a review from a team March 5, 2026 08:39
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant