Skip to content

feat: add new Open Finance credit card fields#94

Open
cernadasjuan wants to merge 1 commit into
masterfrom
feat/of-credit-card-fields
Open

feat: add new Open Finance credit card fields#94
cernadasjuan wants to merge 1 commit into
masterfrom
feat/of-credit-card-fields

Conversation

@cernadasjuan

@cernadasjuan cernadasjuan commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Models the new Open Finance credit-card fields added to Pluggy's canonical types in commons 6.48.0, so SDK consumers can read them off credit-card responses.

  • CreditData
    • brandAdditionalInfo (String) — free text to specify the brand category when brand is OTHER.
    • disaggregatedCreditLimits (List<DisaggregatedCreditLimit>) — per-line credit limit breakdown.
  • DisaggregatedCreditLimit (new class)
    • lineName (CreditCardLimitLineName)
    • limitAmountReason (String) — reason the reported total limit amount is zero.
    • customizedLimitAmount (Double) — limit amount customized by the customer.
    • customizedLimitAmountCurrencyCode (String) — currency of the customized limit amount.
  • TransactionCreditCardMetadata
    • feeType (CreditCardAccountFeeType)
    • feeTypeAdditionalInfo (String)
    • otherCreditsType (CreditCardAccountOtherCreditType)
    • otherCreditsAdditionalInfo (String)
  • New enums (Gson @SerializedName style, matching existing credit-card enums):
    • CreditCardLimitLineName: CREDITO_A_VISTA, CREDITO_PARCELADO, SAQUE_CREDITO_BRASIL, SAQUE_CREDITO_EXTERIOR, EMPRESTIMO_CARTAO_CONSIGNADO, OUTROS
    • CreditCardAccountFeeType: ANNUAL_FEE, ATM_WITHDRAWAL_DOMESTIC, ATM_WITHDRAWAL_INTERNATIONAL, EMERGENCY_CREDIT_EVALUATION, CARD_REISSUE, BILL_PAYMENT_FEE, SMS, OTHER
    • CreditCardAccountOtherCreditType: REVOLVING_CREDIT, BILL_INSTALLMENT, LOAN, OTHER

Notes

  • This SDK has no CreditCard.java (credit-card data lives in CreditData, nested in Account) and no CreditCardMetadata.java (it is TransactionCreditCardMetadata). Fields were added to those existing classes.
  • The SDK has no CurrencyCode type and consistently models currency codes as String (e.g. Account.currencyCode, Bill.totalAmountCurrencyCode), so customizedLimitAmountCurrencyCode is modeled as String.
  • No SDK/Maven version bump — release is a separate, deliberate step per the repo's release flow.

Test plan

  • mvn -q compile — compiles cleanly.
  • mvn -B test — 4 unit tests pass (BUILD SUCCESS).

🤖 Generated with Claude Code

Pluggy's backend (commons 6.48.0) added new Open Finance credit-card
fields to the canonical types, which the Pluggy API now returns in
credit-card responses. This models them in the Java SDK so consumers can
read them.

- CreditData: add brandAdditionalInfo and disaggregatedCreditLimits.
- DisaggregatedCreditLimit (new): lineName (CreditCardLimitLineName),
  limitAmountReason, customizedLimitAmount,
  customizedLimitAmountCurrencyCode.
- TransactionCreditCardMetadata: add feeType, feeTypeAdditionalInfo,
  otherCreditsType, otherCreditsAdditionalInfo.
- New enums CreditCardLimitLineName, CreditCardAccountFeeType and
  CreditCardAccountOtherCreditType, following the existing Gson
  @SerializedName enum style.

currencyCode fields are modeled as String, matching the SDK's existing
convention (no CurrencyCode type exists in this SDK).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cernadasjuan cernadasjuan force-pushed the feat/of-credit-card-fields branch from 90bc9f9 to 05c7b7a Compare June 16, 2026 16:39
@cernadasjuan cernadasjuan changed the title feat: add new Open Finance credit card fields (TRIN-2151) feat: add new Open Finance credit card fields Jun 16, 2026
@cernadasjuan

Copy link
Copy Markdown
Contributor Author

@claude review this

@jhonatan-pluggy jhonatan-pluggy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

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.

2 participants