@@ -183,6 +183,7 @@ static ContactUpdate buildFrom(Contact c) {
183183 contactUpdate .id = c .getID (); // propagated, noset
184184 contactUpdate .userID = c .getUserID (); // propagated, noset
185185 contactUpdate .email = c .getEmail ();
186+ contactUpdate .phone = c .getPhone ();
186187 contactUpdate .name = c .getName ();
187188 contactUpdate .lastSeenIP = c .getLastSeenIP ();
188189 contactUpdate .customAttributes = c .getCustomAttributes ();
@@ -204,6 +205,9 @@ static ContactUpdate buildFrom(Contact c) {
204205 @ JsonProperty ("email" )
205206 private String email ;
206207
208+ @ JsonProperty ("phone" )
209+ private String phone ;
210+
207211 @ JsonProperty ("name" )
208212 private String name ;
209213
@@ -263,6 +267,10 @@ public String getEmail() {
263267 return email ;
264268 }
265269
270+ public String getPhone () {
271+ return phone ;
272+ }
273+
266274 public String getName () {
267275 return name ;
268276 }
@@ -313,6 +321,9 @@ public Boolean isNewSession() {
313321 @ JsonProperty ("email" )
314322 private String email ;
315323
324+ @ JsonProperty ("phone" )
325+ private String phone ;
326+
316327 @ JsonProperty ("name" )
317328 private String name ;
318329
@@ -424,6 +435,15 @@ public Contact setEmail(String email) {
424435 return this ;
425436 }
426437
438+ public String getPhone () {
439+ return phone ;
440+ }
441+
442+ public Contact setPhone (String phone ) {
443+ this .phone = phone ;
444+ return this ;
445+ }
446+
427447 public String getUserID () {
428448 return userID ;
429449 }
@@ -532,6 +552,7 @@ public boolean equals(Object o) {
532552 if (id != null ? !id .equals (contact .id ) : contact .id != null ) return false ;
533553 if (name != null ? !name .equals (contact .name ) : contact .name != null ) return false ;
534554 if (email != null ? !email .equals (contact .email ) : contact .email != null ) return false ;
555+ if (phone != null ? !phone .equals (contact .phone ) : contact .phone != null ) return false ;
535556 if (userID != null ? !userID .equals (contact .userID ) : contact .userID != null ) return false ;
536557 if (avatar != null ? !avatar .equals (contact .avatar ) : contact .avatar != null ) return false ;
537558 if (unsubscribedFromEmails != null ? !unsubscribedFromEmails .equals (contact .unsubscribedFromEmails ) : contact .unsubscribedFromEmails != null )
@@ -565,6 +586,7 @@ public int hashCode() {
565586 result = 31 * result + (id != null ? id .hashCode () : 0 );
566587 result = 31 * result + (name != null ? name .hashCode () : 0 );
567588 result = 31 * result + (email != null ? email .hashCode () : 0 );
589+ result = 31 * result + (phone != null ? phone .hashCode () : 0 );
568590 result = 31 * result + (userID != null ? userID .hashCode () : 0 );
569591 result = 31 * result + (avatar != null ? avatar .hashCode () : 0 );
570592 result = 31 * result + (int ) (createdAt ^ (createdAt >>> 32 ));
@@ -593,6 +615,7 @@ public String toString() {
593615 ", id='" + id + '\'' +
594616 ", name='" + name + '\'' +
595617 ", email='" + email + '\'' +
618+ ", phone='" + phone + '\'' +
596619 ", userID='" + userID + '\'' +
597620 ", avatar=" + avatar +
598621 ", createdAt=" + createdAt +
0 commit comments