Skip to content

feature/INT-1632 - General Payments update#210

Merged
david-ruiz-cko merged 6 commits into
masterfrom
feature/INT-1632
Jun 5, 2026
Merged

feature/INT-1632 - General Payments update#210
david-ruiz-cko merged 6 commits into
masterfrom
feature/INT-1632

Conversation

@david-ruiz-cko
Copy link
Copy Markdown
Contributor

This pull request introduces several new features and enhancements across multiple packages, focusing on expanding onboarding simulation capabilities, improving account entity management, and enriching balance and payment context models. The most significant changes are the addition of an onboarding simulator client and types, new account entity requirement management methods and types, and improvements to balance and payment context structures.

Onboarding Simulator Integration:

  • Added a new onboardingsimulator package, including a client (client.go) and types (simulator.go) to support simulating onboarding scenarios, requirements, and entity status. This includes methods for setting requirements due, running scenarios, setting entity status, and listing available requirements and scenarios. Custom JSON unmarshalling is implemented to handle API responses. Comprehensive tests for JSON unmarshalling are also provided. [1] [2] [3]
  • Integrated the onboarding simulator client into the main NAS API by updating nas/checkout_api.go to instantiate and expose the new client. [1] [2] [3]

Account Entity Requirements Management:

  • Added new API methods to the accounts client for retrieving, detailing, and resolving entity requirements, including context-aware variants.
  • Introduced new types and constants in accounts/entities.go to represent entity requirement reasons, priorities, update statuses, and related request/response structures. Also added the Submitter type and fields for SellerCategory and Submitter to account entities. [1] [2]
  • Added a new constant for the requirements path in accounts/accounts.go.

Balances Model Enhancements:

  • Updated the balances package to include CollateralBreakdown and Operational fields, a BalancesAsOf timestamp, and support for querying balances at a specific time. Adjusted types to use the correct currency type. [1] [2] [3]

Other Notable Changes:

  • Added a RevokeInstrument method to the NAS instruments client to support revoking payment instruments.
  • Enhanced the payment context details response to include an Id field.
  • Added support for Blik payment sources in the APM sources package.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

@david-ruiz-cko david-ruiz-cko requested a review from a team June 4, 2026 16:30
@david-ruiz-cko david-ruiz-cko merged commit 54b6d37 into master Jun 5, 2026
4 checks passed
@david-ruiz-cko david-ruiz-cko deleted the feature/INT-1632 branch June 5, 2026 08:42
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