Skip to content
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

Fix #127 #131

Merged
merged 4 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public record Message(

@JsonProperty("id") String id) {
@JsonProperty("id") String id,
@JsonProperty("message_status") String messageStatus){
}
3 changes: 2 additions & 1 deletion src/main/java/com/whatsapp/api/domain/webhook/WebHook.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package com.whatsapp.api.domain.webhook;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;

/**
* The type Webhook.
* Use this class to deserialize webhook events
*/
public final class WebHook {
private static final ObjectMapper mapper = new ObjectMapper();
private static final ObjectMapper mapper = new ObjectMapper().configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);

/**
* Construct WebHookEvent object
Expand Down
Loading