Skip to content

Support Alfredpay BANK_USA CHECKING isExternal: true#1130

Merged
ebma merged 8 commits intostagingfrom
feat/alfredpay-isExternal-us-checking
Apr 29, 2026
Merged

Support Alfredpay BANK_USA CHECKING isExternal: true#1130
ebma merged 8 commits intostagingfrom
feat/alfredpay-isExternal-us-checking

Conversation

@Sharqiewicz
Copy link
Copy Markdown
Member

No description provided.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for vortexfi ready!

Name Link
🔨 Latest commit bacf844
🔍 Latest deploy log https://app.netlify.com/projects/vortexfi/deploys/69f2231c9362310008c77d4d
😎 Deploy Preview https://deploy-preview-1130--vortexfi.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for vortex-sandbox ready!

Name Link
🔨 Latest commit bacf844
🔍 Latest deploy log https://app.netlify.com/projects/vortex-sandbox/deploys/69f2231bb4352800084dd9d8
😎 Deploy Preview https://deploy-preview-1130--vortex-sandbox.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Sharqiewicz Sharqiewicz requested review from ebma and gianfra-t and removed request for ebma April 28, 2026 18:35
@ebma ebma requested a review from Copilot April 29, 2026 07:21
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Alfredpay fiat account creation flow to support BANK_USA checking accounts marked as isExternal: true, aligning the payload shape with what Alfredpay expects for external US bank accounts.

Changes:

  • Move isExternal out of fiatAccountFields and into the top-level CreateAlfredpayFiatAccountRequest payload.
  • For BANK_USA accounts, send bank address fields inside fiatAccountFields.metadata when isExternal === true.
  • Frontend updates: minor Framer Motion layout tweaks and translation updates.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/shared/src/services/alfredpay/types.ts Adjusts shared Alfredpay request/field types: moves isExternal to request-level and adds bank address fields to metadata.
packages/shared/src/services/alfredpay/alfredpayApiService.ts Extends createFiatAccount to accept isExternal and includes it in the POST payload.
apps/api/src/api/controllers/alfredpay.controller.ts Maps BANK_USA external account address fields into metadata and forwards isExternal to shared service.
apps/frontend/src/pages/alfredpay/FiatAccountRegistration/AccountCardDeck.tsx Adds AnimatePresence mode and layoutId to improve card transitions.
apps/frontend/src/constants/fiatAccountForms.ts Changes the “saving(s)” account type option value from SAVINGS to SAVING.
apps/frontend/src/translations/pt.json Adds/updates multiple PT strings; introduces a new partnerCpf key and a title2 string.
apps/frontend/src/translations/en.json Changes “Savings” label to “Saving” for the saving account type option.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/frontend/src/translations/en.json Outdated
"nequi": "Nequi",
"ownAccount": "My own account",
"saving": "Savings"
"saving": "Saving"
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

components.fiatAccountForms.options.saving is translated as "Saving", which is grammatically incorrect for a bank account type (should be "Savings"). This is user-facing and will show up in the account type dropdown.

Suggested change
"saving": "Saving"
"saving": "Savings"

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree. I think the US american account type is always 'Checking' or 'Savings', not 'Saving'.

"fullName": "Nome Completo",
"number": "Número",
"partnerCpf": "CPF do Parceiro",
"partnerCpff": "CPF do Parceiro",
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

This file now contains both partnerCpf (added) and the existing partnerCpff key. Since the codebase references partnerCpf (and there are no references to partnerCpff), keeping the typo key is confusing and makes translation maintenance harder. Consider removing partnerCpff (or migrating any remaining usages to partnerCpf if they exist).

Suggested change
"partnerCpff": "CPF do Parceiro",

Copilot uses AI. Check for mistakes.
Comment thread apps/frontend/src/translations/pt.json Outdated
"subtitle": "O app hospedado da Vortex é a maneira mais rápida de adicionar uma rampa fiat on/off segura ao seu app.",
"title": "Uma integração. Tudo resolvido."
"title": "Uma integração. Tudo resolvido.",
"title2": " Tudo resolvido."
Copy link

Copilot AI Apr 29, 2026

Choose a reason for hiding this comment

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

pages.business.whyVortexBusiness.title2 has a leading whitespace (" Tudo resolvido.") which will render as an odd indent at the start of the line. Remove the leading space and handle spacing in the JSX layout if needed.

Suggested change
"title2": " Tudo resolvido."
"title2": "Tudo resolvido."

Copilot uses AI. Check for mistakes.
},
"progress": {
"alfredPayOfframpTransfer": "Inicializando transferência para sua conta bancária.",
"alfredpayOfframpTransfer": "Inicializando transferência para sua conta bancária.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this is a duplicate?

Comment thread apps/frontend/src/translations/en.json Outdated
"nequi": "Nequi",
"ownAccount": "My own account",
"saving": "Savings"
"saving": "Saving"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree. I think the US american account type is always 'Checking' or 'Savings', not 'Saving'.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 13 out of 14 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread apps/frontend/src/constants/fiatAccountForms.ts Outdated
Comment thread apps/frontend/src/translations/en.json Outdated
Comment thread apps/frontend/src/translations/pt.json Outdated
@ebma ebma merged commit 1b006b8 into staging Apr 29, 2026
6 of 7 checks passed
@ebma ebma deleted the feat/alfredpay-isExternal-us-checking branch April 29, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants