Skip to content

Commit 361ac4e

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public static IdentityMapV3Input fromHashedPhones(List<String> hashedPhones) {
4646
@SerializedName("phone_hash")
4747
private final List<Identity> hashedPhones = new ArrayList<>();
4848

49+
// We never send unhashed emails or phone numbers in the SDK, but they are required fields in the API request
50+
@SerializedName("email")
51+
private List<String> emails = Collections.unmodifiableList(new ArrayList<>());
52+
@SerializedName("phone")
53+
private List<String> phones = Collections.unmodifiableList(new ArrayList<>());
54+
4955
public IdentityMapV3Input() {}
5056

5157
/**
@@ -136,7 +142,6 @@ public IdentityMapV3Input withPhone(String phone) {
136142
this.hashedPhones.add(new Identity(hashedPhone));
137143
addToDiiMappings(hashedPhone, phone);
138144
return this;
139-
140145
}
141146

142147
List<String> getInputDiis(String identityType, int i) {

0 commit comments

Comments
 (0)