What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects type on WalletTransaction reachable from 2 operations.
New values: ACCOUNT_FUNDING, AUTO_REFUND.
can now return "ACCOUNT_FUNDING", "AUTO_REFUND"
Who is affected
Code that reads Plaid's WalletTransaction objects, used by 2 Plaid operations.
Before and after
| Where | Before | After |
|---|---|---|
| WalletTransaction.type | "BANK_TRANSFER", "FUNDS_SWEEP", "PAYOUT", "PIS_PAY_IN", "RECALL", "REFUND", "RETURN" | "ACCOUNT_FUNDING", "AUTO_REFUND", "BANK_TRANSFER", "FUNDS_SWEEP", "PAYOUT", "PIS_PAY_IN", "RECALL", "REFUND", "RETURN" |
| WalletTransactionGetResponse.type | "BANK_TRANSFER", "FUNDS_SWEEP", "PAYOUT", "PIS_PAY_IN", "RECALL", "REFUND", "RETURN" | "ACCOUNT_FUNDING", "AUTO_REFUND", "BANK_TRANSFER", "FUNDS_SWEEP", "PAYOUT", "PIS_PAY_IN", "RECALL", "REFUND", "RETURN" |
Code that breaks
switch (response.type) {
// existing branches …
// no branch for "ACCOUNT_FUNDING"
// no branch for "AUTO_REFUND"
default:
throw new Error("unexpected type");
}Based on Plaid’s published API specification. How severity is decided.