-
Notifications
You must be signed in to change notification settings - Fork 5
Add support for finance_account in feedback API #337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9810574
72812ce
2dbfa6e
a0e4cc0
bcaaa49
23ae9c0
77ced2d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| package com.incognia.common; | ||
|
|
||
| import lombok.Builder; | ||
| import lombok.Value; | ||
|
|
||
| @Value | ||
| @Builder | ||
| public class HolderTaxID implements TypedValue { | ||
| String type; | ||
| String value; | ||
|
||
|
|
||
| public static HolderTaxID ofCPF(String cpfValue) { | ||
| return HolderTaxID.builder().type("cpf").value(cpfValue).build(); | ||
| } | ||
|
|
||
| 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(); | ||
|
Comment on lines
+16
to
+25
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why were these methods created? they're not being used
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| } | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd remove this interface |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| package com.incognia.common; | ||
|
|
||
| public interface TypedValue { | ||
| String getType(); | ||
|
|
||
| String getValue(); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| package com.incognia.transaction.payment; | ||
|
|
||
| import com.incognia.common.PersonID; | ||
| import com.incognia.common.HolderTaxID; | ||
| import java.util.Collections; | ||
| import java.util.List; | ||
| import lombok.Builder; | ||
|
|
@@ -12,7 +12,7 @@ public class BankAccountInfo { | |
| String accountType; | ||
| String accountPurpose; | ||
| String holderType; | ||
| PersonID holderTaxId; | ||
| HolderTaxID holderTaxId; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is a breaking change |
||
| String country; | ||
| String ispbCode; | ||
| String branchCode; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.