feat: add new Open Finance credit card fields#172
Merged
Conversation
Pluggy's backend added new Open Finance credit-card fields to the canonical types, and the Pluggy API now returns them in credit-card responses. Model them in the SDK so consumers can read them. - CreditData: add `brandAdditionalInfo` and `disaggregatedCreditLimits`. - New `DisaggregatedCreditLimit` type (previously unmodeled in the SDK, though already part of the API), including the new `limitAmountReason`, `customizedLimitAmount`, `customizedLimitAmountCurrencyCode` fields and a typed `lineName` (new `CreditCardLimitLineName` union). - CreditCardMetadata: add `feeType`, `feeTypeAdditionalInfo`, `otherCreditsType`, `otherCreditsAdditionalInfo`, backed by the new `CreditCardAccountFeeType` and `CreditCardAccountOtherCreditType` unions. All new fields are optional. Enums follow the existing `as const` + `typeof[number]` idiom used by the other credit-card types. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
Author
|
@claude review this |
pluggy-github-app Bot
pushed a commit
that referenced
this pull request
Jun 16, 2026
# [0.89.0](v0.88.0...v0.89.0) (2026-06-16) ### Features * add new Open Finance credit card fields ([#172](#172)) ([3339194](3339194))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pluggy's API now returns additional Open Finance credit-card fields. This PR models them in the SDK types so consumers can read them. All new fields are optional and additive.
CreditData(src/types/account.ts):brandAdditionalInfo?: string— free text specifying the brand category whenbrandisOTHER.disaggregatedCreditLimits?: DisaggregatedCreditLimit[]— detailed credit-limit breakdown (was already part of the API but unmodeled in the SDK).New
DisaggregatedCreditLimittype (src/types/account.ts):limitAmountReason?: stringcustomizedLimitAmount?: numbercustomizedLimitAmountCurrencyCode?: CurrencyCodelineName?: CreditCardLimitLineName(typed via the new union instead of a plain string)CreditCardMetadata(src/types/transaction.ts):feeType?: CreditCardAccountFeeTypefeeTypeAdditionalInfo?: stringotherCreditsType?: CreditCardAccountOtherCreditTypeotherCreditsAdditionalInfo?: stringNew enums / unions (following the existing
as const+typeof[number]idiom):CreditCardLimitLineName:CREDITO_A_VISTA,CREDITO_PARCELADO,SAQUE_CREDITO_BRASIL,SAQUE_CREDITO_EXTERIOR,EMPRESTIMO_CARTAO_CONSIGNADO,OUTROSCreditCardAccountFeeType:ANNUAL_FEE,ATM_WITHDRAWAL_DOMESTIC,ATM_WITHDRAWAL_INTERNATIONAL,EMERGENCY_CREDIT_EVALUATION,CARD_REISSUE,BILL_PAYMENT_FEE,SMS,OTHERCreditCardAccountOtherCreditType:REVOLVING_CREDIT,BILL_INSTALLMENT,LOAN,OTHERTest plan
pnpm install --frozen-lockfile— OKpnpm build(tsc -p tsconfig.build.json) — passes; new fields/enums emitted todist/types/*.d.tspnpm test— 12 suites / 54 tests passpnpm exec eslint src/types/account.ts src/types/transaction.ts— clean🤖 Generated with Claude Code