com.upstox.api.BatchExecutionSummary Maven / Gradle / Ivy
/*
* OpenAPI definition
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: v0
*
*
* 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 com.upstox.api;
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.v3.oas.annotations.media.Schema;
import java.io.IOException;
/**
* Execution summary for cancel or exit order request
*/
@Schema(description = "Execution summary for cancel or exit order request")
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2024-10-09T09:11:10.678079+05:30[Asia/Kolkata]")
public class BatchExecutionSummary {
@SerializedName("total")
private Integer total = null;
@SerializedName("success")
private Integer success = null;
@SerializedName("error")
private Integer error = null;
/**
* The total number of order lines present in the payload.
* @return total
**/
@Schema(example = "3", description = "The total number of order lines present in the payload.")
public Integer getTotal() {
return total;
}
/**
* The number of order lines that were successfully placed without any errors.
* @return success
**/
@Schema(example = "2", description = "The number of order lines that were successfully placed without any errors.")
public Integer getSuccess() {
return success;
}
/**
* The number of order lines that encountered errors during processing, despite their payloads being valid.
* @return error
**/
@Schema(example = "1", description = "The number of order lines that encountered errors during processing, despite their payloads being valid.")
public Integer getError() {
return error;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BatchExecutionSummary batchExecutionSummary = (BatchExecutionSummary) o;
return Objects.equals(this.total, batchExecutionSummary.total) &&
Objects.equals(this.success, batchExecutionSummary.success) &&
Objects.equals(this.error, batchExecutionSummary.error);
}
@Override
public int hashCode() {
return Objects.hash(total, success, error);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BatchExecutionSummary {\n");
sb.append(" total: ").append(toIndentedString(total)).append("\n");
sb.append(" success: ").append(toIndentedString(success)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).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 ");
}
}