Subversion Repositories SmartDukaan

Rev

Rev 13146 | Rev 19973 | Go to most recent revision | Blame | Compare with Previous | 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 Order implements org.apache.thrift.TBase<Order, Order._Fields>, java.io.Serializable, Cloneable {
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Order");

  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 WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouse_id", org.apache.thrift.protocol.TType.I64, (short)2);
  private static final org.apache.thrift.protocol.TField LINEITEMS_FIELD_DESC = new org.apache.thrift.protocol.TField("lineitems", org.apache.thrift.protocol.TType.LIST, (short)3);
  private static final org.apache.thrift.protocol.TField LOGISTICS_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logistics_provider_id", org.apache.thrift.protocol.TType.I64, (short)4);
  private static final org.apache.thrift.protocol.TField AIRWAYBILL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("airwaybill_no", org.apache.thrift.protocol.TType.STRING, (short)5);
  private static final org.apache.thrift.protocol.TField TRACKING_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("tracking_id", org.apache.thrift.protocol.TType.STRING, (short)6);
  private static final org.apache.thrift.protocol.TField EXPECTED_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expected_delivery_time", org.apache.thrift.protocol.TType.I64, (short)7);
  private static final org.apache.thrift.protocol.TField CUSTOMER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_id", org.apache.thrift.protocol.TType.I64, (short)8);
  private static final org.apache.thrift.protocol.TField CUSTOMER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_name", org.apache.thrift.protocol.TType.STRING, (short)9);
  private static final org.apache.thrift.protocol.TField CUSTOMER_MOBILENUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_mobilenumber", org.apache.thrift.protocol.TType.STRING, (short)10);
  private static final org.apache.thrift.protocol.TField CUSTOMER_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_pincode", org.apache.thrift.protocol.TType.STRING, (short)11);
  private static final org.apache.thrift.protocol.TField CUSTOMER_ADDRESS1_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_address1", org.apache.thrift.protocol.TType.STRING, (short)12);
  private static final org.apache.thrift.protocol.TField CUSTOMER_ADDRESS2_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_address2", org.apache.thrift.protocol.TType.STRING, (short)13);
  private static final org.apache.thrift.protocol.TField CUSTOMER_EMAIL_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_email", org.apache.thrift.protocol.TType.STRING, (short)14);
  private static final org.apache.thrift.protocol.TField CUSTOMER_CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_city", org.apache.thrift.protocol.TType.STRING, (short)15);
  private static final org.apache.thrift.protocol.TField CUSTOMER_STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("customer_state", org.apache.thrift.protocol.TType.STRING, (short)16);
  private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.I32, (short)17);
  private static final org.apache.thrift.protocol.TField STATUS_DESCRIPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("statusDescription", org.apache.thrift.protocol.TType.STRING, (short)18);
  private static final org.apache.thrift.protocol.TField TOTAL_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_amount", org.apache.thrift.protocol.TType.DOUBLE, (short)19);
  private static final org.apache.thrift.protocol.TField TOTAL_WEIGHT_FIELD_DESC = new org.apache.thrift.protocol.TField("total_weight", org.apache.thrift.protocol.TType.DOUBLE, (short)20);
  private static final org.apache.thrift.protocol.TField INVOICE_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("invoice_number", org.apache.thrift.protocol.TType.STRING, (short)21);
  private static final org.apache.thrift.protocol.TField BILLED_BY_FIELD_DESC = new org.apache.thrift.protocol.TField("billed_by", org.apache.thrift.protocol.TType.STRING, (short)22);
  private static final org.apache.thrift.protocol.TField CREATED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("created_timestamp", org.apache.thrift.protocol.TType.I64, (short)23);
  private static final org.apache.thrift.protocol.TField ACCEPTED_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("accepted_timestamp", org.apache.thrift.protocol.TType.I64, (short)24);
  private static final org.apache.thrift.protocol.TField BILLING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("billing_timestamp", org.apache.thrift.protocol.TType.I64, (short)25);
  private static final org.apache.thrift.protocol.TField SHIPPING_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("shipping_timestamp", org.apache.thrift.protocol.TType.I64, (short)26);
  private static final org.apache.thrift.protocol.TField PICKUP_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickup_timestamp", org.apache.thrift.protocol.TType.I64, (short)27);
  private static final org.apache.thrift.protocol.TField DELIVERY_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("delivery_timestamp", org.apache.thrift.protocol.TType.I64, (short)28);
  private static final org.apache.thrift.protocol.TField OUTOFSTOCK_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("outofstock_timestamp", org.apache.thrift.protocol.TType.I64, (short)29);
  private static final org.apache.thrift.protocol.TField JACKET_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("jacket_number", org.apache.thrift.protocol.TType.I64, (short)30);
  private static final org.apache.thrift.protocol.TField RECEIVER_FIELD_DESC = new org.apache.thrift.protocol.TField("receiver", org.apache.thrift.protocol.TType.STRING, (short)31);
  private static final org.apache.thrift.protocol.TField BATCH_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("batchNo", org.apache.thrift.protocol.TType.I64, (short)32);
  private static final org.apache.thrift.protocol.TField SERIAL_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("serialNo", org.apache.thrift.protocol.TType.I64, (short)33);
  private static final org.apache.thrift.protocol.TField DOA_FLAG_FIELD_DESC = new org.apache.thrift.protocol.TField("doaFlag", org.apache.thrift.protocol.TType.BOOL, (short)34);
  private static final org.apache.thrift.protocol.TField PICKUP_REQUEST_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupRequestNo", org.apache.thrift.protocol.TType.STRING, (short)35);
  private static final org.apache.thrift.protocol.TField TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("transactionId", org.apache.thrift.protocol.TType.I64, (short)36);
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderNo", org.apache.thrift.protocol.TType.STRING, (short)37);
  private static final org.apache.thrift.protocol.TField COD_FIELD_DESC = new org.apache.thrift.protocol.TField("cod", org.apache.thrift.protocol.TType.BOOL, (short)38);
  private static final org.apache.thrift.protocol.TField DELAY_REASON_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReason", org.apache.thrift.protocol.TType.I32, (short)39);
  private static final org.apache.thrift.protocol.TField PROMISED_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("promised_delivery_time", org.apache.thrift.protocol.TType.I64, (short)40);
  private static final org.apache.thrift.protocol.TField EXPECTED_SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("expected_shipping_time", org.apache.thrift.protocol.TType.I64, (short)41);
  private static final org.apache.thrift.protocol.TField VERIFICATION_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("verification_timestamp", org.apache.thrift.protocol.TType.I64, (short)42);
  private static final org.apache.thrift.protocol.TField PROMISED_SHIPPING_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("promised_shipping_time", org.apache.thrift.protocol.TType.I64, (short)43);
  private static final org.apache.thrift.protocol.TField RESHIP_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("reship_timestamp", org.apache.thrift.protocol.TType.I64, (short)44);
  private static final org.apache.thrift.protocol.TField REFUND_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("refund_timestamp", org.apache.thrift.protocol.TType.I64, (short)45);
  private static final org.apache.thrift.protocol.TField NEW_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("new_order_id", org.apache.thrift.protocol.TType.I64, (short)46);
  private static final org.apache.thrift.protocol.TField PREVIOUS_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("previousStatus", org.apache.thrift.protocol.TType.I32, (short)47);
  private static final org.apache.thrift.protocol.TField VENDOR_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorId", org.apache.thrift.protocol.TType.I64, (short)48);
  private static final org.apache.thrift.protocol.TField DOA_AUTH_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("doa_auth_timestamp", org.apache.thrift.protocol.TType.I64, (short)49);
  private static final org.apache.thrift.protocol.TField DELAY_REASON_TEXT_FIELD_DESC = new org.apache.thrift.protocol.TField("delayReasonText", org.apache.thrift.protocol.TType.STRING, (short)50);
  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)51);
  private static final org.apache.thrift.protocol.TField PURCHASE_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("purchaseOrderId", org.apache.thrift.protocol.TType.I64, (short)52);
  private static final org.apache.thrift.protocol.TField DOA_LOGISTICS_PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("doa_logistics_provider_id", org.apache.thrift.protocol.TType.I64, (short)53);
  private static final org.apache.thrift.protocol.TField ORIGINAL_ORDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("originalOrderId", org.apache.thrift.protocol.TType.I64, (short)54);
  private static final org.apache.thrift.protocol.TField FULFILMENT_WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("fulfilmentWarehouseId", org.apache.thrift.protocol.TType.I64, (short)55);
  private static final org.apache.thrift.protocol.TField VENDOR_PAID_FIELD_DESC = new org.apache.thrift.protocol.TField("vendorPaid", org.apache.thrift.protocol.TType.BOOL, (short)56);
  private static final org.apache.thrift.protocol.TField RECEIVED_RETURN_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("received_return_timestamp", org.apache.thrift.protocol.TType.I64, (short)57);
  private static final org.apache.thrift.protocol.TField FIRST_ATTEMPT_TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("first_attempt_timestamp", org.apache.thrift.protocol.TType.I64, (short)58);
  private static final org.apache.thrift.protocol.TField ORDER_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("orderType", org.apache.thrift.protocol.TType.I32, (short)59);
  private static final org.apache.thrift.protocol.TField PICKUP_STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("pickupStoreId", org.apache.thrift.protocol.TType.I64, (short)60);
  private static final org.apache.thrift.protocol.TField LOGISTICS_COD_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsCod", org.apache.thrift.protocol.TType.BOOL, (short)61);
  private static final org.apache.thrift.protocol.TField GV_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("gvAmount", org.apache.thrift.protocol.TType.I64, (short)62);
  private static final org.apache.thrift.protocol.TField OTG_FIELD_DESC = new org.apache.thrift.protocol.TField("otg", org.apache.thrift.protocol.TType.BOOL, (short)63);
  private static final org.apache.thrift.protocol.TField COURIER_DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("courier_delivery_time", org.apache.thrift.protocol.TType.I64, (short)64);
  private static final org.apache.thrift.protocol.TField INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("insurer", org.apache.thrift.protocol.TType.I64, (short)65);
  private static final org.apache.thrift.protocol.TField INSURANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("insuranceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)66);
  private static final org.apache.thrift.protocol.TField DOB_FIELD_DESC = new org.apache.thrift.protocol.TField("dob", org.apache.thrift.protocol.TType.STRING, (short)67);
  private static final org.apache.thrift.protocol.TField GUARDIAN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("guardianName", org.apache.thrift.protocol.TType.STRING, (short)68);
  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)69);
  private static final org.apache.thrift.protocol.TField SOURCE_FIELD_DESC = new org.apache.thrift.protocol.TField("source", org.apache.thrift.protocol.TType.I64, (short)70);
  private static final org.apache.thrift.protocol.TField ADVANCE_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("advanceAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)71);
  private static final org.apache.thrift.protocol.TField STORE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("storeId", org.apache.thrift.protocol.TType.I64, (short)72);
  private static final org.apache.thrift.protocol.TField PRODUCT_CONDITION_FIELD_DESC = new org.apache.thrift.protocol.TField("productCondition", org.apache.thrift.protocol.TType.I32, (short)73);
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_INSURER_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionInsurer", org.apache.thrift.protocol.TType.I64, (short)74);
  private static final org.apache.thrift.protocol.TField DATA_PROTECTION_AMOUNT_FIELD_DESC = new org.apache.thrift.protocol.TField("dataProtectionAmount", org.apache.thrift.protocol.TType.DOUBLE, (short)75);
  private static final org.apache.thrift.protocol.TField TAX_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxType", org.apache.thrift.protocol.TType.I32, (short)76);
  private static final org.apache.thrift.protocol.TField LOGISTICS_TRANSACTION_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTransactionId", org.apache.thrift.protocol.TType.STRING, (short)77);
  private static final org.apache.thrift.protocol.TField SHIPPING_COST_FIELD_DESC = new org.apache.thrift.protocol.TField("shippingCost", org.apache.thrift.protocol.TType.DOUBLE, (short)78);
  private static final org.apache.thrift.protocol.TField COD_CHARGES_FIELD_DESC = new org.apache.thrift.protocol.TField("codCharges", org.apache.thrift.protocol.TType.DOUBLE, (short)79);

  private long id; // required
  private long warehouse_id; // required
  private List<LineItem> lineitems; // required
  private long logistics_provider_id; // required
  private String airwaybill_no; // required
  private String tracking_id; // required
  private long expected_delivery_time; // required
  private long customer_id; // required
  private String customer_name; // required
  private String customer_mobilenumber; // required
  private String customer_pincode; // required
  private String customer_address1; // required
  private String customer_address2; // required
  private String customer_email; // required
  private String customer_city; // required
  private String customer_state; // required
  private OrderStatus status; // required
  private String statusDescription; // required
  private double total_amount; // required
  private double total_weight; // required
  private String invoice_number; // required
  private String billed_by; // required
  private long created_timestamp; // required
  private long accepted_timestamp; // required
  private long billing_timestamp; // required
  private long shipping_timestamp; // required
  private long pickup_timestamp; // required
  private long delivery_timestamp; // required
  private long outofstock_timestamp; // required
  private long jacket_number; // required
  private String receiver; // required
  private long batchNo; // required
  private long serialNo; // required
  private boolean doaFlag; // required
  private String pickupRequestNo; // required
  private long transactionId; // required
  private String purchaseOrderNo; // required
  private boolean cod; // required
  private DelayReason delayReason; // required
  private long promised_delivery_time; // required
  private long expected_shipping_time; // required
  private long verification_timestamp; // required
  private long promised_shipping_time; // required
  private long reship_timestamp; // required
  private long refund_timestamp; // required
  private long new_order_id; // required
  private OrderStatus previousStatus; // required
  private long vendorId; // required
  private long doa_auth_timestamp; // required
  private String delayReasonText; // required
  private String refundReason; // required
  private long purchaseOrderId; // required
  private long doa_logistics_provider_id; // required
  private long originalOrderId; // required
  private long fulfilmentWarehouseId; // required
  private boolean vendorPaid; // required
  private long received_return_timestamp; // required
  private long first_attempt_timestamp; // required
  private OrderType orderType; // required
  private long pickupStoreId; // required
  private boolean logisticsCod; // required
  private long gvAmount; // required
  private boolean otg; // required
  private long courier_delivery_time; // required
  private long insurer; // required
  private double insuranceAmount; // required
  private String dob; // required
  private String guardianName; // required
  private long freebieItemId; // required
  private long source; // required
  private double advanceAmount; // required
  private long storeId; // required
  private ProductCondition productCondition; // required
  private long dataProtectionInsurer; // required
  private double dataProtectionAmount; // required
  private TaxType taxType; // required
  private String logisticsTransactionId; // required
  private double shippingCost; // required
  private double codCharges; // 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"),
    WAREHOUSE_ID((short)2, "warehouse_id"),
    /**
     *  item info
     * *
     */
    LINEITEMS((short)3, "lineitems"),
    /**
     *   logistics info
     * *
     */
    LOGISTICS_PROVIDER_ID((short)4, "logistics_provider_id"),
    AIRWAYBILL_NO((short)5, "airwaybill_no"),
    TRACKING_ID((short)6, "tracking_id"),
    EXPECTED_DELIVERY_TIME((short)7, "expected_delivery_time"),
    /**
     *   customer info
     * *
     */
    CUSTOMER_ID((short)8, "customer_id"),
    CUSTOMER_NAME((short)9, "customer_name"),
    CUSTOMER_MOBILENUMBER((short)10, "customer_mobilenumber"),
    CUSTOMER_PINCODE((short)11, "customer_pincode"),
    CUSTOMER_ADDRESS1((short)12, "customer_address1"),
    CUSTOMER_ADDRESS2((short)13, "customer_address2"),
    CUSTOMER_EMAIL((short)14, "customer_email"),
    CUSTOMER_CITY((short)15, "customer_city"),
    CUSTOMER_STATE((short)16, "customer_state"),
    /**
     *  status and misc info
     * *
     * 
     * @see OrderStatus
     */
    STATUS((short)17, "status"),
    STATUS_DESCRIPTION((short)18, "statusDescription"),
    TOTAL_AMOUNT((short)19, "total_amount"),
    TOTAL_WEIGHT((short)20, "total_weight"),
    /**
     *  billing info
     * *
     */
    INVOICE_NUMBER((short)21, "invoice_number"),
    BILLED_BY((short)22, "billed_by"),
    /**
     *  timestamps
     * *
     */
    CREATED_TIMESTAMP((short)23, "created_timestamp"),
    ACCEPTED_TIMESTAMP((short)24, "accepted_timestamp"),
    BILLING_TIMESTAMP((short)25, "billing_timestamp"),
    SHIPPING_TIMESTAMP((short)26, "shipping_timestamp"),
    PICKUP_TIMESTAMP((short)27, "pickup_timestamp"),
    DELIVERY_TIMESTAMP((short)28, "delivery_timestamp"),
    OUTOFSTOCK_TIMESTAMP((short)29, "outofstock_timestamp"),
    JACKET_NUMBER((short)30, "jacket_number"),
    RECEIVER((short)31, "receiver"),
    BATCH_NO((short)32, "batchNo"),
    SERIAL_NO((short)33, "serialNo"),
    DOA_FLAG((short)34, "doaFlag"),
    PICKUP_REQUEST_NO((short)35, "pickupRequestNo"),
    TRANSACTION_ID((short)36, "transactionId"),
    PURCHASE_ORDER_NO((short)37, "purchaseOrderNo"),
    COD((short)38, "cod"),
    /**
     * 
     * @see DelayReason
     */
    DELAY_REASON((short)39, "delayReason"),
    PROMISED_DELIVERY_TIME((short)40, "promised_delivery_time"),
    EXPECTED_SHIPPING_TIME((short)41, "expected_shipping_time"),
    VERIFICATION_TIMESTAMP((short)42, "verification_timestamp"),
    PROMISED_SHIPPING_TIME((short)43, "promised_shipping_time"),
    RESHIP_TIMESTAMP((short)44, "reship_timestamp"),
    REFUND_TIMESTAMP((short)45, "refund_timestamp"),
    NEW_ORDER_ID((short)46, "new_order_id"),
    /**
     * 
     * @see OrderStatus
     */
    PREVIOUS_STATUS((short)47, "previousStatus"),
    VENDOR_ID((short)48, "vendorId"),
    DOA_AUTH_TIMESTAMP((short)49, "doa_auth_timestamp"),
    DELAY_REASON_TEXT((short)50, "delayReasonText"),
    REFUND_REASON((short)51, "refundReason"),
    PURCHASE_ORDER_ID((short)52, "purchaseOrderId"),
    DOA_LOGISTICS_PROVIDER_ID((short)53, "doa_logistics_provider_id"),
    ORIGINAL_ORDER_ID((short)54, "originalOrderId"),
    FULFILMENT_WAREHOUSE_ID((short)55, "fulfilmentWarehouseId"),
    VENDOR_PAID((short)56, "vendorPaid"),
    RECEIVED_RETURN_TIMESTAMP((short)57, "received_return_timestamp"),
    FIRST_ATTEMPT_TIMESTAMP((short)58, "first_attempt_timestamp"),
    /**
     * 
     * @see OrderType
     */
    ORDER_TYPE((short)59, "orderType"),
    PICKUP_STORE_ID((short)60, "pickupStoreId"),
    LOGISTICS_COD((short)61, "logisticsCod"),
    GV_AMOUNT((short)62, "gvAmount"),
    OTG((short)63, "otg"),
    COURIER_DELIVERY_TIME((short)64, "courier_delivery_time"),
    INSURER((short)65, "insurer"),
    INSURANCE_AMOUNT((short)66, "insuranceAmount"),
    DOB((short)67, "dob"),
    GUARDIAN_NAME((short)68, "guardianName"),
    FREEBIE_ITEM_ID((short)69, "freebieItemId"),
    SOURCE((short)70, "source"),
    ADVANCE_AMOUNT((short)71, "advanceAmount"),
    STORE_ID((short)72, "storeId"),
    /**
     * 
     * @see ProductCondition
     */
    PRODUCT_CONDITION((short)73, "productCondition"),
    DATA_PROTECTION_INSURER((short)74, "dataProtectionInsurer"),
    DATA_PROTECTION_AMOUNT((short)75, "dataProtectionAmount"),
    /**
     * 
     * @see TaxType
     */
    TAX_TYPE((short)76, "taxType"),
    LOGISTICS_TRANSACTION_ID((short)77, "logisticsTransactionId"),
    SHIPPING_COST((short)78, "shippingCost"),
    COD_CHARGES((short)79, "codCharges");

    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: // ID
          return ID;
        case 2: // WAREHOUSE_ID
          return WAREHOUSE_ID;
        case 3: // LINEITEMS
          return LINEITEMS;
        case 4: // LOGISTICS_PROVIDER_ID
          return LOGISTICS_PROVIDER_ID;
        case 5: // AIRWAYBILL_NO
          return AIRWAYBILL_NO;
        case 6: // TRACKING_ID
          return TRACKING_ID;
        case 7: // EXPECTED_DELIVERY_TIME
          return EXPECTED_DELIVERY_TIME;
        case 8: // CUSTOMER_ID
          return CUSTOMER_ID;
        case 9: // CUSTOMER_NAME
          return CUSTOMER_NAME;
        case 10: // CUSTOMER_MOBILENUMBER
          return CUSTOMER_MOBILENUMBER;
        case 11: // CUSTOMER_PINCODE
          return CUSTOMER_PINCODE;
        case 12: // CUSTOMER_ADDRESS1
          return CUSTOMER_ADDRESS1;
        case 13: // CUSTOMER_ADDRESS2
          return CUSTOMER_ADDRESS2;
        case 14: // CUSTOMER_EMAIL
          return CUSTOMER_EMAIL;
        case 15: // CUSTOMER_CITY
          return CUSTOMER_CITY;
        case 16: // CUSTOMER_STATE
          return CUSTOMER_STATE;
        case 17: // STATUS
          return STATUS;
        case 18: // STATUS_DESCRIPTION
          return STATUS_DESCRIPTION;
        case 19: // TOTAL_AMOUNT
          return TOTAL_AMOUNT;
        case 20: // TOTAL_WEIGHT
          return TOTAL_WEIGHT;
        case 21: // INVOICE_NUMBER
          return INVOICE_NUMBER;
        case 22: // BILLED_BY
          return BILLED_BY;
        case 23: // CREATED_TIMESTAMP
          return CREATED_TIMESTAMP;
        case 24: // ACCEPTED_TIMESTAMP
          return ACCEPTED_TIMESTAMP;
        case 25: // BILLING_TIMESTAMP
          return BILLING_TIMESTAMP;
        case 26: // SHIPPING_TIMESTAMP
          return SHIPPING_TIMESTAMP;
        case 27: // PICKUP_TIMESTAMP
          return PICKUP_TIMESTAMP;
        case 28: // DELIVERY_TIMESTAMP
          return DELIVERY_TIMESTAMP;
        case 29: // OUTOFSTOCK_TIMESTAMP
          return OUTOFSTOCK_TIMESTAMP;
        case 30: // JACKET_NUMBER
          return JACKET_NUMBER;
        case 31: // RECEIVER
          return RECEIVER;
        case 32: // BATCH_NO
          return BATCH_NO;
        case 33: // SERIAL_NO
          return SERIAL_NO;
        case 34: // DOA_FLAG
          return DOA_FLAG;
        case 35: // PICKUP_REQUEST_NO
          return PICKUP_REQUEST_NO;
        case 36: // TRANSACTION_ID
          return TRANSACTION_ID;
        case 37: // PURCHASE_ORDER_NO
          return PURCHASE_ORDER_NO;
        case 38: // COD
          return COD;
        case 39: // DELAY_REASON
          return DELAY_REASON;
        case 40: // PROMISED_DELIVERY_TIME
          return PROMISED_DELIVERY_TIME;
        case 41: // EXPECTED_SHIPPING_TIME
          return EXPECTED_SHIPPING_TIME;
        case 42: // VERIFICATION_TIMESTAMP
          return VERIFICATION_TIMESTAMP;
        case 43: // PROMISED_SHIPPING_TIME
          return PROMISED_SHIPPING_TIME;
        case 44: // RESHIP_TIMESTAMP
          return RESHIP_TIMESTAMP;
        case 45: // REFUND_TIMESTAMP
          return REFUND_TIMESTAMP;
        case 46: // NEW_ORDER_ID
          return NEW_ORDER_ID;
        case 47: // PREVIOUS_STATUS
          return PREVIOUS_STATUS;
        case 48: // VENDOR_ID
          return VENDOR_ID;
        case 49: // DOA_AUTH_TIMESTAMP
          return DOA_AUTH_TIMESTAMP;
        case 50: // DELAY_REASON_TEXT
          return DELAY_REASON_TEXT;
        case 51: // REFUND_REASON
          return REFUND_REASON;
        case 52: // PURCHASE_ORDER_ID
          return PURCHASE_ORDER_ID;
        case 53: // DOA_LOGISTICS_PROVIDER_ID
          return DOA_LOGISTICS_PROVIDER_ID;
        case 54: // ORIGINAL_ORDER_ID
          return ORIGINAL_ORDER_ID;
        case 55: // FULFILMENT_WAREHOUSE_ID
          return FULFILMENT_WAREHOUSE_ID;
        case 56: // VENDOR_PAID
          return VENDOR_PAID;
        case 57: // RECEIVED_RETURN_TIMESTAMP
          return RECEIVED_RETURN_TIMESTAMP;
        case 58: // FIRST_ATTEMPT_TIMESTAMP
          return FIRST_ATTEMPT_TIMESTAMP;
        case 59: // ORDER_TYPE
          return ORDER_TYPE;
        case 60: // PICKUP_STORE_ID
          return PICKUP_STORE_ID;
        case 61: // LOGISTICS_COD
          return LOGISTICS_COD;
        case 62: // GV_AMOUNT
          return GV_AMOUNT;
        case 63: // OTG
          return OTG;
        case 64: // COURIER_DELIVERY_TIME
          return COURIER_DELIVERY_TIME;
        case 65: // INSURER
          return INSURER;
        case 66: // INSURANCE_AMOUNT
          return INSURANCE_AMOUNT;
        case 67: // DOB
          return DOB;
        case 68: // GUARDIAN_NAME
          return GUARDIAN_NAME;
        case 69: // FREEBIE_ITEM_ID
          return FREEBIE_ITEM_ID;
        case 70: // SOURCE
          return SOURCE;
        case 71: // ADVANCE_AMOUNT
          return ADVANCE_AMOUNT;
        case 72: // STORE_ID
          return STORE_ID;
        case 73: // PRODUCT_CONDITION
          return PRODUCT_CONDITION;
        case 74: // DATA_PROTECTION_INSURER
          return DATA_PROTECTION_INSURER;
        case 75: // DATA_PROTECTION_AMOUNT
          return DATA_PROTECTION_AMOUNT;
        case 76: // TAX_TYPE
          return TAX_TYPE;
        case 77: // LOGISTICS_TRANSACTION_ID
          return LOGISTICS_TRANSACTION_ID;
        case 78: // SHIPPING_COST
          return SHIPPING_COST;
        case 79: // COD_CHARGES
          return COD_CHARGES;
        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 assignments
  private static final int __ID_ISSET_ID = 0;
  private static final int __WAREHOUSE_ID_ISSET_ID = 1;
  private static final int __LOGISTICS_PROVIDER_ID_ISSET_ID = 2;
  private static final int __EXPECTED_DELIVERY_TIME_ISSET_ID = 3;
  private static final int __CUSTOMER_ID_ISSET_ID = 4;
  private static final int __TOTAL_AMOUNT_ISSET_ID = 5;
  private static final int __TOTAL_WEIGHT_ISSET_ID = 6;
  private static final int __CREATED_TIMESTAMP_ISSET_ID = 7;
  private static final int __ACCEPTED_TIMESTAMP_ISSET_ID = 8;
  private static final int __BILLING_TIMESTAMP_ISSET_ID = 9;
  private static final int __SHIPPING_TIMESTAMP_ISSET_ID = 10;
  private static final int __PICKUP_TIMESTAMP_ISSET_ID = 11;
  private static final int __DELIVERY_TIMESTAMP_ISSET_ID = 12;
  private static final int __OUTOFSTOCK_TIMESTAMP_ISSET_ID = 13;
  private static final int __JACKET_NUMBER_ISSET_ID = 14;
  private static final int __BATCHNO_ISSET_ID = 15;
  private static final int __SERIALNO_ISSET_ID = 16;
  private static final int __DOAFLAG_ISSET_ID = 17;
  private static final int __TRANSACTIONID_ISSET_ID = 18;
  private static final int __COD_ISSET_ID = 19;
  private static final int __PROMISED_DELIVERY_TIME_ISSET_ID = 20;
  private static final int __EXPECTED_SHIPPING_TIME_ISSET_ID = 21;
  private static final int __VERIFICATION_TIMESTAMP_ISSET_ID = 22;
  private static final int __PROMISED_SHIPPING_TIME_ISSET_ID = 23;
  private static final int __RESHIP_TIMESTAMP_ISSET_ID = 24;
  private static final int __REFUND_TIMESTAMP_ISSET_ID = 25;
  private static final int __NEW_ORDER_ID_ISSET_ID = 26;
  private static final int __VENDORID_ISSET_ID = 27;
  private static final int __DOA_AUTH_TIMESTAMP_ISSET_ID = 28;
  private static final int __PURCHASEORDERID_ISSET_ID = 29;
  private static final int __DOA_LOGISTICS_PROVIDER_ID_ISSET_ID = 30;
  private static final int __ORIGINALORDERID_ISSET_ID = 31;
  private static final int __FULFILMENTWAREHOUSEID_ISSET_ID = 32;
  private static final int __VENDORPAID_ISSET_ID = 33;
  private static final int __RECEIVED_RETURN_TIMESTAMP_ISSET_ID = 34;
  private static final int __FIRST_ATTEMPT_TIMESTAMP_ISSET_ID = 35;
  private static final int __PICKUPSTOREID_ISSET_ID = 36;
  private static final int __LOGISTICSCOD_ISSET_ID = 37;
  private static final int __GVAMOUNT_ISSET_ID = 38;
  private static final int __OTG_ISSET_ID = 39;
  private static final int __COURIER_DELIVERY_TIME_ISSET_ID = 40;
  private static final int __INSURER_ISSET_ID = 41;
  private static final int __INSURANCEAMOUNT_ISSET_ID = 42;
  private static final int __FREEBIEITEMID_ISSET_ID = 43;
  private static final int __SOURCE_ISSET_ID = 44;
  private static final int __ADVANCEAMOUNT_ISSET_ID = 45;
  private static final int __STOREID_ISSET_ID = 46;
  private static final int __DATAPROTECTIONINSURER_ISSET_ID = 47;
  private static final int __DATAPROTECTIONAMOUNT_ISSET_ID = 48;
  private static final int __SHIPPINGCOST_ISSET_ID = 49;
  private static final int __CODCHARGES_ISSET_ID = 50;
  private BitSet __isset_bit_vector = new BitSet(51);

  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.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.LINEITEMS, new org.apache.thrift.meta_data.FieldMetaData("lineitems", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
            new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LineItem.class))));
    tmpMap.put(_Fields.LOGISTICS_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("logistics_provider_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.AIRWAYBILL_NO, new org.apache.thrift.meta_data.FieldMetaData("airwaybill_no", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.TRACKING_ID, new org.apache.thrift.meta_data.FieldMetaData("tracking_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.EXPECTED_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("expected_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.CUSTOMER_ID, new org.apache.thrift.meta_data.FieldMetaData("customer_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.CUSTOMER_NAME, new org.apache.thrift.meta_data.FieldMetaData("customer_name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_MOBILENUMBER, new org.apache.thrift.meta_data.FieldMetaData("customer_mobilenumber", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("customer_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_ADDRESS1, new org.apache.thrift.meta_data.FieldMetaData("customer_address1", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_ADDRESS2, new org.apache.thrift.meta_data.FieldMetaData("customer_address2", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_EMAIL, new org.apache.thrift.meta_data.FieldMetaData("customer_email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_CITY, new org.apache.thrift.meta_data.FieldMetaData("customer_city", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CUSTOMER_STATE, new org.apache.thrift.meta_data.FieldMetaData("customer_state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
    tmpMap.put(_Fields.STATUS_DESCRIPTION, new org.apache.thrift.meta_data.FieldMetaData("statusDescription", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.TOTAL_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("total_amount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.TOTAL_WEIGHT, new org.apache.thrift.meta_data.FieldMetaData("total_weight", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.INVOICE_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("invoice_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.BILLED_BY, new org.apache.thrift.meta_data.FieldMetaData("billed_by", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.CREATED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("created_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.ACCEPTED_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("accepted_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.BILLING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("billing_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.SHIPPING_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("shipping_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PICKUP_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("pickup_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DELIVERY_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("delivery_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.OUTOFSTOCK_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("outofstock_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.JACKET_NUMBER, new org.apache.thrift.meta_data.FieldMetaData("jacket_number", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.RECEIVER, new org.apache.thrift.meta_data.FieldMetaData("receiver", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.BATCH_NO, new org.apache.thrift.meta_data.FieldMetaData("batchNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.SERIAL_NO, new org.apache.thrift.meta_data.FieldMetaData("serialNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DOA_FLAG, new org.apache.thrift.meta_data.FieldMetaData("doaFlag", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.PICKUP_REQUEST_NO, new org.apache.thrift.meta_data.FieldMetaData("pickupRequestNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("transactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PURCHASE_ORDER_NO, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.COD, new org.apache.thrift.meta_data.FieldMetaData("cod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.DELAY_REASON, new org.apache.thrift.meta_data.FieldMetaData("delayReason", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DelayReason.class)));
    tmpMap.put(_Fields.PROMISED_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("promised_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.EXPECTED_SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("expected_shipping_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.VERIFICATION_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("verification_timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PROMISED_SHIPPING_TIME, new org.apache.thrift.meta_data.FieldMetaData("promised_shipping_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.RESHIP_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("reship_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.REFUND_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("refund_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.NEW_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("new_order_id", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PREVIOUS_STATUS, new org.apache.thrift.meta_data.FieldMetaData("previousStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderStatus.class)));
    tmpMap.put(_Fields.VENDOR_ID, new org.apache.thrift.meta_data.FieldMetaData("vendorId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DOA_AUTH_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("doa_auth_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DELAY_REASON_TEXT, new org.apache.thrift.meta_data.FieldMetaData("delayReasonText", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    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.PURCHASE_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("purchaseOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DOA_LOGISTICS_PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("doa_logistics_provider_id", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.ORIGINAL_ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("originalOrderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.FULFILMENT_WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("fulfilmentWarehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.VENDOR_PAID, new org.apache.thrift.meta_data.FieldMetaData("vendorPaid", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.RECEIVED_RETURN_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("received_return_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.FIRST_ATTEMPT_TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("first_attempt_timestamp", org.apache.thrift.TFieldRequirementType.OPTIONAL, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.ORDER_TYPE, new org.apache.thrift.meta_data.FieldMetaData("orderType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, OrderType.class)));
    tmpMap.put(_Fields.PICKUP_STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("pickupStoreId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.LOGISTICS_COD, new org.apache.thrift.meta_data.FieldMetaData("logisticsCod", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.GV_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("gvAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.OTG, new org.apache.thrift.meta_data.FieldMetaData("otg", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
    tmpMap.put(_Fields.COURIER_DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("courier_delivery_time", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.INSURER, new org.apache.thrift.meta_data.FieldMetaData("insurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.INSURANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("insuranceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.DOB, new org.apache.thrift.meta_data.FieldMetaData("dob", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.GUARDIAN_NAME, new org.apache.thrift.meta_data.FieldMetaData("guardianName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    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.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.ADVANCE_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("advanceAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.STORE_ID, new org.apache.thrift.meta_data.FieldMetaData("storeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.PRODUCT_CONDITION, new org.apache.thrift.meta_data.FieldMetaData("productCondition", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, ProductCondition.class)));
    tmpMap.put(_Fields.DATA_PROTECTION_INSURER, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionInsurer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
    tmpMap.put(_Fields.DATA_PROTECTION_AMOUNT, new org.apache.thrift.meta_data.FieldMetaData("dataProtectionAmount", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.TAX_TYPE, new org.apache.thrift.meta_data.FieldMetaData("taxType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, TaxType.class)));
    tmpMap.put(_Fields.LOGISTICS_TRANSACTION_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTransactionId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
    tmpMap.put(_Fields.SHIPPING_COST, new org.apache.thrift.meta_data.FieldMetaData("shippingCost", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    tmpMap.put(_Fields.COD_CHARGES, new org.apache.thrift.meta_data.FieldMetaData("codCharges", org.apache.thrift.TFieldRequirementType.DEFAULT, 
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.DOUBLE)));
    metaDataMap = Collections.unmodifiableMap(tmpMap);
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Order.class, metaDataMap);
  }

  public Order() {
  }

  public Order(
    long id,
    long warehouse_id,
    List<LineItem> lineitems,
    long logistics_provider_id,
    String airwaybill_no,
    String tracking_id,
    long expected_delivery_time,
    long customer_id,
    String customer_name,
    String customer_mobilenumber,
    String customer_pincode,
    String customer_address1,
    String customer_address2,
    String customer_email,
    String customer_city,
    String customer_state,
    OrderStatus status,
    String statusDescription,
    double total_amount,
    double total_weight,
    String invoice_number,
    String billed_by,
    long created_timestamp,
    long accepted_timestamp,
    long billing_timestamp,
    long shipping_timestamp,
    long pickup_timestamp,
    long delivery_timestamp,
    long outofstock_timestamp,
    long jacket_number,
    String receiver,
    long batchNo,
    long serialNo,
    boolean doaFlag,
    String pickupRequestNo,
    long transactionId,
    String purchaseOrderNo,
    boolean cod,
    DelayReason delayReason,
    long promised_delivery_time,
    long expected_shipping_time,
    long verification_timestamp,
    long promised_shipping_time,
    OrderStatus previousStatus,
    long vendorId,
    String delayReasonText,
    String refundReason,
    long purchaseOrderId,
    long originalOrderId,
    long fulfilmentWarehouseId,
    boolean vendorPaid,
    OrderType orderType,
    long pickupStoreId,
    boolean logisticsCod,
    long gvAmount,
    boolean otg,
    long courier_delivery_time,
    long insurer,
    double insuranceAmount,
    String dob,
    String guardianName,
    long freebieItemId,
    long source,
    double advanceAmount,
    long storeId,
    ProductCondition productCondition,
    long dataProtectionInsurer,
    double dataProtectionAmount,
    TaxType taxType,
    String logisticsTransactionId,
    double shippingCost,
    double codCharges)
  {
    this();
    this.id = id;
    setIdIsSet(true);
    this.warehouse_id = warehouse_id;
    setWarehouse_idIsSet(true);
    this.lineitems = lineitems;
    this.logistics_provider_id = logistics_provider_id;
    setLogistics_provider_idIsSet(true);
    this.airwaybill_no = airwaybill_no;
    this.tracking_id = tracking_id;
    this.expected_delivery_time = expected_delivery_time;
    setExpected_delivery_timeIsSet(true);
    this.customer_id = customer_id;
    setCustomer_idIsSet(true);
    this.customer_name = customer_name;
    this.customer_mobilenumber = customer_mobilenumber;
    this.customer_pincode = customer_pincode;
    this.customer_address1 = customer_address1;
    this.customer_address2 = customer_address2;
    this.customer_email = customer_email;
    this.customer_city = customer_city;
    this.customer_state = customer_state;
    this.status = status;
    this.statusDescription = statusDescription;
    this.total_amount = total_amount;
    setTotal_amountIsSet(true);
    this.total_weight = total_weight;
    setTotal_weightIsSet(true);
    this.invoice_number = invoice_number;
    this.billed_by = billed_by;
    this.created_timestamp = created_timestamp;
    setCreated_timestampIsSet(true);
    this.accepted_timestamp = accepted_timestamp;
    setAccepted_timestampIsSet(true);
    this.billing_timestamp = billing_timestamp;
    setBilling_timestampIsSet(true);
    this.shipping_timestamp = shipping_timestamp;
    setShipping_timestampIsSet(true);
    this.pickup_timestamp = pickup_timestamp;
    setPickup_timestampIsSet(true);
    this.delivery_timestamp = delivery_timestamp;
    setDelivery_timestampIsSet(true);
    this.outofstock_timestamp = outofstock_timestamp;
    setOutofstock_timestampIsSet(true);
    this.jacket_number = jacket_number;
    setJacket_numberIsSet(true);
    this.receiver = receiver;
    this.batchNo = batchNo;
    setBatchNoIsSet(true);
    this.serialNo = serialNo;
    setSerialNoIsSet(true);
    this.doaFlag = doaFlag;
    setDoaFlagIsSet(true);
    this.pickupRequestNo = pickupRequestNo;
    this.transactionId = transactionId;
    setTransactionIdIsSet(true);
    this.purchaseOrderNo = purchaseOrderNo;
    this.cod = cod;
    setCodIsSet(true);
    this.delayReason = delayReason;
    this.promised_delivery_time = promised_delivery_time;
    setPromised_delivery_timeIsSet(true);
    this.expected_shipping_time = expected_shipping_time;
    setExpected_shipping_timeIsSet(true);
    this.verification_timestamp = verification_timestamp;
    setVerification_timestampIsSet(true);
    this.promised_shipping_time = promised_shipping_time;
    setPromised_shipping_timeIsSet(true);
    this.previousStatus = previousStatus;
    this.vendorId = vendorId;
    setVendorIdIsSet(true);
    this.delayReasonText = delayReasonText;
    this.refundReason = refundReason;
    this.purchaseOrderId = purchaseOrderId;
    setPurchaseOrderIdIsSet(true);
    this.originalOrderId = originalOrderId;
    setOriginalOrderIdIsSet(true);
    this.fulfilmentWarehouseId = fulfilmentWarehouseId;
    setFulfilmentWarehouseIdIsSet(true);
    this.vendorPaid = vendorPaid;
    setVendorPaidIsSet(true);
    this.orderType = orderType;
    this.pickupStoreId = pickupStoreId;
    setPickupStoreIdIsSet(true);
    this.logisticsCod = logisticsCod;
    setLogisticsCodIsSet(true);
    this.gvAmount = gvAmount;
    setGvAmountIsSet(true);
    this.otg = otg;
    setOtgIsSet(true);
    this.courier_delivery_time = courier_delivery_time;
    setCourier_delivery_timeIsSet(true);
    this.insurer = insurer;
    setInsurerIsSet(true);
    this.insuranceAmount = insuranceAmount;
    setInsuranceAmountIsSet(true);
    this.dob = dob;
    this.guardianName = guardianName;
    this.freebieItemId = freebieItemId;
    setFreebieItemIdIsSet(true);
    this.source = source;
    setSourceIsSet(true);
    this.advanceAmount = advanceAmount;
    setAdvanceAmountIsSet(true);
    this.storeId = storeId;
    setStoreIdIsSet(true);
    this.productCondition = productCondition;
    this.dataProtectionInsurer = dataProtectionInsurer;
    setDataProtectionInsurerIsSet(true);
    this.dataProtectionAmount = dataProtectionAmount;
    setDataProtectionAmountIsSet(true);
    this.taxType = taxType;
    this.logisticsTransactionId = logisticsTransactionId;
    this.shippingCost = shippingCost;
    setShippingCostIsSet(true);
    this.codCharges = codCharges;
    setCodChargesIsSet(true);
  }

  /**
   * Performs a deep copy on <i>other</i>.
   */
  public Order(Order other) {
    __isset_bit_vector.clear();
    __isset_bit_vector.or(other.__isset_bit_vector);
    this.id = other.id;
    this.warehouse_id = other.warehouse_id;
    if (other.isSetLineitems()) {
      List<LineItem> __this__lineitems = new ArrayList<LineItem>();
      for (LineItem other_element : other.lineitems) {
        __this__lineitems.add(new LineItem(other_element));
      }
      this.lineitems = __this__lineitems;
    }
    this.logistics_provider_id = other.logistics_provider_id;
    if (other.isSetAirwaybill_no()) {
      this.airwaybill_no = other.airwaybill_no;
    }
    if (other.isSetTracking_id()) {
      this.tracking_id = other.tracking_id;
    }
    this.expected_delivery_time = other.expected_delivery_time;
    this.customer_id = other.customer_id;
    if (other.isSetCustomer_name()) {
      this.customer_name = other.customer_name;
    }
    if (other.isSetCustomer_mobilenumber()) {
      this.customer_mobilenumber = other.customer_mobilenumber;
    }
    if (other.isSetCustomer_pincode()) {
      this.customer_pincode = other.customer_pincode;
    }
    if (other.isSetCustomer_address1()) {
      this.customer_address1 = other.customer_address1;
    }
    if (other.isSetCustomer_address2()) {
      this.customer_address2 = other.customer_address2;
    }
    if (other.isSetCustomer_email()) {
      this.customer_email = other.customer_email;
    }
    if (other.isSetCustomer_city()) {
      this.customer_city = other.customer_city;
    }
    if (other.isSetCustomer_state()) {
      this.customer_state = other.customer_state;
    }
    if (other.isSetStatus()) {
      this.status = other.status;
    }
    if (other.isSetStatusDescription()) {
      this.statusDescription = other.statusDescription;
    }
    this.total_amount = other.total_amount;
    this.total_weight = other.total_weight;
    if (other.isSetInvoice_number()) {
      this.invoice_number = other.invoice_number;
    }
    if (other.isSetBilled_by()) {
      this.billed_by = other.billed_by;
    }
    this.created_timestamp = other.created_timestamp;
    this.accepted_timestamp = other.accepted_timestamp;
    this.billing_timestamp = other.billing_timestamp;
    this.shipping_timestamp = other.shipping_timestamp;
    this.pickup_timestamp = other.pickup_timestamp;
    this.delivery_timestamp = other.delivery_timestamp;
    this.outofstock_timestamp = other.outofstock_timestamp;
    this.jacket_number = other.jacket_number;
    if (other.isSetReceiver()) {
      this.receiver = other.receiver;
    }
    this.batchNo = other.batchNo;
    this.serialNo = other.serialNo;
    this.doaFlag = other.doaFlag;
    if (other.isSetPickupRequestNo()) {
      this.pickupRequestNo = other.pickupRequestNo;
    }
    this.transactionId = other.transactionId;
    if (other.isSetPurchaseOrderNo()) {
      this.purchaseOrderNo = other.purchaseOrderNo;
    }
    this.cod = other.cod;
    if (other.isSetDelayReason()) {
      this.delayReason = other.delayReason;
    }
    this.promised_delivery_time = other.promised_delivery_time;
    this.expected_shipping_time = other.expected_shipping_time;
    this.verification_timestamp = other.verification_timestamp;
    this.promised_shipping_time = other.promised_shipping_time;
    this.reship_timestamp = other.reship_timestamp;
    this.refund_timestamp = other.refund_timestamp;
    this.new_order_id = other.new_order_id;
    if (other.isSetPreviousStatus()) {
      this.previousStatus = other.previousStatus;
    }
    this.vendorId = other.vendorId;
    this.doa_auth_timestamp = other.doa_auth_timestamp;
    if (other.isSetDelayReasonText()) {
      this.delayReasonText = other.delayReasonText;
    }
    if (other.isSetRefundReason()) {
      this.refundReason = other.refundReason;
    }
    this.purchaseOrderId = other.purchaseOrderId;
    this.doa_logistics_provider_id = other.doa_logistics_provider_id;
    this.originalOrderId = other.originalOrderId;
    this.fulfilmentWarehouseId = other.fulfilmentWarehouseId;
    this.vendorPaid = other.vendorPaid;
    this.received_return_timestamp = other.received_return_timestamp;
    this.first_attempt_timestamp = other.first_attempt_timestamp;
    if (other.isSetOrderType()) {
      this.orderType = other.orderType;
    }
    this.pickupStoreId = other.pickupStoreId;
    this.logisticsCod = other.logisticsCod;
    this.gvAmount = other.gvAmount;
    this.otg = other.otg;
    this.courier_delivery_time = other.courier_delivery_time;
    this.insurer = other.insurer;
    this.insuranceAmount = other.insuranceAmount;
    if (other.isSetDob()) {
      this.dob = other.dob;
    }
    if (other.isSetGuardianName()) {
      this.guardianName = other.guardianName;
    }
    this.freebieItemId = other.freebieItemId;
    this.source = other.source;
    this.advanceAmount = other.advanceAmount;
    this.storeId = other.storeId;
    if (other.isSetProductCondition()) {
      this.productCondition = other.productCondition;
    }
    this.dataProtectionInsurer = other.dataProtectionInsurer;
    this.dataProtectionAmount = other.dataProtectionAmount;
    if (other.isSetTaxType()) {
      this.taxType = other.taxType;
    }
    if (other.isSetLogisticsTransactionId()) {
      this.logisticsTransactionId = other.logisticsTransactionId;
    }
    this.shippingCost = other.shippingCost;
    this.codCharges = other.codCharges;
  }

  public Order deepCopy() {
    return new Order(this);
  }

  @Override
  public void clear() {
    setIdIsSet(false);
    this.id = 0;
    setWarehouse_idIsSet(false);
    this.warehouse_id = 0;
    this.lineitems = null;
    setLogistics_provider_idIsSet(false);
    this.logistics_provider_id = 0;
    this.airwaybill_no = null;
    this.tracking_id = null;
    setExpected_delivery_timeIsSet(false);
    this.expected_delivery_time = 0;
    setCustomer_idIsSet(false);
    this.customer_id = 0;
    this.customer_name = null;
    this.customer_mobilenumber = null;
    this.customer_pincode = null;
    this.customer_address1 = null;
    this.customer_address2 = null;
    this.customer_email = null;
    this.customer_city = null;
    this.customer_state = null;
    this.status = null;
    this.statusDescription = null;
    setTotal_amountIsSet(false);
    this.total_amount = 0.0;
    setTotal_weightIsSet(false);
    this.total_weight = 0.0;
    this.invoice_number = null;
    this.billed_by = null;
    setCreated_timestampIsSet(false);
    this.created_timestamp = 0;
    setAccepted_timestampIsSet(false);
    this.accepted_timestamp = 0;
    setBilling_timestampIsSet(false);
    this.billing_timestamp = 0;
    setShipping_timestampIsSet(false);
    this.shipping_timestamp = 0;
    setPickup_timestampIsSet(false);
    this.pickup_timestamp = 0;
    setDelivery_timestampIsSet(false);
    this.delivery_timestamp = 0;
    setOutofstock_timestampIsSet(false);
    this.outofstock_timestamp = 0;
    setJacket_numberIsSet(false);
    this.jacket_number = 0;
    this.receiver = null;
    setBatchNoIsSet(false);
    this.batchNo = 0;
    setSerialNoIsSet(false);
    this.serialNo = 0;
    setDoaFlagIsSet(false);
    this.doaFlag = false;
    this.pickupRequestNo = null;
    setTransactionIdIsSet(false);
    this.transactionId = 0;
    this.purchaseOrderNo = null;
    setCodIsSet(false);
    this.cod = false;
    this.delayReason = null;
    setPromised_delivery_timeIsSet(false);
    this.promised_delivery_time = 0;
    setExpected_shipping_timeIsSet(false);
    this.expected_shipping_time = 0;
    setVerification_timestampIsSet(false);
    this.verification_timestamp = 0;
    setPromised_shipping_timeIsSet(false);
    this.promised_shipping_time = 0;
    setReship_timestampIsSet(false);
    this.reship_timestamp = 0;
    setRefund_timestampIsSet(false);
    this.refund_timestamp = 0;
    setNew_order_idIsSet(false);
    this.new_order_id = 0;
    this.previousStatus = null;
    setVendorIdIsSet(false);
    this.vendorId = 0;
    setDoa_auth_timestampIsSet(false);
    this.doa_auth_timestamp = 0;
    this.delayReasonText = null;
    this.refundReason = null;
    setPurchaseOrderIdIsSet(false);
    this.purchaseOrderId = 0;
    setDoa_logistics_provider_idIsSet(false);
    this.doa_logistics_provider_id = 0;
    setOriginalOrderIdIsSet(false);
    this.originalOrderId = 0;
    setFulfilmentWarehouseIdIsSet(false);
    this.fulfilmentWarehouseId = 0;
    setVendorPaidIsSet(false);
    this.vendorPaid = false;
    setReceived_return_timestampIsSet(false);
    this.received_return_timestamp = 0;
    setFirst_attempt_timestampIsSet(false);
    this.first_attempt_timestamp = 0;
    this.orderType = null;
    setPickupStoreIdIsSet(false);
    this.pickupStoreId = 0;
    setLogisticsCodIsSet(false);
    this.logisticsCod = false;
    setGvAmountIsSet(false);
    this.gvAmount = 0;
    setOtgIsSet(false);
    this.otg = false;
    setCourier_delivery_timeIsSet(false);
    this.courier_delivery_time = 0;
    setInsurerIsSet(false);
    this.insurer = 0;
    setInsuranceAmountIsSet(false);
    this.insuranceAmount = 0.0;
    this.dob = null;
    this.guardianName = null;
    setFreebieItemIdIsSet(false);
    this.freebieItemId = 0;
    setSourceIsSet(false);
    this.source = 0;
    setAdvanceAmountIsSet(false);
    this.advanceAmount = 0.0;
    setStoreIdIsSet(false);
    this.storeId = 0;
    this.productCondition = null;
    setDataProtectionInsurerIsSet(false);
    this.dataProtectionInsurer = 0;
    setDataProtectionAmountIsSet(false);
    this.dataProtectionAmount = 0.0;
    this.taxType = null;
    this.logisticsTransactionId = null;
    setShippingCostIsSet(false);
    this.shippingCost = 0.0;
    setCodChargesIsSet(false);
    this.codCharges = 0.0;
  }

  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 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 int getLineitemsSize() {
    return (this.lineitems == null) ? 0 : this.lineitems.size();
  }

  public java.util.Iterator<LineItem> getLineitemsIterator() {
    return (this.lineitems == null) ? null : this.lineitems.iterator();
  }

  public void addToLineitems(LineItem elem) {
    if (this.lineitems == null) {
      this.lineitems = new ArrayList<LineItem>();
    }
    this.lineitems.add(elem);
  }

  /**
   *    item info
   * *
   */
  public List<LineItem> getLineitems() {
    return this.lineitems;
  }

  /**
   *    item info
   * *
   */
  public void setLineitems(List<LineItem> lineitems) {
    this.lineitems = lineitems;
  }

  public void unsetLineitems() {
    this.lineitems = null;
  }

  /** Returns true if field lineitems is set (has been assigned a value) and false otherwise */
  public boolean isSetLineitems() {
    return this.lineitems != null;
  }

  public void setLineitemsIsSet(boolean value) {
    if (!value) {
      this.lineitems = null;
    }
  }

  /**
   *   logistics info
   * *
   */
  public long getLogistics_provider_id() {
    return this.logistics_provider_id;
  }

  /**
   *   logistics info
   * *
   */
  public void setLogistics_provider_id(long logistics_provider_id) {
    this.logistics_provider_id = logistics_provider_id;
    setLogistics_provider_idIsSet(true);
  }

  public void unsetLogistics_provider_id() {
    __isset_bit_vector.clear(__LOGISTICS_PROVIDER_ID_ISSET_ID);
  }

  /** Returns true if field logistics_provider_id is set (has been assigned a value) and false otherwise */
  public boolean isSetLogistics_provider_id() {
    return __isset_bit_vector.get(__LOGISTICS_PROVIDER_ID_ISSET_ID);
  }

  public void setLogistics_provider_idIsSet(boolean value) {
    __isset_bit_vector.set(__LOGISTICS_PROVIDER_ID_ISSET_ID, value);
  }

  public String getAirwaybill_no() {
    return this.airwaybill_no;
  }

  public void setAirwaybill_no(String airwaybill_no) {
    this.airwaybill_no = airwaybill_no;
  }

  public void unsetAirwaybill_no() {
    this.airwaybill_no = null;
  }

  /** Returns true if field airwaybill_no is set (has been assigned a value) and false otherwise */
  public boolean isSetAirwaybill_no() {
    return this.airwaybill_no != null;
  }

  public void setAirwaybill_noIsSet(boolean value) {
    if (!value) {
      this.airwaybill_no = null;
    }
  }

  public String getTracking_id() {
    return this.tracking_id;
  }

  public void setTracking_id(String tracking_id) {
    this.tracking_id = tracking_id;
  }

  public void unsetTracking_id() {
    this.tracking_id = null;
  }

  /** Returns true if field tracking_id is set (has been assigned a value) and false otherwise */
  public boolean isSetTracking_id() {
    return this.tracking_id != null;
  }

  public void setTracking_idIsSet(boolean value) {
    if (!value) {
      this.tracking_id = null;
    }
  }

  public long getExpected_delivery_time() {
    return this.expected_delivery_time;
  }

  public void setExpected_delivery_time(long expected_delivery_time) {
    this.expected_delivery_time = expected_delivery_time;
    setExpected_delivery_timeIsSet(true);
  }

  public void unsetExpected_delivery_time() {
    __isset_bit_vector.clear(__EXPECTED_DELIVERY_TIME_ISSET_ID);
  }

  /** Returns true if field expected_delivery_time is set (has been assigned a value) and false otherwise */
  public boolean isSetExpected_delivery_time() {
    return __isset_bit_vector.get(__EXPECTED_DELIVERY_TIME_ISSET_ID);
  }

  public void setExpected_delivery_timeIsSet(boolean value) {
    __isset_bit_vector.set(__EXPECTED_DELIVERY_TIME_ISSET_ID, value);
  }

  /**
   *   customer info
   * *
   */
  public long getCustomer_id() {
    return this.customer_id;
  }

  /**
   *   customer info
   * *
   */
  public void setCustomer_id(long customer_id) {
    this.customer_id = customer_id;
    setCustomer_idIsSet(true);
  }

  public void unsetCustomer_id() {
    __isset_bit_vector.clear(__CUSTOMER_ID_ISSET_ID);
  }

  /** Returns true if field customer_id is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_id() {
    return __isset_bit_vector.get(__CUSTOMER_ID_ISSET_ID);
  }

  public void setCustomer_idIsSet(boolean value) {
    __isset_bit_vector.set(__CUSTOMER_ID_ISSET_ID, value);
  }

  public String getCustomer_name() {
    return this.customer_name;
  }

  public void setCustomer_name(String customer_name) {
    this.customer_name = customer_name;
  }

  public void unsetCustomer_name() {
    this.customer_name = null;
  }

  /** Returns true if field customer_name is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_name() {
    return this.customer_name != null;
  }

  public void setCustomer_nameIsSet(boolean value) {
    if (!value) {
      this.customer_name = null;
    }
  }

  public String getCustomer_mobilenumber() {
    return this.customer_mobilenumber;
  }

  public void setCustomer_mobilenumber(String customer_mobilenumber) {
    this.customer_mobilenumber = customer_mobilenumber;
  }

  public void unsetCustomer_mobilenumber() {
    this.customer_mobilenumber = null;
  }

  /** Returns true if field customer_mobilenumber is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_mobilenumber() {
    return this.customer_mobilenumber != null;
  }

  public void setCustomer_mobilenumberIsSet(boolean value) {
    if (!value) {
      this.customer_mobilenumber = null;
    }
  }

  public String getCustomer_pincode() {
    return this.customer_pincode;
  }

  public void setCustomer_pincode(String customer_pincode) {
    this.customer_pincode = customer_pincode;
  }

  public void unsetCustomer_pincode() {
    this.customer_pincode = null;
  }

  /** Returns true if field customer_pincode is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_pincode() {
    return this.customer_pincode != null;
  }

  public void setCustomer_pincodeIsSet(boolean value) {
    if (!value) {
      this.customer_pincode = null;
    }
  }

  public String getCustomer_address1() {
    return this.customer_address1;
  }

  public void setCustomer_address1(String customer_address1) {
    this.customer_address1 = customer_address1;
  }

  public void unsetCustomer_address1() {
    this.customer_address1 = null;
  }

  /** Returns true if field customer_address1 is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_address1() {
    return this.customer_address1 != null;
  }

  public void setCustomer_address1IsSet(boolean value) {
    if (!value) {
      this.customer_address1 = null;
    }
  }

  public String getCustomer_address2() {
    return this.customer_address2;
  }

  public void setCustomer_address2(String customer_address2) {
    this.customer_address2 = customer_address2;
  }

  public void unsetCustomer_address2() {
    this.customer_address2 = null;
  }

  /** Returns true if field customer_address2 is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_address2() {
    return this.customer_address2 != null;
  }

  public void setCustomer_address2IsSet(boolean value) {
    if (!value) {
      this.customer_address2 = null;
    }
  }

  public String getCustomer_email() {
    return this.customer_email;
  }

  public void setCustomer_email(String customer_email) {
    this.customer_email = customer_email;
  }

  public void unsetCustomer_email() {
    this.customer_email = null;
  }

  /** Returns true if field customer_email is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_email() {
    return this.customer_email != null;
  }

  public void setCustomer_emailIsSet(boolean value) {
    if (!value) {
      this.customer_email = null;
    }
  }

  public String getCustomer_city() {
    return this.customer_city;
  }

  public void setCustomer_city(String customer_city) {
    this.customer_city = customer_city;
  }

  public void unsetCustomer_city() {
    this.customer_city = null;
  }

  /** Returns true if field customer_city is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_city() {
    return this.customer_city != null;
  }

  public void setCustomer_cityIsSet(boolean value) {
    if (!value) {
      this.customer_city = null;
    }
  }

  public String getCustomer_state() {
    return this.customer_state;
  }

  public void setCustomer_state(String customer_state) {
    this.customer_state = customer_state;
  }

  public void unsetCustomer_state() {
    this.customer_state = null;
  }

  /** Returns true if field customer_state is set (has been assigned a value) and false otherwise */
  public boolean isSetCustomer_state() {
    return this.customer_state != null;
  }

  public void setCustomer_stateIsSet(boolean value) {
    if (!value) {
      this.customer_state = null;
    }
  }

  /**
   *    status and misc info
   * *
   * 
   * @see OrderStatus
   */
  public OrderStatus getStatus() {
    return this.status;
  }

  /**
   *    status and misc info
   * *
   * 
   * @see OrderStatus
   */
  public void setStatus(OrderStatus status) {
    this.status = status;
  }

  public void unsetStatus() {
    this.status = null;
  }

  /** Returns true if field status is set (has been assigned a value) and false otherwise */
  public boolean isSetStatus() {
    return this.status != null;
  }

  public void setStatusIsSet(boolean value) {
    if (!value) {
      this.status = null;
    }
  }

  public String getStatusDescription() {
    return this.statusDescription;
  }

  public void setStatusDescription(String statusDescription) {
    this.statusDescription = statusDescription;
  }

  public void unsetStatusDescription() {
    this.statusDescription = null;
  }

  /** Returns true if field statusDescription is set (has been assigned a value) and false otherwise */
  public boolean isSetStatusDescription() {
    return this.statusDescription != null;
  }

  public void setStatusDescriptionIsSet(boolean value) {
    if (!value) {
      this.statusDescription = null;
    }
  }

  public double getTotal_amount() {
    return this.total_amount;
  }

  public void setTotal_amount(double total_amount) {
    this.total_amount = total_amount;
    setTotal_amountIsSet(true);
  }

  public void unsetTotal_amount() {
    __isset_bit_vector.clear(__TOTAL_AMOUNT_ISSET_ID);
  }

  /** Returns true if field total_amount is set (has been assigned a value) and false otherwise */
  public boolean isSetTotal_amount() {
    return __isset_bit_vector.get(__TOTAL_AMOUNT_ISSET_ID);
  }

  public void setTotal_amountIsSet(boolean value) {
    __isset_bit_vector.set(__TOTAL_AMOUNT_ISSET_ID, value);
  }

  public double getTotal_weight() {
    return this.total_weight;
  }

  public void setTotal_weight(double total_weight) {
    this.total_weight = total_weight;
    setTotal_weightIsSet(true);
  }

  public void unsetTotal_weight() {
    __isset_bit_vector.clear(__TOTAL_WEIGHT_ISSET_ID);
  }

  /** Returns true if field total_weight is set (has been assigned a value) and false otherwise */
  public boolean isSetTotal_weight() {
    return __isset_bit_vector.get(__TOTAL_WEIGHT_ISSET_ID);
  }

  public void setTotal_weightIsSet(boolean value) {
    __isset_bit_vector.set(__TOTAL_WEIGHT_ISSET_ID, value);
  }

  /**
   *    billing info
   * *
   */
  public String getInvoice_number() {
    return this.invoice_number;
  }

  /**
   *    billing info
   * *
   */
  public void setInvoice_number(String invoice_number) {
    this.invoice_number = invoice_number;
  }

  public void unsetInvoice_number() {
    this.invoice_number = null;
  }

  /** Returns true if field invoice_number is set (has been assigned a value) and false otherwise */
  public boolean isSetInvoice_number() {
    return this.invoice_number != null;
  }

  public void setInvoice_numberIsSet(boolean value) {
    if (!value) {
      this.invoice_number = null;
    }
  }

  public String getBilled_by() {
    return this.billed_by;
  }

  public void setBilled_by(String billed_by) {
    this.billed_by = billed_by;
  }

  public void unsetBilled_by() {
    this.billed_by = null;
  }

  /** Returns true if field billed_by is set (has been assigned a value) and false otherwise */
  public boolean isSetBilled_by() {
    return this.billed_by != null;
  }

  public void setBilled_byIsSet(boolean value) {
    if (!value) {
      this.billed_by = null;
    }
  }

  /**
   *    timestamps
   * *
   */
  public long getCreated_timestamp() {
    return this.created_timestamp;
  }

  /**
   *    timestamps
   * *
   */
  public void setCreated_timestamp(long created_timestamp) {
    this.created_timestamp = created_timestamp;
    setCreated_timestampIsSet(true);
  }

  public void unsetCreated_timestamp() {
    __isset_bit_vector.clear(__CREATED_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field created_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetCreated_timestamp() {
    return __isset_bit_vector.get(__CREATED_TIMESTAMP_ISSET_ID);
  }

  public void setCreated_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__CREATED_TIMESTAMP_ISSET_ID, value);
  }

  public long getAccepted_timestamp() {
    return this.accepted_timestamp;
  }

  public void setAccepted_timestamp(long accepted_timestamp) {
    this.accepted_timestamp = accepted_timestamp;
    setAccepted_timestampIsSet(true);
  }

  public void unsetAccepted_timestamp() {
    __isset_bit_vector.clear(__ACCEPTED_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field accepted_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetAccepted_timestamp() {
    return __isset_bit_vector.get(__ACCEPTED_TIMESTAMP_ISSET_ID);
  }

  public void setAccepted_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__ACCEPTED_TIMESTAMP_ISSET_ID, value);
  }

  public long getBilling_timestamp() {
    return this.billing_timestamp;
  }

  public void setBilling_timestamp(long billing_timestamp) {
    this.billing_timestamp = billing_timestamp;
    setBilling_timestampIsSet(true);
  }

  public void unsetBilling_timestamp() {
    __isset_bit_vector.clear(__BILLING_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field billing_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetBilling_timestamp() {
    return __isset_bit_vector.get(__BILLING_TIMESTAMP_ISSET_ID);
  }

  public void setBilling_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__BILLING_TIMESTAMP_ISSET_ID, value);
  }

  public long getShipping_timestamp() {
    return this.shipping_timestamp;
  }

  public void setShipping_timestamp(long shipping_timestamp) {
    this.shipping_timestamp = shipping_timestamp;
    setShipping_timestampIsSet(true);
  }

  public void unsetShipping_timestamp() {
    __isset_bit_vector.clear(__SHIPPING_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field shipping_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetShipping_timestamp() {
    return __isset_bit_vector.get(__SHIPPING_TIMESTAMP_ISSET_ID);
  }

  public void setShipping_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__SHIPPING_TIMESTAMP_ISSET_ID, value);
  }

  public long getPickup_timestamp() {
    return this.pickup_timestamp;
  }

  public void setPickup_timestamp(long pickup_timestamp) {
    this.pickup_timestamp = pickup_timestamp;
    setPickup_timestampIsSet(true);
  }

  public void unsetPickup_timestamp() {
    __isset_bit_vector.clear(__PICKUP_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field pickup_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetPickup_timestamp() {
    return __isset_bit_vector.get(__PICKUP_TIMESTAMP_ISSET_ID);
  }

  public void setPickup_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__PICKUP_TIMESTAMP_ISSET_ID, value);
  }

  public long getDelivery_timestamp() {
    return this.delivery_timestamp;
  }

  public void setDelivery_timestamp(long delivery_timestamp) {
    this.delivery_timestamp = delivery_timestamp;
    setDelivery_timestampIsSet(true);
  }

  public void unsetDelivery_timestamp() {
    __isset_bit_vector.clear(__DELIVERY_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field delivery_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetDelivery_timestamp() {
    return __isset_bit_vector.get(__DELIVERY_TIMESTAMP_ISSET_ID);
  }

  public void setDelivery_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__DELIVERY_TIMESTAMP_ISSET_ID, value);
  }

  public long getOutofstock_timestamp() {
    return this.outofstock_timestamp;
  }

  public void setOutofstock_timestamp(long outofstock_timestamp) {
    this.outofstock_timestamp = outofstock_timestamp;
    setOutofstock_timestampIsSet(true);
  }

  public void unsetOutofstock_timestamp() {
    __isset_bit_vector.clear(__OUTOFSTOCK_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field outofstock_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetOutofstock_timestamp() {
    return __isset_bit_vector.get(__OUTOFSTOCK_TIMESTAMP_ISSET_ID);
  }

  public void setOutofstock_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__OUTOFSTOCK_TIMESTAMP_ISSET_ID, value);
  }

  public long getJacket_number() {
    return this.jacket_number;
  }

  public void setJacket_number(long jacket_number) {
    this.jacket_number = jacket_number;
    setJacket_numberIsSet(true);
  }

  public void unsetJacket_number() {
    __isset_bit_vector.clear(__JACKET_NUMBER_ISSET_ID);
  }

  /** Returns true if field jacket_number is set (has been assigned a value) and false otherwise */
  public boolean isSetJacket_number() {
    return __isset_bit_vector.get(__JACKET_NUMBER_ISSET_ID);
  }

  public void setJacket_numberIsSet(boolean value) {
    __isset_bit_vector.set(__JACKET_NUMBER_ISSET_ID, value);
  }

  public String getReceiver() {
    return this.receiver;
  }

  public void setReceiver(String receiver) {
    this.receiver = receiver;
  }

  public void unsetReceiver() {
    this.receiver = null;
  }

  /** Returns true if field receiver is set (has been assigned a value) and false otherwise */
  public boolean isSetReceiver() {
    return this.receiver != null;
  }

  public void setReceiverIsSet(boolean value) {
    if (!value) {
      this.receiver = null;
    }
  }

  public long getBatchNo() {
    return this.batchNo;
  }

  public void setBatchNo(long batchNo) {
    this.batchNo = batchNo;
    setBatchNoIsSet(true);
  }

  public void unsetBatchNo() {
    __isset_bit_vector.clear(__BATCHNO_ISSET_ID);
  }

  /** Returns true if field batchNo is set (has been assigned a value) and false otherwise */
  public boolean isSetBatchNo() {
    return __isset_bit_vector.get(__BATCHNO_ISSET_ID);
  }

  public void setBatchNoIsSet(boolean value) {
    __isset_bit_vector.set(__BATCHNO_ISSET_ID, value);
  }

  public long getSerialNo() {
    return this.serialNo;
  }

  public void setSerialNo(long serialNo) {
    this.serialNo = serialNo;
    setSerialNoIsSet(true);
  }

  public void unsetSerialNo() {
    __isset_bit_vector.clear(__SERIALNO_ISSET_ID);
  }

  /** Returns true if field serialNo is set (has been assigned a value) and false otherwise */
  public boolean isSetSerialNo() {
    return __isset_bit_vector.get(__SERIALNO_ISSET_ID);
  }

  public void setSerialNoIsSet(boolean value) {
    __isset_bit_vector.set(__SERIALNO_ISSET_ID, value);
  }

  public boolean isDoaFlag() {
    return this.doaFlag;
  }

  public void setDoaFlag(boolean doaFlag) {
    this.doaFlag = doaFlag;
    setDoaFlagIsSet(true);
  }

  public void unsetDoaFlag() {
    __isset_bit_vector.clear(__DOAFLAG_ISSET_ID);
  }

  /** Returns true if field doaFlag is set (has been assigned a value) and false otherwise */
  public boolean isSetDoaFlag() {
    return __isset_bit_vector.get(__DOAFLAG_ISSET_ID);
  }

  public void setDoaFlagIsSet(boolean value) {
    __isset_bit_vector.set(__DOAFLAG_ISSET_ID, value);
  }

  public String getPickupRequestNo() {
    return this.pickupRequestNo;
  }

  public void setPickupRequestNo(String pickupRequestNo) {
    this.pickupRequestNo = pickupRequestNo;
  }

  public void unsetPickupRequestNo() {
    this.pickupRequestNo = null;
  }

  /** Returns true if field pickupRequestNo is set (has been assigned a value) and false otherwise */
  public boolean isSetPickupRequestNo() {
    return this.pickupRequestNo != null;
  }

  public void setPickupRequestNoIsSet(boolean value) {
    if (!value) {
      this.pickupRequestNo = null;
    }
  }

  public long getTransactionId() {
    return this.transactionId;
  }

  public void setTransactionId(long transactionId) {
    this.transactionId = transactionId;
    setTransactionIdIsSet(true);
  }

  public void unsetTransactionId() {
    __isset_bit_vector.clear(__TRANSACTIONID_ISSET_ID);
  }

  /** Returns true if field transactionId is set (has been assigned a value) and false otherwise */
  public boolean isSetTransactionId() {
    return __isset_bit_vector.get(__TRANSACTIONID_ISSET_ID);
  }

  public void setTransactionIdIsSet(boolean value) {
    __isset_bit_vector.set(__TRANSACTIONID_ISSET_ID, value);
  }

  public String getPurchaseOrderNo() {
    return this.purchaseOrderNo;
  }

  public void setPurchaseOrderNo(String purchaseOrderNo) {
    this.purchaseOrderNo = purchaseOrderNo;
  }

  public void unsetPurchaseOrderNo() {
    this.purchaseOrderNo = null;
  }

  /** Returns true if field purchaseOrderNo is set (has been assigned a value) and false otherwise */
  public boolean isSetPurchaseOrderNo() {
    return this.purchaseOrderNo != null;
  }

  public void setPurchaseOrderNoIsSet(boolean value) {
    if (!value) {
      this.purchaseOrderNo = null;
    }
  }

  public boolean isCod() {
    return this.cod;
  }

  public void setCod(boolean cod) {
    this.cod = cod;
    setCodIsSet(true);
  }

  public void unsetCod() {
    __isset_bit_vector.clear(__COD_ISSET_ID);
  }

  /** Returns true if field cod is set (has been assigned a value) and false otherwise */
  public boolean isSetCod() {
    return __isset_bit_vector.get(__COD_ISSET_ID);
  }

  public void setCodIsSet(boolean value) {
    __isset_bit_vector.set(__COD_ISSET_ID, value);
  }

  /**
   * 
   * @see DelayReason
   */
  public DelayReason getDelayReason() {
    return this.delayReason;
  }

  /**
   * 
   * @see DelayReason
   */
  public void setDelayReason(DelayReason delayReason) {
    this.delayReason = delayReason;
  }

  public void unsetDelayReason() {
    this.delayReason = null;
  }

  /** Returns true if field delayReason is set (has been assigned a value) and false otherwise */
  public boolean isSetDelayReason() {
    return this.delayReason != null;
  }

  public void setDelayReasonIsSet(boolean value) {
    if (!value) {
      this.delayReason = null;
    }
  }

  public long getPromised_delivery_time() {
    return this.promised_delivery_time;
  }

  public void setPromised_delivery_time(long promised_delivery_time) {
    this.promised_delivery_time = promised_delivery_time;
    setPromised_delivery_timeIsSet(true);
  }

  public void unsetPromised_delivery_time() {
    __isset_bit_vector.clear(__PROMISED_DELIVERY_TIME_ISSET_ID);
  }

  /** Returns true if field promised_delivery_time is set (has been assigned a value) and false otherwise */
  public boolean isSetPromised_delivery_time() {
    return __isset_bit_vector.get(__PROMISED_DELIVERY_TIME_ISSET_ID);
  }

  public void setPromised_delivery_timeIsSet(boolean value) {
    __isset_bit_vector.set(__PROMISED_DELIVERY_TIME_ISSET_ID, value);
  }

  public long getExpected_shipping_time() {
    return this.expected_shipping_time;
  }

  public void setExpected_shipping_time(long expected_shipping_time) {
    this.expected_shipping_time = expected_shipping_time;
    setExpected_shipping_timeIsSet(true);
  }

  public void unsetExpected_shipping_time() {
    __isset_bit_vector.clear(__EXPECTED_SHIPPING_TIME_ISSET_ID);
  }

  /** Returns true if field expected_shipping_time is set (has been assigned a value) and false otherwise */
  public boolean isSetExpected_shipping_time() {
    return __isset_bit_vector.get(__EXPECTED_SHIPPING_TIME_ISSET_ID);
  }

  public void setExpected_shipping_timeIsSet(boolean value) {
    __isset_bit_vector.set(__EXPECTED_SHIPPING_TIME_ISSET_ID, value);
  }

  public long getVerification_timestamp() {
    return this.verification_timestamp;
  }

  public void setVerification_timestamp(long verification_timestamp) {
    this.verification_timestamp = verification_timestamp;
    setVerification_timestampIsSet(true);
  }

  public void unsetVerification_timestamp() {
    __isset_bit_vector.clear(__VERIFICATION_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field verification_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetVerification_timestamp() {
    return __isset_bit_vector.get(__VERIFICATION_TIMESTAMP_ISSET_ID);
  }

  public void setVerification_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__VERIFICATION_TIMESTAMP_ISSET_ID, value);
  }

  public long getPromised_shipping_time() {
    return this.promised_shipping_time;
  }

  public void setPromised_shipping_time(long promised_shipping_time) {
    this.promised_shipping_time = promised_shipping_time;
    setPromised_shipping_timeIsSet(true);
  }

  public void unsetPromised_shipping_time() {
    __isset_bit_vector.clear(__PROMISED_SHIPPING_TIME_ISSET_ID);
  }

  /** Returns true if field promised_shipping_time is set (has been assigned a value) and false otherwise */
  public boolean isSetPromised_shipping_time() {
    return __isset_bit_vector.get(__PROMISED_SHIPPING_TIME_ISSET_ID);
  }

  public void setPromised_shipping_timeIsSet(boolean value) {
    __isset_bit_vector.set(__PROMISED_SHIPPING_TIME_ISSET_ID, value);
  }

  public long getReship_timestamp() {
    return this.reship_timestamp;
  }

  public void setReship_timestamp(long reship_timestamp) {
    this.reship_timestamp = reship_timestamp;
    setReship_timestampIsSet(true);
  }

  public void unsetReship_timestamp() {
    __isset_bit_vector.clear(__RESHIP_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field reship_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetReship_timestamp() {
    return __isset_bit_vector.get(__RESHIP_TIMESTAMP_ISSET_ID);
  }

  public void setReship_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__RESHIP_TIMESTAMP_ISSET_ID, value);
  }

  public long getRefund_timestamp() {
    return this.refund_timestamp;
  }

  public void setRefund_timestamp(long refund_timestamp) {
    this.refund_timestamp = refund_timestamp;
    setRefund_timestampIsSet(true);
  }

  public void unsetRefund_timestamp() {
    __isset_bit_vector.clear(__REFUND_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field refund_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetRefund_timestamp() {
    return __isset_bit_vector.get(__REFUND_TIMESTAMP_ISSET_ID);
  }

  public void setRefund_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__REFUND_TIMESTAMP_ISSET_ID, value);
  }

  public long getNew_order_id() {
    return this.new_order_id;
  }

  public void setNew_order_id(long new_order_id) {
    this.new_order_id = new_order_id;
    setNew_order_idIsSet(true);
  }

  public void unsetNew_order_id() {
    __isset_bit_vector.clear(__NEW_ORDER_ID_ISSET_ID);
  }

  /** Returns true if field new_order_id is set (has been assigned a value) and false otherwise */
  public boolean isSetNew_order_id() {
    return __isset_bit_vector.get(__NEW_ORDER_ID_ISSET_ID);
  }

  public void setNew_order_idIsSet(boolean value) {
    __isset_bit_vector.set(__NEW_ORDER_ID_ISSET_ID, value);
  }

  /**
   * 
   * @see OrderStatus
   */
  public OrderStatus getPreviousStatus() {
    return this.previousStatus;
  }

  /**
   * 
   * @see OrderStatus
   */
  public void setPreviousStatus(OrderStatus previousStatus) {
    this.previousStatus = previousStatus;
  }

  public void unsetPreviousStatus() {
    this.previousStatus = null;
  }

  /** Returns true if field previousStatus is set (has been assigned a value) and false otherwise */
  public boolean isSetPreviousStatus() {
    return this.previousStatus != null;
  }

  public void setPreviousStatusIsSet(boolean value) {
    if (!value) {
      this.previousStatus = null;
    }
  }

  public long getVendorId() {
    return this.vendorId;
  }

  public void setVendorId(long vendorId) {
    this.vendorId = vendorId;
    setVendorIdIsSet(true);
  }

  public void unsetVendorId() {
    __isset_bit_vector.clear(__VENDORID_ISSET_ID);
  }

  /** Returns true if field vendorId is set (has been assigned a value) and false otherwise */
  public boolean isSetVendorId() {
    return __isset_bit_vector.get(__VENDORID_ISSET_ID);
  }

  public void setVendorIdIsSet(boolean value) {
    __isset_bit_vector.set(__VENDORID_ISSET_ID, value);
  }

  public long getDoa_auth_timestamp() {
    return this.doa_auth_timestamp;
  }

  public void setDoa_auth_timestamp(long doa_auth_timestamp) {
    this.doa_auth_timestamp = doa_auth_timestamp;
    setDoa_auth_timestampIsSet(true);
  }

  public void unsetDoa_auth_timestamp() {
    __isset_bit_vector.clear(__DOA_AUTH_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field doa_auth_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetDoa_auth_timestamp() {
    return __isset_bit_vector.get(__DOA_AUTH_TIMESTAMP_ISSET_ID);
  }

  public void setDoa_auth_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__DOA_AUTH_TIMESTAMP_ISSET_ID, value);
  }

  public String getDelayReasonText() {
    return this.delayReasonText;
  }

  public void setDelayReasonText(String delayReasonText) {
    this.delayReasonText = delayReasonText;
  }

  public void unsetDelayReasonText() {
    this.delayReasonText = null;
  }

  /** Returns true if field delayReasonText is set (has been assigned a value) and false otherwise */
  public boolean isSetDelayReasonText() {
    return this.delayReasonText != null;
  }

  public void setDelayReasonTextIsSet(boolean value) {
    if (!value) {
      this.delayReasonText = null;
    }
  }

  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 long getPurchaseOrderId() {
    return this.purchaseOrderId;
  }

  public void setPurchaseOrderId(long purchaseOrderId) {
    this.purchaseOrderId = purchaseOrderId;
    setPurchaseOrderIdIsSet(true);
  }

  public void unsetPurchaseOrderId() {
    __isset_bit_vector.clear(__PURCHASEORDERID_ISSET_ID);
  }

  /** Returns true if field purchaseOrderId is set (has been assigned a value) and false otherwise */
  public boolean isSetPurchaseOrderId() {
    return __isset_bit_vector.get(__PURCHASEORDERID_ISSET_ID);
  }

  public void setPurchaseOrderIdIsSet(boolean value) {
    __isset_bit_vector.set(__PURCHASEORDERID_ISSET_ID, value);
  }

  public long getDoa_logistics_provider_id() {
    return this.doa_logistics_provider_id;
  }

  public void setDoa_logistics_provider_id(long doa_logistics_provider_id) {
    this.doa_logistics_provider_id = doa_logistics_provider_id;
    setDoa_logistics_provider_idIsSet(true);
  }

  public void unsetDoa_logistics_provider_id() {
    __isset_bit_vector.clear(__DOA_LOGISTICS_PROVIDER_ID_ISSET_ID);
  }

  /** Returns true if field doa_logistics_provider_id is set (has been assigned a value) and false otherwise */
  public boolean isSetDoa_logistics_provider_id() {
    return __isset_bit_vector.get(__DOA_LOGISTICS_PROVIDER_ID_ISSET_ID);
  }

  public void setDoa_logistics_provider_idIsSet(boolean value) {
    __isset_bit_vector.set(__DOA_LOGISTICS_PROVIDER_ID_ISSET_ID, value);
  }

  public long getOriginalOrderId() {
    return this.originalOrderId;
  }

  public void setOriginalOrderId(long originalOrderId) {
    this.originalOrderId = originalOrderId;
    setOriginalOrderIdIsSet(true);
  }

  public void unsetOriginalOrderId() {
    __isset_bit_vector.clear(__ORIGINALORDERID_ISSET_ID);
  }

  /** Returns true if field originalOrderId is set (has been assigned a value) and false otherwise */
  public boolean isSetOriginalOrderId() {
    return __isset_bit_vector.get(__ORIGINALORDERID_ISSET_ID);
  }

  public void setOriginalOrderIdIsSet(boolean value) {
    __isset_bit_vector.set(__ORIGINALORDERID_ISSET_ID, value);
  }

  public long getFulfilmentWarehouseId() {
    return this.fulfilmentWarehouseId;
  }

  public void setFulfilmentWarehouseId(long fulfilmentWarehouseId) {
    this.fulfilmentWarehouseId = fulfilmentWarehouseId;
    setFulfilmentWarehouseIdIsSet(true);
  }

  public void unsetFulfilmentWarehouseId() {
    __isset_bit_vector.clear(__FULFILMENTWAREHOUSEID_ISSET_ID);
  }

  /** Returns true if field fulfilmentWarehouseId is set (has been assigned a value) and false otherwise */
  public boolean isSetFulfilmentWarehouseId() {
    return __isset_bit_vector.get(__FULFILMENTWAREHOUSEID_ISSET_ID);
  }

  public void setFulfilmentWarehouseIdIsSet(boolean value) {
    __isset_bit_vector.set(__FULFILMENTWAREHOUSEID_ISSET_ID, value);
  }

  public boolean isVendorPaid() {
    return this.vendorPaid;
  }

  public void setVendorPaid(boolean vendorPaid) {
    this.vendorPaid = vendorPaid;
    setVendorPaidIsSet(true);
  }

  public void unsetVendorPaid() {
    __isset_bit_vector.clear(__VENDORPAID_ISSET_ID);
  }

  /** Returns true if field vendorPaid is set (has been assigned a value) and false otherwise */
  public boolean isSetVendorPaid() {
    return __isset_bit_vector.get(__VENDORPAID_ISSET_ID);
  }

  public void setVendorPaidIsSet(boolean value) {
    __isset_bit_vector.set(__VENDORPAID_ISSET_ID, value);
  }

  public long getReceived_return_timestamp() {
    return this.received_return_timestamp;
  }

  public void setReceived_return_timestamp(long received_return_timestamp) {
    this.received_return_timestamp = received_return_timestamp;
    setReceived_return_timestampIsSet(true);
  }

  public void unsetReceived_return_timestamp() {
    __isset_bit_vector.clear(__RECEIVED_RETURN_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field received_return_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetReceived_return_timestamp() {
    return __isset_bit_vector.get(__RECEIVED_RETURN_TIMESTAMP_ISSET_ID);
  }

  public void setReceived_return_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__RECEIVED_RETURN_TIMESTAMP_ISSET_ID, value);
  }

  public long getFirst_attempt_timestamp() {
    return this.first_attempt_timestamp;
  }

  public void setFirst_attempt_timestamp(long first_attempt_timestamp) {
    this.first_attempt_timestamp = first_attempt_timestamp;
    setFirst_attempt_timestampIsSet(true);
  }

  public void unsetFirst_attempt_timestamp() {
    __isset_bit_vector.clear(__FIRST_ATTEMPT_TIMESTAMP_ISSET_ID);
  }

  /** Returns true if field first_attempt_timestamp is set (has been assigned a value) and false otherwise */
  public boolean isSetFirst_attempt_timestamp() {
    return __isset_bit_vector.get(__FIRST_ATTEMPT_TIMESTAMP_ISSET_ID);
  }

  public void setFirst_attempt_timestampIsSet(boolean value) {
    __isset_bit_vector.set(__FIRST_ATTEMPT_TIMESTAMP_ISSET_ID, value);
  }

  /**
   * 
   * @see OrderType
   */
  public OrderType getOrderType() {
    return this.orderType;
  }

  /**
   * 
   * @see OrderType
   */
  public void setOrderType(OrderType orderType) {
    this.orderType = orderType;
  }

  public void unsetOrderType() {
    this.orderType = null;
  }

  /** Returns true if field orderType is set (has been assigned a value) and false otherwise */
  public boolean isSetOrderType() {
    return this.orderType != null;
  }

  public void setOrderTypeIsSet(boolean value) {
    if (!value) {
      this.orderType = null;
    }
  }

  public long getPickupStoreId() {
    return this.pickupStoreId;
  }

  public void setPickupStoreId(long pickupStoreId) {
    this.pickupStoreId = pickupStoreId;
    setPickupStoreIdIsSet(true);
  }

  public void unsetPickupStoreId() {
    __isset_bit_vector.clear(__PICKUPSTOREID_ISSET_ID);
  }

  /** Returns true if field pickupStoreId is set (has been assigned a value) and false otherwise */
  public boolean isSetPickupStoreId() {
    return __isset_bit_vector.get(__PICKUPSTOREID_ISSET_ID);
  }

  public void setPickupStoreIdIsSet(boolean value) {
    __isset_bit_vector.set(__PICKUPSTOREID_ISSET_ID, value);
  }

  public boolean isLogisticsCod() {
    return this.logisticsCod;
  }

  public void setLogisticsCod(boolean logisticsCod) {
    this.logisticsCod = logisticsCod;
    setLogisticsCodIsSet(true);
  }

  public void unsetLogisticsCod() {
    __isset_bit_vector.clear(__LOGISTICSCOD_ISSET_ID);
  }

  /** Returns true if field logisticsCod is set (has been assigned a value) and false otherwise */
  public boolean isSetLogisticsCod() {
    return __isset_bit_vector.get(__LOGISTICSCOD_ISSET_ID);
  }

  public void setLogisticsCodIsSet(boolean value) {
    __isset_bit_vector.set(__LOGISTICSCOD_ISSET_ID, value);
  }

  public long getGvAmount() {
    return this.gvAmount;
  }

  public void setGvAmount(long gvAmount) {
    this.gvAmount = gvAmount;
    setGvAmountIsSet(true);
  }

  public void unsetGvAmount() {
    __isset_bit_vector.clear(__GVAMOUNT_ISSET_ID);
  }

  /** Returns true if field gvAmount is set (has been assigned a value) and false otherwise */
  public boolean isSetGvAmount() {
    return __isset_bit_vector.get(__GVAMOUNT_ISSET_ID);
  }

  public void setGvAmountIsSet(boolean value) {
    __isset_bit_vector.set(__GVAMOUNT_ISSET_ID, value);
  }

  public boolean isOtg() {
    return this.otg;
  }

  public void setOtg(boolean otg) {
    this.otg = otg;
    setOtgIsSet(true);
  }

  public void unsetOtg() {
    __isset_bit_vector.clear(__OTG_ISSET_ID);
  }

  /** Returns true if field otg is set (has been assigned a value) and false otherwise */
  public boolean isSetOtg() {
    return __isset_bit_vector.get(__OTG_ISSET_ID);
  }

  public void setOtgIsSet(boolean value) {
    __isset_bit_vector.set(__OTG_ISSET_ID, value);
  }

  public long getCourier_delivery_time() {
    return this.courier_delivery_time;
  }

  public void setCourier_delivery_time(long courier_delivery_time) {
    this.courier_delivery_time = courier_delivery_time;
    setCourier_delivery_timeIsSet(true);
  }

  public void unsetCourier_delivery_time() {
    __isset_bit_vector.clear(__COURIER_DELIVERY_TIME_ISSET_ID);
  }

  /** Returns true if field courier_delivery_time is set (has been assigned a value) and false otherwise */
  public boolean isSetCourier_delivery_time() {
    return __isset_bit_vector.get(__COURIER_DELIVERY_TIME_ISSET_ID);
  }

  public void setCourier_delivery_timeIsSet(boolean value) {
    __isset_bit_vector.set(__COURIER_DELIVERY_TIME_ISSET_ID, value);
  }

  public long getInsurer() {
    return this.insurer;
  }

  public void setInsurer(long insurer) {
    this.insurer = insurer;
    setInsurerIsSet(true);
  }

  public void unsetInsurer() {
    __isset_bit_vector.clear(__INSURER_ISSET_ID);
  }

  /** Returns true if field insurer is set (has been assigned a value) and false otherwise */
  public boolean isSetInsurer() {
    return __isset_bit_vector.get(__INSURER_ISSET_ID);
  }

  public void setInsurerIsSet(boolean value) {
    __isset_bit_vector.set(__INSURER_ISSET_ID, value);
  }

  public double getInsuranceAmount() {
    return this.insuranceAmount;
  }

  public void setInsuranceAmount(double insuranceAmount) {
    this.insuranceAmount = insuranceAmount;
    setInsuranceAmountIsSet(true);
  }

  public void unsetInsuranceAmount() {
    __isset_bit_vector.clear(__INSURANCEAMOUNT_ISSET_ID);
  }

  /** Returns true if field insuranceAmount is set (has been assigned a value) and false otherwise */
  public boolean isSetInsuranceAmount() {
    return __isset_bit_vector.get(__INSURANCEAMOUNT_ISSET_ID);
  }

  public void setInsuranceAmountIsSet(boolean value) {
    __isset_bit_vector.set(__INSURANCEAMOUNT_ISSET_ID, value);
  }

  public String getDob() {
    return this.dob;
  }

  public void setDob(String dob) {
    this.dob = dob;
  }

  public void unsetDob() {
    this.dob = null;
  }

  /** Returns true if field dob is set (has been assigned a value) and false otherwise */
  public boolean isSetDob() {
    return this.dob != null;
  }

  public void setDobIsSet(boolean value) {
    if (!value) {
      this.dob = null;
    }
  }

  public String getGuardianName() {
    return this.guardianName;
  }

  public void setGuardianName(String guardianName) {
    this.guardianName = guardianName;
  }

  public void unsetGuardianName() {
    this.guardianName = null;
  }

  /** Returns true if field guardianName is set (has been assigned a value) and false otherwise */
  public boolean isSetGuardianName() {
    return this.guardianName != null;
  }

  public void setGuardianNameIsSet(boolean value) {
    if (!value) {
      this.guardianName = 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);
  }

  public long getSource() {
    return this.source;
  }

  public void setSource(long source) {
    this.source = source;
    setSourceIsSet(true);
  }

  public void unsetSource() {
    __isset_bit_vector.clear(__SOURCE_ISSET_ID);
  }

  /** Returns true if field source is set (has been assigned a value) and false otherwise */
  public boolean isSetSource() {
    return __isset_bit_vector.get(__SOURCE_ISSET_ID);
  }

  public void setSourceIsSet(boolean value) {
    __isset_bit_vector.set(__SOURCE_ISSET_ID, value);
  }

  public double getAdvanceAmount() {
    return this.advanceAmount;
  }

  public void setAdvanceAmount(double advanceAmount) {
    this.advanceAmount = advanceAmount;
    setAdvanceAmountIsSet(true);
  }

  public void unsetAdvanceAmount() {
    __isset_bit_vector.clear(__ADVANCEAMOUNT_ISSET_ID);
  }

  /** Returns true if field advanceAmount is set (has been assigned a value) and false otherwise */
  public boolean isSetAdvanceAmount() {
    return __isset_bit_vector.get(__ADVANCEAMOUNT_ISSET_ID);
  }

  public void setAdvanceAmountIsSet(boolean value) {
    __isset_bit_vector.set(__ADVANCEAMOUNT_ISSET_ID, value);
  }

  public long getStoreId() {
    return this.storeId;
  }

  public void setStoreId(long storeId) {
    this.storeId = storeId;
    setStoreIdIsSet(true);
  }

  public void unsetStoreId() {
    __isset_bit_vector.clear(__STOREID_ISSET_ID);
  }

  /** Returns true if field storeId is set (has been assigned a value) and false otherwise */
  public boolean isSetStoreId() {
    return __isset_bit_vector.get(__STOREID_ISSET_ID);
  }

  public void setStoreIdIsSet(boolean value) {
    __isset_bit_vector.set(__STOREID_ISSET_ID, value);
  }

  /**
   * 
   * @see ProductCondition
   */
  public ProductCondition getProductCondition() {
    return this.productCondition;
  }

  /**
   * 
   * @see ProductCondition
   */
  public void setProductCondition(ProductCondition productCondition) {
    this.productCondition = productCondition;
  }

  public void unsetProductCondition() {
    this.productCondition = null;
  }

  /** Returns true if field productCondition is set (has been assigned a value) and false otherwise */
  public boolean isSetProductCondition() {
    return this.productCondition != null;
  }

  public void setProductConditionIsSet(boolean value) {
    if (!value) {
      this.productCondition = null;
    }
  }

  public long getDataProtectionInsurer() {
    return this.dataProtectionInsurer;
  }

  public void setDataProtectionInsurer(long dataProtectionInsurer) {
    this.dataProtectionInsurer = dataProtectionInsurer;
    setDataProtectionInsurerIsSet(true);
  }

  public void unsetDataProtectionInsurer() {
    __isset_bit_vector.clear(__DATAPROTECTIONINSURER_ISSET_ID);
  }

  /** Returns true if field dataProtectionInsurer is set (has been assigned a value) and false otherwise */
  public boolean isSetDataProtectionInsurer() {
    return __isset_bit_vector.get(__DATAPROTECTIONINSURER_ISSET_ID);
  }

  public void setDataProtectionInsurerIsSet(boolean value) {
    __isset_bit_vector.set(__DATAPROTECTIONINSURER_ISSET_ID, value);
  }

  public double getDataProtectionAmount() {
    return this.dataProtectionAmount;
  }

  public void setDataProtectionAmount(double dataProtectionAmount) {
    this.dataProtectionAmount = dataProtectionAmount;
    setDataProtectionAmountIsSet(true);
  }

  public void unsetDataProtectionAmount() {
    __isset_bit_vector.clear(__DATAPROTECTIONAMOUNT_ISSET_ID);
  }

  /** Returns true if field dataProtectionAmount is set (has been assigned a value) and false otherwise */
  public boolean isSetDataProtectionAmount() {
    return __isset_bit_vector.get(__DATAPROTECTIONAMOUNT_ISSET_ID);
  }

  public void setDataProtectionAmountIsSet(boolean value) {
    __isset_bit_vector.set(__DATAPROTECTIONAMOUNT_ISSET_ID, value);
  }

  /**
   * 
   * @see TaxType
   */
  public TaxType getTaxType() {
    return this.taxType;
  }

  /**
   * 
   * @see TaxType
   */
  public void setTaxType(TaxType taxType) {
    this.taxType = taxType;
  }

  public void unsetTaxType() {
    this.taxType = null;
  }

  /** Returns true if field taxType is set (has been assigned a value) and false otherwise */
  public boolean isSetTaxType() {
    return this.taxType != null;
  }

  public void setTaxTypeIsSet(boolean value) {
    if (!value) {
      this.taxType = null;
    }
  }

  public String getLogisticsTransactionId() {
    return this.logisticsTransactionId;
  }

  public void setLogisticsTransactionId(String logisticsTransactionId) {
    this.logisticsTransactionId = logisticsTransactionId;
  }

  public void unsetLogisticsTransactionId() {
    this.logisticsTransactionId = null;
  }

  /** Returns true if field logisticsTransactionId is set (has been assigned a value) and false otherwise */
  public boolean isSetLogisticsTransactionId() {
    return this.logisticsTransactionId != null;
  }

  public void setLogisticsTransactionIdIsSet(boolean value) {
    if (!value) {
      this.logisticsTransactionId = null;
    }
  }

  public double getShippingCost() {
    return this.shippingCost;
  }

  public void setShippingCost(double shippingCost) {
    this.shippingCost = shippingCost;
    setShippingCostIsSet(true);
  }

  public void unsetShippingCost() {
    __isset_bit_vector.clear(__SHIPPINGCOST_ISSET_ID);
  }

  /** Returns true if field shippingCost is set (has been assigned a value) and false otherwise */
  public boolean isSetShippingCost() {
    return __isset_bit_vector.get(__SHIPPINGCOST_ISSET_ID);
  }

  public void setShippingCostIsSet(boolean value) {
    __isset_bit_vector.set(__SHIPPINGCOST_ISSET_ID, value);
  }

  public double getCodCharges() {
    return this.codCharges;
  }

  public void setCodCharges(double codCharges) {
    this.codCharges = codCharges;
    setCodChargesIsSet(true);
  }

  public void unsetCodCharges() {
    __isset_bit_vector.clear(__CODCHARGES_ISSET_ID);
  }

  /** Returns true if field codCharges is set (has been assigned a value) and false otherwise */
  public boolean isSetCodCharges() {
    return __isset_bit_vector.get(__CODCHARGES_ISSET_ID);
  }

  public void setCodChargesIsSet(boolean value) {
    __isset_bit_vector.set(__CODCHARGES_ISSET_ID, value);
  }

  public void setFieldValue(_Fields field, Object value) {
    switch (field) {
    case ID:
      if (value == null) {
        unsetId();
      } else {
        setId((Long)value);
      }
      break;

    case WAREHOUSE_ID:
      if (value == null) {
        unsetWarehouse_id();
      } else {
        setWarehouse_id((Long)value);
      }
      break;

    case LINEITEMS:
      if (value == null) {
        unsetLineitems();
      } else {
        setLineitems((List<LineItem>)value);
      }
      break;

    case LOGISTICS_PROVIDER_ID:
      if (value == null) {
        unsetLogistics_provider_id();
      } else {
        setLogistics_provider_id((Long)value);
      }
      break;

    case AIRWAYBILL_NO:
      if (value == null) {
        unsetAirwaybill_no();
      } else {
        setAirwaybill_no((String)value);
      }
      break;

    case TRACKING_ID:
      if (value == null) {
        unsetTracking_id();
      } else {
        setTracking_id((String)value);
      }
      break;

    case EXPECTED_DELIVERY_TIME:
      if (value == null) {
        unsetExpected_delivery_time();
      } else {
        setExpected_delivery_time((Long)value);
      }
      break;

    case CUSTOMER_ID:
      if (value == null) {
        unsetCustomer_id();
      } else {
        setCustomer_id((Long)value);
      }
      break;

    case CUSTOMER_NAME:
      if (value == null) {
        unsetCustomer_name();
      } else {
        setCustomer_name((String)value);
      }
      break;

    case CUSTOMER_MOBILENUMBER:
      if (value == null) {
        unsetCustomer_mobilenumber();
      } else {
        setCustomer_mobilenumber((String)value);
      }
      break;

    case CUSTOMER_PINCODE:
      if (value == null) {
        unsetCustomer_pincode();
      } else {
        setCustomer_pincode((String)value);
      }
      break;

    case CUSTOMER_ADDRESS1:
      if (value == null) {
        unsetCustomer_address1();
      } else {
        setCustomer_address1((String)value);
      }
      break;

    case CUSTOMER_ADDRESS2:
      if (value == null) {
        unsetCustomer_address2();
      } else {
        setCustomer_address2((String)value);
      }
      break;

    case CUSTOMER_EMAIL:
      if (value == null) {
        unsetCustomer_email();
      } else {
        setCustomer_email((String)value);
      }
      break;

    case CUSTOMER_CITY:
      if (value == null) {
        unsetCustomer_city();
      } else {
        setCustomer_city((String)value);
      }
      break;

    case CUSTOMER_STATE:
      if (value == null) {
        unsetCustomer_state();
      } else {
        setCustomer_state((String)value);
      }
      break;

    case STATUS:
      if (value == null) {
        unsetStatus();
      } else {
        setStatus((OrderStatus)value);
      }
      break;

    case STATUS_DESCRIPTION:
      if (value == null) {
        unsetStatusDescription();
      } else {
        setStatusDescription((String)value);
      }
      break;

    case TOTAL_AMOUNT:
      if (value == null) {
        unsetTotal_amount();
      } else {
        setTotal_amount((Double)value);
      }
      break;

    case TOTAL_WEIGHT:
      if (value == null) {
        unsetTotal_weight();
      } else {
        setTotal_weight((Double)value);
      }
      break;

    case INVOICE_NUMBER:
      if (value == null) {
        unsetInvoice_number();
      } else {
        setInvoice_number((String)value);
      }
      break;

    case BILLED_BY:
      if (value == null) {
        unsetBilled_by();
      } else {
        setBilled_by((String)value);
      }
      break;

    case CREATED_TIMESTAMP:
      if (value == null) {
        unsetCreated_timestamp();
      } else {
        setCreated_timestamp((Long)value);
      }
      break;

    case ACCEPTED_TIMESTAMP:
      if (value == null) {
        unsetAccepted_timestamp();
      } else {
        setAccepted_timestamp((Long)value);
      }
      break;

    case BILLING_TIMESTAMP:
      if (value == null) {
        unsetBilling_timestamp();
      } else {
        setBilling_timestamp((Long)value);
      }
      break;

    case SHIPPING_TIMESTAMP:
      if (value == null) {
        unsetShipping_timestamp();
      } else {
        setShipping_timestamp((Long)value);
      }
      break;

    case PICKUP_TIMESTAMP:
      if (value == null) {
        unsetPickup_timestamp();
      } else {
        setPickup_timestamp((Long)value);
      }
      break;

    case DELIVERY_TIMESTAMP:
      if (value == null) {
        unsetDelivery_timestamp();
      } else {
        setDelivery_timestamp((Long)value);
      }
      break;

    case OUTOFSTOCK_TIMESTAMP:
      if (value == null) {
        unsetOutofstock_timestamp();
      } else {
        setOutofstock_timestamp((Long)value);
      }
      break;

    case JACKET_NUMBER:
      if (value == null) {
        unsetJacket_number();
      } else {
        setJacket_number((Long)value);
      }
      break;

    case RECEIVER:
      if (value == null) {
        unsetReceiver();
      } else {
        setReceiver((String)value);
      }
      break;

    case BATCH_NO:
      if (value == null) {
        unsetBatchNo();
      } else {
        setBatchNo((Long)value);
      }
      break;

    case SERIAL_NO:
      if (value == null) {
        unsetSerialNo();
      } else {
        setSerialNo((Long)value);
      }
      break;

    case DOA_FLAG:
      if (value == null) {
        unsetDoaFlag();
      } else {
        setDoaFlag((Boolean)value);
      }
      break;

    case PICKUP_REQUEST_NO:
      if (value == null) {
        unsetPickupRequestNo();
      } else {
        setPickupRequestNo((String)value);
      }
      break;

    case TRANSACTION_ID:
      if (value == null) {
        unsetTransactionId();
      } else {
        setTransactionId((Long)value);
      }
      break;

    case PURCHASE_ORDER_NO:
      if (value == null) {
        unsetPurchaseOrderNo();
      } else {
        setPurchaseOrderNo((String)value);
      }
      break;

    case COD:
      if (value == null) {
        unsetCod();
      } else {
        setCod((Boolean)value);
      }
      break;

    case DELAY_REASON:
      if (value == null) {
        unsetDelayReason();
      } else {
        setDelayReason((DelayReason)value);
      }
      break;

    case PROMISED_DELIVERY_TIME:
      if (value == null) {
        unsetPromised_delivery_time();
      } else {
        setPromised_delivery_time((Long)value);
      }
      break;

    case EXPECTED_SHIPPING_TIME:
      if (value == null) {
        unsetExpected_shipping_time();
      } else {
        setExpected_shipping_time((Long)value);
      }
      break;

    case VERIFICATION_TIMESTAMP:
      if (value == null) {
        unsetVerification_timestamp();
      } else {
        setVerification_timestamp((Long)value);
      }
      break;

    case PROMISED_SHIPPING_TIME:
      if (value == null) {
        unsetPromised_shipping_time();
      } else {
        setPromised_shipping_time((Long)value);
      }
      break;

    case RESHIP_TIMESTAMP:
      if (value == null) {
        unsetReship_timestamp();
      } else {
        setReship_timestamp((Long)value);
      }
      break;

    case REFUND_TIMESTAMP:
      if (value == null) {
        unsetRefund_timestamp();
      } else {
        setRefund_timestamp((Long)value);
      }
      break;

    case NEW_ORDER_ID:
      if (value == null) {
        unsetNew_order_id();
      } else {
        setNew_order_id((Long)value);
      }
      break;

    case PREVIOUS_STATUS:
      if (value == null) {
        unsetPreviousStatus();
      } else {
        setPreviousStatus((OrderStatus)value);
      }
      break;

    case VENDOR_ID:
      if (value == null) {
        unsetVendorId();
      } else {
        setVendorId((Long)value);
      }
      break;

    case DOA_AUTH_TIMESTAMP:
      if (value == null) {
        unsetDoa_auth_timestamp();
      } else {
        setDoa_auth_timestamp((Long)value);
      }
      break;

    case DELAY_REASON_TEXT:
      if (value == null) {
        unsetDelayReasonText();
      } else {
        setDelayReasonText((String)value);
      }
      break;

    case REFUND_REASON:
      if (value == null) {
        unsetRefundReason();
      } else {
        setRefundReason((String)value);
      }
      break;

    case PURCHASE_ORDER_ID:
      if (value == null) {
        unsetPurchaseOrderId();
      } else {
        setPurchaseOrderId((Long)value);
      }
      break;

    case DOA_LOGISTICS_PROVIDER_ID:
      if (value == null) {
        unsetDoa_logistics_provider_id();
      } else {
        setDoa_logistics_provider_id((Long)value);
      }
      break;

    case ORIGINAL_ORDER_ID:
      if (value == null) {
        unsetOriginalOrderId();
      } else {
        setOriginalOrderId((Long)value);
      }
      break;

    case FULFILMENT_WAREHOUSE_ID:
      if (value == null) {
        unsetFulfilmentWarehouseId();
      } else {
        setFulfilmentWarehouseId((Long)value);
      }
      break;

    case VENDOR_PAID:
      if (value == null) {
        unsetVendorPaid();
      } else {
        setVendorPaid((Boolean)value);
      }
      break;

    case RECEIVED_RETURN_TIMESTAMP:
      if (value == null) {
        unsetReceived_return_timestamp();
      } else {
        setReceived_return_timestamp((Long)value);
      }
      break;

    case FIRST_ATTEMPT_TIMESTAMP:
      if (value == null) {
        unsetFirst_attempt_timestamp();
      } else {
        setFirst_attempt_timestamp((Long)value);
      }
      break;

    case ORDER_TYPE:
      if (value == null) {
        unsetOrderType();
      } else {
        setOrderType((OrderType)value);
      }
      break;

    case PICKUP_STORE_ID:
      if (value == null) {
        unsetPickupStoreId();
      } else {
        setPickupStoreId((Long)value);
      }
      break;

    case LOGISTICS_COD:
      if (value == null) {
        unsetLogisticsCod();
      } else {
        setLogisticsCod((Boolean)value);
      }
      break;

    case GV_AMOUNT:
      if (value == null) {
        unsetGvAmount();
      } else {
        setGvAmount((Long)value);
      }
      break;

    case OTG:
      if (value == null) {
        unsetOtg();
      } else {
        setOtg((Boolean)value);
      }
      break;

    case COURIER_DELIVERY_TIME:
      if (value == null) {
        unsetCourier_delivery_time();
      } else {
        setCourier_delivery_time((Long)value);
      }
      break;

    case INSURER:
      if (value == null) {
        unsetInsurer();
      } else {
        setInsurer((Long)value);
      }
      break;

    case INSURANCE_AMOUNT:
      if (value == null) {
        unsetInsuranceAmount();
      } else {
        setInsuranceAmount((Double)value);
      }
      break;

    case DOB:
      if (value == null) {
        unsetDob();
      } else {
        setDob((String)value);
      }
      break;

    case GUARDIAN_NAME:
      if (value == null) {
        unsetGuardianName();
      } else {
        setGuardianName((String)value);
      }
      break;

    case FREEBIE_ITEM_ID:
      if (value == null) {
        unsetFreebieItemId();
      } else {
        setFreebieItemId((Long)value);
      }
      break;

    case SOURCE:
      if (value == null) {
        unsetSource();
      } else {
        setSource((Long)value);
      }
      break;

    case ADVANCE_AMOUNT:
      if (value == null) {
        unsetAdvanceAmount();
      } else {
        setAdvanceAmount((Double)value);
      }
      break;

    case STORE_ID:
      if (value == null) {
        unsetStoreId();
      } else {
        setStoreId((Long)value);
      }
      break;

    case PRODUCT_CONDITION:
      if (value == null) {
        unsetProductCondition();
      } else {
        setProductCondition((ProductCondition)value);
      }
      break;

    case DATA_PROTECTION_INSURER:
      if (value == null) {
        unsetDataProtectionInsurer();
      } else {
        setDataProtectionInsurer((Long)value);
      }
      break;

    case DATA_PROTECTION_AMOUNT:
      if (value == null) {
        unsetDataProtectionAmount();
      } else {
        setDataProtectionAmount((Double)value);
      }
      break;

    case TAX_TYPE:
      if (value == null) {
        unsetTaxType();
      } else {
        setTaxType((TaxType)value);
      }
      break;

    case LOGISTICS_TRANSACTION_ID:
      if (value == null) {
        unsetLogisticsTransactionId();
      } else {
        setLogisticsTransactionId((String)value);
      }
      break;

    case SHIPPING_COST:
      if (value == null) {
        unsetShippingCost();
      } else {
        setShippingCost((Double)value);
      }
      break;

    case COD_CHARGES:
      if (value == null) {
        unsetCodCharges();
      } else {
        setCodCharges((Double)value);
      }
      break;

    }
  }

  public Object getFieldValue(_Fields field) {
    switch (field) {
    case ID:
      return Long.valueOf(getId());

    case WAREHOUSE_ID:
      return Long.valueOf(getWarehouse_id());

    case LINEITEMS:
      return getLineitems();

    case LOGISTICS_PROVIDER_ID:
      return Long.valueOf(getLogistics_provider_id());

    case AIRWAYBILL_NO:
      return getAirwaybill_no();

    case TRACKING_ID:
      return getTracking_id();

    case EXPECTED_DELIVERY_TIME:
      return Long.valueOf(getExpected_delivery_time());

    case CUSTOMER_ID:
      return Long.valueOf(getCustomer_id());

    case CUSTOMER_NAME:
      return getCustomer_name();

    case CUSTOMER_MOBILENUMBER:
      return getCustomer_mobilenumber();

    case CUSTOMER_PINCODE:
      return getCustomer_pincode();

    case CUSTOMER_ADDRESS1:
      return getCustomer_address1();

    case CUSTOMER_ADDRESS2:
      return getCustomer_address2();

    case CUSTOMER_EMAIL:
      return getCustomer_email();

    case CUSTOMER_CITY:
      return getCustomer_city();

    case CUSTOMER_STATE:
      return getCustomer_state();

    case STATUS:
      return getStatus();

    case STATUS_DESCRIPTION:
      return getStatusDescription();

    case TOTAL_AMOUNT:
      return Double.valueOf(getTotal_amount());

    case TOTAL_WEIGHT:
      return Double.valueOf(getTotal_weight());

    case INVOICE_NUMBER:
      return getInvoice_number();

    case BILLED_BY:
      return getBilled_by();

    case CREATED_TIMESTAMP:
      return Long.valueOf(getCreated_timestamp());

    case ACCEPTED_TIMESTAMP:
      return Long.valueOf(getAccepted_timestamp());

    case BILLING_TIMESTAMP:
      return Long.valueOf(getBilling_timestamp());

    case SHIPPING_TIMESTAMP:
      return Long.valueOf(getShipping_timestamp());

    case PICKUP_TIMESTAMP:
      return Long.valueOf(getPickup_timestamp());

    case DELIVERY_TIMESTAMP:
      return Long.valueOf(getDelivery_timestamp());

    case OUTOFSTOCK_TIMESTAMP:
      return Long.valueOf(getOutofstock_timestamp());

    case JACKET_NUMBER:
      return Long.valueOf(getJacket_number());

    case RECEIVER:
      return getReceiver();

    case BATCH_NO:
      return Long.valueOf(getBatchNo());

    case SERIAL_NO:
      return Long.valueOf(getSerialNo());

    case DOA_FLAG:
      return Boolean.valueOf(isDoaFlag());

    case PICKUP_REQUEST_NO:
      return getPickupRequestNo();

    case TRANSACTION_ID:
      return Long.valueOf(getTransactionId());

    case PURCHASE_ORDER_NO:
      return getPurchaseOrderNo();

    case COD:
      return Boolean.valueOf(isCod());

    case DELAY_REASON:
      return getDelayReason();

    case PROMISED_DELIVERY_TIME:
      return Long.valueOf(getPromised_delivery_time());

    case EXPECTED_SHIPPING_TIME:
      return Long.valueOf(getExpected_shipping_time());

    case VERIFICATION_TIMESTAMP:
      return Long.valueOf(getVerification_timestamp());

    case PROMISED_SHIPPING_TIME:
      return Long.valueOf(getPromised_shipping_time());

    case RESHIP_TIMESTAMP:
      return Long.valueOf(getReship_timestamp());

    case REFUND_TIMESTAMP:
      return Long.valueOf(getRefund_timestamp());

    case NEW_ORDER_ID:
      return Long.valueOf(getNew_order_id());

    case PREVIOUS_STATUS:
      return getPreviousStatus();

    case VENDOR_ID:
      return Long.valueOf(getVendorId());

    case DOA_AUTH_TIMESTAMP:
      return Long.valueOf(getDoa_auth_timestamp());

    case DELAY_REASON_TEXT:
      return getDelayReasonText();

    case REFUND_REASON:
      return getRefundReason();

    case PURCHASE_ORDER_ID:
      return Long.valueOf(getPurchaseOrderId());

    case DOA_LOGISTICS_PROVIDER_ID:
      return Long.valueOf(getDoa_logistics_provider_id());

    case ORIGINAL_ORDER_ID:
      return Long.valueOf(getOriginalOrderId());

    case FULFILMENT_WAREHOUSE_ID:
      return Long.valueOf(getFulfilmentWarehouseId());

    case VENDOR_PAID:
      return Boolean.valueOf(isVendorPaid());

    case RECEIVED_RETURN_TIMESTAMP:
      return Long.valueOf(getReceived_return_timestamp());

    case FIRST_ATTEMPT_TIMESTAMP:
      return Long.valueOf(getFirst_attempt_timestamp());

    case ORDER_TYPE:
      return getOrderType();

    case PICKUP_STORE_ID:
      return Long.valueOf(getPickupStoreId());

    case LOGISTICS_COD:
      return Boolean.valueOf(isLogisticsCod());

    case GV_AMOUNT:
      return Long.valueOf(getGvAmount());

    case OTG:
      return Boolean.valueOf(isOtg());

    case COURIER_DELIVERY_TIME:
      return Long.valueOf(getCourier_delivery_time());

    case INSURER:
      return Long.valueOf(getInsurer());

    case INSURANCE_AMOUNT:
      return Double.valueOf(getInsuranceAmount());

    case DOB:
      return getDob();

    case GUARDIAN_NAME:
      return getGuardianName();

    case FREEBIE_ITEM_ID:
      return Long.valueOf(getFreebieItemId());

    case SOURCE:
      return Long.valueOf(getSource());

    case ADVANCE_AMOUNT:
      return Double.valueOf(getAdvanceAmount());

    case STORE_ID:
      return Long.valueOf(getStoreId());

    case PRODUCT_CONDITION:
      return getProductCondition();

    case DATA_PROTECTION_INSURER:
      return Long.valueOf(getDataProtectionInsurer());

    case DATA_PROTECTION_AMOUNT:
      return Double.valueOf(getDataProtectionAmount());

    case TAX_TYPE:
      return getTaxType();

    case LOGISTICS_TRANSACTION_ID:
      return getLogisticsTransactionId();

    case SHIPPING_COST:
      return Double.valueOf(getShippingCost());

    case COD_CHARGES:
      return Double.valueOf(getCodCharges());

    }
    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 WAREHOUSE_ID:
      return isSetWarehouse_id();
    case LINEITEMS:
      return isSetLineitems();
    case LOGISTICS_PROVIDER_ID:
      return isSetLogistics_provider_id();
    case AIRWAYBILL_NO:
      return isSetAirwaybill_no();
    case TRACKING_ID:
      return isSetTracking_id();
    case EXPECTED_DELIVERY_TIME:
      return isSetExpected_delivery_time();
    case CUSTOMER_ID:
      return isSetCustomer_id();
    case CUSTOMER_NAME:
      return isSetCustomer_name();
    case CUSTOMER_MOBILENUMBER:
      return isSetCustomer_mobilenumber();
    case CUSTOMER_PINCODE:
      return isSetCustomer_pincode();
    case CUSTOMER_ADDRESS1:
      return isSetCustomer_address1();
    case CUSTOMER_ADDRESS2:
      return isSetCustomer_address2();
    case CUSTOMER_EMAIL:
      return isSetCustomer_email();
    case CUSTOMER_CITY:
      return isSetCustomer_city();
    case CUSTOMER_STATE:
      return isSetCustomer_state();
    case STATUS:
      return isSetStatus();
    case STATUS_DESCRIPTION:
      return isSetStatusDescription();
    case TOTAL_AMOUNT:
      return isSetTotal_amount();
    case TOTAL_WEIGHT:
      return isSetTotal_weight();
    case INVOICE_NUMBER:
      return isSetInvoice_number();
    case BILLED_BY:
      return isSetBilled_by();
    case CREATED_TIMESTAMP:
      return isSetCreated_timestamp();
    case ACCEPTED_TIMESTAMP:
      return isSetAccepted_timestamp();
    case BILLING_TIMESTAMP:
      return isSetBilling_timestamp();
    case SHIPPING_TIMESTAMP:
      return isSetShipping_timestamp();
    case PICKUP_TIMESTAMP:
      return isSetPickup_timestamp();
    case DELIVERY_TIMESTAMP:
      return isSetDelivery_timestamp();
    case OUTOFSTOCK_TIMESTAMP:
      return isSetOutofstock_timestamp();
    case JACKET_NUMBER:
      return isSetJacket_number();
    case RECEIVER:
      return isSetReceiver();
    case BATCH_NO:
      return isSetBatchNo();
    case SERIAL_NO:
      return isSetSerialNo();
    case DOA_FLAG:
      return isSetDoaFlag();
    case PICKUP_REQUEST_NO:
      return isSetPickupRequestNo();
    case TRANSACTION_ID:
      return isSetTransactionId();
    case PURCHASE_ORDER_NO:
      return isSetPurchaseOrderNo();
    case COD:
      return isSetCod();
    case DELAY_REASON:
      return isSetDelayReason();
    case PROMISED_DELIVERY_TIME:
      return isSetPromised_delivery_time();
    case EXPECTED_SHIPPING_TIME:
      return isSetExpected_shipping_time();
    case VERIFICATION_TIMESTAMP:
      return isSetVerification_timestamp();
    case PROMISED_SHIPPING_TIME:
      return isSetPromised_shipping_time();
    case RESHIP_TIMESTAMP:
      return isSetReship_timestamp();
    case REFUND_TIMESTAMP:
      return isSetRefund_timestamp();
    case NEW_ORDER_ID:
      return isSetNew_order_id();
    case PREVIOUS_STATUS:
      return isSetPreviousStatus();
    case VENDOR_ID:
      return isSetVendorId();
    case DOA_AUTH_TIMESTAMP:
      return isSetDoa_auth_timestamp();
    case DELAY_REASON_TEXT:
      return isSetDelayReasonText();
    case REFUND_REASON:
      return isSetRefundReason();
    case PURCHASE_ORDER_ID:
      return isSetPurchaseOrderId();
    case DOA_LOGISTICS_PROVIDER_ID:
      return isSetDoa_logistics_provider_id();
    case ORIGINAL_ORDER_ID:
      return isSetOriginalOrderId();
    case FULFILMENT_WAREHOUSE_ID:
      return isSetFulfilmentWarehouseId();
    case VENDOR_PAID:
      return isSetVendorPaid();
    case RECEIVED_RETURN_TIMESTAMP:
      return isSetReceived_return_timestamp();
    case FIRST_ATTEMPT_TIMESTAMP:
      return isSetFirst_attempt_timestamp();
    case ORDER_TYPE:
      return isSetOrderType();
    case PICKUP_STORE_ID:
      return isSetPickupStoreId();
    case LOGISTICS_COD:
      return isSetLogisticsCod();
    case GV_AMOUNT:
      return isSetGvAmount();
    case OTG:
      return isSetOtg();
    case COURIER_DELIVERY_TIME:
      return isSetCourier_delivery_time();
    case INSURER:
      return isSetInsurer();
    case INSURANCE_AMOUNT:
      return isSetInsuranceAmount();
    case DOB:
      return isSetDob();
    case GUARDIAN_NAME:
      return isSetGuardianName();
    case FREEBIE_ITEM_ID:
      return isSetFreebieItemId();
    case SOURCE:
      return isSetSource();
    case ADVANCE_AMOUNT:
      return isSetAdvanceAmount();
    case STORE_ID:
      return isSetStoreId();
    case PRODUCT_CONDITION:
      return isSetProductCondition();
    case DATA_PROTECTION_INSURER:
      return isSetDataProtectionInsurer();
    case DATA_PROTECTION_AMOUNT:
      return isSetDataProtectionAmount();
    case TAX_TYPE:
      return isSetTaxType();
    case LOGISTICS_TRANSACTION_ID:
      return isSetLogisticsTransactionId();
    case SHIPPING_COST:
      return isSetShippingCost();
    case COD_CHARGES:
      return isSetCodCharges();
    }
    throw new IllegalStateException();
  }

  @Override
  public boolean equals(Object that) {
    if (that == null)
      return false;
    if (that instanceof Order)
      return this.equals((Order)that);
    return false;
  }

  public boolean equals(Order 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_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_lineitems = true && this.isSetLineitems();
    boolean that_present_lineitems = true && that.isSetLineitems();
    if (this_present_lineitems || that_present_lineitems) {
      if (!(this_present_lineitems && that_present_lineitems))
        return false;
      if (!this.lineitems.equals(that.lineitems))
        return false;
    }

    boolean this_present_logistics_provider_id = true;
    boolean that_present_logistics_provider_id = true;
    if (this_present_logistics_provider_id || that_present_logistics_provider_id) {
      if (!(this_present_logistics_provider_id && that_present_logistics_provider_id))
        return false;
      if (this.logistics_provider_id != that.logistics_provider_id)
        return false;
    }

    boolean this_present_airwaybill_no = true && this.isSetAirwaybill_no();
    boolean that_present_airwaybill_no = true && that.isSetAirwaybill_no();
    if (this_present_airwaybill_no || that_present_airwaybill_no) {
      if (!(this_present_airwaybill_no && that_present_airwaybill_no))
        return false;
      if (!this.airwaybill_no.equals(that.airwaybill_no))
        return false;
    }

    boolean this_present_tracking_id = true && this.isSetTracking_id();
    boolean that_present_tracking_id = true && that.isSetTracking_id();
    if (this_present_tracking_id || that_present_tracking_id) {
      if (!(this_present_tracking_id && that_present_tracking_id))
        return false;
      if (!this.tracking_id.equals(that.tracking_id))
        return false;
    }

    boolean this_present_expected_delivery_time = true;
    boolean that_present_expected_delivery_time = true;
    if (this_present_expected_delivery_time || that_present_expected_delivery_time) {
      if (!(this_present_expected_delivery_time && that_present_expected_delivery_time))
        return false;
      if (this.expected_delivery_time != that.expected_delivery_time)
        return false;
    }

    boolean this_present_customer_id = true;
    boolean that_present_customer_id = true;
    if (this_present_customer_id || that_present_customer_id) {
      if (!(this_present_customer_id && that_present_customer_id))
        return false;
      if (this.customer_id != that.customer_id)
        return false;
    }

    boolean this_present_customer_name = true && this.isSetCustomer_name();
    boolean that_present_customer_name = true && that.isSetCustomer_name();
    if (this_present_customer_name || that_present_customer_name) {
      if (!(this_present_customer_name && that_present_customer_name))
        return false;
      if (!this.customer_name.equals(that.customer_name))
        return false;
    }

    boolean this_present_customer_mobilenumber = true && this.isSetCustomer_mobilenumber();
    boolean that_present_customer_mobilenumber = true && that.isSetCustomer_mobilenumber();
    if (this_present_customer_mobilenumber || that_present_customer_mobilenumber) {
      if (!(this_present_customer_mobilenumber && that_present_customer_mobilenumber))
        return false;
      if (!this.customer_mobilenumber.equals(that.customer_mobilenumber))
        return false;
    }

    boolean this_present_customer_pincode = true && this.isSetCustomer_pincode();
    boolean that_present_customer_pincode = true && that.isSetCustomer_pincode();
    if (this_present_customer_pincode || that_present_customer_pincode) {
      if (!(this_present_customer_pincode && that_present_customer_pincode))
        return false;
      if (!this.customer_pincode.equals(that.customer_pincode))
        return false;
    }

    boolean this_present_customer_address1 = true && this.isSetCustomer_address1();
    boolean that_present_customer_address1 = true && that.isSetCustomer_address1();
    if (this_present_customer_address1 || that_present_customer_address1) {
      if (!(this_present_customer_address1 && that_present_customer_address1))
        return false;
      if (!this.customer_address1.equals(that.customer_address1))
        return false;
    }

    boolean this_present_customer_address2 = true && this.isSetCustomer_address2();
    boolean that_present_customer_address2 = true && that.isSetCustomer_address2();
    if (this_present_customer_address2 || that_present_customer_address2) {
      if (!(this_present_customer_address2 && that_present_customer_address2))
        return false;
      if (!this.customer_address2.equals(that.customer_address2))
        return false;
    }

    boolean this_present_customer_email = true && this.isSetCustomer_email();
    boolean that_present_customer_email = true && that.isSetCustomer_email();
    if (this_present_customer_email || that_present_customer_email) {
      if (!(this_present_customer_email && that_present_customer_email))
        return false;
      if (!this.customer_email.equals(that.customer_email))
        return false;
    }

    boolean this_present_customer_city = true && this.isSetCustomer_city();
    boolean that_present_customer_city = true && that.isSetCustomer_city();
    if (this_present_customer_city || that_present_customer_city) {
      if (!(this_present_customer_city && that_present_customer_city))
        return false;
      if (!this.customer_city.equals(that.customer_city))
        return false;
    }

    boolean this_present_customer_state = true && this.isSetCustomer_state();
    boolean that_present_customer_state = true && that.isSetCustomer_state();
    if (this_present_customer_state || that_present_customer_state) {
      if (!(this_present_customer_state && that_present_customer_state))
        return false;
      if (!this.customer_state.equals(that.customer_state))
        return false;
    }

    boolean this_present_status = true && this.isSetStatus();
    boolean that_present_status = true && that.isSetStatus();
    if (this_present_status || that_present_status) {
      if (!(this_present_status && that_present_status))
        return false;
      if (!this.status.equals(that.status))
        return false;
    }

    boolean this_present_statusDescription = true && this.isSetStatusDescription();
    boolean that_present_statusDescription = true && that.isSetStatusDescription();
    if (this_present_statusDescription || that_present_statusDescription) {
      if (!(this_present_statusDescription && that_present_statusDescription))
        return false;
      if (!this.statusDescription.equals(that.statusDescription))
        return false;
    }

    boolean this_present_total_amount = true;
    boolean that_present_total_amount = true;
    if (this_present_total_amount || that_present_total_amount) {
      if (!(this_present_total_amount && that_present_total_amount))
        return false;
      if (this.total_amount != that.total_amount)
        return false;
    }

    boolean this_present_total_weight = true;
    boolean that_present_total_weight = true;
    if (this_present_total_weight || that_present_total_weight) {
      if (!(this_present_total_weight && that_present_total_weight))
        return false;
      if (this.total_weight != that.total_weight)
        return false;
    }

    boolean this_present_invoice_number = true && this.isSetInvoice_number();
    boolean that_present_invoice_number = true && that.isSetInvoice_number();
    if (this_present_invoice_number || that_present_invoice_number) {
      if (!(this_present_invoice_number && that_present_invoice_number))
        return false;
      if (!this.invoice_number.equals(that.invoice_number))
        return false;
    }

    boolean this_present_billed_by = true && this.isSetBilled_by();
    boolean that_present_billed_by = true && that.isSetBilled_by();
    if (this_present_billed_by || that_present_billed_by) {
      if (!(this_present_billed_by && that_present_billed_by))
        return false;
      if (!this.billed_by.equals(that.billed_by))
        return false;
    }

    boolean this_present_created_timestamp = true;
    boolean that_present_created_timestamp = true;
    if (this_present_created_timestamp || that_present_created_timestamp) {
      if (!(this_present_created_timestamp && that_present_created_timestamp))
        return false;
      if (this.created_timestamp != that.created_timestamp)
        return false;
    }

    boolean this_present_accepted_timestamp = true;
    boolean that_present_accepted_timestamp = true;
    if (this_present_accepted_timestamp || that_present_accepted_timestamp) {
      if (!(this_present_accepted_timestamp && that_present_accepted_timestamp))
        return false;
      if (this.accepted_timestamp != that.accepted_timestamp)
        return false;
    }

    boolean this_present_billing_timestamp = true;
    boolean that_present_billing_timestamp = true;
    if (this_present_billing_timestamp || that_present_billing_timestamp) {
      if (!(this_present_billing_timestamp && that_present_billing_timestamp))
        return false;
      if (this.billing_timestamp != that.billing_timestamp)
        return false;
    }

    boolean this_present_shipping_timestamp = true;
    boolean that_present_shipping_timestamp = true;
    if (this_present_shipping_timestamp || that_present_shipping_timestamp) {
      if (!(this_present_shipping_timestamp && that_present_shipping_timestamp))
        return false;
      if (this.shipping_timestamp != that.shipping_timestamp)
        return false;
    }

    boolean this_present_pickup_timestamp = true;
    boolean that_present_pickup_timestamp = true;
    if (this_present_pickup_timestamp || that_present_pickup_timestamp) {
      if (!(this_present_pickup_timestamp && that_present_pickup_timestamp))
        return false;
      if (this.pickup_timestamp != that.pickup_timestamp)
        return false;
    }

    boolean this_present_delivery_timestamp = true;
    boolean that_present_delivery_timestamp = true;
    if (this_present_delivery_timestamp || that_present_delivery_timestamp) {
      if (!(this_present_delivery_timestamp && that_present_delivery_timestamp))
        return false;
      if (this.delivery_timestamp != that.delivery_timestamp)
        return false;
    }

    boolean this_present_outofstock_timestamp = true;
    boolean that_present_outofstock_timestamp = true;
    if (this_present_outofstock_timestamp || that_present_outofstock_timestamp) {
      if (!(this_present_outofstock_timestamp && that_present_outofstock_timestamp))
        return false;
      if (this.outofstock_timestamp != that.outofstock_timestamp)
        return false;
    }

    boolean this_present_jacket_number = true;
    boolean that_present_jacket_number = true;
    if (this_present_jacket_number || that_present_jacket_number) {
      if (!(this_present_jacket_number && that_present_jacket_number))
        return false;
      if (this.jacket_number != that.jacket_number)
        return false;
    }

    boolean this_present_receiver = true && this.isSetReceiver();
    boolean that_present_receiver = true && that.isSetReceiver();
    if (this_present_receiver || that_present_receiver) {
      if (!(this_present_receiver && that_present_receiver))
        return false;
      if (!this.receiver.equals(that.receiver))
        return false;
    }

    boolean this_present_batchNo = true;
    boolean that_present_batchNo = true;
    if (this_present_batchNo || that_present_batchNo) {
      if (!(this_present_batchNo && that_present_batchNo))
        return false;
      if (this.batchNo != that.batchNo)
        return false;
    }

    boolean this_present_serialNo = true;
    boolean that_present_serialNo = true;
    if (this_present_serialNo || that_present_serialNo) {
      if (!(this_present_serialNo && that_present_serialNo))
        return false;
      if (this.serialNo != that.serialNo)
        return false;
    }

    boolean this_present_doaFlag = true;
    boolean that_present_doaFlag = true;
    if (this_present_doaFlag || that_present_doaFlag) {
      if (!(this_present_doaFlag && that_present_doaFlag))
        return false;
      if (this.doaFlag != that.doaFlag)
        return false;
    }

    boolean this_present_pickupRequestNo = true && this.isSetPickupRequestNo();
    boolean that_present_pickupRequestNo = true && that.isSetPickupRequestNo();
    if (this_present_pickupRequestNo || that_present_pickupRequestNo) {
      if (!(this_present_pickupRequestNo && that_present_pickupRequestNo))
        return false;
      if (!this.pickupRequestNo.equals(that.pickupRequestNo))
        return false;
    }

    boolean this_present_transactionId = true;
    boolean that_present_transactionId = true;
    if (this_present_transactionId || that_present_transactionId) {
      if (!(this_present_transactionId && that_present_transactionId))
        return false;
      if (this.transactionId != that.transactionId)
        return false;
    }

    boolean this_present_purchaseOrderNo = true && this.isSetPurchaseOrderNo();
    boolean that_present_purchaseOrderNo = true && that.isSetPurchaseOrderNo();
    if (this_present_purchaseOrderNo || that_present_purchaseOrderNo) {
      if (!(this_present_purchaseOrderNo && that_present_purchaseOrderNo))
        return false;
      if (!this.purchaseOrderNo.equals(that.purchaseOrderNo))
        return false;
    }

    boolean this_present_cod = true;
    boolean that_present_cod = true;
    if (this_present_cod || that_present_cod) {
      if (!(this_present_cod && that_present_cod))
        return false;
      if (this.cod != that.cod)
        return false;
    }

    boolean this_present_delayReason = true && this.isSetDelayReason();
    boolean that_present_delayReason = true && that.isSetDelayReason();
    if (this_present_delayReason || that_present_delayReason) {
      if (!(this_present_delayReason && that_present_delayReason))
        return false;
      if (!this.delayReason.equals(that.delayReason))
        return false;
    }

    boolean this_present_promised_delivery_time = true;
    boolean that_present_promised_delivery_time = true;
    if (this_present_promised_delivery_time || that_present_promised_delivery_time) {
      if (!(this_present_promised_delivery_time && that_present_promised_delivery_time))
        return false;
      if (this.promised_delivery_time != that.promised_delivery_time)
        return false;
    }

    boolean this_present_expected_shipping_time = true;
    boolean that_present_expected_shipping_time = true;
    if (this_present_expected_shipping_time || that_present_expected_shipping_time) {
      if (!(this_present_expected_shipping_time && that_present_expected_shipping_time))
        return false;
      if (this.expected_shipping_time != that.expected_shipping_time)
        return false;
    }

    boolean this_present_verification_timestamp = true;
    boolean that_present_verification_timestamp = true;
    if (this_present_verification_timestamp || that_present_verification_timestamp) {
      if (!(this_present_verification_timestamp && that_present_verification_timestamp))
        return false;
      if (this.verification_timestamp != that.verification_timestamp)
        return false;
    }

    boolean this_present_promised_shipping_time = true;
    boolean that_present_promised_shipping_time = true;
    if (this_present_promised_shipping_time || that_present_promised_shipping_time) {
      if (!(this_present_promised_shipping_time && that_present_promised_shipping_time))
        return false;
      if (this.promised_shipping_time != that.promised_shipping_time)
        return false;
    }

    boolean this_present_reship_timestamp = true && this.isSetReship_timestamp();
    boolean that_present_reship_timestamp = true && that.isSetReship_timestamp();
    if (this_present_reship_timestamp || that_present_reship_timestamp) {
      if (!(this_present_reship_timestamp && that_present_reship_timestamp))
        return false;
      if (this.reship_timestamp != that.reship_timestamp)
        return false;
    }

    boolean this_present_refund_timestamp = true && this.isSetRefund_timestamp();
    boolean that_present_refund_timestamp = true && that.isSetRefund_timestamp();
    if (this_present_refund_timestamp || that_present_refund_timestamp) {
      if (!(this_present_refund_timestamp && that_present_refund_timestamp))
        return false;
      if (this.refund_timestamp != that.refund_timestamp)
        return false;
    }

    boolean this_present_new_order_id = true && this.isSetNew_order_id();
    boolean that_present_new_order_id = true && that.isSetNew_order_id();
    if (this_present_new_order_id || that_present_new_order_id) {
      if (!(this_present_new_order_id && that_present_new_order_id))
        return false;
      if (this.new_order_id != that.new_order_id)
        return false;
    }

    boolean this_present_previousStatus = true && this.isSetPreviousStatus();
    boolean that_present_previousStatus = true && that.isSetPreviousStatus();
    if (this_present_previousStatus || that_present_previousStatus) {
      if (!(this_present_previousStatus && that_present_previousStatus))
        return false;
      if (!this.previousStatus.equals(that.previousStatus))
        return false;
    }

    boolean this_present_vendorId = true;
    boolean that_present_vendorId = true;
    if (this_present_vendorId || that_present_vendorId) {
      if (!(this_present_vendorId && that_present_vendorId))
        return false;
      if (this.vendorId != that.vendorId)
        return false;
    }

    boolean this_present_doa_auth_timestamp = true && this.isSetDoa_auth_timestamp();
    boolean that_present_doa_auth_timestamp = true && that.isSetDoa_auth_timestamp();
    if (this_present_doa_auth_timestamp || that_present_doa_auth_timestamp) {
      if (!(this_present_doa_auth_timestamp && that_present_doa_auth_timestamp))
        return false;
      if (this.doa_auth_timestamp != that.doa_auth_timestamp)
        return false;
    }

    boolean this_present_delayReasonText = true && this.isSetDelayReasonText();
    boolean that_present_delayReasonText = true && that.isSetDelayReasonText();
    if (this_present_delayReasonText || that_present_delayReasonText) {
      if (!(this_present_delayReasonText && that_present_delayReasonText))
        return false;
      if (!this.delayReasonText.equals(that.delayReasonText))
        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_purchaseOrderId = true;
    boolean that_present_purchaseOrderId = true;
    if (this_present_purchaseOrderId || that_present_purchaseOrderId) {
      if (!(this_present_purchaseOrderId && that_present_purchaseOrderId))
        return false;
      if (this.purchaseOrderId != that.purchaseOrderId)
        return false;
    }

    boolean this_present_doa_logistics_provider_id = true && this.isSetDoa_logistics_provider_id();
    boolean that_present_doa_logistics_provider_id = true && that.isSetDoa_logistics_provider_id();
    if (this_present_doa_logistics_provider_id || that_present_doa_logistics_provider_id) {
      if (!(this_present_doa_logistics_provider_id && that_present_doa_logistics_provider_id))
        return false;
      if (this.doa_logistics_provider_id != that.doa_logistics_provider_id)
        return false;
    }

    boolean this_present_originalOrderId = true;
    boolean that_present_originalOrderId = true;
    if (this_present_originalOrderId || that_present_originalOrderId) {
      if (!(this_present_originalOrderId && that_present_originalOrderId))
        return false;
      if (this.originalOrderId != that.originalOrderId)
        return false;
    }

    boolean this_present_fulfilmentWarehouseId = true;
    boolean that_present_fulfilmentWarehouseId = true;
    if (this_present_fulfilmentWarehouseId || that_present_fulfilmentWarehouseId) {
      if (!(this_present_fulfilmentWarehouseId && that_present_fulfilmentWarehouseId))
        return false;
      if (this.fulfilmentWarehouseId != that.fulfilmentWarehouseId)
        return false;
    }

    boolean this_present_vendorPaid = true;
    boolean that_present_vendorPaid = true;
    if (this_present_vendorPaid || that_present_vendorPaid) {
      if (!(this_present_vendorPaid && that_present_vendorPaid))
        return false;
      if (this.vendorPaid != that.vendorPaid)
        return false;
    }

    boolean this_present_received_return_timestamp = true && this.isSetReceived_return_timestamp();
    boolean that_present_received_return_timestamp = true && that.isSetReceived_return_timestamp();
    if (this_present_received_return_timestamp || that_present_received_return_timestamp) {
      if (!(this_present_received_return_timestamp && that_present_received_return_timestamp))
        return false;
      if (this.received_return_timestamp != that.received_return_timestamp)
        return false;
    }

    boolean this_present_first_attempt_timestamp = true && this.isSetFirst_attempt_timestamp();
    boolean that_present_first_attempt_timestamp = true && that.isSetFirst_attempt_timestamp();
    if (this_present_first_attempt_timestamp || that_present_first_attempt_timestamp) {
      if (!(this_present_first_attempt_timestamp && that_present_first_attempt_timestamp))
        return false;
      if (this.first_attempt_timestamp != that.first_attempt_timestamp)
        return false;
    }

    boolean this_present_orderType = true && this.isSetOrderType();
    boolean that_present_orderType = true && that.isSetOrderType();
    if (this_present_orderType || that_present_orderType) {
      if (!(this_present_orderType && that_present_orderType))
        return false;
      if (!this.orderType.equals(that.orderType))
        return false;
    }

    boolean this_present_pickupStoreId = true;
    boolean that_present_pickupStoreId = true;
    if (this_present_pickupStoreId || that_present_pickupStoreId) {
      if (!(this_present_pickupStoreId && that_present_pickupStoreId))
        return false;
      if (this.pickupStoreId != that.pickupStoreId)
        return false;
    }

    boolean this_present_logisticsCod = true;
    boolean that_present_logisticsCod = true;
    if (this_present_logisticsCod || that_present_logisticsCod) {
      if (!(this_present_logisticsCod && that_present_logisticsCod))
        return false;
      if (this.logisticsCod != that.logisticsCod)
        return false;
    }

    boolean this_present_gvAmount = true;
    boolean that_present_gvAmount = true;
    if (this_present_gvAmount || that_present_gvAmount) {
      if (!(this_present_gvAmount && that_present_gvAmount))
        return false;
      if (this.gvAmount != that.gvAmount)
        return false;
    }

    boolean this_present_otg = true;
    boolean that_present_otg = true;
    if (this_present_otg || that_present_otg) {
      if (!(this_present_otg && that_present_otg))
        return false;
      if (this.otg != that.otg)
        return false;
    }

    boolean this_present_courier_delivery_time = true;
    boolean that_present_courier_delivery_time = true;
    if (this_present_courier_delivery_time || that_present_courier_delivery_time) {
      if (!(this_present_courier_delivery_time && that_present_courier_delivery_time))
        return false;
      if (this.courier_delivery_time != that.courier_delivery_time)
        return false;
    }

    boolean this_present_insurer = true;
    boolean that_present_insurer = true;
    if (this_present_insurer || that_present_insurer) {
      if (!(this_present_insurer && that_present_insurer))
        return false;
      if (this.insurer != that.insurer)
        return false;
    }

    boolean this_present_insuranceAmount = true;
    boolean that_present_insuranceAmount = true;
    if (this_present_insuranceAmount || that_present_insuranceAmount) {
      if (!(this_present_insuranceAmount && that_present_insuranceAmount))
        return false;
      if (this.insuranceAmount != that.insuranceAmount)
        return false;
    }

    boolean this_present_dob = true && this.isSetDob();
    boolean that_present_dob = true && that.isSetDob();
    if (this_present_dob || that_present_dob) {
      if (!(this_present_dob && that_present_dob))
        return false;
      if (!this.dob.equals(that.dob))
        return false;
    }

    boolean this_present_guardianName = true && this.isSetGuardianName();
    boolean that_present_guardianName = true && that.isSetGuardianName();
    if (this_present_guardianName || that_present_guardianName) {
      if (!(this_present_guardianName && that_present_guardianName))
        return false;
      if (!this.guardianName.equals(that.guardianName))
        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_source = true;
    boolean that_present_source = true;
    if (this_present_source || that_present_source) {
      if (!(this_present_source && that_present_source))
        return false;
      if (this.source != that.source)
        return false;
    }

    boolean this_present_advanceAmount = true;
    boolean that_present_advanceAmount = true;
    if (this_present_advanceAmount || that_present_advanceAmount) {
      if (!(this_present_advanceAmount && that_present_advanceAmount))
        return false;
      if (this.advanceAmount != that.advanceAmount)
        return false;
    }

    boolean this_present_storeId = true;
    boolean that_present_storeId = true;
    if (this_present_storeId || that_present_storeId) {
      if (!(this_present_storeId && that_present_storeId))
        return false;
      if (this.storeId != that.storeId)
        return false;
    }

    boolean this_present_productCondition = true && this.isSetProductCondition();
    boolean that_present_productCondition = true && that.isSetProductCondition();
    if (this_present_productCondition || that_present_productCondition) {
      if (!(this_present_productCondition && that_present_productCondition))
        return false;
      if (!this.productCondition.equals(that.productCondition))
        return false;
    }

    boolean this_present_dataProtectionInsurer = true;
    boolean that_present_dataProtectionInsurer = true;
    if (this_present_dataProtectionInsurer || that_present_dataProtectionInsurer) {
      if (!(this_present_dataProtectionInsurer && that_present_dataProtectionInsurer))
        return false;
      if (this.dataProtectionInsurer != that.dataProtectionInsurer)
        return false;
    }

    boolean this_present_dataProtectionAmount = true;
    boolean that_present_dataProtectionAmount = true;
    if (this_present_dataProtectionAmount || that_present_dataProtectionAmount) {
      if (!(this_present_dataProtectionAmount && that_present_dataProtectionAmount))
        return false;
      if (this.dataProtectionAmount != that.dataProtectionAmount)
        return false;
    }

    boolean this_present_taxType = true && this.isSetTaxType();
    boolean that_present_taxType = true && that.isSetTaxType();
    if (this_present_taxType || that_present_taxType) {
      if (!(this_present_taxType && that_present_taxType))
        return false;
      if (!this.taxType.equals(that.taxType))
        return false;
    }

    boolean this_present_logisticsTransactionId = true && this.isSetLogisticsTransactionId();
    boolean that_present_logisticsTransactionId = true && that.isSetLogisticsTransactionId();
    if (this_present_logisticsTransactionId || that_present_logisticsTransactionId) {
      if (!(this_present_logisticsTransactionId && that_present_logisticsTransactionId))
        return false;
      if (!this.logisticsTransactionId.equals(that.logisticsTransactionId))
        return false;
    }

    boolean this_present_shippingCost = true;
    boolean that_present_shippingCost = true;
    if (this_present_shippingCost || that_present_shippingCost) {
      if (!(this_present_shippingCost && that_present_shippingCost))
        return false;
      if (this.shippingCost != that.shippingCost)
        return false;
    }

    boolean this_present_codCharges = true;
    boolean that_present_codCharges = true;
    if (this_present_codCharges || that_present_codCharges) {
      if (!(this_present_codCharges && that_present_codCharges))
        return false;
      if (this.codCharges != that.codCharges)
        return false;
    }

    return true;
  }

  @Override
  public int hashCode() {
    return 0;
  }

  public int compareTo(Order other) {
    if (!getClass().equals(other.getClass())) {
      return getClass().getName().compareTo(other.getClass().getName());
    }

    int lastComparison = 0;
    Order typedOther = (Order)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(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(isSetLineitems()).compareTo(typedOther.isSetLineitems());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLineitems()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lineitems, typedOther.lineitems);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLogistics_provider_id()).compareTo(typedOther.isSetLogistics_provider_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLogistics_provider_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logistics_provider_id, typedOther.logistics_provider_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAirwaybill_no()).compareTo(typedOther.isSetAirwaybill_no());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAirwaybill_no()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.airwaybill_no, typedOther.airwaybill_no);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTracking_id()).compareTo(typedOther.isSetTracking_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTracking_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tracking_id, typedOther.tracking_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetExpected_delivery_time()).compareTo(typedOther.isSetExpected_delivery_time());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetExpected_delivery_time()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected_delivery_time, typedOther.expected_delivery_time);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_id()).compareTo(typedOther.isSetCustomer_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_id, typedOther.customer_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_name()).compareTo(typedOther.isSetCustomer_name());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_name()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_name, typedOther.customer_name);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_mobilenumber()).compareTo(typedOther.isSetCustomer_mobilenumber());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_mobilenumber()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_mobilenumber, typedOther.customer_mobilenumber);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_pincode()).compareTo(typedOther.isSetCustomer_pincode());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_pincode()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_pincode, typedOther.customer_pincode);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_address1()).compareTo(typedOther.isSetCustomer_address1());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_address1()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_address1, typedOther.customer_address1);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_address2()).compareTo(typedOther.isSetCustomer_address2());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_address2()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_address2, typedOther.customer_address2);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_email()).compareTo(typedOther.isSetCustomer_email());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_email()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_email, typedOther.customer_email);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_city()).compareTo(typedOther.isSetCustomer_city());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_city()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_city, typedOther.customer_city);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCustomer_state()).compareTo(typedOther.isSetCustomer_state());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCustomer_state()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.customer_state, typedOther.customer_state);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetStatusDescription()).compareTo(typedOther.isSetStatusDescription());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStatusDescription()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.statusDescription, typedOther.statusDescription);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotal_amount()).compareTo(typedOther.isSetTotal_amount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotal_amount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_amount, typedOther.total_amount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTotal_weight()).compareTo(typedOther.isSetTotal_weight());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTotal_weight()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.total_weight, typedOther.total_weight);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetInvoice_number()).compareTo(typedOther.isSetInvoice_number());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetInvoice_number()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.invoice_number, typedOther.invoice_number);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetBilled_by()).compareTo(typedOther.isSetBilled_by());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetBilled_by()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billed_by, typedOther.billed_by);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCreated_timestamp()).compareTo(typedOther.isSetCreated_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCreated_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.created_timestamp, typedOther.created_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAccepted_timestamp()).compareTo(typedOther.isSetAccepted_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAccepted_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.accepted_timestamp, typedOther.accepted_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetBilling_timestamp()).compareTo(typedOther.isSetBilling_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetBilling_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.billing_timestamp, typedOther.billing_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetShipping_timestamp()).compareTo(typedOther.isSetShipping_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetShipping_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shipping_timestamp, typedOther.shipping_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPickup_timestamp()).compareTo(typedOther.isSetPickup_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPickup_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickup_timestamp, typedOther.pickup_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDelivery_timestamp()).compareTo(typedOther.isSetDelivery_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDelivery_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivery_timestamp, typedOther.delivery_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOutofstock_timestamp()).compareTo(typedOther.isSetOutofstock_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOutofstock_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.outofstock_timestamp, typedOther.outofstock_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetJacket_number()).compareTo(typedOther.isSetJacket_number());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetJacket_number()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.jacket_number, typedOther.jacket_number);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetReceiver()).compareTo(typedOther.isSetReceiver());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReceiver()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.receiver, typedOther.receiver);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetBatchNo()).compareTo(typedOther.isSetBatchNo());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetBatchNo()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.batchNo, typedOther.batchNo);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetSerialNo()).compareTo(typedOther.isSetSerialNo());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSerialNo()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.serialNo, typedOther.serialNo);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDoaFlag()).compareTo(typedOther.isSetDoaFlag());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDoaFlag()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doaFlag, typedOther.doaFlag);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPickupRequestNo()).compareTo(typedOther.isSetPickupRequestNo());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPickupRequestNo()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupRequestNo, typedOther.pickupRequestNo);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTransactionId()).compareTo(typedOther.isSetTransactionId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTransactionId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.transactionId, typedOther.transactionId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPurchaseOrderNo()).compareTo(typedOther.isSetPurchaseOrderNo());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPurchaseOrderNo()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderNo, typedOther.purchaseOrderNo);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCod()).compareTo(typedOther.isSetCod());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCod()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cod, typedOther.cod);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDelayReason()).compareTo(typedOther.isSetDelayReason());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDelayReason()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReason, typedOther.delayReason);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPromised_delivery_time()).compareTo(typedOther.isSetPromised_delivery_time());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPromised_delivery_time()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promised_delivery_time, typedOther.promised_delivery_time);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetExpected_shipping_time()).compareTo(typedOther.isSetExpected_shipping_time());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetExpected_shipping_time()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.expected_shipping_time, typedOther.expected_shipping_time);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetVerification_timestamp()).compareTo(typedOther.isSetVerification_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetVerification_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.verification_timestamp, typedOther.verification_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPromised_shipping_time()).compareTo(typedOther.isSetPromised_shipping_time());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPromised_shipping_time()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.promised_shipping_time, typedOther.promised_shipping_time);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetReship_timestamp()).compareTo(typedOther.isSetReship_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReship_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.reship_timestamp, typedOther.reship_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetRefund_timestamp()).compareTo(typedOther.isSetRefund_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetRefund_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.refund_timestamp, typedOther.refund_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetNew_order_id()).compareTo(typedOther.isSetNew_order_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetNew_order_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.new_order_id, typedOther.new_order_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPreviousStatus()).compareTo(typedOther.isSetPreviousStatus());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPreviousStatus()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.previousStatus, typedOther.previousStatus);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetVendorId()).compareTo(typedOther.isSetVendorId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetVendorId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorId, typedOther.vendorId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDoa_auth_timestamp()).compareTo(typedOther.isSetDoa_auth_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDoa_auth_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doa_auth_timestamp, typedOther.doa_auth_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDelayReasonText()).compareTo(typedOther.isSetDelayReasonText());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDelayReasonText()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delayReasonText, typedOther.delayReasonText);
      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(isSetPurchaseOrderId()).compareTo(typedOther.isSetPurchaseOrderId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPurchaseOrderId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.purchaseOrderId, typedOther.purchaseOrderId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDoa_logistics_provider_id()).compareTo(typedOther.isSetDoa_logistics_provider_id());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDoa_logistics_provider_id()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.doa_logistics_provider_id, typedOther.doa_logistics_provider_id);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOriginalOrderId()).compareTo(typedOther.isSetOriginalOrderId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOriginalOrderId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.originalOrderId, typedOther.originalOrderId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetFulfilmentWarehouseId()).compareTo(typedOther.isSetFulfilmentWarehouseId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFulfilmentWarehouseId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fulfilmentWarehouseId, typedOther.fulfilmentWarehouseId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetVendorPaid()).compareTo(typedOther.isSetVendorPaid());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetVendorPaid()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.vendorPaid, typedOther.vendorPaid);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetReceived_return_timestamp()).compareTo(typedOther.isSetReceived_return_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetReceived_return_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.received_return_timestamp, typedOther.received_return_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetFirst_attempt_timestamp()).compareTo(typedOther.isSetFirst_attempt_timestamp());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetFirst_attempt_timestamp()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.first_attempt_timestamp, typedOther.first_attempt_timestamp);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOrderType()).compareTo(typedOther.isSetOrderType());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOrderType()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderType, typedOther.orderType);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetPickupStoreId()).compareTo(typedOther.isSetPickupStoreId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetPickupStoreId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pickupStoreId, typedOther.pickupStoreId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLogisticsCod()).compareTo(typedOther.isSetLogisticsCod());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLogisticsCod()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsCod, typedOther.logisticsCod);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetGvAmount()).compareTo(typedOther.isSetGvAmount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetGvAmount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gvAmount, typedOther.gvAmount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetOtg()).compareTo(typedOther.isSetOtg());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetOtg()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.otg, typedOther.otg);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCourier_delivery_time()).compareTo(typedOther.isSetCourier_delivery_time());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCourier_delivery_time()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.courier_delivery_time, typedOther.courier_delivery_time);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetInsurer()).compareTo(typedOther.isSetInsurer());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetInsurer()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insurer, typedOther.insurer);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetInsuranceAmount()).compareTo(typedOther.isSetInsuranceAmount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetInsuranceAmount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.insuranceAmount, typedOther.insuranceAmount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDob()).compareTo(typedOther.isSetDob());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDob()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dob, typedOther.dob);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetGuardianName()).compareTo(typedOther.isSetGuardianName());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetGuardianName()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.guardianName, typedOther.guardianName);
      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(isSetSource()).compareTo(typedOther.isSetSource());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetSource()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetAdvanceAmount()).compareTo(typedOther.isSetAdvanceAmount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetAdvanceAmount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.advanceAmount, typedOther.advanceAmount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetStoreId()).compareTo(typedOther.isSetStoreId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetStoreId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.storeId, typedOther.storeId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetProductCondition()).compareTo(typedOther.isSetProductCondition());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetProductCondition()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.productCondition, typedOther.productCondition);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDataProtectionInsurer()).compareTo(typedOther.isSetDataProtectionInsurer());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDataProtectionInsurer()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionInsurer, typedOther.dataProtectionInsurer);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetDataProtectionAmount()).compareTo(typedOther.isSetDataProtectionAmount());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetDataProtectionAmount()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dataProtectionAmount, typedOther.dataProtectionAmount);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetTaxType()).compareTo(typedOther.isSetTaxType());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetTaxType()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxType, typedOther.taxType);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetLogisticsTransactionId()).compareTo(typedOther.isSetLogisticsTransactionId());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetLogisticsTransactionId()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTransactionId, typedOther.logisticsTransactionId);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetShippingCost()).compareTo(typedOther.isSetShippingCost());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetShippingCost()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.shippingCost, typedOther.shippingCost);
      if (lastComparison != 0) {
        return lastComparison;
      }
    }
    lastComparison = Boolean.valueOf(isSetCodCharges()).compareTo(typedOther.isSetCodCharges());
    if (lastComparison != 0) {
      return lastComparison;
    }
    if (isSetCodCharges()) {
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.codCharges, typedOther.codCharges);
      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: // ID
          if (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: // WAREHOUSE_ID
          if (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 3: // LINEITEMS
          if (field.type == org.apache.thrift.protocol.TType.LIST) {
            {
              org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
              this.lineitems = new ArrayList<LineItem>(_list0.size);
              for (int _i1 = 0; _i1 < _list0.size; ++_i1)
              {
                LineItem _elem2; // required
                _elem2 = new LineItem();
                _elem2.read(iprot);
                this.lineitems.add(_elem2);
              }
              iprot.readListEnd();
            }
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 4: // LOGISTICS_PROVIDER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.logistics_provider_id = iprot.readI64();
            setLogistics_provider_idIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 5: // AIRWAYBILL_NO
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.airwaybill_no = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 6: // TRACKING_ID
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.tracking_id = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 7: // EXPECTED_DELIVERY_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.expected_delivery_time = iprot.readI64();
            setExpected_delivery_timeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 8: // CUSTOMER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.customer_id = iprot.readI64();
            setCustomer_idIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 9: // CUSTOMER_NAME
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_name = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 10: // CUSTOMER_MOBILENUMBER
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_mobilenumber = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 11: // CUSTOMER_PINCODE
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_pincode = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 12: // CUSTOMER_ADDRESS1
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_address1 = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 13: // CUSTOMER_ADDRESS2
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_address2 = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 14: // CUSTOMER_EMAIL
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_email = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 15: // CUSTOMER_CITY
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_city = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 16: // CUSTOMER_STATE
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.customer_state = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 17: // STATUS
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.status = OrderStatus.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 18: // STATUS_DESCRIPTION
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.statusDescription = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 19: // TOTAL_AMOUNT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.total_amount = iprot.readDouble();
            setTotal_amountIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 20: // TOTAL_WEIGHT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.total_weight = iprot.readDouble();
            setTotal_weightIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 21: // INVOICE_NUMBER
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.invoice_number = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 22: // BILLED_BY
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.billed_by = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 23: // CREATED_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.created_timestamp = iprot.readI64();
            setCreated_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 24: // ACCEPTED_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.accepted_timestamp = iprot.readI64();
            setAccepted_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 25: // BILLING_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.billing_timestamp = iprot.readI64();
            setBilling_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 26: // SHIPPING_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.shipping_timestamp = iprot.readI64();
            setShipping_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 27: // PICKUP_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.pickup_timestamp = iprot.readI64();
            setPickup_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 28: // DELIVERY_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.delivery_timestamp = iprot.readI64();
            setDelivery_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 29: // OUTOFSTOCK_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.outofstock_timestamp = iprot.readI64();
            setOutofstock_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 30: // JACKET_NUMBER
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.jacket_number = iprot.readI64();
            setJacket_numberIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 31: // RECEIVER
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.receiver = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 32: // BATCH_NO
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.batchNo = iprot.readI64();
            setBatchNoIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 33: // SERIAL_NO
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.serialNo = iprot.readI64();
            setSerialNoIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 34: // DOA_FLAG
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.doaFlag = iprot.readBool();
            setDoaFlagIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 35: // PICKUP_REQUEST_NO
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.pickupRequestNo = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 36: // TRANSACTION_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.transactionId = iprot.readI64();
            setTransactionIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 37: // PURCHASE_ORDER_NO
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.purchaseOrderNo = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 38: // COD
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.cod = iprot.readBool();
            setCodIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 39: // DELAY_REASON
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.delayReason = DelayReason.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 40: // PROMISED_DELIVERY_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.promised_delivery_time = iprot.readI64();
            setPromised_delivery_timeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 41: // EXPECTED_SHIPPING_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.expected_shipping_time = iprot.readI64();
            setExpected_shipping_timeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 42: // VERIFICATION_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.verification_timestamp = iprot.readI64();
            setVerification_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 43: // PROMISED_SHIPPING_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.promised_shipping_time = iprot.readI64();
            setPromised_shipping_timeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 44: // RESHIP_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.reship_timestamp = iprot.readI64();
            setReship_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 45: // REFUND_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.refund_timestamp = iprot.readI64();
            setRefund_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 46: // NEW_ORDER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.new_order_id = iprot.readI64();
            setNew_order_idIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 47: // PREVIOUS_STATUS
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.previousStatus = OrderStatus.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 48: // VENDOR_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.vendorId = iprot.readI64();
            setVendorIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 49: // DOA_AUTH_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.doa_auth_timestamp = iprot.readI64();
            setDoa_auth_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 50: // DELAY_REASON_TEXT
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.delayReasonText = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 51: // REFUND_REASON
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.refundReason = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 52: // PURCHASE_ORDER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.purchaseOrderId = iprot.readI64();
            setPurchaseOrderIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 53: // DOA_LOGISTICS_PROVIDER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.doa_logistics_provider_id = iprot.readI64();
            setDoa_logistics_provider_idIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 54: // ORIGINAL_ORDER_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.originalOrderId = iprot.readI64();
            setOriginalOrderIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 55: // FULFILMENT_WAREHOUSE_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.fulfilmentWarehouseId = iprot.readI64();
            setFulfilmentWarehouseIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 56: // VENDOR_PAID
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.vendorPaid = iprot.readBool();
            setVendorPaidIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 57: // RECEIVED_RETURN_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.received_return_timestamp = iprot.readI64();
            setReceived_return_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 58: // FIRST_ATTEMPT_TIMESTAMP
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.first_attempt_timestamp = iprot.readI64();
            setFirst_attempt_timestampIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 59: // ORDER_TYPE
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.orderType = OrderType.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 60: // PICKUP_STORE_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.pickupStoreId = iprot.readI64();
            setPickupStoreIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 61: // LOGISTICS_COD
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.logisticsCod = iprot.readBool();
            setLogisticsCodIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 62: // GV_AMOUNT
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.gvAmount = iprot.readI64();
            setGvAmountIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 63: // OTG
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
            this.otg = iprot.readBool();
            setOtgIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 64: // COURIER_DELIVERY_TIME
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.courier_delivery_time = iprot.readI64();
            setCourier_delivery_timeIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 65: // INSURER
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.insurer = iprot.readI64();
            setInsurerIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 66: // INSURANCE_AMOUNT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.insuranceAmount = iprot.readDouble();
            setInsuranceAmountIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 67: // DOB
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.dob = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 68: // GUARDIAN_NAME
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.guardianName = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 69: // FREEBIE_ITEM_ID
          if (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 70: // SOURCE
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.source = iprot.readI64();
            setSourceIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 71: // ADVANCE_AMOUNT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.advanceAmount = iprot.readDouble();
            setAdvanceAmountIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 72: // STORE_ID
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.storeId = iprot.readI64();
            setStoreIdIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 73: // PRODUCT_CONDITION
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.productCondition = ProductCondition.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 74: // DATA_PROTECTION_INSURER
          if (field.type == org.apache.thrift.protocol.TType.I64) {
            this.dataProtectionInsurer = iprot.readI64();
            setDataProtectionInsurerIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 75: // DATA_PROTECTION_AMOUNT
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.dataProtectionAmount = iprot.readDouble();
            setDataProtectionAmountIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 76: // TAX_TYPE
          if (field.type == org.apache.thrift.protocol.TType.I32) {
            this.taxType = TaxType.findByValue(iprot.readI32());
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 77: // LOGISTICS_TRANSACTION_ID
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
            this.logisticsTransactionId = iprot.readString();
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 78: // SHIPPING_COST
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.shippingCost = iprot.readDouble();
            setShippingCostIsSet(true);
          } else { 
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
          }
          break;
        case 79: // COD_CHARGES
          if (field.type == org.apache.thrift.protocol.TType.DOUBLE) {
            this.codCharges = iprot.readDouble();
            setCodChargesIsSet(true);
          } 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(WAREHOUSE_ID_FIELD_DESC);
    oprot.writeI64(this.warehouse_id);
    oprot.writeFieldEnd();
    if (this.lineitems != null) {
      oprot.writeFieldBegin(LINEITEMS_FIELD_DESC);
      {
        oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.lineitems.size()));
        for (LineItem _iter3 : this.lineitems)
        {
          _iter3.write(oprot);
        }
        oprot.writeListEnd();
      }
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(LOGISTICS_PROVIDER_ID_FIELD_DESC);
    oprot.writeI64(this.logistics_provider_id);
    oprot.writeFieldEnd();
    if (this.airwaybill_no != null) {
      oprot.writeFieldBegin(AIRWAYBILL_NO_FIELD_DESC);
      oprot.writeString(this.airwaybill_no);
      oprot.writeFieldEnd();
    }
    if (this.tracking_id != null) {
      oprot.writeFieldBegin(TRACKING_ID_FIELD_DESC);
      oprot.writeString(this.tracking_id);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(EXPECTED_DELIVERY_TIME_FIELD_DESC);
    oprot.writeI64(this.expected_delivery_time);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(CUSTOMER_ID_FIELD_DESC);
    oprot.writeI64(this.customer_id);
    oprot.writeFieldEnd();
    if (this.customer_name != null) {
      oprot.writeFieldBegin(CUSTOMER_NAME_FIELD_DESC);
      oprot.writeString(this.customer_name);
      oprot.writeFieldEnd();
    }
    if (this.customer_mobilenumber != null) {
      oprot.writeFieldBegin(CUSTOMER_MOBILENUMBER_FIELD_DESC);
      oprot.writeString(this.customer_mobilenumber);
      oprot.writeFieldEnd();
    }
    if (this.customer_pincode != null) {
      oprot.writeFieldBegin(CUSTOMER_PINCODE_FIELD_DESC);
      oprot.writeString(this.customer_pincode);
      oprot.writeFieldEnd();
    }
    if (this.customer_address1 != null) {
      oprot.writeFieldBegin(CUSTOMER_ADDRESS1_FIELD_DESC);
      oprot.writeString(this.customer_address1);
      oprot.writeFieldEnd();
    }
    if (this.customer_address2 != null) {
      oprot.writeFieldBegin(CUSTOMER_ADDRESS2_FIELD_DESC);
      oprot.writeString(this.customer_address2);
      oprot.writeFieldEnd();
    }
    if (this.customer_email != null) {
      oprot.writeFieldBegin(CUSTOMER_EMAIL_FIELD_DESC);
      oprot.writeString(this.customer_email);
      oprot.writeFieldEnd();
    }
    if (this.customer_city != null) {
      oprot.writeFieldBegin(CUSTOMER_CITY_FIELD_DESC);
      oprot.writeString(this.customer_city);
      oprot.writeFieldEnd();
    }
    if (this.customer_state != null) {
      oprot.writeFieldBegin(CUSTOMER_STATE_FIELD_DESC);
      oprot.writeString(this.customer_state);
      oprot.writeFieldEnd();
    }
    if (this.status != null) {
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
      oprot.writeI32(this.status.getValue());
      oprot.writeFieldEnd();
    }
    if (this.statusDescription != null) {
      oprot.writeFieldBegin(STATUS_DESCRIPTION_FIELD_DESC);
      oprot.writeString(this.statusDescription);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(TOTAL_AMOUNT_FIELD_DESC);
    oprot.writeDouble(this.total_amount);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(TOTAL_WEIGHT_FIELD_DESC);
    oprot.writeDouble(this.total_weight);
    oprot.writeFieldEnd();
    if (this.invoice_number != null) {
      oprot.writeFieldBegin(INVOICE_NUMBER_FIELD_DESC);
      oprot.writeString(this.invoice_number);
      oprot.writeFieldEnd();
    }
    if (this.billed_by != null) {
      oprot.writeFieldBegin(BILLED_BY_FIELD_DESC);
      oprot.writeString(this.billed_by);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(CREATED_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.created_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(ACCEPTED_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.accepted_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(BILLING_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.billing_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SHIPPING_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.shipping_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PICKUP_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.pickup_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(DELIVERY_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.delivery_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(OUTOFSTOCK_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.outofstock_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(JACKET_NUMBER_FIELD_DESC);
    oprot.writeI64(this.jacket_number);
    oprot.writeFieldEnd();
    if (this.receiver != null) {
      oprot.writeFieldBegin(RECEIVER_FIELD_DESC);
      oprot.writeString(this.receiver);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(BATCH_NO_FIELD_DESC);
    oprot.writeI64(this.batchNo);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SERIAL_NO_FIELD_DESC);
    oprot.writeI64(this.serialNo);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(DOA_FLAG_FIELD_DESC);
    oprot.writeBool(this.doaFlag);
    oprot.writeFieldEnd();
    if (this.pickupRequestNo != null) {
      oprot.writeFieldBegin(PICKUP_REQUEST_NO_FIELD_DESC);
      oprot.writeString(this.pickupRequestNo);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(TRANSACTION_ID_FIELD_DESC);
    oprot.writeI64(this.transactionId);
    oprot.writeFieldEnd();
    if (this.purchaseOrderNo != null) {
      oprot.writeFieldBegin(PURCHASE_ORDER_NO_FIELD_DESC);
      oprot.writeString(this.purchaseOrderNo);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(COD_FIELD_DESC);
    oprot.writeBool(this.cod);
    oprot.writeFieldEnd();
    if (this.delayReason != null) {
      oprot.writeFieldBegin(DELAY_REASON_FIELD_DESC);
      oprot.writeI32(this.delayReason.getValue());
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(PROMISED_DELIVERY_TIME_FIELD_DESC);
    oprot.writeI64(this.promised_delivery_time);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(EXPECTED_SHIPPING_TIME_FIELD_DESC);
    oprot.writeI64(this.expected_shipping_time);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(VERIFICATION_TIMESTAMP_FIELD_DESC);
    oprot.writeI64(this.verification_timestamp);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(PROMISED_SHIPPING_TIME_FIELD_DESC);
    oprot.writeI64(this.promised_shipping_time);
    oprot.writeFieldEnd();
    if (isSetReship_timestamp()) {
      oprot.writeFieldBegin(RESHIP_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.reship_timestamp);
      oprot.writeFieldEnd();
    }
    if (isSetRefund_timestamp()) {
      oprot.writeFieldBegin(REFUND_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.refund_timestamp);
      oprot.writeFieldEnd();
    }
    if (isSetNew_order_id()) {
      oprot.writeFieldBegin(NEW_ORDER_ID_FIELD_DESC);
      oprot.writeI64(this.new_order_id);
      oprot.writeFieldEnd();
    }
    if (this.previousStatus != null) {
      oprot.writeFieldBegin(PREVIOUS_STATUS_FIELD_DESC);
      oprot.writeI32(this.previousStatus.getValue());
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(VENDOR_ID_FIELD_DESC);
    oprot.writeI64(this.vendorId);
    oprot.writeFieldEnd();
    if (isSetDoa_auth_timestamp()) {
      oprot.writeFieldBegin(DOA_AUTH_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.doa_auth_timestamp);
      oprot.writeFieldEnd();
    }
    if (this.delayReasonText != null) {
      oprot.writeFieldBegin(DELAY_REASON_TEXT_FIELD_DESC);
      oprot.writeString(this.delayReasonText);
      oprot.writeFieldEnd();
    }
    if (this.refundReason != null) {
      oprot.writeFieldBegin(REFUND_REASON_FIELD_DESC);
      oprot.writeString(this.refundReason);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(PURCHASE_ORDER_ID_FIELD_DESC);
    oprot.writeI64(this.purchaseOrderId);
    oprot.writeFieldEnd();
    if (isSetDoa_logistics_provider_id()) {
      oprot.writeFieldBegin(DOA_LOGISTICS_PROVIDER_ID_FIELD_DESC);
      oprot.writeI64(this.doa_logistics_provider_id);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(ORIGINAL_ORDER_ID_FIELD_DESC);
    oprot.writeI64(this.originalOrderId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(FULFILMENT_WAREHOUSE_ID_FIELD_DESC);
    oprot.writeI64(this.fulfilmentWarehouseId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(VENDOR_PAID_FIELD_DESC);
    oprot.writeBool(this.vendorPaid);
    oprot.writeFieldEnd();
    if (isSetReceived_return_timestamp()) {
      oprot.writeFieldBegin(RECEIVED_RETURN_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.received_return_timestamp);
      oprot.writeFieldEnd();
    }
    if (isSetFirst_attempt_timestamp()) {
      oprot.writeFieldBegin(FIRST_ATTEMPT_TIMESTAMP_FIELD_DESC);
      oprot.writeI64(this.first_attempt_timestamp);
      oprot.writeFieldEnd();
    }
    if (this.orderType != null) {
      oprot.writeFieldBegin(ORDER_TYPE_FIELD_DESC);
      oprot.writeI32(this.orderType.getValue());
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(PICKUP_STORE_ID_FIELD_DESC);
    oprot.writeI64(this.pickupStoreId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(LOGISTICS_COD_FIELD_DESC);
    oprot.writeBool(this.logisticsCod);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(GV_AMOUNT_FIELD_DESC);
    oprot.writeI64(this.gvAmount);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(OTG_FIELD_DESC);
    oprot.writeBool(this.otg);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COURIER_DELIVERY_TIME_FIELD_DESC);
    oprot.writeI64(this.courier_delivery_time);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(INSURER_FIELD_DESC);
    oprot.writeI64(this.insurer);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(INSURANCE_AMOUNT_FIELD_DESC);
    oprot.writeDouble(this.insuranceAmount);
    oprot.writeFieldEnd();
    if (this.dob != null) {
      oprot.writeFieldBegin(DOB_FIELD_DESC);
      oprot.writeString(this.dob);
      oprot.writeFieldEnd();
    }
    if (this.guardianName != null) {
      oprot.writeFieldBegin(GUARDIAN_NAME_FIELD_DESC);
      oprot.writeString(this.guardianName);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(FREEBIE_ITEM_ID_FIELD_DESC);
    oprot.writeI64(this.freebieItemId);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(SOURCE_FIELD_DESC);
    oprot.writeI64(this.source);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(ADVANCE_AMOUNT_FIELD_DESC);
    oprot.writeDouble(this.advanceAmount);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(STORE_ID_FIELD_DESC);
    oprot.writeI64(this.storeId);
    oprot.writeFieldEnd();
    if (this.productCondition != null) {
      oprot.writeFieldBegin(PRODUCT_CONDITION_FIELD_DESC);
      oprot.writeI32(this.productCondition.getValue());
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(DATA_PROTECTION_INSURER_FIELD_DESC);
    oprot.writeI64(this.dataProtectionInsurer);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(DATA_PROTECTION_AMOUNT_FIELD_DESC);
    oprot.writeDouble(this.dataProtectionAmount);
    oprot.writeFieldEnd();
    if (this.taxType != null) {
      oprot.writeFieldBegin(TAX_TYPE_FIELD_DESC);
      oprot.writeI32(this.taxType.getValue());
      oprot.writeFieldEnd();
    }
    if (this.logisticsTransactionId != null) {
      oprot.writeFieldBegin(LOGISTICS_TRANSACTION_ID_FIELD_DESC);
      oprot.writeString(this.logisticsTransactionId);
      oprot.writeFieldEnd();
    }
    oprot.writeFieldBegin(SHIPPING_COST_FIELD_DESC);
    oprot.writeDouble(this.shippingCost);
    oprot.writeFieldEnd();
    oprot.writeFieldBegin(COD_CHARGES_FIELD_DESC);
    oprot.writeDouble(this.codCharges);
    oprot.writeFieldEnd();
    oprot.writeFieldStop();
    oprot.writeStructEnd();
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder("Order(");
    boolean first = true;

    sb.append("id:");
    sb.append(this.id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("warehouse_id:");
    sb.append(this.warehouse_id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("lineitems:");
    if (this.lineitems == null) {
      sb.append("null");
    } else {
      sb.append(this.lineitems);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("logistics_provider_id:");
    sb.append(this.logistics_provider_id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("airwaybill_no:");
    if (this.airwaybill_no == null) {
      sb.append("null");
    } else {
      sb.append(this.airwaybill_no);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("tracking_id:");
    if (this.tracking_id == null) {
      sb.append("null");
    } else {
      sb.append(this.tracking_id);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("expected_delivery_time:");
    sb.append(this.expected_delivery_time);
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_id:");
    sb.append(this.customer_id);
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_name:");
    if (this.customer_name == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_name);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_mobilenumber:");
    if (this.customer_mobilenumber == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_mobilenumber);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_pincode:");
    if (this.customer_pincode == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_pincode);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_address1:");
    if (this.customer_address1 == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_address1);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_address2:");
    if (this.customer_address2 == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_address2);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_email:");
    if (this.customer_email == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_email);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_city:");
    if (this.customer_city == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_city);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("customer_state:");
    if (this.customer_state == null) {
      sb.append("null");
    } else {
      sb.append(this.customer_state);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("status:");
    if (this.status == null) {
      sb.append("null");
    } else {
      sb.append(this.status);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("statusDescription:");
    if (this.statusDescription == null) {
      sb.append("null");
    } else {
      sb.append(this.statusDescription);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("total_amount:");
    sb.append(this.total_amount);
    first = false;
    if (!first) sb.append(", ");
    sb.append("total_weight:");
    sb.append(this.total_weight);
    first = false;
    if (!first) sb.append(", ");
    sb.append("invoice_number:");
    if (this.invoice_number == null) {
      sb.append("null");
    } else {
      sb.append(this.invoice_number);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("billed_by:");
    if (this.billed_by == null) {
      sb.append("null");
    } else {
      sb.append(this.billed_by);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("created_timestamp:");
    sb.append(this.created_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("accepted_timestamp:");
    sb.append(this.accepted_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("billing_timestamp:");
    sb.append(this.billing_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("shipping_timestamp:");
    sb.append(this.shipping_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("pickup_timestamp:");
    sb.append(this.pickup_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("delivery_timestamp:");
    sb.append(this.delivery_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("outofstock_timestamp:");
    sb.append(this.outofstock_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("jacket_number:");
    sb.append(this.jacket_number);
    first = false;
    if (!first) sb.append(", ");
    sb.append("receiver:");
    if (this.receiver == null) {
      sb.append("null");
    } else {
      sb.append(this.receiver);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("batchNo:");
    sb.append(this.batchNo);
    first = false;
    if (!first) sb.append(", ");
    sb.append("serialNo:");
    sb.append(this.serialNo);
    first = false;
    if (!first) sb.append(", ");
    sb.append("doaFlag:");
    sb.append(this.doaFlag);
    first = false;
    if (!first) sb.append(", ");
    sb.append("pickupRequestNo:");
    if (this.pickupRequestNo == null) {
      sb.append("null");
    } else {
      sb.append(this.pickupRequestNo);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("transactionId:");
    sb.append(this.transactionId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("purchaseOrderNo:");
    if (this.purchaseOrderNo == null) {
      sb.append("null");
    } else {
      sb.append(this.purchaseOrderNo);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("cod:");
    sb.append(this.cod);
    first = false;
    if (!first) sb.append(", ");
    sb.append("delayReason:");
    if (this.delayReason == null) {
      sb.append("null");
    } else {
      sb.append(this.delayReason);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("promised_delivery_time:");
    sb.append(this.promised_delivery_time);
    first = false;
    if (!first) sb.append(", ");
    sb.append("expected_shipping_time:");
    sb.append(this.expected_shipping_time);
    first = false;
    if (!first) sb.append(", ");
    sb.append("verification_timestamp:");
    sb.append(this.verification_timestamp);
    first = false;
    if (!first) sb.append(", ");
    sb.append("promised_shipping_time:");
    sb.append(this.promised_shipping_time);
    first = false;
    if (isSetReship_timestamp()) {
      if (!first) sb.append(", ");
      sb.append("reship_timestamp:");
      sb.append(this.reship_timestamp);
      first = false;
    }
    if (isSetRefund_timestamp()) {
      if (!first) sb.append(", ");
      sb.append("refund_timestamp:");
      sb.append(this.refund_timestamp);
      first = false;
    }
    if (isSetNew_order_id()) {
      if (!first) sb.append(", ");
      sb.append("new_order_id:");
      sb.append(this.new_order_id);
      first = false;
    }
    if (!first) sb.append(", ");
    sb.append("previousStatus:");
    if (this.previousStatus == null) {
      sb.append("null");
    } else {
      sb.append(this.previousStatus);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("vendorId:");
    sb.append(this.vendorId);
    first = false;
    if (isSetDoa_auth_timestamp()) {
      if (!first) sb.append(", ");
      sb.append("doa_auth_timestamp:");
      sb.append(this.doa_auth_timestamp);
      first = false;
    }
    if (!first) sb.append(", ");
    sb.append("delayReasonText:");
    if (this.delayReasonText == null) {
      sb.append("null");
    } else {
      sb.append(this.delayReasonText);
    }
    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("purchaseOrderId:");
    sb.append(this.purchaseOrderId);
    first = false;
    if (isSetDoa_logistics_provider_id()) {
      if (!first) sb.append(", ");
      sb.append("doa_logistics_provider_id:");
      sb.append(this.doa_logistics_provider_id);
      first = false;
    }
    if (!first) sb.append(", ");
    sb.append("originalOrderId:");
    sb.append(this.originalOrderId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("fulfilmentWarehouseId:");
    sb.append(this.fulfilmentWarehouseId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("vendorPaid:");
    sb.append(this.vendorPaid);
    first = false;
    if (isSetReceived_return_timestamp()) {
      if (!first) sb.append(", ");
      sb.append("received_return_timestamp:");
      sb.append(this.received_return_timestamp);
      first = false;
    }
    if (isSetFirst_attempt_timestamp()) {
      if (!first) sb.append(", ");
      sb.append("first_attempt_timestamp:");
      sb.append(this.first_attempt_timestamp);
      first = false;
    }
    if (!first) sb.append(", ");
    sb.append("orderType:");
    if (this.orderType == null) {
      sb.append("null");
    } else {
      sb.append(this.orderType);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("pickupStoreId:");
    sb.append(this.pickupStoreId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("logisticsCod:");
    sb.append(this.logisticsCod);
    first = false;
    if (!first) sb.append(", ");
    sb.append("gvAmount:");
    sb.append(this.gvAmount);
    first = false;
    if (!first) sb.append(", ");
    sb.append("otg:");
    sb.append(this.otg);
    first = false;
    if (!first) sb.append(", ");
    sb.append("courier_delivery_time:");
    sb.append(this.courier_delivery_time);
    first = false;
    if (!first) sb.append(", ");
    sb.append("insurer:");
    sb.append(this.insurer);
    first = false;
    if (!first) sb.append(", ");
    sb.append("insuranceAmount:");
    sb.append(this.insuranceAmount);
    first = false;
    if (!first) sb.append(", ");
    sb.append("dob:");
    if (this.dob == null) {
      sb.append("null");
    } else {
      sb.append(this.dob);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("guardianName:");
    if (this.guardianName == null) {
      sb.append("null");
    } else {
      sb.append(this.guardianName);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("freebieItemId:");
    sb.append(this.freebieItemId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("source:");
    sb.append(this.source);
    first = false;
    if (!first) sb.append(", ");
    sb.append("advanceAmount:");
    sb.append(this.advanceAmount);
    first = false;
    if (!first) sb.append(", ");
    sb.append("storeId:");
    sb.append(this.storeId);
    first = false;
    if (!first) sb.append(", ");
    sb.append("productCondition:");
    if (this.productCondition == null) {
      sb.append("null");
    } else {
      sb.append(this.productCondition);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("dataProtectionInsurer:");
    sb.append(this.dataProtectionInsurer);
    first = false;
    if (!first) sb.append(", ");
    sb.append("dataProtectionAmount:");
    sb.append(this.dataProtectionAmount);
    first = false;
    if (!first) sb.append(", ");
    sb.append("taxType:");
    if (this.taxType == null) {
      sb.append("null");
    } else {
      sb.append(this.taxType);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("logisticsTransactionId:");
    if (this.logisticsTransactionId == null) {
      sb.append("null");
    } else {
      sb.append(this.logisticsTransactionId);
    }
    first = false;
    if (!first) sb.append(", ");
    sb.append("shippingCost:");
    sb.append(this.shippingCost);
    first = false;
    if (!first) sb.append(", ");
    sb.append("codCharges:");
    sb.append(this.codCharges);
    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);
    }
  }

}