com.kibocommerce.sdk.fulfillment.model.TransferItem 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.TransferredReason;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* TransferItem
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2020-12-08T12:42:53.880-06:00[America/Chicago]")
public class TransferItem {
public static final String SERIALIZED_NAME_BLOCK_ASSIGNMENT = "blockAssignment";
@SerializedName(SERIALIZED_NAME_BLOCK_ASSIGNMENT)
private Boolean blockAssignment;
public static final String SERIALIZED_NAME_FULFILLMENT_LOCATION_CODE = "fulfillmentLocationCode";
@SerializedName(SERIALIZED_NAME_FULFILLMENT_LOCATION_CODE)
private String fulfillmentLocationCode;
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 static final String SERIALIZED_NAME_TRANSFERRED_REASON = "transferredReason";
@SerializedName(SERIALIZED_NAME_TRANSFERRED_REASON)
private TransferredReason transferredReason = null;
public TransferItem blockAssignment(Boolean blockAssignment) {
this.blockAssignment = blockAssignment;
return this;
}
/**
* Get blockAssignment
* @return blockAssignment
**/
@ApiModelProperty(value = "")
public Boolean getBlockAssignment() {
return blockAssignment;
}
public void setBlockAssignment(Boolean blockAssignment) {
this.blockAssignment = blockAssignment;
}
public TransferItem fulfillmentLocationCode(String fulfillmentLocationCode) {
this.fulfillmentLocationCode = fulfillmentLocationCode;
return this;
}
/**
* Get fulfillmentLocationCode
* @return fulfillmentLocationCode
**/
@ApiModelProperty(value = "")
public String getFulfillmentLocationCode() {
return fulfillmentLocationCode;
}
public void setFulfillmentLocationCode(String fulfillmentLocationCode) {
this.fulfillmentLocationCode = fulfillmentLocationCode;
}
public TransferItem 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 TransferItem 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;
}
public TransferItem transferredReason(TransferredReason transferredReason) {
this.transferredReason = transferredReason;
return this;
}
/**
* Get transferredReason
* @return transferredReason
**/
@ApiModelProperty(value = "")
public TransferredReason getTransferredReason() {
return transferredReason;
}
public void setTransferredReason(TransferredReason transferredReason) {
this.transferredReason = transferredReason;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TransferItem transferItem = (TransferItem) o;
return Objects.equals(this.blockAssignment, transferItem.blockAssignment) &&
Objects.equals(this.fulfillmentLocationCode, transferItem.fulfillmentLocationCode) &&
Objects.equals(this.lineId, transferItem.lineId) &&
Objects.equals(this.quantity, transferItem.quantity) &&
Objects.equals(this.transferredReason, transferItem.transferredReason);
}
@Override
public int hashCode() {
return Objects.hash(blockAssignment, fulfillmentLocationCode, lineId, quantity, transferredReason);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TransferItem {\n");
sb.append(" blockAssignment: ").append(toIndentedString(blockAssignment)).append("\n");
sb.append(" fulfillmentLocationCode: ").append(toIndentedString(fulfillmentLocationCode)).append("\n");
sb.append(" lineId: ").append(toIndentedString(lineId)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" transferredReason: ").append(toIndentedString(transferredReason)).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