feature/INT-1632 - General Payments update#210
Merged
Conversation
|
armando-rodriguez-cko
approved these changes
Jun 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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:
onboardingsimulatorpackage, 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]nas/checkout_api.goto instantiate and expose the new client. [1] [2] [3]Account Entity Requirements Management:
accountsclient for retrieving, detailing, and resolving entity requirements, including context-aware variants.accounts/entities.goto represent entity requirement reasons, priorities, update statuses, and related request/response structures. Also added theSubmittertype and fields forSellerCategoryandSubmitterto account entities. [1] [2]accounts/accounts.go.Balances Model Enhancements:
balancespackage to includeCollateralBreakdownandOperationalfields, aBalancesAsOftimestamp, and support for querying balances at a specific time. Adjusted types to use the correct currency type. [1] [2] [3]Other Notable Changes:
RevokeInstrumentmethod to the NAS instruments client to support revoking payment instruments.Idfield.