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

co.omise.models.Event Maven / Gradle / Ivy

There is a newer version: 5.1.0
Show newest version
package co.omise.models;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;

/**
 * Represents Omise Event object.
 *
 * @see Events API
 */
public class Event extends Model {
    private String key;

    @JsonTypeInfo(
            use = JsonTypeInfo.Id.CUSTOM,
            include = JsonTypeInfo.As.EXISTING_PROPERTY,
            property = "object",
            visible = true
    )
    @JsonTypeIdResolver(ModelTypeResolver.class)
    private T data;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy