Skip to content

Feature/int 1615 - General SDK review, endpoints update#207

Merged
david-ruiz-cko merged 15 commits into
masterfrom
feature/INT-1615
May 7, 2026
Merged

Feature/int 1615 - General SDK review, endpoints update#207
david-ruiz-cko merged 15 commits into
masterfrom
feature/INT-1615

Conversation

@david-ruiz-cko
Copy link
Copy Markdown
Contributor

@david-ruiz-cko david-ruiz-cko commented Apr 30, 2026

This pull request introduces major new features and improvements to the SDK, including the addition of support for Agentic Commerce delegated payment tokens, reserve rules management for accounts, identities modules and compliance requests. It includes a general review of all SDK structs to update them with the latest changes and also enhances the core HTTP client to allow dynamic injection of custom headers from request structs, improving flexibility for new API features. The most important changes are grouped below by theme.

Agentic Commerce Support

  • Added a new agenticcommerce package with types and a client for creating delegated payment tokens, including support for custom headers and comprehensive tests. (agenticcommerce/agentic_commerce.go, agenticcommerce/client.go, agenticcommerce/client_test.go) [1] [2] [3]

Reserve Rules Management

  • Added types and client methods to accounts for creating, updating, and retrieving reserve rules, including support for rolling reserve rules and holding durations. (accounts/reserve_rules.go, accounts/accounts.go, accounts/client.go) [1] [2] [3]

Compliance Requests

  • Introduced a new compliancerequests package with a client to get and respond to compliance requests for a payment. (compliancerequests/client.go)

Identities modules

  • Introduced a new identities modules: amlscreening, applicants, faceauthentication, iddocumentverification, identityverification packages with clients to get and respond to identity requests.

Flow

Updated payments-sessions module with the latest flow changes.

payments/search

Updated payments/search endpoint to admit string dates in the query response.

General Review

Added last fields of the requests/responses, general review of all the SDK structs and full update.

Core HTTP Client Enhancements

  • Refactored the core HTTP client to use reflection for extracting custom headers from a Headers field in request structs, allowing APIs to define and inject arbitrary headers as needed. (client/client.go) [1] [2] [3] [4] [5] [6] [7]

These changes significantly extend the SDK's capabilities for new API features and improve its flexibility for future enhancements.

@david-ruiz-cko david-ruiz-cko requested a review from a team April 30, 2026 14:52
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2026

@david-ruiz-cko david-ruiz-cko merged commit 434d223 into master May 7, 2026
4 checks passed
@david-ruiz-cko david-ruiz-cko deleted the feature/INT-1615 branch May 7, 2026 12:54
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