Blame | Last modification | View Log | RSS feed
/*** Autogenerated by Thrift Compiler (0.7.0)** DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING*/package in.shop2020.model.v1.order;import java.util.List;import java.util.ArrayList;import java.util.Map;import java.util.HashMap;import java.util.EnumMap;import java.util.Set;import java.util.HashSet;import java.util.EnumSet;import java.util.Collections;import java.util.BitSet;import java.nio.ByteBuffer;import java.util.Arrays;import org.slf4j.Logger;import org.slf4j.LoggerFactory;public class ReturnOrderInfo implements org.apache.thrift.TBase<ReturnOrderInfo, ReturnOrderInfo._Fields>, java.io.Serializable, Cloneable {private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("ReturnOrderInfo");private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);private static final org.apache.thrift.protocol.TField RETURN_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTransactionId", org.apache.thrift.protocol.TType.I64, (short)2);private static final org.apache.thrift.protocol.TField MASTER_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("masterOrderId", org.apache.thrift.protocol.TType.STRING, (short)3);private static final org.apache.thrift.protocol.TField ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("orderId", org.apache.thrift.protocol.TType.I64, (short)4);private static final org.apache.thrift.protocol.TField LINE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("lineItemId", org.apache.thrift.protocol.TType.I64, (short)5);private static final org.apache.thrift.protocol.TField LOGISTICS_REQUEST_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsRequestId", org.apache.thrift.protocol.TType.I64, (short)6);private static final org.apache.thrift.protocol.TField RETURN_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("returnQuantity", org.apache.thrift.protocol.TType.I64, (short)7);private static final org.apache.thrift.protocol.TField RECEIVED_QUANTITY_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedQuantity", org.apache.thrift.protocol.TType.I64, (short)8);private static final org.apache.thrift.protocol.TField CREATED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("createdAt", org.apache.thrift.protocol.TType.I64, (short)9);private static final org.apache.thrift.protocol.TField PROCESSED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("processedAt", org.apache.thrift.protocol.TType.I64, (short)10);private static final org.apache.thrift.protocol.TField RETURN_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("returnStatus", org.apache.thrift.protocol.TType.STRING, (short)11);private static final org.apache.thrift.protocol.TField RESHIPPED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("reshippedAt", org.apache.thrift.protocol.TType.I64, (short)12);private static final org.apache.thrift.protocol.TField RECEIVED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedAt", org.apache.thrift.protocol.TType.I64, (short)13);private static final org.apache.thrift.protocol.TField REFUND_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("refundReason", org.apache.thrift.protocol.TType.STRING, (short)14);private static final org.apache.thrift.protocol.TField REFUNDED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedBy", org.apache.thrift.protocol.TType.STRING, (short)15);private static final org.apache.thrift.protocol.TField REFUNDED_AT_FIELD_DESC = new org.apache.thrift.protocol.TField("refundedAt", org.apache.thrift.protocol.TType.I64, (short)16);private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)17);private static final org.apache.thrift.protocol.TField REFUND_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("refundAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)18);private static final org.apache.thrift.protocol.TField REFUND_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("refundType", org.apache.thrift.protocol.TType.I32, (short)19);private static final org.apache.thrift.protocol.TField REFUND_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("refundDescription", org.apache.thrift.protocol.TType.STRING, (short)20);private static final org.apache.thrift.protocol.TField RETURN_PICKUP_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("returnPickupType", org.apache.thrift.protocol.TType.I32, (short)21);private static final org.apache.thrift.protocol.TField SHIPPING_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingType", org.apache.thrift.protocol.TType.I32, (short)22);private static final org.apache.thrift.protocol.TField REPLACEMENT_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("replacementOrderId", org.apache.thrift.protocol.TType.I64, (short)23);private static final org.apache.thrift.protocol.TField RECEIVED_RETURN_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("receivedReturnType", org.apache.thrift.protocol.TType.I32, (short)24);private static final org.apache.thrift.protocol.TField FREEBIE_ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("freebieItemId", org.apache.thrift.protocol.TType.I64, (short)25);private static final org.apache.thrift.protocol.TField RETURN_ACTION_FIELD_DESC = new org.apache.thrift.protocol.TField("returnAction", org.apache.thrift.protocol.TType.I32, (short)26);private static final org.apache.thrift.protocol.TField RETURN_TXN_RESOLUTION_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("returnTxnResolutionStatus", org.apache.thrift.protocol.TType.I32, (short)27);private static final org.apache.thrift.protocol.TField LINEITEM_FIELD_DESC = new org.apache.thrift.protocol.TField("lineitem", org.apache.thrift.protocol.TType.STRUCT, (short)28);private static final org.apache.thrift.protocol.TField RETURN_PICK_UP_REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("returnPickUpRequest", org.apache.thrift.protocol.TType.STRUCT, (short)29);private long id; // requiredprivate long returnTransactionId; // requiredprivate String masterOrderId; // requiredprivate long orderId; // requiredprivate long lineItemId; // requiredprivate long logisticsRequestId; // requiredprivate long returnQuantity; // requiredprivate long receivedQuantity; // requiredprivate long createdAt; // requiredprivate long processedAt; // requiredprivate String returnStatus; // requiredprivate long reshippedAt; // requiredprivate long receivedAt; // requiredprivate String refundReason; // requiredprivate String refundedBy; // requiredprivate long refundedAt; // requiredprivate long warehouse_id; // requiredprivate double refundAmount; // requiredprivate RefundType refundType; // requiredprivate String refundDescription; // requiredprivate ReturnPickupType returnPickupType; // requiredprivate ReplacementShippingType shippingType; // requiredprivate long replacementOrderId; // requiredprivate ReceivedReturnType receivedReturnType; // requiredprivate long freebieItemId; // requiredprivate ReturnAction returnAction; // requiredprivate ReturnTxnResolutionStatus returnTxnResolutionStatus; // requiredprivate LineItem lineitem; // requiredprivate ReturnPickupRequest returnPickUpRequest; // required/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */public enum _Fields implements org.apache.thrift.TFieldIdEnum {ID((short)1, "id"),RETURN_TRANSACTION_ID((short)2, "returnTransactionId"),MASTER_ORDER_ID((short)3, "masterOrderId"),ORDER_ID((short)4, "orderId"),LINE_ITEM_ID((short)5, "lineItemId"),LOGISTICS_REQUEST_ID((short)6, "logisticsRequestId"),RETURN_QUANTITY((short)7, "returnQuantity"),RECEIVED_QUANTITY((short)8, "receivedQuantity"),CREATED_AT((short)9, "createdAt"),PROCESSED_AT((short)10, "processedAt"),RETURN_STATUS((short)11, "returnStatus"),RESHIPPED_AT((short)12, "reshippedAt"),RECEIVED_AT((short)13, "receivedAt"),REFUND_REASON((short)14, "refundReason"),REFUNDED_BY((short)15, "refundedBy"),REFUNDED_AT((short)16, "refundedAt"),WAREHOUSE_ID((short)17, "warehouse_id"),REFUND_AMOUNT((short)18, "refundAmount"),/**** @see RefundType*/REFUND_TYPE((short)19, "refundType"),REFUND_DESCRIPTION((short)20, "refundDescription"),/**** @see ReturnPickupType*/RETURN_PICKUP_TYPE((short)21, "returnPickupType"),/**** @see ReplacementShippingType*/SHIPPING_TYPE((short)22, "shippingType"),REPLACEMENT_ORDER_ID((short)23, "replacementOrderId"),/**** @see ReceivedReturnType*/RECEIVED_RETURN_TYPE((short)24, "receivedReturnType"),FREEBIE_ITEM_ID((short)25, "freebieItemId"),/**** @see ReturnAction*/RETURN_ACTION((short)26, "returnAction"),/**** @see ReturnTxnResolutionStatus*/RETURN_TXN_RESOLUTION_STATUS((short)27, "returnTxnResolutionStatus"),LINEITEM((short)28, "lineitem"),RETURN_PICK_UP_REQUEST((short)29, "returnPickUpRequest");private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();static {for (_Fields field : EnumSet.allOf(_Fields.class)) {byName.put(field.getFieldName(), field);}}/*** Find the _Fields constant that matches fieldId, or null if its not found.*/public static _Fields findByThriftId(int fieldId) {switch(fieldId) {case 1: // IDreturn ID;case 2: // RETURN_TRANSACTION_IDreturn RETURN_TRANSACTION_ID;case 3: // MASTER_ORDER_IDreturn MASTER_ORDER_ID;case 4: // ORDER_IDreturn ORDER_ID;case 5: // LINE_ITEM_IDreturn LINE_ITEM_ID;case 6: // LOGISTICS_REQUEST_IDreturn LOGISTICS_REQUEST_ID;case 7: // RETURN_QUANTITYreturn RETURN_QUANTITY;case 8: // RECEIVED_QUANTITYreturn RECEIVED_QUANTITY;case 9: // CREATED_ATreturn CREATED_AT;case 10: // PROCESSED_ATreturn PROCESSED_AT;case 11: // RETURN_STATUSreturn RETURN_STATUS;case 12: // RESHIPPED_ATreturn RESHIPPED_AT;case 13: // RECEIVED_ATreturn RECEIVED_AT;case 14: // REFUND_REASONreturn REFUND_REASON;case 15: // REFUNDED_BYreturn REFUNDED_BY;case 16: // REFUNDED_ATreturn REFUNDED_AT;case 17: // WAREHOUSE_IDreturn WAREHOUSE_ID;case 18: // REFUND_AMOUNTreturn REFUND_AMOUNT;case 19: // REFUND_TYPEreturn REFUND_TYPE;case 20: // REFUND_DESCRIPTIONreturn REFUND_DESCRIPTION;case 21: // RETURN_PICKUP_TYPEreturn RETURN_PICKUP_TYPE;case 22: // SHIPPING_TYPEreturn SHIPPING_TYPE;case 23: // REPLACEMENT_ORDER_IDreturn REPLACEMENT_ORDER_ID;case 24: // RECEIVED_RETURN_TYPEreturn RECEIVED_RETURN_TYPE;case 25: // FREEBIE_ITEM_IDreturn FREEBIE_ITEM_ID;case 26: // RETURN_ACTIONreturn RETURN_ACTION;case 27: // RETURN_TXN_RESOLUTION_STATUSreturn RETURN_TXN_RESOLUTION_STATUS;case 28: // LINEITEMreturn LINEITEM;case 29: // RETURN_PICK_UP_REQUESTreturn RETURN_PICK_UP_REQUEST;default:return null;}}/*** Find the _Fields constant that matches fieldId, throwing an exception* if it is not found.*/public static _Fields findByThriftIdOrThrow(int fieldId) {_Fields fields = findByThriftId(fieldId);if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");return fields;}/*** Find the _Fields constant that matches name, or null if its not found.*/public static _Fields findByName(String name) {return byName.get(name);}private final short _thriftId;private final String _fieldName;_Fields(short thriftId, String fieldName) {_thriftId = thriftId;_fieldName = fieldName;}public short getThriftFieldId() {return _thriftId;}public String getFieldName() {return _fieldName;}}// isset id assignmentsprivate static final int __ID_ISSET_ID = 0;private static final int __RETURNTRANSACTIONID_ISSET_ID = 1;private static final int __ORDERID_ISSET_ID = 2;private static final int __LINEITEMID_ISSET_ID = 3;private static final int __LOGISTICSREQUESTID_ISSET_ID = 4;private static final int __RETURNQUANTITY_ISSET_ID = 5;private static final int __RECEIVEDQUANTITY_ISSET_ID = 6;private static final int __CREATEDAT_ISSET_ID = 7;private static final int __PROCESSEDAT_ISSET_ID = 8;private static final int __RESHIPPEDAT_ISSET_ID = 9;private static final int __RECEIVEDAT_ISSET_ID = 10;private static final int __REFUNDEDAT_ISSET_ID = 11;private static final int __WAREHOUSE_ID_ISSET_ID = 12;private static final int __REFUNDAMOUNT_ISSET_ID = 13;private static final int __REPLACEMENTORDERID_ISSET_ID = 14;private static final int __FREEBIEITEMID_ISSET_ID = 15;private BitSet __isset_bit_vector = new BitSet(16);public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;static {Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RETURN_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("returnTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.MASTER_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("masterOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LINE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("lineItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.LOGISTICS_REQUEST_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsRequestId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RETURN_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("returnQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECEIVED_QUANTITY, new org.apache.thrift.meta_data.FieldMetaData("receivedQuantity", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.CREATED_AT, new org.apache.thrift.meta_data.FieldMetaData("createdAt", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.PROCESSED_AT, new org.apache.thrift.meta_data.FieldMetaData("processedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RETURN_STATUS, new org.apache.thrift.meta_data.FieldMetaData("returnStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.RESHIPPED_AT, new org.apache.thrift.meta_data.FieldMetaData("reshippedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECEIVED_AT, new org.apache.thrift.meta_data.FieldMetaData("receivedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.REFUND_REASON, new org.apache.thrift.meta_data.FieldMetaData("refundReason", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REFUNDED_BY, new org.apache.thrift.meta_data.FieldMetaData("refundedBy", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.REFUNDED_AT, new org.apache.thrift.meta_data.FieldMetaData("refundedAt", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouse_id", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.REFUND_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("refundAmount", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));tmpMap.put(_Fields.REFUND_TYPE, new org.apache.thrift.meta_data.FieldMetaData("refundType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, RefundType.class)));tmpMap.put(_Fields.REFUND_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("refundDescription", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));tmpMap.put(_Fields.RETURN_PICKUP_TYPE, new org.apache.thrift.meta_data.FieldMetaData("returnPickupType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnPickupType.class)));tmpMap.put(_Fields.SHIPPING_TYPE, new org.apache.thrift.meta_data.FieldMetaData("shippingType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReplacementShippingType.class)));tmpMap.put(_Fields.REPLACEMENT_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("replacementOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RECEIVED_RETURN_TYPE, new org.apache.thrift.meta_data.FieldMetaData("receivedReturnType", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReceivedReturnType.class)));tmpMap.put(_Fields.FREEBIE_ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("freebieItemId", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));tmpMap.put(_Fields.RETURN_ACTION, new org.apache.thrift.meta_data.FieldMetaData("returnAction", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnAction.class)));tmpMap.put(_Fields.RETURN_TXN_RESOLUTION_STATUS, new org.apache.thrift.meta_data.FieldMetaData("returnTxnResolutionStatus", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ReturnTxnResolutionStatus.class)));tmpMap.put(_Fields.LINEITEM, new org.apache.thrift.meta_data.FieldMetaData("lineitem", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class)));tmpMap.put(_Fields.RETURN_PICK_UP_REQUEST, new org.apache.thrift.meta_data.FieldMetaData("returnPickUpRequest", org.apache.thrift.TFieldRequirementType.DEFAULT,new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReturnPickupRequest.class)));metaDataMap = Collections.unmodifiableMap(tmpMap);org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(ReturnOrderInfo.class, metaDataMap);}public ReturnOrderInfo() {}public ReturnOrderInfo(long id,long returnTransactionId,String masterOrderId,long orderId,long lineItemId,long logisticsRequestId,long returnQuantity,long receivedQuantity,long createdAt,long processedAt,String returnStatus,long reshippedAt,long receivedAt,String refundReason,String refundedBy,long refundedAt,long warehouse_id,double refundAmount,RefundType refundType,String refundDescription,ReturnPickupType returnPickupType,ReplacementShippingType shippingType,long replacementOrderId,ReceivedReturnType receivedReturnType,long freebieItemId,ReturnAction returnAction,ReturnTxnResolutionStatus returnTxnResolutionStatus,LineItem lineitem,ReturnPickupRequest returnPickUpRequest){this();this.id = id;setIdIsSet(true);this.returnTransactionId = returnTransactionId;setReturnTransactionIdIsSet(true);this.masterOrderId = masterOrderId;this.orderId = orderId;setOrderIdIsSet(true);this.lineItemId = lineItemId;setLineItemIdIsSet(true);this.logisticsRequestId = logisticsRequestId;setLogisticsRequestIdIsSet(true);this.returnQuantity = returnQuantity;setReturnQuantityIsSet(true);this.receivedQuantity = receivedQuantity;setReceivedQuantityIsSet(true);this.createdAt = createdAt;setCreatedAtIsSet(true);this.processedAt = processedAt;setProcessedAtIsSet(true);this.returnStatus = returnStatus;this.reshippedAt = reshippedAt;setReshippedAtIsSet(true);this.receivedAt = receivedAt;setReceivedAtIsSet(true);this.refundReason = refundReason;this.refundedBy = refundedBy;this.refundedAt = refundedAt;setRefundedAtIsSet(true);this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);this.refundAmount = refundAmount;setRefundAmountIsSet(true);this.refundType = refundType;this.refundDescription = refundDescription;this.returnPickupType = returnPickupType;this.shippingType = shippingType;this.replacementOrderId = replacementOrderId;setReplacementOrderIdIsSet(true);this.receivedReturnType = receivedReturnType;this.freebieItemId = freebieItemId;setFreebieItemIdIsSet(true);this.returnAction = returnAction;this.returnTxnResolutionStatus = returnTxnResolutionStatus;this.lineitem = lineitem;this.returnPickUpRequest = returnPickUpRequest;}/*** Performs a deep copy on <i>other</i>.*/public ReturnOrderInfo(ReturnOrderInfo other) {__isset_bit_vector.clear();__isset_bit_vector.or(other.__isset_bit_vector);this.id = other.id;this.returnTransactionId = other.returnTransactionId;if (other.isSetMasterOrderId()) {this.masterOrderId = other.masterOrderId;}this.orderId = other.orderId;this.lineItemId = other.lineItemId;this.logisticsRequestId = other.logisticsRequestId;this.returnQuantity = other.returnQuantity;this.receivedQuantity = other.receivedQuantity;this.createdAt = other.createdAt;this.processedAt = other.processedAt;if (other.isSetReturnStatus()) {this.returnStatus = other.returnStatus;}this.reshippedAt = other.reshippedAt;this.receivedAt = other.receivedAt;if (other.isSetRefundReason()) {this.refundReason = other.refundReason;}if (other.isSetRefundedBy()) {this.refundedBy = other.refundedBy;}this.refundedAt = other.refundedAt;this.warehouse_id = other.warehouse_id;this.refundAmount = other.refundAmount;if (other.isSetRefundType()) {this.refundType = other.refundType;}if (other.isSetRefundDescription()) {this.refundDescription = other.refundDescription;}if (other.isSetReturnPickupType()) {this.returnPickupType = other.returnPickupType;}if (other.isSetShippingType()) {this.shippingType = other.shippingType;}this.replacementOrderId = other.replacementOrderId;if (other.isSetReceivedReturnType()) {this.receivedReturnType = other.receivedReturnType;}this.freebieItemId = other.freebieItemId;if (other.isSetReturnAction()) {this.returnAction = other.returnAction;}if (other.isSetReturnTxnResolutionStatus()) {this.returnTxnResolutionStatus = other.returnTxnResolutionStatus;}if (other.isSetLineitem()) {this.lineitem = new LineItem(other.lineitem);}if (other.isSetReturnPickUpRequest()) {this.returnPickUpRequest = new ReturnPickupRequest(other.returnPickUpRequest);}}public ReturnOrderInfo deepCopy() {return new ReturnOrderInfo(this);}@Overridepublic void clear() {setIdIsSet(false);this.id = 0;setReturnTransactionIdIsSet(false);this.returnTransactionId = 0;this.masterOrderId = null;setOrderIdIsSet(false);this.orderId = 0;setLineItemIdIsSet(false);this.lineItemId = 0;setLogisticsRequestIdIsSet(false);this.logisticsRequestId = 0;setReturnQuantityIsSet(false);this.returnQuantity = 0;setReceivedQuantityIsSet(false);this.receivedQuantity = 0;setCreatedAtIsSet(false);this.createdAt = 0;setProcessedAtIsSet(false);this.processedAt = 0;this.returnStatus = null;setReshippedAtIsSet(false);this.reshippedAt = 0;setReceivedAtIsSet(false);this.receivedAt = 0;this.refundReason = null;this.refundedBy = null;setRefundedAtIsSet(false);this.refundedAt = 0;setWarehouse_idIsSet(false);this.warehouse_id = 0;setRefundAmountIsSet(false);this.refundAmount = 0.0;this.refundType = null;this.refundDescription = null;this.returnPickupType = null;this.shippingType = null;setReplacementOrderIdIsSet(false);this.replacementOrderId = 0;this.receivedReturnType = null;setFreebieItemIdIsSet(false);this.freebieItemId = 0;this.returnAction = null;this.returnTxnResolutionStatus = null;this.lineitem = null;this.returnPickUpRequest = null;}public long getId() {return this.id;}public void setId(long id) {this.id = id;setIdIsSet(true);}public void unsetId() {__isset_bit_vector.clear(__ID_ISSET_ID);}/** Returns true if field id is set (has been assigned a value) and false otherwise */public boolean isSetId() {return __isset_bit_vector.get(__ID_ISSET_ID);}public void setIdIsSet(boolean value) {__isset_bit_vector.set(__ID_ISSET_ID, value);}public long getReturnTransactionId() {return this.returnTransactionId;}public void setReturnTransactionId(long returnTransactionId) {this.returnTransactionId = returnTransactionId;setReturnTransactionIdIsSet(true);}public void unsetReturnTransactionId() {__isset_bit_vector.clear(__RETURNTRANSACTIONID_ISSET_ID);}/** Returns true if field returnTransactionId is set (has been assigned a value) and false otherwise */public boolean isSetReturnTransactionId() {return __isset_bit_vector.get(__RETURNTRANSACTIONID_ISSET_ID);}public void setReturnTransactionIdIsSet(boolean value) {__isset_bit_vector.set(__RETURNTRANSACTIONID_ISSET_ID, value);}public String getMasterOrderId() {return this.masterOrderId;}public void setMasterOrderId(String masterOrderId) {this.masterOrderId = masterOrderId;}public void unsetMasterOrderId() {this.masterOrderId = null;}/** Returns true if field masterOrderId is set (has been assigned a value) and false otherwise */public boolean isSetMasterOrderId() {return this.masterOrderId != null;}public void setMasterOrderIdIsSet(boolean value) {if (!value) {this.masterOrderId = null;}}public long getOrderId() {return this.orderId;}public void setOrderId(long orderId) {this.orderId = orderId;setOrderIdIsSet(true);}public void unsetOrderId() {__isset_bit_vector.clear(__ORDERID_ISSET_ID);}/** Returns true if field orderId is set (has been assigned a value) and false otherwise */public boolean isSetOrderId() {return __isset_bit_vector.get(__ORDERID_ISSET_ID);}public void setOrderIdIsSet(boolean value) {__isset_bit_vector.set(__ORDERID_ISSET_ID, value);}public long getLineItemId() {return this.lineItemId;}public void setLineItemId(long lineItemId) {this.lineItemId = lineItemId;setLineItemIdIsSet(true);}public void unsetLineItemId() {__isset_bit_vector.clear(__LINEITEMID_ISSET_ID);}/** Returns true if field lineItemId is set (has been assigned a value) and false otherwise */public boolean isSetLineItemId() {return __isset_bit_vector.get(__LINEITEMID_ISSET_ID);}public void setLineItemIdIsSet(boolean value) {__isset_bit_vector.set(__LINEITEMID_ISSET_ID, value);}public long getLogisticsRequestId() {return this.logisticsRequestId;}public void setLogisticsRequestId(long logisticsRequestId) {this.logisticsRequestId = logisticsRequestId;setLogisticsRequestIdIsSet(true);}public void unsetLogisticsRequestId() {__isset_bit_vector.clear(__LOGISTICSREQUESTID_ISSET_ID);}/** Returns true if field logisticsRequestId is set (has been assigned a value) and false otherwise */public boolean isSetLogisticsRequestId() {return __isset_bit_vector.get(__LOGISTICSREQUESTID_ISSET_ID);}public void setLogisticsRequestIdIsSet(boolean value) {__isset_bit_vector.set(__LOGISTICSREQUESTID_ISSET_ID, value);}public long getReturnQuantity() {return this.returnQuantity;}public void setReturnQuantity(long returnQuantity) {this.returnQuantity = returnQuantity;setReturnQuantityIsSet(true);}public void unsetReturnQuantity() {__isset_bit_vector.clear(__RETURNQUANTITY_ISSET_ID);}/** Returns true if field returnQuantity is set (has been assigned a value) and false otherwise */public boolean isSetReturnQuantity() {return __isset_bit_vector.get(__RETURNQUANTITY_ISSET_ID);}public void setReturnQuantityIsSet(boolean value) {__isset_bit_vector.set(__RETURNQUANTITY_ISSET_ID, value);}public long getReceivedQuantity() {return this.receivedQuantity;}public void setReceivedQuantity(long receivedQuantity) {this.receivedQuantity = receivedQuantity;setReceivedQuantityIsSet(true);}public void unsetReceivedQuantity() {__isset_bit_vector.clear(__RECEIVEDQUANTITY_ISSET_ID);}/** Returns true if field receivedQuantity is set (has been assigned a value) and false otherwise */public boolean isSetReceivedQuantity() {return __isset_bit_vector.get(__RECEIVEDQUANTITY_ISSET_ID);}public void setReceivedQuantityIsSet(boolean value) {__isset_bit_vector.set(__RECEIVEDQUANTITY_ISSET_ID, value);}public long getCreatedAt() {return this.createdAt;}public void setCreatedAt(long createdAt) {this.createdAt = createdAt;setCreatedAtIsSet(true);}public void unsetCreatedAt() {__isset_bit_vector.clear(__CREATEDAT_ISSET_ID);}/** Returns true if field createdAt is set (has been assigned a value) and false otherwise */public boolean isSetCreatedAt() {return __isset_bit_vector.get(__CREATEDAT_ISSET_ID);}public void setCreatedAtIsSet(boolean value) {__isset_bit_vector.set(__CREATEDAT_ISSET_ID, value);}public long getProcessedAt() {return this.processedAt;}public void setProcessedAt(long processedAt) {this.processedAt = processedAt;setProcessedAtIsSet(true);}public void unsetProcessedAt() {__isset_bit_vector.clear(__PROCESSEDAT_ISSET_ID);}/** Returns true if field processedAt is set (has been assigned a value) and false otherwise */public boolean isSetProcessedAt() {return __isset_bit_vector.get(__PROCESSEDAT_ISSET_ID);}public void setProcessedAtIsSet(boolean value) {__isset_bit_vector.set(__PROCESSEDAT_ISSET_ID, value);}public String getReturnStatus() {return this.returnStatus;}public void setReturnStatus(String returnStatus) {this.returnStatus = returnStatus;}public void unsetReturnStatus() {this.returnStatus = null;}/** Returns true if field returnStatus is set (has been assigned a value) and false otherwise */public boolean isSetReturnStatus() {return this.returnStatus != null;}public void setReturnStatusIsSet(boolean value) {if (!value) {this.returnStatus = null;}}public long getReshippedAt() {return this.reshippedAt;}public void setReshippedAt(long reshippedAt) {this.reshippedAt = reshippedAt;setReshippedAtIsSet(true);}public void unsetReshippedAt() {__isset_bit_vector.clear(__RESHIPPEDAT_ISSET_ID);}/** Returns true if field reshippedAt is set (has been assigned a value) and false otherwise */public boolean isSetReshippedAt() {return __isset_bit_vector.get(__RESHIPPEDAT_ISSET_ID);}public void setReshippedAtIsSet(boolean value) {__isset_bit_vector.set(__RESHIPPEDAT_ISSET_ID, value);}public long getReceivedAt() {return this.receivedAt;}public void setReceivedAt(long receivedAt) {this.receivedAt = receivedAt;setReceivedAtIsSet(true);}public void unsetReceivedAt() {__isset_bit_vector.clear(__RECEIVEDAT_ISSET_ID);}/** Returns true if field receivedAt is set (has been assigned a value) and false otherwise */public boolean isSetReceivedAt() {return __isset_bit_vector.get(__RECEIVEDAT_ISSET_ID);}public void setReceivedAtIsSet(boolean value) {__isset_bit_vector.set(__RECEIVEDAT_ISSET_ID, value);}public String getRefundReason() {return this.refundReason;}public void setRefundReason(String refundReason) {this.refundReason = refundReason;}public void unsetRefundReason() {this.refundReason = null;}/** Returns true if field refundReason is set (has been assigned a value) and false otherwise */public boolean isSetRefundReason() {return this.refundReason != null;}public void setRefundReasonIsSet(boolean value) {if (!value) {this.refundReason = null;}}public String getRefundedBy() {return this.refundedBy;}public void setRefundedBy(String refundedBy) {this.refundedBy = refundedBy;}public void unsetRefundedBy() {this.refundedBy = null;}/** Returns true if field refundedBy is set (has been assigned a value) and false otherwise */public boolean isSetRefundedBy() {return this.refundedBy != null;}public void setRefundedByIsSet(boolean value) {if (!value) {this.refundedBy = null;}}public long getRefundedAt() {return this.refundedAt;}public void setRefundedAt(long refundedAt) {this.refundedAt = refundedAt;setRefundedAtIsSet(true);}public void unsetRefundedAt() {__isset_bit_vector.clear(__REFUNDEDAT_ISSET_ID);}/** Returns true if field refundedAt is set (has been assigned a value) and false otherwise */public boolean isSetRefundedAt() {return __isset_bit_vector.get(__REFUNDEDAT_ISSET_ID);}public void setRefundedAtIsSet(boolean value) {__isset_bit_vector.set(__REFUNDEDAT_ISSET_ID, value);}public long getWarehouse_id() {return this.warehouse_id;}public void setWarehouse_id(long warehouse_id) {this.warehouse_id = warehouse_id;setWarehouse_idIsSet(true);}public void unsetWarehouse_id() {__isset_bit_vector.clear(__WAREHOUSE_ID_ISSET_ID);}/** Returns true if field warehouse_id is set (has been assigned a value) and false otherwise */public boolean isSetWarehouse_id() {return __isset_bit_vector.get(__WAREHOUSE_ID_ISSET_ID);}public void setWarehouse_idIsSet(boolean value) {__isset_bit_vector.set(__WAREHOUSE_ID_ISSET_ID, value);}public double getRefundAmount() {return this.refundAmount;}public void setRefundAmount(double refundAmount) {this.refundAmount = refundAmount;setRefundAmountIsSet(true);}public void unsetRefundAmount() {__isset_bit_vector.clear(__REFUNDAMOUNT_ISSET_ID);}/** Returns true if field refundAmount is set (has been assigned a value) and false otherwise */public boolean isSetRefundAmount() {return __isset_bit_vector.get(__REFUNDAMOUNT_ISSET_ID);}public void setRefundAmountIsSet(boolean value) {__isset_bit_vector.set(__REFUNDAMOUNT_ISSET_ID, value);}/**** @see RefundType*/public RefundType getRefundType() {return this.refundType;}/**** @see RefundType*/public void setRefundType(RefundType refundType) {this.refundType = refundType;}public void unsetRefundType() {this.refundType = null;}/** Returns true if field refundType is set (has been assigned a value) and false otherwise */public boolean isSetRefundType() {return this.refundType != null;}public void setRefundTypeIsSet(boolean value) {if (!value) {this.refundType = null;}}public String getRefundDescription() {return this.refundDescription;}public void setRefundDescription(String refundDescription) {this.refundDescription = refundDescription;}public void unsetRefundDescription() {this.refundDescription = null;}/** Returns true if field refundDescription is set (has been assigned a value) and false otherwise */public boolean isSetRefundDescription() {return this.refundDescription != null;}public void setRefundDescriptionIsSet(boolean value) {if (!value) {this.refundDescription = null;}}/**** @see ReturnPickupType*/public ReturnPickupType getReturnPickupType() {return this.returnPickupType;}/**** @see ReturnPickupType*/public void setReturnPickupType(ReturnPickupType returnPickupType) {this.returnPickupType = returnPickupType;}public void unsetReturnPickupType() {this.returnPickupType = null;}/** Returns true if field returnPickupType is set (has been assigned a value) and false otherwise */public boolean isSetReturnPickupType() {return this.returnPickupType != null;}public void setReturnPickupTypeIsSet(boolean value) {if (!value) {this.returnPickupType = null;}}/**** @see ReplacementShippingType*/public ReplacementShippingType getShippingType() {return this.shippingType;}/**** @see ReplacementShippingType*/public void setShippingType(ReplacementShippingType shippingType) {this.shippingType = shippingType;}public void unsetShippingType() {this.shippingType = null;}/** Returns true if field shippingType is set (has been assigned a value) and false otherwise */public boolean isSetShippingType() {return this.shippingType != null;}public void setShippingTypeIsSet(boolean value) {if (!value) {this.shippingType = null;}}public long getReplacementOrderId() {return this.replacementOrderId;}public void setReplacementOrderId(long replacementOrderId) {this.replacementOrderId = replacementOrderId;setReplacementOrderIdIsSet(true);}public void unsetReplacementOrderId() {__isset_bit_vector.clear(__REPLACEMENTORDERID_ISSET_ID);}/** Returns true if field replacementOrderId is set (has been assigned a value) and false otherwise */public boolean isSetReplacementOrderId() {return __isset_bit_vector.get(__REPLACEMENTORDERID_ISSET_ID);}public void setReplacementOrderIdIsSet(boolean value) {__isset_bit_vector.set(__REPLACEMENTORDERID_ISSET_ID, value);}/**** @see ReceivedReturnType*/public ReceivedReturnType getReceivedReturnType() {return this.receivedReturnType;}/**** @see ReceivedReturnType*/public void setReceivedReturnType(ReceivedReturnType receivedReturnType) {this.receivedReturnType = receivedReturnType;}public void unsetReceivedReturnType() {this.receivedReturnType = null;}/** Returns true if field receivedReturnType is set (has been assigned a value) and false otherwise */public boolean isSetReceivedReturnType() {return this.receivedReturnType != null;}public void setReceivedReturnTypeIsSet(boolean value) {if (!value) {this.receivedReturnType = null;}}public long getFreebieItemId() {return this.freebieItemId;}public void setFreebieItemId(long freebieItemId) {this.freebieItemId = freebieItemId;setFreebieItemIdIsSet(true);}public void unsetFreebieItemId() {__isset_bit_vector.clear(__FREEBIEITEMID_ISSET_ID);}/** Returns true if field freebieItemId is set (has been assigned a value) and false otherwise */public boolean isSetFreebieItemId() {return __isset_bit_vector.get(__FREEBIEITEMID_ISSET_ID);}public void setFreebieItemIdIsSet(boolean value) {__isset_bit_vector.set(__FREEBIEITEMID_ISSET_ID, value);}/**** @see ReturnAction*/public ReturnAction getReturnAction() {return this.returnAction;}/**** @see ReturnAction*/public void setReturnAction(ReturnAction returnAction) {this.returnAction = returnAction;}public void unsetReturnAction() {this.returnAction = null;}/** Returns true if field returnAction is set (has been assigned a value) and false otherwise */public boolean isSetReturnAction() {return this.returnAction != null;}public void setReturnActionIsSet(boolean value) {if (!value) {this.returnAction = null;}}/**** @see ReturnTxnResolutionStatus*/public ReturnTxnResolutionStatus getReturnTxnResolutionStatus() {return this.returnTxnResolutionStatus;}/**** @see ReturnTxnResolutionStatus*/public void setReturnTxnResolutionStatus(ReturnTxnResolutionStatus returnTxnResolutionStatus) {this.returnTxnResolutionStatus = returnTxnResolutionStatus;}public void unsetReturnTxnResolutionStatus() {this.returnTxnResolutionStatus = null;}/** Returns true if field returnTxnResolutionStatus is set (has been assigned a value) and false otherwise */public boolean isSetReturnTxnResolutionStatus() {return this.returnTxnResolutionStatus != null;}public void setReturnTxnResolutionStatusIsSet(boolean value) {if (!value) {this.returnTxnResolutionStatus = null;}}public LineItem getLineitem() {return this.lineitem;}public void setLineitem(LineItem lineitem) {this.lineitem = lineitem;}public void unsetLineitem() {this.lineitem = null;}/** Returns true if field lineitem is set (has been assigned a value) and false otherwise */public boolean isSetLineitem() {return this.lineitem != null;}public void setLineitemIsSet(boolean value) {if (!value) {this.lineitem = null;}}public ReturnPickupRequest getReturnPickUpRequest() {return this.returnPickUpRequest;}public void setReturnPickUpRequest(ReturnPickupRequest returnPickUpRequest) {this.returnPickUpRequest = returnPickUpRequest;}public void unsetReturnPickUpRequest() {this.returnPickUpRequest = null;}/** Returns true if field returnPickUpRequest is set (has been assigned a value) and false otherwise */public boolean isSetReturnPickUpRequest() {return this.returnPickUpRequest != null;}public void setReturnPickUpRequestIsSet(boolean value) {if (!value) {this.returnPickUpRequest = null;}}public void setFieldValue(_Fields field, Object value) {switch (field) {case ID:if (value == null) {unsetId();} else {setId((Long)value);}break;case RETURN_TRANSACTION_ID:if (value == null) {unsetReturnTransactionId();} else {setReturnTransactionId((Long)value);}break;case MASTER_ORDER_ID:if (value == null) {unsetMasterOrderId();} else {setMasterOrderId((String)value);}break;case ORDER_ID:if (value == null) {unsetOrderId();} else {setOrderId((Long)value);}break;case LINE_ITEM_ID:if (value == null) {unsetLineItemId();} else {setLineItemId((Long)value);}break;case LOGISTICS_REQUEST_ID:if (value == null) {unsetLogisticsRequestId();} else {setLogisticsRequestId((Long)value);}break;case RETURN_QUANTITY:if (value == null) {unsetReturnQuantity();} else {setReturnQuantity((Long)value);}break;case RECEIVED_QUANTITY:if (value == null) {unsetReceivedQuantity();} else {setReceivedQuantity((Long)value);}break;case CREATED_AT:if (value == null) {unsetCreatedAt();} else {setCreatedAt((Long)value);}break;case PROCESSED_AT:if (value == null) {unsetProcessedAt();} else {setProcessedAt((Long)value);}break;case RETURN_STATUS:if (value == null) {unsetReturnStatus();} else {setReturnStatus((String)value);}break;case RESHIPPED_AT:if (value == null) {unsetReshippedAt();} else {setReshippedAt((Long)value);}break;case RECEIVED_AT:if (value == null) {unsetReceivedAt();} else {setReceivedAt((Long)value);}break;case REFUND_REASON:if (value == null) {unsetRefundReason();} else {setRefundReason((String)value);}break;case REFUNDED_BY:if (value == null) {unsetRefundedBy();} else {setRefundedBy((String)value);}break;case REFUNDED_AT:if (value == null) {unsetRefundedAt();} else {setRefundedAt((Long)value);}break;case WAREHOUSE_ID:if (value == null) {unsetWarehouse_id();} else {setWarehouse_id((Long)value);}break;case REFUND_AMOUNT:if (value == null) {unsetRefundAmount();} else {setRefundAmount((Double)value);}break;case REFUND_TYPE:if (value == null) {unsetRefundType();} else {setRefundType((RefundType)value);}break;case REFUND_DESCRIPTION:if (value == null) {unsetRefundDescription();} else {setRefundDescription((String)value);}break;case RETURN_PICKUP_TYPE:if (value == null) {unsetReturnPickupType();} else {setReturnPickupType((ReturnPickupType)value);}break;case SHIPPING_TYPE:if (value == null) {unsetShippingType();} else {setShippingType((ReplacementShippingType)value);}break;case REPLACEMENT_ORDER_ID:if (value == null) {unsetReplacementOrderId();} else {setReplacementOrderId((Long)value);}break;case RECEIVED_RETURN_TYPE:if (value == null) {unsetReceivedReturnType();} else {setReceivedReturnType((ReceivedReturnType)value);}break;case FREEBIE_ITEM_ID:if (value == null) {unsetFreebieItemId();} else {setFreebieItemId((Long)value);}break;case RETURN_ACTION:if (value == null) {unsetReturnAction();} else {setReturnAction((ReturnAction)value);}break;case RETURN_TXN_RESOLUTION_STATUS:if (value == null) {unsetReturnTxnResolutionStatus();} else {setReturnTxnResolutionStatus((ReturnTxnResolutionStatus)value);}break;case LINEITEM:if (value == null) {unsetLineitem();} else {setLineitem((LineItem)value);}break;case RETURN_PICK_UP_REQUEST:if (value == null) {unsetReturnPickUpRequest();} else {setReturnPickUpRequest((ReturnPickupRequest)value);}break;}}public Object getFieldValue(_Fields field) {switch (field) {case ID:return Long.valueOf(getId());case RETURN_TRANSACTION_ID:return Long.valueOf(getReturnTransactionId());case MASTER_ORDER_ID:return getMasterOrderId();case ORDER_ID:return Long.valueOf(getOrderId());case LINE_ITEM_ID:return Long.valueOf(getLineItemId());case LOGISTICS_REQUEST_ID:return Long.valueOf(getLogisticsRequestId());case RETURN_QUANTITY:return Long.valueOf(getReturnQuantity());case RECEIVED_QUANTITY:return Long.valueOf(getReceivedQuantity());case CREATED_AT:return Long.valueOf(getCreatedAt());case PROCESSED_AT:return Long.valueOf(getProcessedAt());case RETURN_STATUS:return getReturnStatus();case RESHIPPED_AT:return Long.valueOf(getReshippedAt());case RECEIVED_AT:return Long.valueOf(getReceivedAt());case REFUND_REASON:return getRefundReason();case REFUNDED_BY:return getRefundedBy();case REFUNDED_AT:return Long.valueOf(getRefundedAt());case WAREHOUSE_ID:return Long.valueOf(getWarehouse_id());case REFUND_AMOUNT:return Double.valueOf(getRefundAmount());case REFUND_TYPE:return getRefundType();case REFUND_DESCRIPTION:return getRefundDescription();case RETURN_PICKUP_TYPE:return getReturnPickupType();case SHIPPING_TYPE:return getShippingType();case REPLACEMENT_ORDER_ID:return Long.valueOf(getReplacementOrderId());case RECEIVED_RETURN_TYPE:return getReceivedReturnType();case FREEBIE_ITEM_ID:return Long.valueOf(getFreebieItemId());case RETURN_ACTION:return getReturnAction();case RETURN_TXN_RESOLUTION_STATUS:return getReturnTxnResolutionStatus();case LINEITEM:return getLineitem();case RETURN_PICK_UP_REQUEST:return getReturnPickUpRequest();}throw new IllegalStateException();}/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */public boolean isSet(_Fields field) {if (field == null) {throw new IllegalArgumentException();}switch (field) {case ID:return isSetId();case RETURN_TRANSACTION_ID:return isSetReturnTransactionId();case MASTER_ORDER_ID:return isSetMasterOrderId();case ORDER_ID:return isSetOrderId();case LINE_ITEM_ID:return isSetLineItemId();case LOGISTICS_REQUEST_ID:return isSetLogisticsRequestId();case RETURN_QUANTITY:return isSetReturnQuantity();case RECEIVED_QUANTITY:return isSetReceivedQuantity();case CREATED_AT:return isSetCreatedAt();case PROCESSED_AT:return isSetProcessedAt();case RETURN_STATUS:return isSetReturnStatus();case RESHIPPED_AT:return isSetReshippedAt();case RECEIVED_AT:return isSetReceivedAt();case REFUND_REASON:return isSetRefundReason();case REFUNDED_BY:return isSetRefundedBy();case REFUNDED_AT:return isSetRefundedAt();case WAREHOUSE_ID:return isSetWarehouse_id();case REFUND_AMOUNT:return isSetRefundAmount();case REFUND_TYPE:return isSetRefundType();case REFUND_DESCRIPTION:return isSetRefundDescription();case RETURN_PICKUP_TYPE:return isSetReturnPickupType();case SHIPPING_TYPE:return isSetShippingType();case REPLACEMENT_ORDER_ID:return isSetReplacementOrderId();case RECEIVED_RETURN_TYPE:return isSetReceivedReturnType();case FREEBIE_ITEM_ID:return isSetFreebieItemId();case RETURN_ACTION:return isSetReturnAction();case RETURN_TXN_RESOLUTION_STATUS:return isSetReturnTxnResolutionStatus();case LINEITEM:return isSetLineitem();case RETURN_PICK_UP_REQUEST:return isSetReturnPickUpRequest();}throw new IllegalStateException();}@Overridepublic boolean equals(Object that) {if (that == null)return false;if (that instanceof ReturnOrderInfo)return this.equals((ReturnOrderInfo)that);return false;}public boolean equals(ReturnOrderInfo that) {if (that == null)return false;boolean this_present_id = true;boolean that_present_id = true;if (this_present_id || that_present_id) {if (!(this_present_id && that_present_id))return false;if (this.id != that.id)return false;}boolean this_present_returnTransactionId = true;boolean that_present_returnTransactionId = true;if (this_present_returnTransactionId || that_present_returnTransactionId) {if (!(this_present_returnTransactionId && that_present_returnTransactionId))return false;if (this.returnTransactionId != that.returnTransactionId)return false;}boolean this_present_masterOrderId = true && this.isSetMasterOrderId();boolean that_present_masterOrderId = true && that.isSetMasterOrderId();if (this_present_masterOrderId || that_present_masterOrderId) {if (!(this_present_masterOrderId && that_present_masterOrderId))return false;if (!this.masterOrderId.equals(that.masterOrderId))return false;}boolean this_present_orderId = true;boolean that_present_orderId = true;if (this_present_orderId || that_present_orderId) {if (!(this_present_orderId && that_present_orderId))return false;if (this.orderId != that.orderId)return false;}boolean this_present_lineItemId = true;boolean that_present_lineItemId = true;if (this_present_lineItemId || that_present_lineItemId) {if (!(this_present_lineItemId && that_present_lineItemId))return false;if (this.lineItemId != that.lineItemId)return false;}boolean this_present_logisticsRequestId = true;boolean that_present_logisticsRequestId = true;if (this_present_logisticsRequestId || that_present_logisticsRequestId) {if (!(this_present_logisticsRequestId && that_present_logisticsRequestId))return false;if (this.logisticsRequestId != that.logisticsRequestId)return false;}boolean this_present_returnQuantity = true;boolean that_present_returnQuantity = true;if (this_present_returnQuantity || that_present_returnQuantity) {if (!(this_present_returnQuantity && that_present_returnQuantity))return false;if (this.returnQuantity != that.returnQuantity)return false;}boolean this_present_receivedQuantity = true;boolean that_present_receivedQuantity = true;if (this_present_receivedQuantity || that_present_receivedQuantity) {if (!(this_present_receivedQuantity && that_present_receivedQuantity))return false;if (this.receivedQuantity != that.receivedQuantity)return false;}boolean this_present_createdAt = true;boolean that_present_createdAt = true;if (this_present_createdAt || that_present_createdAt) {if (!(this_present_createdAt && that_present_createdAt))return false;if (this.createdAt != that.createdAt)return false;}boolean this_present_processedAt = true;boolean that_present_processedAt = true;if (this_present_processedAt || that_present_processedAt) {if (!(this_present_processedAt && that_present_processedAt))return false;if (this.processedAt != that.processedAt)return false;}boolean this_present_returnStatus = true && this.isSetReturnStatus();boolean that_present_returnStatus = true && that.isSetReturnStatus();if (this_present_returnStatus || that_present_returnStatus) {if (!(this_present_returnStatus && that_present_returnStatus))return false;if (!this.returnStatus.equals(that.returnStatus))return false;}boolean this_present_reshippedAt = true;boolean that_present_reshippedAt = true;if (this_present_reshippedAt || that_present_reshippedAt) {if (!(this_present_reshippedAt && that_present_reshippedAt))return false;if (this.reshippedAt != that.reshippedAt)return false;}boolean this_present_receivedAt = true;boolean that_present_receivedAt = true;if (this_present_receivedAt || that_present_receivedAt) {if (!(this_present_receivedAt && that_present_receivedAt))return false;if (this.receivedAt != that.receivedAt)return false;}boolean this_present_refundReason = true && this.isSetRefundReason();boolean that_present_refundReason = true && that.isSetRefundReason();if (this_present_refundReason || that_present_refundReason) {if (!(this_present_refundReason && that_present_refundReason))return false;if (!this.refundReason.equals(that.refundReason))return false;}boolean this_present_refundedBy = true && this.isSetRefundedBy();boolean that_present_refundedBy = true && that.isSetRefundedBy();if (this_present_refundedBy || that_present_refundedBy) {if (!(this_present_refundedBy && that_present_refundedBy))return false;if (!this.refundedBy.equals(that.refundedBy))return false;}boolean this_present_refundedAt = true;boolean that_present_refundedAt = true;if (this_present_refundedAt || that_present_refundedAt) {if (!(this_present_refundedAt && that_present_refundedAt))return false;if (this.refundedAt != that.refundedAt)return false;}boolean this_present_warehouse_id = true;boolean that_present_warehouse_id = true;if (this_present_warehouse_id || that_present_warehouse_id) {if (!(this_present_warehouse_id && that_present_warehouse_id))return false;if (this.warehouse_id != that.warehouse_id)return false;}boolean this_present_refundAmount = true;boolean that_present_refundAmount = true;if (this_present_refundAmount || that_present_refundAmount) {if (!(this_present_refundAmount && that_present_refundAmount))return false;if (this.refundAmount != that.refundAmount)return false;}boolean this_present_refundType = true && this.isSetRefundType();boolean that_present_refundType = true && that.isSetRefundType();if (this_present_refundType || that_present_refundType) {if (!(this_present_refundType && that_present_refundType))return false;if (!this.refundType.equals(that.refundType))return false;}boolean this_present_refundDescription = true && this.isSetRefundDescription();boolean that_present_refundDescription = true && that.isSetRefundDescription();if (this_present_refundDescription || that_present_refundDescription) {if (!(this_present_refundDescription && that_present_refundDescription))return false;if (!this.refundDescription.equals(that.refundDescription))return false;}boolean this_present_returnPickupType = true && this.isSetReturnPickupType();boolean that_present_returnPickupType = true && that.isSetReturnPickupType();if (this_present_returnPickupType || that_present_returnPickupType) {if (!(this_present_returnPickupType && that_present_returnPickupType))return false;if (!this.returnPickupType.equals(that.returnPickupType))return false;}boolean this_present_shippingType = true && this.isSetShippingType();boolean that_present_shippingType = true && that.isSetShippingType();if (this_present_shippingType || that_present_shippingType) {if (!(this_present_shippingType && that_present_shippingType))return false;if (!this.shippingType.equals(that.shippingType))return false;}boolean this_present_replacementOrderId = true;boolean that_present_replacementOrderId = true;if (this_present_replacementOrderId || that_present_replacementOrderId) {if (!(this_present_replacementOrderId && that_present_replacementOrderId))return false;if (this.replacementOrderId != that.replacementOrderId)return false;}boolean this_present_receivedReturnType = true && this.isSetReceivedReturnType();boolean that_present_receivedReturnType = true && that.isSetReceivedReturnType();if (this_present_receivedReturnType || that_present_receivedReturnType) {if (!(this_present_receivedReturnType && that_present_receivedReturnType))return false;if (!this.receivedReturnType.equals(that.receivedReturnType))return false;}boolean this_present_freebieItemId = true;boolean that_present_freebieItemId = true;if (this_present_freebieItemId || that_present_freebieItemId) {if (!(this_present_freebieItemId && that_present_freebieItemId))return false;if (this.freebieItemId != that.freebieItemId)return false;}boolean this_present_returnAction = true && this.isSetReturnAction();boolean that_present_returnAction = true && that.isSetReturnAction();if (this_present_returnAction || that_present_returnAction) {if (!(this_present_returnAction && that_present_returnAction))return false;if (!this.returnAction.equals(that.returnAction))return false;}boolean this_present_returnTxnResolutionStatus = true && this.isSetReturnTxnResolutionStatus();boolean that_present_returnTxnResolutionStatus = true && that.isSetReturnTxnResolutionStatus();if (this_present_returnTxnResolutionStatus || that_present_returnTxnResolutionStatus) {if (!(this_present_returnTxnResolutionStatus && that_present_returnTxnResolutionStatus))return false;if (!this.returnTxnResolutionStatus.equals(that.returnTxnResolutionStatus))return false;}boolean this_present_lineitem = true && this.isSetLineitem();boolean that_present_lineitem = true && that.isSetLineitem();if (this_present_lineitem || that_present_lineitem) {if (!(this_present_lineitem && that_present_lineitem))return false;if (!this.lineitem.equals(that.lineitem))return false;}boolean this_present_returnPickUpRequest = true && this.isSetReturnPickUpRequest();boolean that_present_returnPickUpRequest = true && that.isSetReturnPickUpRequest();if (this_present_returnPickUpRequest || that_present_returnPickUpRequest) {if (!(this_present_returnPickUpRequest && that_present_returnPickUpRequest))return false;if (!this.returnPickUpRequest.equals(that.returnPickUpRequest))return false;}return true;}@Overridepublic int hashCode() {return 0;}public int compareTo(ReturnOrderInfo other) {if (!getClass().equals(other.getClass())) {return getClass().getName().compareTo(other.getClass().getName());}int lastComparison = 0;ReturnOrderInfo typedOther = (ReturnOrderInfo)other;lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());if (lastComparison != 0) {return lastComparison;}if (isSetId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnTransactionId()).compareTo(typedOther.isSetReturnTransactionId());if (lastComparison != 0) {return lastComparison;}if (isSetReturnTransactionId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTransactionId, typedOther.returnTransactionId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetMasterOrderId()).compareTo(typedOther.isSetMasterOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetMasterOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.masterOrderId, typedOther.masterOrderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLineItemId()).compareTo(typedOther.isSetLineItemId());if (lastComparison != 0) {return lastComparison;}if (isSetLineItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineItemId, typedOther.lineItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLogisticsRequestId()).compareTo(typedOther.isSetLogisticsRequestId());if (lastComparison != 0) {return lastComparison;}if (isSetLogisticsRequestId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsRequestId, typedOther.logisticsRequestId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnQuantity()).compareTo(typedOther.isSetReturnQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetReturnQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnQuantity, typedOther.returnQuantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReceivedQuantity()).compareTo(typedOther.isSetReceivedQuantity());if (lastComparison != 0) {return lastComparison;}if (isSetReceivedQuantity()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedQuantity, typedOther.receivedQuantity);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetCreatedAt()).compareTo(typedOther.isSetCreatedAt());if (lastComparison != 0) {return lastComparison;}if (isSetCreatedAt()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.createdAt, typedOther.createdAt);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetProcessedAt()).compareTo(typedOther.isSetProcessedAt());if (lastComparison != 0) {return lastComparison;}if (isSetProcessedAt()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.processedAt, typedOther.processedAt);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnStatus()).compareTo(typedOther.isSetReturnStatus());if (lastComparison != 0) {return lastComparison;}if (isSetReturnStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnStatus, typedOther.returnStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReshippedAt()).compareTo(typedOther.isSetReshippedAt());if (lastComparison != 0) {return lastComparison;}if (isSetReshippedAt()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reshippedAt, typedOther.reshippedAt);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReceivedAt()).compareTo(typedOther.isSetReceivedAt());if (lastComparison != 0) {return lastComparison;}if (isSetReceivedAt()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedAt, typedOther.receivedAt);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundReason()).compareTo(typedOther.isSetRefundReason());if (lastComparison != 0) {return lastComparison;}if (isSetRefundReason()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundReason, typedOther.refundReason);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundedBy()).compareTo(typedOther.isSetRefundedBy());if (lastComparison != 0) {return lastComparison;}if (isSetRefundedBy()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedBy, typedOther.refundedBy);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundedAt()).compareTo(typedOther.isSetRefundedAt());if (lastComparison != 0) {return lastComparison;}if (isSetRefundedAt()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundedAt, typedOther.refundedAt);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetWarehouse_id()).compareTo(typedOther.isSetWarehouse_id());if (lastComparison != 0) {return lastComparison;}if (isSetWarehouse_id()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouse_id, typedOther.warehouse_id);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundAmount()).compareTo(typedOther.isSetRefundAmount());if (lastComparison != 0) {return lastComparison;}if (isSetRefundAmount()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundAmount, typedOther.refundAmount);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundType()).compareTo(typedOther.isSetRefundType());if (lastComparison != 0) {return lastComparison;}if (isSetRefundType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundType, typedOther.refundType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetRefundDescription()).compareTo(typedOther.isSetRefundDescription());if (lastComparison != 0) {return lastComparison;}if (isSetRefundDescription()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refundDescription, typedOther.refundDescription);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnPickupType()).compareTo(typedOther.isSetReturnPickupType());if (lastComparison != 0) {return lastComparison;}if (isSetReturnPickupType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnPickupType, typedOther.returnPickupType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetShippingType()).compareTo(typedOther.isSetShippingType());if (lastComparison != 0) {return lastComparison;}if (isSetShippingType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingType, typedOther.shippingType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReplacementOrderId()).compareTo(typedOther.isSetReplacementOrderId());if (lastComparison != 0) {return lastComparison;}if (isSetReplacementOrderId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.replacementOrderId, typedOther.replacementOrderId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReceivedReturnType()).compareTo(typedOther.isSetReceivedReturnType());if (lastComparison != 0) {return lastComparison;}if (isSetReceivedReturnType()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receivedReturnType, typedOther.receivedReturnType);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetFreebieItemId()).compareTo(typedOther.isSetFreebieItemId());if (lastComparison != 0) {return lastComparison;}if (isSetFreebieItemId()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.freebieItemId, typedOther.freebieItemId);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnAction()).compareTo(typedOther.isSetReturnAction());if (lastComparison != 0) {return lastComparison;}if (isSetReturnAction()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnAction, typedOther.returnAction);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnTxnResolutionStatus()).compareTo(typedOther.isSetReturnTxnResolutionStatus());if (lastComparison != 0) {return lastComparison;}if (isSetReturnTxnResolutionStatus()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnTxnResolutionStatus, typedOther.returnTxnResolutionStatus);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetLineitem()).compareTo(typedOther.isSetLineitem());if (lastComparison != 0) {return lastComparison;}if (isSetLineitem()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineitem, typedOther.lineitem);if (lastComparison != 0) {return lastComparison;}}lastComparison = Boolean.valueOf(isSetReturnPickUpRequest()).compareTo(typedOther.isSetReturnPickUpRequest());if (lastComparison != 0) {return lastComparison;}if (isSetReturnPickUpRequest()) {lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.returnPickUpRequest, typedOther.returnPickUpRequest);if (lastComparison != 0) {return lastComparison;}}return 0;}public _Fields fieldForId(int fieldId) {return _Fields.findByThriftId(fieldId);}public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {org.apache.thrift.protocol.TField field;iprot.readStructBegin();while (true){field = iprot.readFieldBegin();if (field.type == org.apache.thrift.protocol.TType.STOP) {break;}switch (field.id) {case 1: // IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.id = iprot.readI64();setIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 2: // RETURN_TRANSACTION_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.returnTransactionId = iprot.readI64();setReturnTransactionIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 3: // MASTER_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.STRING) {this.masterOrderId = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 4: // ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.orderId = iprot.readI64();setOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 5: // LINE_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.lineItemId = iprot.readI64();setLineItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 6: // LOGISTICS_REQUEST_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.logisticsRequestId = iprot.readI64();setLogisticsRequestIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 7: // RETURN_QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.returnQuantity = iprot.readI64();setReturnQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 8: // RECEIVED_QUANTITYif (field.type == org.apache.thrift.protocol.TType.I64) {this.receivedQuantity = iprot.readI64();setReceivedQuantityIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 9: // CREATED_ATif (field.type == org.apache.thrift.protocol.TType.I64) {this.createdAt = iprot.readI64();setCreatedAtIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 10: // PROCESSED_ATif (field.type == org.apache.thrift.protocol.TType.I64) {this.processedAt = iprot.readI64();setProcessedAtIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 11: // RETURN_STATUSif (field.type == org.apache.thrift.protocol.TType.STRING) {this.returnStatus = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 12: // RESHIPPED_ATif (field.type == org.apache.thrift.protocol.TType.I64) {this.reshippedAt = iprot.readI64();setReshippedAtIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 13: // RECEIVED_ATif (field.type == org.apache.thrift.protocol.TType.I64) {this.receivedAt = iprot.readI64();setReceivedAtIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 14: // REFUND_REASONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.refundReason = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 15: // REFUNDED_BYif (field.type == org.apache.thrift.protocol.TType.STRING) {this.refundedBy = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 16: // REFUNDED_ATif (field.type == org.apache.thrift.protocol.TType.I64) {this.refundedAt = iprot.readI64();setRefundedAtIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 17: // WAREHOUSE_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.warehouse_id = iprot.readI64();setWarehouse_idIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 18: // REFUND_AMOUNTif (field.type == org.apache.thrift.protocol.TType.DOUBLE) {this.refundAmount = iprot.readDouble();setRefundAmountIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 19: // REFUND_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.refundType = RefundType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 20: // REFUND_DESCRIPTIONif (field.type == org.apache.thrift.protocol.TType.STRING) {this.refundDescription = iprot.readString();} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 21: // RETURN_PICKUP_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.returnPickupType = ReturnPickupType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 22: // SHIPPING_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.shippingType = ReplacementShippingType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 23: // REPLACEMENT_ORDER_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.replacementOrderId = iprot.readI64();setReplacementOrderIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 24: // RECEIVED_RETURN_TYPEif (field.type == org.apache.thrift.protocol.TType.I32) {this.receivedReturnType = ReceivedReturnType.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 25: // FREEBIE_ITEM_IDif (field.type == org.apache.thrift.protocol.TType.I64) {this.freebieItemId = iprot.readI64();setFreebieItemIdIsSet(true);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 26: // RETURN_ACTIONif (field.type == org.apache.thrift.protocol.TType.I32) {this.returnAction = ReturnAction.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 27: // RETURN_TXN_RESOLUTION_STATUSif (field.type == org.apache.thrift.protocol.TType.I32) {this.returnTxnResolutionStatus = ReturnTxnResolutionStatus.findByValue(iprot.readI32());} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 28: // LINEITEMif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.lineitem = new LineItem();this.lineitem.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;case 29: // RETURN_PICK_UP_REQUESTif (field.type == org.apache.thrift.protocol.TType.STRUCT) {this.returnPickUpRequest = new ReturnPickupRequest();this.returnPickUpRequest.read(iprot);} else {org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}break;default:org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);}iprot.readFieldEnd();}iprot.readStructEnd();validate();}public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {validate();oprot.writeStructBegin(STRUCT_DESC);oprot.writeFieldBegin(ID_FIELD_DESC);oprot.writeI64(this.id);oprot.writeFieldEnd();oprot.writeFieldBegin(RETURN_TRANSACTION_ID_FIELD_DESC);oprot.writeI64(this.returnTransactionId);oprot.writeFieldEnd();if (this.masterOrderId != null) {oprot.writeFieldBegin(MASTER_ORDER_ID_FIELD_DESC);oprot.writeString(this.masterOrderId);oprot.writeFieldEnd();}oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);oprot.writeI64(this.orderId);oprot.writeFieldEnd();oprot.writeFieldBegin(LINE_ITEM_ID_FIELD_DESC);oprot.writeI64(this.lineItemId);oprot.writeFieldEnd();oprot.writeFieldBegin(LOGISTICS_REQUEST_ID_FIELD_DESC);oprot.writeI64(this.logisticsRequestId);oprot.writeFieldEnd();oprot.writeFieldBegin(RETURN_QUANTITY_FIELD_DESC);oprot.writeI64(this.returnQuantity);oprot.writeFieldEnd();oprot.writeFieldBegin(RECEIVED_QUANTITY_FIELD_DESC);oprot.writeI64(this.receivedQuantity);oprot.writeFieldEnd();oprot.writeFieldBegin(CREATED_AT_FIELD_DESC);oprot.writeI64(this.createdAt);oprot.writeFieldEnd();oprot.writeFieldBegin(PROCESSED_AT_FIELD_DESC);oprot.writeI64(this.processedAt);oprot.writeFieldEnd();if (this.returnStatus != null) {oprot.writeFieldBegin(RETURN_STATUS_FIELD_DESC);oprot.writeString(this.returnStatus);oprot.writeFieldEnd();}oprot.writeFieldBegin(RESHIPPED_AT_FIELD_DESC);oprot.writeI64(this.reshippedAt);oprot.writeFieldEnd();oprot.writeFieldBegin(RECEIVED_AT_FIELD_DESC);oprot.writeI64(this.receivedAt);oprot.writeFieldEnd();if (this.refundReason != null) {oprot.writeFieldBegin(REFUND_REASON_FIELD_DESC);oprot.writeString(this.refundReason);oprot.writeFieldEnd();}if (this.refundedBy != null) {oprot.writeFieldBegin(REFUNDED_BY_FIELD_DESC);oprot.writeString(this.refundedBy);oprot.writeFieldEnd();}oprot.writeFieldBegin(REFUNDED_AT_FIELD_DESC);oprot.writeI64(this.refundedAt);oprot.writeFieldEnd();oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);oprot.writeI64(this.warehouse_id);oprot.writeFieldEnd();oprot.writeFieldBegin(REFUND_AMOUNT_FIELD_DESC);oprot.writeDouble(this.refundAmount);oprot.writeFieldEnd();if (this.refundType != null) {oprot.writeFieldBegin(REFUND_TYPE_FIELD_DESC);oprot.writeI32(this.refundType.getValue());oprot.writeFieldEnd();}if (this.refundDescription != null) {oprot.writeFieldBegin(REFUND_DESCRIPTION_FIELD_DESC);oprot.writeString(this.refundDescription);oprot.writeFieldEnd();}if (this.returnPickupType != null) {oprot.writeFieldBegin(RETURN_PICKUP_TYPE_FIELD_DESC);oprot.writeI32(this.returnPickupType.getValue());oprot.writeFieldEnd();}if (this.shippingType != null) {oprot.writeFieldBegin(SHIPPING_TYPE_FIELD_DESC);oprot.writeI32(this.shippingType.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(REPLACEMENT_ORDER_ID_FIELD_DESC);oprot.writeI64(this.replacementOrderId);oprot.writeFieldEnd();if (this.receivedReturnType != null) {oprot.writeFieldBegin(RECEIVED_RETURN_TYPE_FIELD_DESC);oprot.writeI32(this.receivedReturnType.getValue());oprot.writeFieldEnd();}oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);oprot.writeI64(this.freebieItemId);oprot.writeFieldEnd();if (this.returnAction != null) {oprot.writeFieldBegin(RETURN_ACTION_FIELD_DESC);oprot.writeI32(this.returnAction.getValue());oprot.writeFieldEnd();}if (this.returnTxnResolutionStatus != null) {oprot.writeFieldBegin(RETURN_TXN_RESOLUTION_STATUS_FIELD_DESC);oprot.writeI32(this.returnTxnResolutionStatus.getValue());oprot.writeFieldEnd();}if (this.lineitem != null) {oprot.writeFieldBegin(LINEITEM_FIELD_DESC);this.lineitem.write(oprot);oprot.writeFieldEnd();}if (this.returnPickUpRequest != null) {oprot.writeFieldBegin(RETURN_PICK_UP_REQUEST_FIELD_DESC);this.returnPickUpRequest.write(oprot);oprot.writeFieldEnd();}oprot.writeFieldStop();oprot.writeStructEnd();}@Overridepublic String toString() {StringBuilder sb = new StringBuilder("ReturnOrderInfo(");boolean first = true;sb.append("id:");sb.append(this.id);first = false;if (!first) sb.append(", ");sb.append("returnTransactionId:");sb.append(this.returnTransactionId);first = false;if (!first) sb.append(", ");sb.append("masterOrderId:");if (this.masterOrderId == null) {sb.append("null");} else {sb.append(this.masterOrderId);}first = false;if (!first) sb.append(", ");sb.append("orderId:");sb.append(this.orderId);first = false;if (!first) sb.append(", ");sb.append("lineItemId:");sb.append(this.lineItemId);first = false;if (!first) sb.append(", ");sb.append("logisticsRequestId:");sb.append(this.logisticsRequestId);first = false;if (!first) sb.append(", ");sb.append("returnQuantity:");sb.append(this.returnQuantity);first = false;if (!first) sb.append(", ");sb.append("receivedQuantity:");sb.append(this.receivedQuantity);first = false;if (!first) sb.append(", ");sb.append("createdAt:");sb.append(this.createdAt);first = false;if (!first) sb.append(", ");sb.append("processedAt:");sb.append(this.processedAt);first = false;if (!first) sb.append(", ");sb.append("returnStatus:");if (this.returnStatus == null) {sb.append("null");} else {sb.append(this.returnStatus);}first = false;if (!first) sb.append(", ");sb.append("reshippedAt:");sb.append(this.reshippedAt);first = false;if (!first) sb.append(", ");sb.append("receivedAt:");sb.append(this.receivedAt);first = false;if (!first) sb.append(", ");sb.append("refundReason:");if (this.refundReason == null) {sb.append("null");} else {sb.append(this.refundReason);}first = false;if (!first) sb.append(", ");sb.append("refundedBy:");if (this.refundedBy == null) {sb.append("null");} else {sb.append(this.refundedBy);}first = false;if (!first) sb.append(", ");sb.append("refundedAt:");sb.append(this.refundedAt);first = false;if (!first) sb.append(", ");sb.append("warehouse_id:");sb.append(this.warehouse_id);first = false;if (!first) sb.append(", ");sb.append("refundAmount:");sb.append(this.refundAmount);first = false;if (!first) sb.append(", ");sb.append("refundType:");if (this.refundType == null) {sb.append("null");} else {sb.append(this.refundType);}first = false;if (!first) sb.append(", ");sb.append("refundDescription:");if (this.refundDescription == null) {sb.append("null");} else {sb.append(this.refundDescription);}first = false;if (!first) sb.append(", ");sb.append("returnPickupType:");if (this.returnPickupType == null) {sb.append("null");} else {sb.append(this.returnPickupType);}first = false;if (!first) sb.append(", ");sb.append("shippingType:");if (this.shippingType == null) {sb.append("null");} else {sb.append(this.shippingType);}first = false;if (!first) sb.append(", ");sb.append("replacementOrderId:");sb.append(this.replacementOrderId);first = false;if (!first) sb.append(", ");sb.append("receivedReturnType:");if (this.receivedReturnType == null) {sb.append("null");} else {sb.append(this.receivedReturnType);}first = false;if (!first) sb.append(", ");sb.append("freebieItemId:");sb.append(this.freebieItemId);first = false;if (!first) sb.append(", ");sb.append("returnAction:");if (this.returnAction == null) {sb.append("null");} else {sb.append(this.returnAction);}first = false;if (!first) sb.append(", ");sb.append("returnTxnResolutionStatus:");if (this.returnTxnResolutionStatus == null) {sb.append("null");} else {sb.append(this.returnTxnResolutionStatus);}first = false;if (!first) sb.append(", ");sb.append("lineitem:");if (this.lineitem == null) {sb.append("null");} else {sb.append(this.lineitem);}first = false;if (!first) sb.append(", ");sb.append("returnPickUpRequest:");if (this.returnPickUpRequest == null) {sb.append("null");} else {sb.append(this.returnPickUpRequest);}first = false;sb.append(")");return sb.toString();}public void validate() throws org.apache.thrift.TException {// check for required fields}private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {try {write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {try {// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.__isset_bit_vector = new BitSet(1);read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));} catch (org.apache.thrift.TException te) {throw new java.io.IOException(te);}}}