Skip to content

DEV-131521: Add account_identity and account_balance support to PaymentDetails#95

Open
diogoyaguas wants to merge 3 commits into
masterfrom
DEV-131521
Open

DEV-131521: Add account_identity and account_balance support to PaymentDetails#95
diogoyaguas wants to merge 3 commits into
masterfrom
DEV-131521

Conversation

@diogoyaguas
Copy link
Copy Markdown
Contributor

@diogoyaguas diogoyaguas commented May 28, 2026

📌 Related Issues: DEV-131521

✅ Type of Change

  • 🚀 Feature
  • 🐛 Bugfix
  • 🔨 Refactor
  • 🧪 Tests
  • 🧹 Chore / Maintenance
  • 📄 Documentation

📝 Problem Statement

PaymentDetails lacked support for account_identity and account_balance objects, needed to pass account holder identity information and real-time balance data (via providers like Plaid, MX, etc.) on bank transfer/ACH orders.

📝 Solution Overview

Added two new optional fields to PaymentDetails:

  • account_identity — holds names, addresses, phone numbers and emails associated with the payment account
  • account_balance — holds available balance, service provider, timestamp and currency code

New files:

  • AccountIdentity.php — model with 4 optional fields (names, addresses, phone_numbers, emails)
  • AccountBalance.php — model with 4 required fields (available_balance, service_name, updated_at, currency_code); service_name validated via regex against supported providers (plaid, mx, stripe, truelayer, klarna, visa, mastercard, yodlee)

Modified:

  • PaymentDetails.php — added account_identity and account_balance optional fields

@diogoyaguas diogoyaguas self-assigned this May 28, 2026
@diogoyaguas diogoyaguas requested a review from a team as a code owner May 28, 2026 13:55
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.

1 participant