Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * CodDetail.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
 * Descriptive data required for a FedEx COD (Collect-On-Delivery)
13
 * shipment.
14
 */
15
public class CodDetail  implements java.io.Serializable {
16
    private com.fedex.ship.stub.Money codCollectionAmount;
17
 
18
    /* Specifies the details of the charges are to be added to the
19
     * COD collect amount. */
20
    private com.fedex.ship.stub.CodAddTransportationChargesDetail addTransportationChargesDetail;
21
 
22
    /* Identifies the type of funds FedEx should collect upon package
23
     * delivery */
24
    private com.fedex.ship.stub.CodCollectionType collectionType;
25
 
26
    /* For Express this is the descriptive data that is used for the
27
     * recipient of the FedEx Letter containing the COD payment. For Ground
28
     * this is the descriptive data for the party to receive the payment
29
     * that prints the COD receipt. */
30
    private com.fedex.ship.stub.Party codRecipient;
31
 
32
    /* When the FedEx COD payment type is not CASH, indicates the
33
     * contact and address of the financial institution used to service the
34
     * payment of the COD. */
35
    private com.fedex.ship.stub.ContactAndAddress financialInstitutionContactAndAddress;
36
 
37
    /* Specifies the name of person or company receiving the secured/unsecured
38
     * funds payment */
39
    private java.lang.String remitToName;
40
 
41
    /* Indicates which type of reference information to include on
42
     * the COD return shipping label. */
43
    private com.fedex.ship.stub.CodReturnReferenceIndicatorType referenceIndicator;
44
 
45
    /* Only used with multi-piece COD shipments sent in multiple transactions.
46
     * Required on last transaction only. */
47
    private com.fedex.ship.stub.TrackingId returnTrackingId;
48
 
49
    public CodDetail() {
50
    }
51
 
52
    public CodDetail(
53
           com.fedex.ship.stub.Money codCollectionAmount,
54
           com.fedex.ship.stub.CodAddTransportationChargesDetail addTransportationChargesDetail,
55
           com.fedex.ship.stub.CodCollectionType collectionType,
56
           com.fedex.ship.stub.Party codRecipient,
57
           com.fedex.ship.stub.ContactAndAddress financialInstitutionContactAndAddress,
58
           java.lang.String remitToName,
59
           com.fedex.ship.stub.CodReturnReferenceIndicatorType referenceIndicator,
60
           com.fedex.ship.stub.TrackingId returnTrackingId) {
61
           this.codCollectionAmount = codCollectionAmount;
62
           this.addTransportationChargesDetail = addTransportationChargesDetail;
63
           this.collectionType = collectionType;
64
           this.codRecipient = codRecipient;
65
           this.financialInstitutionContactAndAddress = financialInstitutionContactAndAddress;
66
           this.remitToName = remitToName;
67
           this.referenceIndicator = referenceIndicator;
68
           this.returnTrackingId = returnTrackingId;
69
    }
70
 
71
 
72
    /**
73
     * Gets the codCollectionAmount value for this CodDetail.
74
     * 
75
     * @return codCollectionAmount
76
     */
77
    public com.fedex.ship.stub.Money getCodCollectionAmount() {
78
        return codCollectionAmount;
79
    }
80
 
81
 
82
    /**
83
     * Sets the codCollectionAmount value for this CodDetail.
84
     * 
85
     * @param codCollectionAmount
86
     */
87
    public void setCodCollectionAmount(com.fedex.ship.stub.Money codCollectionAmount) {
88
        this.codCollectionAmount = codCollectionAmount;
89
    }
90
 
91
 
92
    /**
93
     * Gets the addTransportationChargesDetail value for this CodDetail.
94
     * 
95
     * @return addTransportationChargesDetail   * Specifies the details of the charges are to be added to the
96
     * COD collect amount.
97
     */
98
    public com.fedex.ship.stub.CodAddTransportationChargesDetail getAddTransportationChargesDetail() {
99
        return addTransportationChargesDetail;
100
    }
101
 
102
 
103
    /**
104
     * Sets the addTransportationChargesDetail value for this CodDetail.
105
     * 
106
     * @param addTransportationChargesDetail   * Specifies the details of the charges are to be added to the
107
     * COD collect amount.
108
     */
109
    public void setAddTransportationChargesDetail(com.fedex.ship.stub.CodAddTransportationChargesDetail addTransportationChargesDetail) {
110
        this.addTransportationChargesDetail = addTransportationChargesDetail;
111
    }
112
 
113
 
114
    /**
115
     * Gets the collectionType value for this CodDetail.
116
     * 
117
     * @return collectionType   * Identifies the type of funds FedEx should collect upon package
118
     * delivery
119
     */
120
    public com.fedex.ship.stub.CodCollectionType getCollectionType() {
121
        return collectionType;
122
    }
123
 
124
 
125
    /**
126
     * Sets the collectionType value for this CodDetail.
127
     * 
128
     * @param collectionType   * Identifies the type of funds FedEx should collect upon package
129
     * delivery
130
     */
131
    public void setCollectionType(com.fedex.ship.stub.CodCollectionType collectionType) {
132
        this.collectionType = collectionType;
133
    }
134
 
135
 
136
    /**
137
     * Gets the codRecipient value for this CodDetail.
138
     * 
139
     * @return codRecipient   * For Express this is the descriptive data that is used for the
140
     * recipient of the FedEx Letter containing the COD payment. For Ground
141
     * this is the descriptive data for the party to receive the payment
142
     * that prints the COD receipt.
143
     */
144
    public com.fedex.ship.stub.Party getCodRecipient() {
145
        return codRecipient;
146
    }
147
 
148
 
149
    /**
150
     * Sets the codRecipient value for this CodDetail.
151
     * 
152
     * @param codRecipient   * For Express this is the descriptive data that is used for the
153
     * recipient of the FedEx Letter containing the COD payment. For Ground
154
     * this is the descriptive data for the party to receive the payment
155
     * that prints the COD receipt.
156
     */
157
    public void setCodRecipient(com.fedex.ship.stub.Party codRecipient) {
158
        this.codRecipient = codRecipient;
159
    }
160
 
161
 
162
    /**
163
     * Gets the financialInstitutionContactAndAddress value for this CodDetail.
164
     * 
165
     * @return financialInstitutionContactAndAddress   * When the FedEx COD payment type is not CASH, indicates the
166
     * contact and address of the financial institution used to service the
167
     * payment of the COD.
168
     */
169
    public com.fedex.ship.stub.ContactAndAddress getFinancialInstitutionContactAndAddress() {
170
        return financialInstitutionContactAndAddress;
171
    }
172
 
173
 
174
    /**
175
     * Sets the financialInstitutionContactAndAddress value for this CodDetail.
176
     * 
177
     * @param financialInstitutionContactAndAddress   * When the FedEx COD payment type is not CASH, indicates the
178
     * contact and address of the financial institution used to service the
179
     * payment of the COD.
180
     */
181
    public void setFinancialInstitutionContactAndAddress(com.fedex.ship.stub.ContactAndAddress financialInstitutionContactAndAddress) {
182
        this.financialInstitutionContactAndAddress = financialInstitutionContactAndAddress;
183
    }
184
 
185
 
186
    /**
187
     * Gets the remitToName value for this CodDetail.
188
     * 
189
     * @return remitToName   * Specifies the name of person or company receiving the secured/unsecured
190
     * funds payment
191
     */
192
    public java.lang.String getRemitToName() {
193
        return remitToName;
194
    }
195
 
196
 
197
    /**
198
     * Sets the remitToName value for this CodDetail.
199
     * 
200
     * @param remitToName   * Specifies the name of person or company receiving the secured/unsecured
201
     * funds payment
202
     */
203
    public void setRemitToName(java.lang.String remitToName) {
204
        this.remitToName = remitToName;
205
    }
206
 
207
 
208
    /**
209
     * Gets the referenceIndicator value for this CodDetail.
210
     * 
211
     * @return referenceIndicator   * Indicates which type of reference information to include on
212
     * the COD return shipping label.
213
     */
214
    public com.fedex.ship.stub.CodReturnReferenceIndicatorType getReferenceIndicator() {
215
        return referenceIndicator;
216
    }
217
 
218
 
219
    /**
220
     * Sets the referenceIndicator value for this CodDetail.
221
     * 
222
     * @param referenceIndicator   * Indicates which type of reference information to include on
223
     * the COD return shipping label.
224
     */
225
    public void setReferenceIndicator(com.fedex.ship.stub.CodReturnReferenceIndicatorType referenceIndicator) {
226
        this.referenceIndicator = referenceIndicator;
227
    }
228
 
229
 
230
    /**
231
     * Gets the returnTrackingId value for this CodDetail.
232
     * 
233
     * @return returnTrackingId   * Only used with multi-piece COD shipments sent in multiple transactions.
234
     * Required on last transaction only.
235
     */
236
    public com.fedex.ship.stub.TrackingId getReturnTrackingId() {
237
        return returnTrackingId;
238
    }
239
 
240
 
241
    /**
242
     * Sets the returnTrackingId value for this CodDetail.
243
     * 
244
     * @param returnTrackingId   * Only used with multi-piece COD shipments sent in multiple transactions.
245
     * Required on last transaction only.
246
     */
247
    public void setReturnTrackingId(com.fedex.ship.stub.TrackingId returnTrackingId) {
248
        this.returnTrackingId = returnTrackingId;
249
    }
250
 
251
    private java.lang.Object __equalsCalc = null;
252
    public synchronized boolean equals(java.lang.Object obj) {
253
        if (!(obj instanceof CodDetail)) return false;
254
        CodDetail other = (CodDetail) obj;
255
        if (obj == null) return false;
256
        if (this == obj) return true;
257
        if (__equalsCalc != null) {
258
            return (__equalsCalc == obj);
259
        }
260
        __equalsCalc = obj;
261
        boolean _equals;
262
        _equals = true && 
263
            ((this.codCollectionAmount==null && other.getCodCollectionAmount()==null) || 
264
             (this.codCollectionAmount!=null &&
265
              this.codCollectionAmount.equals(other.getCodCollectionAmount()))) &&
266
            ((this.addTransportationChargesDetail==null && other.getAddTransportationChargesDetail()==null) || 
267
             (this.addTransportationChargesDetail!=null &&
268
              this.addTransportationChargesDetail.equals(other.getAddTransportationChargesDetail()))) &&
269
            ((this.collectionType==null && other.getCollectionType()==null) || 
270
             (this.collectionType!=null &&
271
              this.collectionType.equals(other.getCollectionType()))) &&
272
            ((this.codRecipient==null && other.getCodRecipient()==null) || 
273
             (this.codRecipient!=null &&
274
              this.codRecipient.equals(other.getCodRecipient()))) &&
275
            ((this.financialInstitutionContactAndAddress==null && other.getFinancialInstitutionContactAndAddress()==null) || 
276
             (this.financialInstitutionContactAndAddress!=null &&
277
              this.financialInstitutionContactAndAddress.equals(other.getFinancialInstitutionContactAndAddress()))) &&
278
            ((this.remitToName==null && other.getRemitToName()==null) || 
279
             (this.remitToName!=null &&
280
              this.remitToName.equals(other.getRemitToName()))) &&
281
            ((this.referenceIndicator==null && other.getReferenceIndicator()==null) || 
282
             (this.referenceIndicator!=null &&
283
              this.referenceIndicator.equals(other.getReferenceIndicator()))) &&
284
            ((this.returnTrackingId==null && other.getReturnTrackingId()==null) || 
285
             (this.returnTrackingId!=null &&
286
              this.returnTrackingId.equals(other.getReturnTrackingId())));
287
        __equalsCalc = null;
288
        return _equals;
289
    }
290
 
291
    private boolean __hashCodeCalc = false;
292
    public synchronized int hashCode() {
293
        if (__hashCodeCalc) {
294
            return 0;
295
        }
296
        __hashCodeCalc = true;
297
        int _hashCode = 1;
298
        if (getCodCollectionAmount() != null) {
299
            _hashCode += getCodCollectionAmount().hashCode();
300
        }
301
        if (getAddTransportationChargesDetail() != null) {
302
            _hashCode += getAddTransportationChargesDetail().hashCode();
303
        }
304
        if (getCollectionType() != null) {
305
            _hashCode += getCollectionType().hashCode();
306
        }
307
        if (getCodRecipient() != null) {
308
            _hashCode += getCodRecipient().hashCode();
309
        }
310
        if (getFinancialInstitutionContactAndAddress() != null) {
311
            _hashCode += getFinancialInstitutionContactAndAddress().hashCode();
312
        }
313
        if (getRemitToName() != null) {
314
            _hashCode += getRemitToName().hashCode();
315
        }
316
        if (getReferenceIndicator() != null) {
317
            _hashCode += getReferenceIndicator().hashCode();
318
        }
319
        if (getReturnTrackingId() != null) {
320
            _hashCode += getReturnTrackingId().hashCode();
321
        }
322
        __hashCodeCalc = false;
323
        return _hashCode;
324
    }
325
 
326
    // Type metadata
327
    private static org.apache.axis.description.TypeDesc typeDesc =
328
        new org.apache.axis.description.TypeDesc(CodDetail.class, true);
329
 
330
    static {
331
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodDetail"));
332
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
333
        elemField.setFieldName("codCollectionAmount");
334
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodCollectionAmount"));
335
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
336
        elemField.setMinOccurs(0);
337
        elemField.setNillable(false);
338
        typeDesc.addFieldDesc(elemField);
339
        elemField = new org.apache.axis.description.ElementDesc();
340
        elemField.setFieldName("addTransportationChargesDetail");
341
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AddTransportationChargesDetail"));
342
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodAddTransportationChargesDetail"));
343
        elemField.setMinOccurs(0);
344
        elemField.setNillable(false);
345
        typeDesc.addFieldDesc(elemField);
346
        elemField = new org.apache.axis.description.ElementDesc();
347
        elemField.setFieldName("collectionType");
348
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CollectionType"));
349
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodCollectionType"));
350
        elemField.setNillable(false);
351
        typeDesc.addFieldDesc(elemField);
352
        elemField = new org.apache.axis.description.ElementDesc();
353
        elemField.setFieldName("codRecipient");
354
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodRecipient"));
355
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Party"));
356
        elemField.setMinOccurs(0);
357
        elemField.setNillable(false);
358
        typeDesc.addFieldDesc(elemField);
359
        elemField = new org.apache.axis.description.ElementDesc();
360
        elemField.setFieldName("financialInstitutionContactAndAddress");
361
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FinancialInstitutionContactAndAddress"));
362
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactAndAddress"));
363
        elemField.setMinOccurs(0);
364
        elemField.setNillable(false);
365
        typeDesc.addFieldDesc(elemField);
366
        elemField = new org.apache.axis.description.ElementDesc();
367
        elemField.setFieldName("remitToName");
368
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RemitToName"));
369
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
370
        elemField.setMinOccurs(0);
371
        elemField.setNillable(false);
372
        typeDesc.addFieldDesc(elemField);
373
        elemField = new org.apache.axis.description.ElementDesc();
374
        elemField.setFieldName("referenceIndicator");
375
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReferenceIndicator"));
376
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodReturnReferenceIndicatorType"));
377
        elemField.setMinOccurs(0);
378
        elemField.setNillable(false);
379
        typeDesc.addFieldDesc(elemField);
380
        elemField = new org.apache.axis.description.ElementDesc();
381
        elemField.setFieldName("returnTrackingId");
382
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnTrackingId"));
383
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TrackingId"));
384
        elemField.setMinOccurs(0);
385
        elemField.setNillable(false);
386
        typeDesc.addFieldDesc(elemField);
387
    }
388
 
389
    /**
390
     * Return type metadata object
391
     */
392
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
393
        return typeDesc;
394
    }
395
 
396
    /**
397
     * Get Custom Serializer
398
     */
399
    public static org.apache.axis.encoding.Serializer getSerializer(
400
           java.lang.String mechType, 
401
           java.lang.Class _javaType,  
402
           javax.xml.namespace.QName _xmlType) {
403
        return 
404
          new  org.apache.axis.encoding.ser.BeanSerializer(
405
            _javaType, _xmlType, typeDesc);
406
    }
407
 
408
    /**
409
     * Get Custom Deserializer
410
     */
411
    public static org.apache.axis.encoding.Deserializer getDeserializer(
412
           java.lang.String mechType, 
413
           java.lang.Class _javaType,  
414
           javax.xml.namespace.QName _xmlType) {
415
        return 
416
          new  org.apache.axis.encoding.ser.BeanDeserializer(
417
            _javaType, _xmlType, typeDesc);
418
    }
419
 
420
}