Skip to content

feature/INT-1655 - Support for negotiating Accounts API schema version via the Accept header - #351

Merged
david-ruiz-cko merged 6 commits into
masterfrom
feature/INT-1655
Jul 22, 2026
Merged

david-ruiz-cko merged 6 commits into
masterfrom
feature/INT-1655

Conversation

@david-ruiz-cko

@david-ruiz-cko david-ruiz-cko commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces significant enhancements and extensions to the Accounts API client and related data models to support Accounts API v3.0. The main goals are to enable schema version negotiation via the Accept header, expand the onboarding request and company models for new v3.0 fields, and add several new supporting classes for richer onboarding flows.

The most important changes are:

Accounts API v3.0 Schema Versioning Support:

  • Added a DEFAULT_SCHEMA_VERSION constant and updated key client methods in AccountsClient to accept a $schemaVersion parameter (defaulting to 3.0), passing this as an Accept header to the API. This enables negotiation of the Accounts API schema version for all major entity operations. [1] [2] [3] [4] [5]

Expanded Onboarding and Company Models:

  • Extended OnboardEntityRequest and Company with new fields required by Accounts API v3.0, such as processing_details, agreed_terms, seller_category, is_draft, date_of_incorporation, regulatory_licence_number, and more. Added detailed PHPDoc for each field. [1] [2]
  • Added new business types in BusinessType and new entity roles in EntityRoles for v3.0 compatibility. [1] [2]

New Supporting Data Classes for v3.0:

  • Introduced new classes for richer onboarding and processing details: AgreedTerms, ProcessingDetails, ProcessingDetailsPayments, ProcessingDetailsAch, DateOfIncorporation, and CompanyPosition. These enable capturing additional information required by the latest API version. [1] [2] [3] [4] [5] [6]

OnboardSubEntityDocuments Enhancements:

  • Expanded OnboardSubEntityDocuments with new optional document fields (e.g., articles_of_association, shareholder_structure, bank_verification, etc.) to support the full set of required documents for different onboarding schema variants.

Documentation and Header Handling Improvements:

  • Improved PHPDoc for all updated and new fields, clarifying requirements and formats. Enhanced Headers to support the new accept header for schema negotiation.

These changes collectively prepare the codebase for full support of Accounts API v3.0 onboarding and entity management, while maintaining backward compatibility.

@david-ruiz-cko
david-ruiz-cko requested a review from a team July 20, 2026 09:29
@sonarqubecloud

Copy link
Copy Markdown

@david-ruiz-cko
david-ruiz-cko merged commit fefa3f3 into master Jul 22, 2026
4 checks passed
@david-ruiz-cko
david-ruiz-cko deleted the feature/INT-1655 branch July 22, 2026 11:03
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.

2 participants