All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.replyyes.facebook.messenger.bean.ErrorPayload Maven / Gradle / Ivy

The newest version!
package com.replyyes.facebook.messenger.bean;

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

import lombok.Data;

/**
 * The payload of an {@link ErrorResponse} that gets returned by the Facebook API whenever a message
 * fails to be sent to a user.
 *
 * https://developers.facebook.com/docs/messenger-platform/send-api-reference/errors
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(Include.NON_NULL)
public class ErrorPayload {
    private String message;

    private String type;

    private Long code;

    @JsonProperty("error_subcode")
    private Long errorSubcode;

    @JsonProperty("fbtrace_id")
    private String fbtraceId;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy