io.swagger.client.model.DisputeResponse Maven / Gradle / Ivy
/*
* 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.DisputeReport;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* DisputeResponse
*/
public class DisputeResponse {
@SerializedName("code")
private Integer code = null;
@SerializedName("message")
private String message = null;
@SerializedName("totalPages")
private Integer totalPages = null;
@SerializedName("totalRecords")
private Integer totalRecords = null;
@SerializedName("data")
private List data = new ArrayList();
/**
* <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", required = true, 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", required = true, value = "Format: Variable length AN
Description: A short description of the API response code.")
public String getMessage() {
return message;
}
/**
* <strong>Format: </strong>Variable length N<br><strong>Description: </strong>Total Number of pages.
* @return totalPages
**/
@ApiModelProperty(example = "10", required = true, value = "Format: Variable length N
Description: Total Number of pages. ")
public Integer getTotalPages() {
return totalPages;
}
/**
* <strong>Format: </strong>Variable length, up to 3 N<br><strong>Description: </strong>Total number of records upto a maximum of 100.
* @return totalRecords
**/
@ApiModelProperty(example = "100", required = true, value = "Format: Variable length, up to 3 N
Description: Total number of records upto a maximum of 100.")
public Integer getTotalRecords() {
return totalRecords;
}
/**
* An array of the resource object.
* @return data
**/
@ApiModelProperty(required = true, value = "An array of the resource object.")
public List getData() {
return data;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
DisputeResponse disputeResponse = (DisputeResponse) o;
return Objects.equals(this.code, disputeResponse.code) &&
Objects.equals(this.message, disputeResponse.message) &&
Objects.equals(this.totalPages, disputeResponse.totalPages) &&
Objects.equals(this.totalRecords, disputeResponse.totalRecords) &&
Objects.equals(this.data, disputeResponse.data);
}
@Override
public int hashCode() {
return Objects.hash(code, message, totalPages, totalRecords, data);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class DisputeResponse {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).append("\n");
sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n");
sb.append(" totalRecords: ").append(toIndentedString(totalRecords)).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