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

com.tinypass.client.publisher.model.WebhookEvent Maven / Gradle / Ivy

There is a newer version: 16.331.0
Show newest version
package com.tinypass.client.publisher.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import com.tinypass.client.publisher.model.User;
import com.tinypass.client.publisher.model.WebhookResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

public class WebhookEvent {

  /* The webhook ID */
  private String webhookId = null;
  

  /* The status */
  private String status = null;
    //public enum statusEnum {  inactive,  pending,  succeeded,  failed,  skipped,  };


  /* The status localized */
  private String statusLocalized = null;
  

  /* The number of extra attempts to send the webhook */
  private String retried = null;
  

  /* The creation date */
  private Integer createDate = null;
  

  /* The update date */
  private Integer updateDate = null;
  

    private WebhookResponse lastWebhookResponse = null;
  

    private User user = null;
  

  /* The webhook type */
  private String type = null;
  

  /* The localized webhook type */
  private String typeLocalized = null;
  

  /* The webhook event */
  private String event = null;
  

  /* The localized webhook event */
  private String eventLocalized = null;
  

  /* The webhook event type */
  private String eventType = null;
  

  /* The number of webhook responses */
  private Integer responsesCount = null;
  


  public String getWebhookId() {
    return webhookId;
  }
  public void setWebhookId(String webhookId) {
    this.webhookId = webhookId;
  }


  public String getStatus() {
    return status;
  }
  public void setStatus(String status) {
    this.status = status;
  }


  public String getStatusLocalized() {
    return statusLocalized;
  }
  public void setStatusLocalized(String statusLocalized) {
    this.statusLocalized = statusLocalized;
  }


  public String getRetried() {
    return retried;
  }
  public void setRetried(String retried) {
    this.retried = retried;
  }


  public Integer getCreateDate() {
    return createDate;
  }
  public void setCreateDate(Integer createDate) {
    this.createDate = createDate;
  }


  public Integer getUpdateDate() {
    return updateDate;
  }
  public void setUpdateDate(Integer updateDate) {
    this.updateDate = updateDate;
  }


  public WebhookResponse getLastWebhookResponse() {
    return lastWebhookResponse;
  }
  public void setLastWebhookResponse(WebhookResponse lastWebhookResponse) {
    this.lastWebhookResponse = lastWebhookResponse;
  }


  public User getUser() {
    return user;
  }
  public void setUser(User user) {
    this.user = user;
  }


  public String getType() {
    return type;
  }
  public void setType(String type) {
    this.type = type;
  }


  public String getTypeLocalized() {
    return typeLocalized;
  }
  public void setTypeLocalized(String typeLocalized) {
    this.typeLocalized = typeLocalized;
  }


  public String getEvent() {
    return event;
  }
  public void setEvent(String event) {
    this.event = event;
  }


  public String getEventLocalized() {
    return eventLocalized;
  }
  public void setEventLocalized(String eventLocalized) {
    this.eventLocalized = eventLocalized;
  }


  public String getEventType() {
    return eventType;
  }
  public void setEventType(String eventType) {
    this.eventType = eventType;
  }


  public Integer getResponsesCount() {
    return responsesCount;
  }
  public void setResponsesCount(Integer responsesCount) {
    this.responsesCount = responsesCount;
  }


  @Override
  public String toString()  {
    StringBuilder sb = new StringBuilder();
    sb.append("class WebhookEvent {\n");
    sb.append("  webhookId: ").append(webhookId).append("\n");
    sb.append("  status: ").append(status).append("\n");
    sb.append("  statusLocalized: ").append(statusLocalized).append("\n");
    sb.append("  retried: ").append(retried).append("\n");
    sb.append("  createDate: ").append(createDate).append("\n");
    sb.append("  updateDate: ").append(updateDate).append("\n");
    sb.append("  lastWebhookResponse: ").append(lastWebhookResponse).append("\n");
    sb.append("  user: ").append(user).append("\n");
    sb.append("  type: ").append(type).append("\n");
    sb.append("  typeLocalized: ").append(typeLocalized).append("\n");
    sb.append("  event: ").append(event).append("\n");
    sb.append("  eventLocalized: ").append(eventLocalized).append("\n");
    sb.append("  eventType: ").append(eventType).append("\n");
    sb.append("  responsesCount: ").append(responsesCount).append("\n");
    sb.append("}\n");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy