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

com.univapay.sdk.models.response.webhook.Webhook Maven / Gradle / Ivy

The newest version!
package com.univapay.sdk.models.response.webhook;

import com.google.gson.annotations.SerializedName;
import com.univapay.sdk.models.common.MerchantId;
import com.univapay.sdk.models.common.StoreId;
import com.univapay.sdk.models.common.WebhookId;
import com.univapay.sdk.models.response.SimpleModel;
import com.univapay.sdk.models.response.UnivapayResponse;
import com.univapay.sdk.types.PaymentSystemEvent;
import java.net.URL;
import java.time.OffsetDateTime;
import java.util.List;
import java.util.UUID;

public class Webhook extends UnivapayResponse 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 OffsetDateTime createdOn;

  @SerializedName("updated_on")
  private OffsetDateTime 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 OffsetDateTime getCreatedOn() {
    return createdOn;
  }

  public OffsetDateTime getUpdatedOn() {
    return updatedOn;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy