Skip to content

feat: add merchant onboarding field definitions API#2214

Open
mirunagherman wants to merge 3 commits into
mainfrom
miruna/int1-658
Open

feat: add merchant onboarding field definitions API#2214
mirunagherman wants to merge 3 commits into
mainfrom
miruna/int1-658

Conversation

@mirunagherman

@mirunagherman mirunagherman commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Context

Changes

  • Add terminal API for retrieving merchant onboarding field definitions
  • Add field_definitions and options tables to store form configuration
  • Add terminal model, controller, and service
  • Return part of onboarding form fields

@github-actions github-actions Bot added package: wallet/backend Wallet backend implementations type: source Source changes labels Jun 22, 2026
@mirunagherman mirunagherman self-assigned this Jun 22, 2026
@mirunagherman mirunagherman marked this pull request as ready for review June 22, 2026 13:17
@DaevMithran DaevMithran self-requested a review June 22, 2026 13:50
try {
const formDefinition =
await this.terminalService.getOnboardingFormDefinition()
res.status(200).json(formDefinition)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
res.status(200).json(formDefinition)
res.status(200).json(toSuccessResponse(formDefinition))


// Terminal
router.get(
'/terminals/onboarding',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking:

Should this endpoint be public? or protected by a custom terminal auth middleware or a rate limiter if it's left public.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: wallet/backend Wallet backend implementations type: source Source changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants