Skip to content

4.5.0

Choose a tag to compare

@github-actions github-actions released this 25 Mar 12:14
f61af71

Release - 4.5.0 (#309)

This release introduces new features and enhancements to the Checkout API client, focusing on expanding support for identities management, sub-entity member management, reserve rules, and additional API clients. It also improves the flexibility of the API client for handling custom headers and request body formats. Below are the most important changes:

API Client Enhancements

  • Refactored ApiClient to support custom headers via reflection, improved handling of different request body formats (JSON, multipart form data, form URL encoded), and updated method signatures for greater flexibility. [1] [2] [3] [4] [5]

  • Refactored ApiClient methods to accept a more generic $requestBody and optional custom headers, improving support for different content types (JSON, multipart, form URL encoded) and making header injection more flexible via reflection. Utility methods were added for header conversion and content-type detection. [1] [2] [3] [4] [5]

  • New if-match header support in the put requests through Accounts Headers class.

New API Client Integrations

  • Added new client properties and getter methods to CheckoutApi for NetworkTokensClient, FaceAuthenticationClient, IdDocumentVerificationClient, IdentityVerificationClient, AmlScreeningClient, and ApplicantsClient, enabling access to additional Checkout.com API features. [1] [2] [3] [4] [5] [6]

New Features: Sub-Entity Members & Reserve Rules

  • Added methods to AccountsClient for managing sub-entity members (retrieving and reinviting) and reserve rules (creating, retrieving, updating, and fetching details). New request and entity classes for reserve rules (CreateReserveRuleRequest, UpdateReserveRuleRequest, Rolling, HoldingDuration) were introduced. [1] [2] [3] [4] [5]

Enhancements to Accounts and Reserve Rules

  • Added new methods in AccountsClient to manage sub-entity members (retrieving and re-inviting members) and reserve rules (creating, querying, retrieving details, and updating reserve rules), along with the necessary request and entity classes (CreateReserveRuleRequest, UpdateReserveRuleRequest, Rolling, HoldingDuration). [1] [2] [3] [4] [5] [6] [7]

Identity Verification Client Integrations

  • Added new clients for identity verification, AML screening, face authentication, ID document verification, and applicant management to the CheckoutApi, making these services directly accessible via the main API class, integrated new identity-related clients (FaceAuthenticationClient, IdDocumentVerificationClient, IdentityVerificationClient, AmlScreeningClient, ApplicantsClient) into CheckoutApi, with corresponding getter methods for each. [1] [2] [3] [4]

Forward API Secret Management

  • Added secret management functionality to the ForwardClient, including methods to create, list, update, and delete secrets. New request classes for creating and updating secrets, and a metadata entity for secret information, were also introduced.

Codebase Organization

  • Moved and renamed files in the Forward module from the Requests namespace to the Entities namespace for improved clarity and consistency. (Headers.php, MethodType.php, NetworkToken.php) [1] [2] [3]This pull request introduces several new features and improvements to the Checkout SDK, focusing on enhanced support for sub-entity management, reserve rules, and identity verification, as well as improvements to the API client for more flexible request handling. It also includes some refactoring and namespace changes for better organization.

  • Refactored several ForwardClient request-related classes to reside under the Entities namespace instead of Requests, improving code organization and clarity. [1] [2] [3] [4] [5] [6]

These changes collectively add significant new functionality for managing sub-entity users and reserve rules, improve the flexibility of API requests, and enhance the SDK's support for identity verification workflows.