/**
 * RequestReturnRequest.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.style24.core.biz.checkout.mall;

public class RequestReturnRequest  extends com.style24.core.biz.checkout.base.BaseCheckoutRequestType  implements java.io.Serializable {
    private String productOrderID;

    private com.style24.core.biz.checkout.base.ClaimRequestReasonType returnReasonCode;

    private com.style24.core.biz.checkout.base.DeliveryMethodType collectDeliveryMethodCode;

    private String collectDeliveryCompanyCode;

    private String collectTrackingNumber;

    public RequestReturnRequest() {
    }

    public RequestReturnRequest(
           com.style24.core.biz.checkout.base.AccessCredentialsType accessCredentials,
           String requestID,
           String detailLevel,
           String version,
           String productOrderID,
           com.style24.core.biz.checkout.base.ClaimRequestReasonType returnReasonCode,
           com.style24.core.biz.checkout.base.DeliveryMethodType collectDeliveryMethodCode,
           String collectDeliveryCompanyCode,
           String collectTrackingNumber) {
        super(
            accessCredentials,
            requestID,
            detailLevel,
            version);
        this.productOrderID = productOrderID;
        this.returnReasonCode = returnReasonCode;
        this.collectDeliveryMethodCode = collectDeliveryMethodCode;
        this.collectDeliveryCompanyCode = collectDeliveryCompanyCode;
        this.collectTrackingNumber = collectTrackingNumber;
    }


    /**
     * Gets the productOrderID value for this RequestReturnRequest.
     *
     * @return productOrderID
     */
    public String getProductOrderID() {
        return productOrderID;
    }


    /**
     * Sets the productOrderID value for this RequestReturnRequest.
     *
     * @param productOrderID
     */
    public void setProductOrderID(String productOrderID) {
        this.productOrderID = productOrderID;
    }


    /**
     * Gets the returnReasonCode value for this RequestReturnRequest.
     *
     * @return returnReasonCode
     */
    public com.style24.core.biz.checkout.base.ClaimRequestReasonType getReturnReasonCode() {
        return returnReasonCode;
    }


    /**
     * Sets the returnReasonCode value for this RequestReturnRequest.
     *
     * @param returnReasonCode
     */
    public void setReturnReasonCode(com.style24.core.biz.checkout.base.ClaimRequestReasonType returnReasonCode) {
        this.returnReasonCode = returnReasonCode;
    }


    /**
     * Gets the collectDeliveryMethodCode value for this RequestReturnRequest.
     *
     * @return collectDeliveryMethodCode
     */
    public com.style24.core.biz.checkout.base.DeliveryMethodType getCollectDeliveryMethodCode() {
        return collectDeliveryMethodCode;
    }


    /**
     * Sets the collectDeliveryMethodCode value for this RequestReturnRequest.
     *
     * @param collectDeliveryMethodCode
     */
    public void setCollectDeliveryMethodCode(com.style24.core.biz.checkout.base.DeliveryMethodType collectDeliveryMethodCode) {
        this.collectDeliveryMethodCode = collectDeliveryMethodCode;
    }


    /**
     * Gets the collectDeliveryCompanyCode value for this RequestReturnRequest.
     *
     * @return collectDeliveryCompanyCode
     */
    public String getCollectDeliveryCompanyCode() {
        return collectDeliveryCompanyCode;
    }


    /**
     * Sets the collectDeliveryCompanyCode value for this RequestReturnRequest.
     *
     * @param collectDeliveryCompanyCode
     */
    public void setCollectDeliveryCompanyCode(String collectDeliveryCompanyCode) {
        this.collectDeliveryCompanyCode = collectDeliveryCompanyCode;
    }


    /**
     * Gets the collectTrackingNumber value for this RequestReturnRequest.
     *
     * @return collectTrackingNumber
     */
    public String getCollectTrackingNumber() {
        return collectTrackingNumber;
    }


    /**
     * Sets the collectTrackingNumber value for this RequestReturnRequest.
     *
     * @param collectTrackingNumber
     */
    public void setCollectTrackingNumber(String collectTrackingNumber) {
        this.collectTrackingNumber = collectTrackingNumber;
    }

    private Object __equalsCalc = null;
    public synchronized boolean equals(Object obj) {
        if (!(obj instanceof RequestReturnRequest)) return false;
        RequestReturnRequest other = (RequestReturnRequest) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = super.equals(obj) &&
            ((this.productOrderID==null && other.getProductOrderID()==null) ||
             (this.productOrderID!=null &&
              this.productOrderID.equals(other.getProductOrderID()))) &&
            ((this.returnReasonCode==null && other.getReturnReasonCode()==null) ||
             (this.returnReasonCode!=null &&
              this.returnReasonCode.equals(other.getReturnReasonCode()))) &&
            ((this.collectDeliveryMethodCode==null && other.getCollectDeliveryMethodCode()==null) ||
             (this.collectDeliveryMethodCode!=null &&
              this.collectDeliveryMethodCode.equals(other.getCollectDeliveryMethodCode()))) &&
            ((this.collectDeliveryCompanyCode==null && other.getCollectDeliveryCompanyCode()==null) ||
             (this.collectDeliveryCompanyCode!=null &&
              this.collectDeliveryCompanyCode.equals(other.getCollectDeliveryCompanyCode()))) &&
            ((this.collectTrackingNumber==null && other.getCollectTrackingNumber()==null) ||
             (this.collectTrackingNumber!=null &&
              this.collectTrackingNumber.equals(other.getCollectTrackingNumber())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getProductOrderID() != null) {
            _hashCode += getProductOrderID().hashCode();
        }
        if (getReturnReasonCode() != null) {
            _hashCode += getReturnReasonCode().hashCode();
        }
        if (getCollectDeliveryMethodCode() != null) {
            _hashCode += getCollectDeliveryMethodCode().hashCode();
        }
        if (getCollectDeliveryCompanyCode() != null) {
            _hashCode += getCollectDeliveryCompanyCode().hashCode();
        }
        if (getCollectTrackingNumber() != null) {
            _hashCode += getCollectTrackingNumber().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(RequestReturnRequest.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "requestReturnRequest"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("productOrderID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "ProductOrderID"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("returnReasonCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "ReturnReasonCode"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "claimRequestReasonType"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("collectDeliveryMethodCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "CollectDeliveryMethodCode"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "deliveryMethodType"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("collectDeliveryCompanyCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "CollectDeliveryCompanyCode"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("collectTrackingNumber");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "CollectTrackingNumber"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * Return type metadata object
     */
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
        return typeDesc;
    }

    /**
     * Get Custom Serializer
     */
    public static org.apache.axis.encoding.Serializer getSerializer(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return
          new  org.apache.axis.encoding.ser.BeanSerializer(
            _javaType, _xmlType, typeDesc);
    }

    /**
     * Get Custom Deserializer
     */
    public static org.apache.axis.encoding.Deserializer getDeserializer(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
