Skip to content

Commit 84cb932

Browse files
committed
Added mandatory email and phone fields to V3 Identity Map API
1 parent aac8510 commit 84cb932

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/uid2/client/IdentityMapInput.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,11 @@ List<String> getRawDiis(String identifier) {
8686
@SerializedName("phone_hash")
8787
private List<String> hashedNormalizedPhones;
8888

89+
// We never send unhashed emails or phone numbers in the SDK, but they are required fields in the API request
90+
@SerializedName("email")
91+
private List<String> emails = Collections.unmodifiableList(new ArrayList<>());
92+
@SerializedName("phone")
93+
private List<String> phones = Collections.unmodifiableList(new ArrayList<>());
94+
8995
private final transient HashMap<String, List<String>> hashedDiiToRawDiis = new HashMap<>();
9096
}

0 commit comments

Comments
 (0)