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

io.swagger.client.model.WebhookResponse Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
/*
 * Qualpay Platform API
 * This document describes the Qualpay Platform API.
 *
 * OpenAPI spec version: 1.1.9
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.client.model;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.client.model.Webhook;
import java.io.IOException;

/**
 * WebhookResponse
 */

public class WebhookResponse {
  @SerializedName("code")
  private Integer code = null;

  @SerializedName("message")
  private String message = null;

  @SerializedName("data")
  private Webhook data = null;

   /**
   * <strong>Format: </strong>Fixed length, 1 N<br><strong>Description: </strong>Response code from API. 0 indicates success. Refer to <a href=\"/developer/api/reference#api-response-codes\"target=\"_blank\">Platform API Response Codes</a> for entire list of return codes.
   * @return code
  **/
  @ApiModelProperty(example = "0", value = "Format: Fixed length, 1 N
Description: Response code from API. 0 indicates success. Refer to Platform API Response Codes for entire list of return codes.") public Integer getCode() { return code; } /** * <strong>Format: </strong>Variable length AN<br><strong>Description: </strong>A short description of the API response code. * @return message **/ @ApiModelProperty(example = "Success", value = "Format: Variable length AN
Description: A short description of the API response code.") public String getMessage() { return message; } /** * <br><strong>Description: </strong>If request is successful, this field will contain the response resource. If there are input validation errors i.e, the code is 2, this field may contain a list of fields that failed the validation. * @return data **/ @ApiModelProperty(value = "
Description: If request is successful, this field will contain the response resource. If there are input validation errors i.e, the code is 2, this field may contain a list of fields that failed the validation.") public Webhook getData() { return data; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } WebhookResponse webhookResponse = (WebhookResponse) o; return Objects.equals(this.code, webhookResponse.code) && Objects.equals(this.message, webhookResponse.message) && Objects.equals(this.data, webhookResponse.data); } @Override public int hashCode() { return Objects.hash(code, message, data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class WebhookResponse {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(java.lang.Object o) { if (o == null) { return "null"; } return o.toString().replace("\n", "\n "); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy