Skip to content

Add support for finance_account in feedback API#337

Closed
brunoekferrari wants to merge 7 commits intomasterfrom
feat/add-financial-account-field
Closed

Add support for finance_account in feedback API#337
brunoekferrari wants to merge 7 commits intomasterfrom
feat/add-financial-account-field

Conversation

@brunoekferrari
Copy link
Contributor

@brunoekferrari brunoekferrari commented Mar 6, 2026

Proposed changes

This PR adds support for sending the financial_account object in the Feedback API.

The Feedback endpoint now allows additional financial account information to be included when reporting fraud events. This change introduces the necessary models and updates the feedback request body so that financial_account can be optionally provided when calling registerFeedback.

Checklist

  • Style check and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@brunoekferrari brunoekferrari requested a review from a team as a code owner March 6, 2026 19:00
@brunoekferrari brunoekferrari self-assigned this Mar 6, 2026
@brunoekferrari brunoekferrari changed the title Add financial_account info to feedback Add support for finance_account in feedback API Mar 6, 2026
@brunoekferrari brunoekferrari force-pushed the feat/add-financial-account-field branch 2 times, most recently from 178f634 to fa61b06 Compare March 6, 2026 19:48
@brunoekferrari brunoekferrari force-pushed the feat/add-financial-account-field branch from fe72dc2 to 0b9433b Compare March 10, 2026 15:03
@brunoekferrari brunoekferrari force-pushed the feat/add-financial-account-field branch from 0b9433b to 3089467 Compare March 10, 2026 15:09
@brunoekferrari brunoekferrari force-pushed the feat/add-financial-account-field branch from 3089467 to bcaaa49 Compare March 10, 2026 15:13
@brunoekferrari brunoekferrari force-pushed the feat/add-financial-account-field branch from b533d1f to 77ced2d Compare March 10, 2026 18:01
Comment on lines +16 to +25
public static HolderTaxID ofSSN(String ssnValue) {
return HolderTaxID.builder().type("ssn").value(ssnValue).build();
}

public static HolderTaxID ofEIN(String einValue) {
return HolderTaxID.builder().type("ein").value(einValue).build();
}

public static HolderTaxID ofCNPJ(String cnpjValue) {
return HolderTaxID.builder().type("cnpj").value(cnpjValue).build();
Copy link
Contributor

Choose a reason for hiding this comment

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

why were these methods created? they're not being used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

They are facilitators for the usage of each of these identifiers. We already had them for CPF and I added for the other ones to maintain the pattern.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'd remove this interface

String accountPurpose;
String holderType;
PersonID holderTaxId;
HolderTaxID holderTaxId;
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a breaking change

@brunoekferrari brunoekferrari deleted the feat/add-financial-account-field branch March 10, 2026 19:53
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