com.upstox.api.MultiOrderData 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;
/**
* Response data for multi order request
*/
@Schema(description = "Response data for multi 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 MultiOrderData {
@SerializedName("correlation_id")
private String correlationId = null;
@SerializedName("order_id")
private String orderId = null;
/**
* A unique identifier for tracking individual orders within the batch
* @return correlationId
**/
@Schema(example = "213fsf2324", description = "A unique identifier for tracking individual orders within the batch")
public String getCorrelationId() {
return correlationId;
}
/**
* An order ID for the order request placed
* @return orderId
**/
@Schema(example = "1644490272000", description = "An order ID for the order request placed")
public String getOrderId() {
return orderId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MultiOrderData multiOrderData = (MultiOrderData) o;
return Objects.equals(this.correlationId, multiOrderData.correlationId) &&
Objects.equals(this.orderId, multiOrderData.orderId);
}
@Override
public int hashCode() {
return Objects.hash(correlationId, orderId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class MultiOrderData {\n");
sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n");
sb.append(" orderId: ").append(toIndentedString(orderId)).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 ");
}
}