Skip to content

feat(connector): [PLAID] add bank_name field to BankAccount - #2054

Open
Aishwariyaa-Anand wants to merge 1 commit into
mainfrom
plaid_add_bank_name
Open

feat(connector): [PLAID] add bank_name field to BankAccount#2054
Aishwariyaa-Anand wants to merge 1 commit into
mainfrom
plaid_add_bank_name

Conversation

@Aishwariyaa-Anand

Copy link
Copy Markdown
Contributor

Description

Adds optional bank_name to BankAccount in proto message and domain struct. Maps Plaid auth/get response item.institution_name to bank_name for all account types.

Motivation and Context

Additional Changes

  • This PR modifies the API contract
  • This PR modifies application configuration/environment variables

How did you test it?

Request

curl --location 'http://localhost:8011/composite/payment_methods/get' \
--header 'Content-Type: application/json' \
--header 'x-connector-config: {"config":{"Plaid":{"client_id":"-","secret":"-"}}}' \
--header 'x-merchant-id: test_merchant' \
--header 'x-tenant-id: public' \
--header 'x-request-id: req-plaid-flow3-001' \
--header 'x-auth-connector: plaid' \
--data '{
  "payment_method_token": "-",
  "payment_method_type": "ACH"
}'

Response

{
    "get_response": {
        "connector_payment_method_id": "-",
        "payment_method_details": {
            "details": {
                "BankAccount": {
                    "accounts": [
                        {
                            "account_name": "Plaid Checking",
                            "account_id": "-",
                            "bank_type": "BANK_TYPE_CHECKING",
                            "bank_holder_type": "BANK_HOLDER_TYPE_PERSONAL",
                            "balance": {
                                "minor_amount": 11000,
                                "currency": "USD"
                            },
                            "available_balance": {
                                "minor_amount": 10000,
                                "currency": "USD"
                            },
                            "bank_name": "First Platypus Bank",
                            "account_details": {
                                "Ach": {
                                    "account_number": "-",
                                    "routing_number": "-"
                                }
                            }
                        },
                        {
                            "account_name": "Plaid Saving",
                            "account_id": "-",
                            "bank_type": "BANK_TYPE_SAVINGS",
                            "bank_holder_type": "BANK_HOLDER_TYPE_PERSONAL",
                            "balance": {
                                "minor_amount": 21000,
                                "currency": "USD"
                            },
                            "available_balance": {
                                "minor_amount": 20000,
                                "currency": "USD"
                            },
                            "bank_name": "First Platypus Bank",
                            "account_details": {
                                "Ach": {
                                    "account_number": "-",
                                    "routing_number": "-"
                                }
                            }
                        },
                        {
                            "account_name": "Plaid Cash Management",
                            "account_id": "-",
                            "balance": {
                                "minor_amount": 1206000,
                                "currency": "USD"
                            },
                            "available_balance": {
                                "minor_amount": 1206000,
                                "currency": "USD"
                            },
                            "bank_name": "First Platypus Bank",
                            "account_details": {
                                "Ach": {
                                    "account_number": "-",
                                    "routing_number": "-"
                                }
                            }
                        }
                    ]
                }
            }
        },
        "status_code": 200,
        "response_headers": {
            "x-envoy-upstream-service-time": "255",
            "x-content-type-options": "nosniff",
            "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
            "x-envoy-decorator-operation": "lazyxds.svc-apiv2:8080/*",
            "date": "Tue, 04 Aug 2026 07:34:28 GMT",
            "connection": "keep-alive",
            "server": "nginx",
            "content-type": "application/json; charset=utf-8",
            "x-xss-protection": "1; mode=block",
            "vary": "Accept-Encoding",
            "x-frame-options": "DENY",
            "plaid-version": "2020-09-14"
        },
        "raw_connector_response": "-",
        "raw_connector_request": "-"
    }
}

…on_name

Adds optional bank_name to BankAccount proto message (field 10), domain
struct, and proto mapping. Maps Plaid auth/get response item.institution_name
to bank_name for all account types (ACH, BACS, SEPA).
@Aishwariyaa-Anand Aishwariyaa-Anand self-assigned this Aug 4, 2026
@Aishwariyaa-Anand
Aishwariyaa-Anand requested review from a team as code owners August 4, 2026 13:36
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