Skip to content

Commit

Permalink
inclusão de notação para ignorar novos campos, inclusão de prop. na
Browse files Browse the repository at this point in the history
classe
  • Loading branch information
brunopedrosa committed Aug 19, 2024
1 parent 6ffaab1 commit f935f22
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/main/java/com/whatsapp/api/domain/webhook/Contact.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
package com.whatsapp.api.domain.webhook;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* The type Contact.
*
* @param profile The {@link Profile} object.
* @param waId The WhatsApp ID of the customer. You can send messages using this wa_id.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public record Contact(

@JsonProperty("profile") Profile profile,
Expand All @@ -18,6 +20,8 @@ public record Contact(

@JsonProperty("phones") List<Phone> phones,

@JsonProperty("wa_id") String waId) {
@JsonProperty("wa_id") String waId,

@JsonProperty("org") String org) {

}

0 comments on commit f935f22

Please sign in to comment.