Skip to content

7.14.0

Choose a tag to compare

@github-actions github-actions released this 29 Jul 07:54
8e3c0c1

Release 7.14.0 (#627)

This release introduces several enhancements and extensions to the Accounts API client, focusing on improved schema versioning support, expanded entity management, and broader business type and role coverage. The changes add flexible API methods to specify schema versions, introduce new model fields and types, and extend enums to support a wider range of business and company scenarios.

API client enhancements for schema versioning:

  • Added overloaded methods to ApiClient and AccountsClient (both async and sync) to accept custom headers, specifically to support specifying a schemaVersion for requests. Default schema version is set to "3.0" if not provided. (src/main/java/com/checkout/ApiClient.java, src/main/java/com/checkout/ApiClientImpl.java, src/main/java/com/checkout/accounts/AccountsClient.java, src/main/java/com/checkout/accounts/AccountsClientImpl.java) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16]

Model and enum extensions:

  • Added new model classes and fields to support additional business requirements:

    • Introduced AgreedTerms model for capturing agreement metadata. (src/main/java/com/checkout/accounts/AgreedTerms.java)
    • Added additionalTradingNames and isRegisteredCompany fields to Company. (src/main/java/com/checkout/accounts/Company.java)
    • Added day field to DateOfIncorporation. (src/main/java/com/checkout/accounts/DateOfIncorporation.java)
    • Introduced new enum CompanyPosition for more granular company role identification. (src/main/java/com/checkout/accounts/CompanyPosition.java)
  • Expanded supported business types and entity roles:

    • Extended BusinessType enum with many new types (e.g., INDIVIDUAL_OR_SOLE_PROPRIETORSHIP, NON_PROFIT_ENTITY, etc.). (src/main/java/com/checkout/accounts/BusinessType.java)
    • Extended EntityRoles enum with new roles (DIRECTOR, CONTROL_PERSON). (src/main/java/com/checkout/accounts/EntityRoles.java)

These changes provide greater flexibility for clients to interact with the API using different schema versions, and ensure the models and enums better reflect the diverse range of business entities and roles that may be encountered.