com.kibocommerce.sdk.fulfillment.model.CancelItem Maven / Gradle / Ivy
The newest version!
/*
* Kibo Fulfillment API - Production Profile
* REST API backing the Kibo Fulfiller User Interface
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.kibocommerce.sdk.fulfillment.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 com.kibocommerce.sdk.fulfillment.model.CanceledReason;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* CancelItem
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class CancelItem {
public static final String SERIALIZED_NAME_CANCELED_REASON = "canceledReason";
@SerializedName(SERIALIZED_NAME_CANCELED_REASON)
private CanceledReason canceledReason = null;
public static final String SERIALIZED_NAME_LINE_ID = "lineId";
@SerializedName(SERIALIZED_NAME_LINE_ID)
private Integer lineId;
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
@SerializedName(SERIALIZED_NAME_QUANTITY)
private Integer quantity;
public CancelItem canceledReason(CanceledReason canceledReason) {
this.canceledReason = canceledReason;
return this;
}
/**
* Get canceledReason
* @return canceledReason
**/
@ApiModelProperty(value = "")
public CanceledReason getCanceledReason() {
return canceledReason;
}
public void setCanceledReason(CanceledReason canceledReason) {
this.canceledReason = canceledReason;
}
public CancelItem lineId(Integer lineId) {
this.lineId = lineId;
return this;
}
/**
* Get lineId
* @return lineId
**/
@ApiModelProperty(value = "")
public Integer getLineId() {
return lineId;
}
public void setLineId(Integer lineId) {
this.lineId = lineId;
}
public CancelItem quantity(Integer quantity) {
this.quantity = quantity;
return this;
}
/**
* Get quantity
* @return quantity
**/
@ApiModelProperty(value = "")
public Integer getQuantity() {
return quantity;
}
public void setQuantity(Integer quantity) {
this.quantity = quantity;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CancelItem cancelItem = (CancelItem) o;
return Objects.equals(this.canceledReason, cancelItem.canceledReason) &&
Objects.equals(this.lineId, cancelItem.lineId) &&
Objects.equals(this.quantity, cancelItem.quantity);
}
@Override
public int hashCode() {
return Objects.hash(canceledReason, lineId, quantity);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CancelItem {\n");
sb.append(" canceledReason: ").append(toIndentedString(canceledReason)).append("\n");
sb.append(" lineId: ").append(toIndentedString(lineId)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).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