Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * Payment.java
3
 *
4
 * This file was auto-generated from WSDL
5
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6
 */
7
 
8
package com.fedex.ship.stub;
9
 
10
 
11
/**
12
 * The descriptive data for the monetary compensation given to FedEx
13
 * for services rendered to the customer.
14
 */
15
public class Payment  implements java.io.Serializable {
16
    /* Identifies the method of payment for a service. See PaymentType
17
     * for list of valid enumerated values. */
18
    private com.fedex.ship.stub.PaymentType paymentType;
19
 
20
    /* Descriptive data identifying the party responsible for payment
21
     * for a service. */
22
    private com.fedex.ship.stub.Payor payor;
23
 
24
    public Payment() {
25
    }
26
 
27
    public Payment(
28
           com.fedex.ship.stub.PaymentType paymentType,
29
           com.fedex.ship.stub.Payor payor) {
30
           this.paymentType = paymentType;
31
           this.payor = payor;
32
    }
33
 
34
 
35
    /**
36
     * Gets the paymentType value for this Payment.
37
     * 
38
     * @return paymentType   * Identifies the method of payment for a service. See PaymentType
39
     * for list of valid enumerated values.
40
     */
41
    public com.fedex.ship.stub.PaymentType getPaymentType() {
42
        return paymentType;
43
    }
44
 
45
 
46
    /**
47
     * Sets the paymentType value for this Payment.
48
     * 
49
     * @param paymentType   * Identifies the method of payment for a service. See PaymentType
50
     * for list of valid enumerated values.
51
     */
52
    public void setPaymentType(com.fedex.ship.stub.PaymentType paymentType) {
53
        this.paymentType = paymentType;
54
    }
55
 
56
 
57
    /**
58
     * Gets the payor value for this Payment.
59
     * 
60
     * @return payor   * Descriptive data identifying the party responsible for payment
61
     * for a service.
62
     */
63
    public com.fedex.ship.stub.Payor getPayor() {
64
        return payor;
65
    }
66
 
67
 
68
    /**
69
     * Sets the payor value for this Payment.
70
     * 
71
     * @param payor   * Descriptive data identifying the party responsible for payment
72
     * for a service.
73
     */
74
    public void setPayor(com.fedex.ship.stub.Payor payor) {
75
        this.payor = payor;
76
    }
77
 
78
    private java.lang.Object __equalsCalc = null;
79
    public synchronized boolean equals(java.lang.Object obj) {
80
        if (!(obj instanceof Payment)) return false;
81
        Payment other = (Payment) obj;
82
        if (obj == null) return false;
83
        if (this == obj) return true;
84
        if (__equalsCalc != null) {
85
            return (__equalsCalc == obj);
86
        }
87
        __equalsCalc = obj;
88
        boolean _equals;
89
        _equals = true && 
90
            ((this.paymentType==null && other.getPaymentType()==null) || 
91
             (this.paymentType!=null &&
92
              this.paymentType.equals(other.getPaymentType()))) &&
93
            ((this.payor==null && other.getPayor()==null) || 
94
             (this.payor!=null &&
95
              this.payor.equals(other.getPayor())));
96
        __equalsCalc = null;
97
        return _equals;
98
    }
99
 
100
    private boolean __hashCodeCalc = false;
101
    public synchronized int hashCode() {
102
        if (__hashCodeCalc) {
103
            return 0;
104
        }
105
        __hashCodeCalc = true;
106
        int _hashCode = 1;
107
        if (getPaymentType() != null) {
108
            _hashCode += getPaymentType().hashCode();
109
        }
110
        if (getPayor() != null) {
111
            _hashCode += getPayor().hashCode();
112
        }
113
        __hashCodeCalc = false;
114
        return _hashCode;
115
    }
116
 
117
    // Type metadata
118
    private static org.apache.axis.description.TypeDesc typeDesc =
119
        new org.apache.axis.description.TypeDesc(Payment.class, true);
120
 
121
    static {
122
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Payment"));
123
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
124
        elemField.setFieldName("paymentType");
125
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PaymentType"));
126
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PaymentType"));
127
        elemField.setNillable(false);
128
        typeDesc.addFieldDesc(elemField);
129
        elemField = new org.apache.axis.description.ElementDesc();
130
        elemField.setFieldName("payor");
131
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Payor"));
132
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Payor"));
133
        elemField.setMinOccurs(0);
134
        elemField.setNillable(false);
135
        typeDesc.addFieldDesc(elemField);
136
    }
137
 
138
    /**
139
     * Return type metadata object
140
     */
141
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
142
        return typeDesc;
143
    }
144
 
145
    /**
146
     * Get Custom Serializer
147
     */
148
    public static org.apache.axis.encoding.Serializer getSerializer(
149
           java.lang.String mechType, 
150
           java.lang.Class _javaType,  
151
           javax.xml.namespace.QName _xmlType) {
152
        return 
153
          new  org.apache.axis.encoding.ser.BeanSerializer(
154
            _javaType, _xmlType, typeDesc);
155
    }
156
 
157
    /**
158
     * Get Custom Deserializer
159
     */
160
    public static org.apache.axis.encoding.Deserializer getDeserializer(
161
           java.lang.String mechType, 
162
           java.lang.Class _javaType,  
163
           javax.xml.namespace.QName _xmlType) {
164
        return 
165
          new  org.apache.axis.encoding.ser.BeanDeserializer(
166
            _javaType, _xmlType, typeDesc);
167
    }
168
 
169
}