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

jp.gopay.sdk.models.response.webhook.Webhook Maven / Gradle / Ivy

There is a newer version: 0.11.17
Show newest version
package jp.gopay.sdk.models.response.webhook;

import com.google.gson.annotations.SerializedName;
import jp.gopay.sdk.models.common.MerchantId;
import jp.gopay.sdk.models.common.StoreId;
import jp.gopay.sdk.models.common.WebhookId;
import jp.gopay.sdk.models.response.GoPayResponse;
import jp.gopay.sdk.models.response.SimpleModel;
import jp.gopay.sdk.types.PaymentSystemEvent;

import java.net.URL;
import java.util.Date;
import java.util.List;
import java.util.UUID;


public class Webhook extends GoPayResponse implements SimpleModel {
    @SerializedName("id")
    private UUID id;

    @SerializedName("merchant_id")
    private UUID merchantId;

    @SerializedName("store_id")
    private UUID storeId;

    @SerializedName("triggers")
    private List triggers;

    @SerializedName("url")
    private URL url;

    @SerializedName("created_on")
    private Date createdOn;

    @SerializedName("updated_on")
    private Date updatedOn;

    public WebhookId getId() {
        return new WebhookId(id);
    }

    public MerchantId getMerchantId() {
        return new MerchantId(merchantId);
    }

    public StoreId getStoreId() {
        return new StoreId(storeId);
    }

    public List getTriggers() {
        return triggers;
    }

    public URL getUrl() {
        return url;
    }

    public Date getCreatedOn() {
        return createdOn;
    }

    public Date getUpdatedOn() {
        return updatedOn;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy