Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * FreightShipmentDetail.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
 * Data applicable to shipments using FEDEX_FREIGHT_ECONOMY and FEDEX_FREIGHT_PRIORITY
13
 * services.
14
 */
15
public class FreightShipmentDetail  implements java.io.Serializable {
16
    /* Account number used with FEDEX_FREIGHT service. */
17
    private java.lang.String fedExFreightAccountNumber;
18
 
19
    /* Used for validating FedEx Freight account number and (optionally)
20
     * identifying third party payment on the bill of lading. */
21
    private com.fedex.ship.stub.ContactAndAddress fedExFreightBillingContactAndAddress;
22
 
23
    /* Used in connection with "Send Bill To" (SBT) identification
24
     * of customer's account used for billing. */
25
    private com.fedex.ship.stub.Party alternateBilling;
26
 
27
    /* Identification values to be printed during creation of a Freight
28
     * bill of lading. */
29
    private com.fedex.ship.stub.PrintedReference[] printedReferences;
30
 
31
    /* Indicates the role of the party submitting the transaction. */
32
    private com.fedex.ship.stub.FreightShipmentRoleType role;
33
 
34
    /* Designates the terms of the "collect" payment for a Freight
35
     * Shipment. */
36
    private com.fedex.ship.stub.FreightCollectTermsType collectTermsType;
37
 
38
    /* Identifies the declared value for the shipment */
39
    private com.fedex.ship.stub.Money declaredValuePerUnit;
40
 
41
    /* Identifies the declared value units corresponding to the above
42
     * defined declared value */
43
    private java.lang.String declaredValueUnits;
44
 
45
    private com.fedex.ship.stub.LiabilityCoverageDetail liabilityCoverageDetail;
46
 
47
    /* Identifiers for promotional discounts offered to customers. */
48
    private java.lang.String[] coupons;
49
 
50
    /* Total number of individual handling units in the entire shipment
51
     * (for unit pricing). */
52
    private org.apache.axis.types.NonNegativeInteger totalHandlingUnits;
53
 
54
    /* Estimated discount rate provided by client for unsecured rate
55
     * quote. */
56
    private java.math.BigDecimal clientDiscountPercent;
57
 
58
    /* Total weight of pallets used in shipment. */
59
    private com.fedex.ship.stub.Weight palletWeight;
60
 
61
    /* Overall shipment dimensions. */
62
    private com.fedex.ship.stub.Dimensions shipmentDimensions;
63
 
64
    /* Description for the shipment. */
65
    private java.lang.String comment;
66
 
67
    /* Specifies which party will pay surcharges for any special services
68
     * which support split billing. */
69
    private com.fedex.ship.stub.FreightSpecialServicePayment[] specialServicePayments;
70
 
71
    /* Must be populated if any line items contain hazardous materials. */
72
    private java.lang.String hazardousMaterialsEmergencyContactNumber;
73
 
74
    private java.lang.String hazardousMaterialsOfferor;
75
 
76
    /* Details of the commodities in the shipment. */
77
    private com.fedex.ship.stub.FreightShipmentLineItem[] lineItems;
78
 
79
    public FreightShipmentDetail() {
80
    }
81
 
82
    public FreightShipmentDetail(
83
           java.lang.String fedExFreightAccountNumber,
84
           com.fedex.ship.stub.ContactAndAddress fedExFreightBillingContactAndAddress,
85
           com.fedex.ship.stub.Party alternateBilling,
86
           com.fedex.ship.stub.PrintedReference[] printedReferences,
87
           com.fedex.ship.stub.FreightShipmentRoleType role,
88
           com.fedex.ship.stub.FreightCollectTermsType collectTermsType,
89
           com.fedex.ship.stub.Money declaredValuePerUnit,
90
           java.lang.String declaredValueUnits,
91
           com.fedex.ship.stub.LiabilityCoverageDetail liabilityCoverageDetail,
92
           java.lang.String[] coupons,
93
           org.apache.axis.types.NonNegativeInteger totalHandlingUnits,
94
           java.math.BigDecimal clientDiscountPercent,
95
           com.fedex.ship.stub.Weight palletWeight,
96
           com.fedex.ship.stub.Dimensions shipmentDimensions,
97
           java.lang.String comment,
98
           com.fedex.ship.stub.FreightSpecialServicePayment[] specialServicePayments,
99
           java.lang.String hazardousMaterialsEmergencyContactNumber,
100
           java.lang.String hazardousMaterialsOfferor,
101
           com.fedex.ship.stub.FreightShipmentLineItem[] lineItems) {
102
           this.fedExFreightAccountNumber = fedExFreightAccountNumber;
103
           this.fedExFreightBillingContactAndAddress = fedExFreightBillingContactAndAddress;
104
           this.alternateBilling = alternateBilling;
105
           this.printedReferences = printedReferences;
106
           this.role = role;
107
           this.collectTermsType = collectTermsType;
108
           this.declaredValuePerUnit = declaredValuePerUnit;
109
           this.declaredValueUnits = declaredValueUnits;
110
           this.liabilityCoverageDetail = liabilityCoverageDetail;
111
           this.coupons = coupons;
112
           this.totalHandlingUnits = totalHandlingUnits;
113
           this.clientDiscountPercent = clientDiscountPercent;
114
           this.palletWeight = palletWeight;
115
           this.shipmentDimensions = shipmentDimensions;
116
           this.comment = comment;
117
           this.specialServicePayments = specialServicePayments;
118
           this.hazardousMaterialsEmergencyContactNumber = hazardousMaterialsEmergencyContactNumber;
119
           this.hazardousMaterialsOfferor = hazardousMaterialsOfferor;
120
           this.lineItems = lineItems;
121
    }
122
 
123
 
124
    /**
125
     * Gets the fedExFreightAccountNumber value for this FreightShipmentDetail.
126
     * 
127
     * @return fedExFreightAccountNumber   * Account number used with FEDEX_FREIGHT service.
128
     */
129
    public java.lang.String getFedExFreightAccountNumber() {
130
        return fedExFreightAccountNumber;
131
    }
132
 
133
 
134
    /**
135
     * Sets the fedExFreightAccountNumber value for this FreightShipmentDetail.
136
     * 
137
     * @param fedExFreightAccountNumber   * Account number used with FEDEX_FREIGHT service.
138
     */
139
    public void setFedExFreightAccountNumber(java.lang.String fedExFreightAccountNumber) {
140
        this.fedExFreightAccountNumber = fedExFreightAccountNumber;
141
    }
142
 
143
 
144
    /**
145
     * Gets the fedExFreightBillingContactAndAddress value for this FreightShipmentDetail.
146
     * 
147
     * @return fedExFreightBillingContactAndAddress   * Used for validating FedEx Freight account number and (optionally)
148
     * identifying third party payment on the bill of lading.
149
     */
150
    public com.fedex.ship.stub.ContactAndAddress getFedExFreightBillingContactAndAddress() {
151
        return fedExFreightBillingContactAndAddress;
152
    }
153
 
154
 
155
    /**
156
     * Sets the fedExFreightBillingContactAndAddress value for this FreightShipmentDetail.
157
     * 
158
     * @param fedExFreightBillingContactAndAddress   * Used for validating FedEx Freight account number and (optionally)
159
     * identifying third party payment on the bill of lading.
160
     */
161
    public void setFedExFreightBillingContactAndAddress(com.fedex.ship.stub.ContactAndAddress fedExFreightBillingContactAndAddress) {
162
        this.fedExFreightBillingContactAndAddress = fedExFreightBillingContactAndAddress;
163
    }
164
 
165
 
166
    /**
167
     * Gets the alternateBilling value for this FreightShipmentDetail.
168
     * 
169
     * @return alternateBilling   * Used in connection with "Send Bill To" (SBT) identification
170
     * of customer's account used for billing.
171
     */
172
    public com.fedex.ship.stub.Party getAlternateBilling() {
173
        return alternateBilling;
174
    }
175
 
176
 
177
    /**
178
     * Sets the alternateBilling value for this FreightShipmentDetail.
179
     * 
180
     * @param alternateBilling   * Used in connection with "Send Bill To" (SBT) identification
181
     * of customer's account used for billing.
182
     */
183
    public void setAlternateBilling(com.fedex.ship.stub.Party alternateBilling) {
184
        this.alternateBilling = alternateBilling;
185
    }
186
 
187
 
188
    /**
189
     * Gets the printedReferences value for this FreightShipmentDetail.
190
     * 
191
     * @return printedReferences   * Identification values to be printed during creation of a Freight
192
     * bill of lading.
193
     */
194
    public com.fedex.ship.stub.PrintedReference[] getPrintedReferences() {
195
        return printedReferences;
196
    }
197
 
198
 
199
    /**
200
     * Sets the printedReferences value for this FreightShipmentDetail.
201
     * 
202
     * @param printedReferences   * Identification values to be printed during creation of a Freight
203
     * bill of lading.
204
     */
205
    public void setPrintedReferences(com.fedex.ship.stub.PrintedReference[] printedReferences) {
206
        this.printedReferences = printedReferences;
207
    }
208
 
209
    public com.fedex.ship.stub.PrintedReference getPrintedReferences(int i) {
210
        return this.printedReferences[i];
211
    }
212
 
213
    public void setPrintedReferences(int i, com.fedex.ship.stub.PrintedReference _value) {
214
        this.printedReferences[i] = _value;
215
    }
216
 
217
 
218
    /**
219
     * Gets the role value for this FreightShipmentDetail.
220
     * 
221
     * @return role   * Indicates the role of the party submitting the transaction.
222
     */
223
    public com.fedex.ship.stub.FreightShipmentRoleType getRole() {
224
        return role;
225
    }
226
 
227
 
228
    /**
229
     * Sets the role value for this FreightShipmentDetail.
230
     * 
231
     * @param role   * Indicates the role of the party submitting the transaction.
232
     */
233
    public void setRole(com.fedex.ship.stub.FreightShipmentRoleType role) {
234
        this.role = role;
235
    }
236
 
237
 
238
    /**
239
     * Gets the collectTermsType value for this FreightShipmentDetail.
240
     * 
241
     * @return collectTermsType   * Designates the terms of the "collect" payment for a Freight
242
     * Shipment.
243
     */
244
    public com.fedex.ship.stub.FreightCollectTermsType getCollectTermsType() {
245
        return collectTermsType;
246
    }
247
 
248
 
249
    /**
250
     * Sets the collectTermsType value for this FreightShipmentDetail.
251
     * 
252
     * @param collectTermsType   * Designates the terms of the "collect" payment for a Freight
253
     * Shipment.
254
     */
255
    public void setCollectTermsType(com.fedex.ship.stub.FreightCollectTermsType collectTermsType) {
256
        this.collectTermsType = collectTermsType;
257
    }
258
 
259
 
260
    /**
261
     * Gets the declaredValuePerUnit value for this FreightShipmentDetail.
262
     * 
263
     * @return declaredValuePerUnit   * Identifies the declared value for the shipment
264
     */
265
    public com.fedex.ship.stub.Money getDeclaredValuePerUnit() {
266
        return declaredValuePerUnit;
267
    }
268
 
269
 
270
    /**
271
     * Sets the declaredValuePerUnit value for this FreightShipmentDetail.
272
     * 
273
     * @param declaredValuePerUnit   * Identifies the declared value for the shipment
274
     */
275
    public void setDeclaredValuePerUnit(com.fedex.ship.stub.Money declaredValuePerUnit) {
276
        this.declaredValuePerUnit = declaredValuePerUnit;
277
    }
278
 
279
 
280
    /**
281
     * Gets the declaredValueUnits value for this FreightShipmentDetail.
282
     * 
283
     * @return declaredValueUnits   * Identifies the declared value units corresponding to the above
284
     * defined declared value
285
     */
286
    public java.lang.String getDeclaredValueUnits() {
287
        return declaredValueUnits;
288
    }
289
 
290
 
291
    /**
292
     * Sets the declaredValueUnits value for this FreightShipmentDetail.
293
     * 
294
     * @param declaredValueUnits   * Identifies the declared value units corresponding to the above
295
     * defined declared value
296
     */
297
    public void setDeclaredValueUnits(java.lang.String declaredValueUnits) {
298
        this.declaredValueUnits = declaredValueUnits;
299
    }
300
 
301
 
302
    /**
303
     * Gets the liabilityCoverageDetail value for this FreightShipmentDetail.
304
     * 
305
     * @return liabilityCoverageDetail
306
     */
307
    public com.fedex.ship.stub.LiabilityCoverageDetail getLiabilityCoverageDetail() {
308
        return liabilityCoverageDetail;
309
    }
310
 
311
 
312
    /**
313
     * Sets the liabilityCoverageDetail value for this FreightShipmentDetail.
314
     * 
315
     * @param liabilityCoverageDetail
316
     */
317
    public void setLiabilityCoverageDetail(com.fedex.ship.stub.LiabilityCoverageDetail liabilityCoverageDetail) {
318
        this.liabilityCoverageDetail = liabilityCoverageDetail;
319
    }
320
 
321
 
322
    /**
323
     * Gets the coupons value for this FreightShipmentDetail.
324
     * 
325
     * @return coupons   * Identifiers for promotional discounts offered to customers.
326
     */
327
    public java.lang.String[] getCoupons() {
328
        return coupons;
329
    }
330
 
331
 
332
    /**
333
     * Sets the coupons value for this FreightShipmentDetail.
334
     * 
335
     * @param coupons   * Identifiers for promotional discounts offered to customers.
336
     */
337
    public void setCoupons(java.lang.String[] coupons) {
338
        this.coupons = coupons;
339
    }
340
 
341
    public java.lang.String getCoupons(int i) {
342
        return this.coupons[i];
343
    }
344
 
345
    public void setCoupons(int i, java.lang.String _value) {
346
        this.coupons[i] = _value;
347
    }
348
 
349
 
350
    /**
351
     * Gets the totalHandlingUnits value for this FreightShipmentDetail.
352
     * 
353
     * @return totalHandlingUnits   * Total number of individual handling units in the entire shipment
354
     * (for unit pricing).
355
     */
356
    public org.apache.axis.types.NonNegativeInteger getTotalHandlingUnits() {
357
        return totalHandlingUnits;
358
    }
359
 
360
 
361
    /**
362
     * Sets the totalHandlingUnits value for this FreightShipmentDetail.
363
     * 
364
     * @param totalHandlingUnits   * Total number of individual handling units in the entire shipment
365
     * (for unit pricing).
366
     */
367
    public void setTotalHandlingUnits(org.apache.axis.types.NonNegativeInteger totalHandlingUnits) {
368
        this.totalHandlingUnits = totalHandlingUnits;
369
    }
370
 
371
 
372
    /**
373
     * Gets the clientDiscountPercent value for this FreightShipmentDetail.
374
     * 
375
     * @return clientDiscountPercent   * Estimated discount rate provided by client for unsecured rate
376
     * quote.
377
     */
378
    public java.math.BigDecimal getClientDiscountPercent() {
379
        return clientDiscountPercent;
380
    }
381
 
382
 
383
    /**
384
     * Sets the clientDiscountPercent value for this FreightShipmentDetail.
385
     * 
386
     * @param clientDiscountPercent   * Estimated discount rate provided by client for unsecured rate
387
     * quote.
388
     */
389
    public void setClientDiscountPercent(java.math.BigDecimal clientDiscountPercent) {
390
        this.clientDiscountPercent = clientDiscountPercent;
391
    }
392
 
393
 
394
    /**
395
     * Gets the palletWeight value for this FreightShipmentDetail.
396
     * 
397
     * @return palletWeight   * Total weight of pallets used in shipment.
398
     */
399
    public com.fedex.ship.stub.Weight getPalletWeight() {
400
        return palletWeight;
401
    }
402
 
403
 
404
    /**
405
     * Sets the palletWeight value for this FreightShipmentDetail.
406
     * 
407
     * @param palletWeight   * Total weight of pallets used in shipment.
408
     */
409
    public void setPalletWeight(com.fedex.ship.stub.Weight palletWeight) {
410
        this.palletWeight = palletWeight;
411
    }
412
 
413
 
414
    /**
415
     * Gets the shipmentDimensions value for this FreightShipmentDetail.
416
     * 
417
     * @return shipmentDimensions   * Overall shipment dimensions.
418
     */
419
    public com.fedex.ship.stub.Dimensions getShipmentDimensions() {
420
        return shipmentDimensions;
421
    }
422
 
423
 
424
    /**
425
     * Sets the shipmentDimensions value for this FreightShipmentDetail.
426
     * 
427
     * @param shipmentDimensions   * Overall shipment dimensions.
428
     */
429
    public void setShipmentDimensions(com.fedex.ship.stub.Dimensions shipmentDimensions) {
430
        this.shipmentDimensions = shipmentDimensions;
431
    }
432
 
433
 
434
    /**
435
     * Gets the comment value for this FreightShipmentDetail.
436
     * 
437
     * @return comment   * Description for the shipment.
438
     */
439
    public java.lang.String getComment() {
440
        return comment;
441
    }
442
 
443
 
444
    /**
445
     * Sets the comment value for this FreightShipmentDetail.
446
     * 
447
     * @param comment   * Description for the shipment.
448
     */
449
    public void setComment(java.lang.String comment) {
450
        this.comment = comment;
451
    }
452
 
453
 
454
    /**
455
     * Gets the specialServicePayments value for this FreightShipmentDetail.
456
     * 
457
     * @return specialServicePayments   * Specifies which party will pay surcharges for any special services
458
     * which support split billing.
459
     */
460
    public com.fedex.ship.stub.FreightSpecialServicePayment[] getSpecialServicePayments() {
461
        return specialServicePayments;
462
    }
463
 
464
 
465
    /**
466
     * Sets the specialServicePayments value for this FreightShipmentDetail.
467
     * 
468
     * @param specialServicePayments   * Specifies which party will pay surcharges for any special services
469
     * which support split billing.
470
     */
471
    public void setSpecialServicePayments(com.fedex.ship.stub.FreightSpecialServicePayment[] specialServicePayments) {
472
        this.specialServicePayments = specialServicePayments;
473
    }
474
 
475
    public com.fedex.ship.stub.FreightSpecialServicePayment getSpecialServicePayments(int i) {
476
        return this.specialServicePayments[i];
477
    }
478
 
479
    public void setSpecialServicePayments(int i, com.fedex.ship.stub.FreightSpecialServicePayment _value) {
480
        this.specialServicePayments[i] = _value;
481
    }
482
 
483
 
484
    /**
485
     * Gets the hazardousMaterialsEmergencyContactNumber value for this FreightShipmentDetail.
486
     * 
487
     * @return hazardousMaterialsEmergencyContactNumber   * Must be populated if any line items contain hazardous materials.
488
     */
489
    public java.lang.String getHazardousMaterialsEmergencyContactNumber() {
490
        return hazardousMaterialsEmergencyContactNumber;
491
    }
492
 
493
 
494
    /**
495
     * Sets the hazardousMaterialsEmergencyContactNumber value for this FreightShipmentDetail.
496
     * 
497
     * @param hazardousMaterialsEmergencyContactNumber   * Must be populated if any line items contain hazardous materials.
498
     */
499
    public void setHazardousMaterialsEmergencyContactNumber(java.lang.String hazardousMaterialsEmergencyContactNumber) {
500
        this.hazardousMaterialsEmergencyContactNumber = hazardousMaterialsEmergencyContactNumber;
501
    }
502
 
503
 
504
    /**
505
     * Gets the hazardousMaterialsOfferor value for this FreightShipmentDetail.
506
     * 
507
     * @return hazardousMaterialsOfferor
508
     */
509
    public java.lang.String getHazardousMaterialsOfferor() {
510
        return hazardousMaterialsOfferor;
511
    }
512
 
513
 
514
    /**
515
     * Sets the hazardousMaterialsOfferor value for this FreightShipmentDetail.
516
     * 
517
     * @param hazardousMaterialsOfferor
518
     */
519
    public void setHazardousMaterialsOfferor(java.lang.String hazardousMaterialsOfferor) {
520
        this.hazardousMaterialsOfferor = hazardousMaterialsOfferor;
521
    }
522
 
523
 
524
    /**
525
     * Gets the lineItems value for this FreightShipmentDetail.
526
     * 
527
     * @return lineItems   * Details of the commodities in the shipment.
528
     */
529
    public com.fedex.ship.stub.FreightShipmentLineItem[] getLineItems() {
530
        return lineItems;
531
    }
532
 
533
 
534
    /**
535
     * Sets the lineItems value for this FreightShipmentDetail.
536
     * 
537
     * @param lineItems   * Details of the commodities in the shipment.
538
     */
539
    public void setLineItems(com.fedex.ship.stub.FreightShipmentLineItem[] lineItems) {
540
        this.lineItems = lineItems;
541
    }
542
 
543
    public com.fedex.ship.stub.FreightShipmentLineItem getLineItems(int i) {
544
        return this.lineItems[i];
545
    }
546
 
547
    public void setLineItems(int i, com.fedex.ship.stub.FreightShipmentLineItem _value) {
548
        this.lineItems[i] = _value;
549
    }
550
 
551
    private java.lang.Object __equalsCalc = null;
552
    public synchronized boolean equals(java.lang.Object obj) {
553
        if (!(obj instanceof FreightShipmentDetail)) return false;
554
        FreightShipmentDetail other = (FreightShipmentDetail) obj;
555
        if (obj == null) return false;
556
        if (this == obj) return true;
557
        if (__equalsCalc != null) {
558
            return (__equalsCalc == obj);
559
        }
560
        __equalsCalc = obj;
561
        boolean _equals;
562
        _equals = true && 
563
            ((this.fedExFreightAccountNumber==null && other.getFedExFreightAccountNumber()==null) || 
564
             (this.fedExFreightAccountNumber!=null &&
565
              this.fedExFreightAccountNumber.equals(other.getFedExFreightAccountNumber()))) &&
566
            ((this.fedExFreightBillingContactAndAddress==null && other.getFedExFreightBillingContactAndAddress()==null) || 
567
             (this.fedExFreightBillingContactAndAddress!=null &&
568
              this.fedExFreightBillingContactAndAddress.equals(other.getFedExFreightBillingContactAndAddress()))) &&
569
            ((this.alternateBilling==null && other.getAlternateBilling()==null) || 
570
             (this.alternateBilling!=null &&
571
              this.alternateBilling.equals(other.getAlternateBilling()))) &&
572
            ((this.printedReferences==null && other.getPrintedReferences()==null) || 
573
             (this.printedReferences!=null &&
574
              java.util.Arrays.equals(this.printedReferences, other.getPrintedReferences()))) &&
575
            ((this.role==null && other.getRole()==null) || 
576
             (this.role!=null &&
577
              this.role.equals(other.getRole()))) &&
578
            ((this.collectTermsType==null && other.getCollectTermsType()==null) || 
579
             (this.collectTermsType!=null &&
580
              this.collectTermsType.equals(other.getCollectTermsType()))) &&
581
            ((this.declaredValuePerUnit==null && other.getDeclaredValuePerUnit()==null) || 
582
             (this.declaredValuePerUnit!=null &&
583
              this.declaredValuePerUnit.equals(other.getDeclaredValuePerUnit()))) &&
584
            ((this.declaredValueUnits==null && other.getDeclaredValueUnits()==null) || 
585
             (this.declaredValueUnits!=null &&
586
              this.declaredValueUnits.equals(other.getDeclaredValueUnits()))) &&
587
            ((this.liabilityCoverageDetail==null && other.getLiabilityCoverageDetail()==null) || 
588
             (this.liabilityCoverageDetail!=null &&
589
              this.liabilityCoverageDetail.equals(other.getLiabilityCoverageDetail()))) &&
590
            ((this.coupons==null && other.getCoupons()==null) || 
591
             (this.coupons!=null &&
592
              java.util.Arrays.equals(this.coupons, other.getCoupons()))) &&
593
            ((this.totalHandlingUnits==null && other.getTotalHandlingUnits()==null) || 
594
             (this.totalHandlingUnits!=null &&
595
              this.totalHandlingUnits.equals(other.getTotalHandlingUnits()))) &&
596
            ((this.clientDiscountPercent==null && other.getClientDiscountPercent()==null) || 
597
             (this.clientDiscountPercent!=null &&
598
              this.clientDiscountPercent.equals(other.getClientDiscountPercent()))) &&
599
            ((this.palletWeight==null && other.getPalletWeight()==null) || 
600
             (this.palletWeight!=null &&
601
              this.palletWeight.equals(other.getPalletWeight()))) &&
602
            ((this.shipmentDimensions==null && other.getShipmentDimensions()==null) || 
603
             (this.shipmentDimensions!=null &&
604
              this.shipmentDimensions.equals(other.getShipmentDimensions()))) &&
605
            ((this.comment==null && other.getComment()==null) || 
606
             (this.comment!=null &&
607
              this.comment.equals(other.getComment()))) &&
608
            ((this.specialServicePayments==null && other.getSpecialServicePayments()==null) || 
609
             (this.specialServicePayments!=null &&
610
              java.util.Arrays.equals(this.specialServicePayments, other.getSpecialServicePayments()))) &&
611
            ((this.hazardousMaterialsEmergencyContactNumber==null && other.getHazardousMaterialsEmergencyContactNumber()==null) || 
612
             (this.hazardousMaterialsEmergencyContactNumber!=null &&
613
              this.hazardousMaterialsEmergencyContactNumber.equals(other.getHazardousMaterialsEmergencyContactNumber()))) &&
614
            ((this.hazardousMaterialsOfferor==null && other.getHazardousMaterialsOfferor()==null) || 
615
             (this.hazardousMaterialsOfferor!=null &&
616
              this.hazardousMaterialsOfferor.equals(other.getHazardousMaterialsOfferor()))) &&
617
            ((this.lineItems==null && other.getLineItems()==null) || 
618
             (this.lineItems!=null &&
619
              java.util.Arrays.equals(this.lineItems, other.getLineItems())));
620
        __equalsCalc = null;
621
        return _equals;
622
    }
623
 
624
    private boolean __hashCodeCalc = false;
625
    public synchronized int hashCode() {
626
        if (__hashCodeCalc) {
627
            return 0;
628
        }
629
        __hashCodeCalc = true;
630
        int _hashCode = 1;
631
        if (getFedExFreightAccountNumber() != null) {
632
            _hashCode += getFedExFreightAccountNumber().hashCode();
633
        }
634
        if (getFedExFreightBillingContactAndAddress() != null) {
635
            _hashCode += getFedExFreightBillingContactAndAddress().hashCode();
636
        }
637
        if (getAlternateBilling() != null) {
638
            _hashCode += getAlternateBilling().hashCode();
639
        }
640
        if (getPrintedReferences() != null) {
641
            for (int i=0;
642
                 i<java.lang.reflect.Array.getLength(getPrintedReferences());
643
                 i++) {
644
                java.lang.Object obj = java.lang.reflect.Array.get(getPrintedReferences(), i);
645
                if (obj != null &&
646
                    !obj.getClass().isArray()) {
647
                    _hashCode += obj.hashCode();
648
                }
649
            }
650
        }
651
        if (getRole() != null) {
652
            _hashCode += getRole().hashCode();
653
        }
654
        if (getCollectTermsType() != null) {
655
            _hashCode += getCollectTermsType().hashCode();
656
        }
657
        if (getDeclaredValuePerUnit() != null) {
658
            _hashCode += getDeclaredValuePerUnit().hashCode();
659
        }
660
        if (getDeclaredValueUnits() != null) {
661
            _hashCode += getDeclaredValueUnits().hashCode();
662
        }
663
        if (getLiabilityCoverageDetail() != null) {
664
            _hashCode += getLiabilityCoverageDetail().hashCode();
665
        }
666
        if (getCoupons() != null) {
667
            for (int i=0;
668
                 i<java.lang.reflect.Array.getLength(getCoupons());
669
                 i++) {
670
                java.lang.Object obj = java.lang.reflect.Array.get(getCoupons(), i);
671
                if (obj != null &&
672
                    !obj.getClass().isArray()) {
673
                    _hashCode += obj.hashCode();
674
                }
675
            }
676
        }
677
        if (getTotalHandlingUnits() != null) {
678
            _hashCode += getTotalHandlingUnits().hashCode();
679
        }
680
        if (getClientDiscountPercent() != null) {
681
            _hashCode += getClientDiscountPercent().hashCode();
682
        }
683
        if (getPalletWeight() != null) {
684
            _hashCode += getPalletWeight().hashCode();
685
        }
686
        if (getShipmentDimensions() != null) {
687
            _hashCode += getShipmentDimensions().hashCode();
688
        }
689
        if (getComment() != null) {
690
            _hashCode += getComment().hashCode();
691
        }
692
        if (getSpecialServicePayments() != null) {
693
            for (int i=0;
694
                 i<java.lang.reflect.Array.getLength(getSpecialServicePayments());
695
                 i++) {
696
                java.lang.Object obj = java.lang.reflect.Array.get(getSpecialServicePayments(), i);
697
                if (obj != null &&
698
                    !obj.getClass().isArray()) {
699
                    _hashCode += obj.hashCode();
700
                }
701
            }
702
        }
703
        if (getHazardousMaterialsEmergencyContactNumber() != null) {
704
            _hashCode += getHazardousMaterialsEmergencyContactNumber().hashCode();
705
        }
706
        if (getHazardousMaterialsOfferor() != null) {
707
            _hashCode += getHazardousMaterialsOfferor().hashCode();
708
        }
709
        if (getLineItems() != null) {
710
            for (int i=0;
711
                 i<java.lang.reflect.Array.getLength(getLineItems());
712
                 i++) {
713
                java.lang.Object obj = java.lang.reflect.Array.get(getLineItems(), i);
714
                if (obj != null &&
715
                    !obj.getClass().isArray()) {
716
                    _hashCode += obj.hashCode();
717
                }
718
            }
719
        }
720
        __hashCodeCalc = false;
721
        return _hashCode;
722
    }
723
 
724
    // Type metadata
725
    private static org.apache.axis.description.TypeDesc typeDesc =
726
        new org.apache.axis.description.TypeDesc(FreightShipmentDetail.class, true);
727
 
728
    static {
729
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightShipmentDetail"));
730
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
731
        elemField.setFieldName("fedExFreightAccountNumber");
732
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FedExFreightAccountNumber"));
733
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
734
        elemField.setMinOccurs(0);
735
        elemField.setNillable(false);
736
        typeDesc.addFieldDesc(elemField);
737
        elemField = new org.apache.axis.description.ElementDesc();
738
        elemField.setFieldName("fedExFreightBillingContactAndAddress");
739
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FedExFreightBillingContactAndAddress"));
740
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ContactAndAddress"));
741
        elemField.setMinOccurs(0);
742
        elemField.setNillable(false);
743
        typeDesc.addFieldDesc(elemField);
744
        elemField = new org.apache.axis.description.ElementDesc();
745
        elemField.setFieldName("alternateBilling");
746
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AlternateBilling"));
747
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Party"));
748
        elemField.setMinOccurs(0);
749
        elemField.setNillable(false);
750
        typeDesc.addFieldDesc(elemField);
751
        elemField = new org.apache.axis.description.ElementDesc();
752
        elemField.setFieldName("printedReferences");
753
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PrintedReferences"));
754
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PrintedReference"));
755
        elemField.setMinOccurs(0);
756
        elemField.setNillable(false);
757
        elemField.setMaxOccursUnbounded(true);
758
        typeDesc.addFieldDesc(elemField);
759
        elemField = new org.apache.axis.description.ElementDesc();
760
        elemField.setFieldName("role");
761
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Role"));
762
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightShipmentRoleType"));
763
        elemField.setMinOccurs(0);
764
        elemField.setNillable(false);
765
        typeDesc.addFieldDesc(elemField);
766
        elemField = new org.apache.axis.description.ElementDesc();
767
        elemField.setFieldName("collectTermsType");
768
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CollectTermsType"));
769
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightCollectTermsType"));
770
        elemField.setMinOccurs(0);
771
        elemField.setNillable(false);
772
        typeDesc.addFieldDesc(elemField);
773
        elemField = new org.apache.axis.description.ElementDesc();
774
        elemField.setFieldName("declaredValuePerUnit");
775
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeclaredValuePerUnit"));
776
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
777
        elemField.setMinOccurs(0);
778
        elemField.setNillable(false);
779
        typeDesc.addFieldDesc(elemField);
780
        elemField = new org.apache.axis.description.ElementDesc();
781
        elemField.setFieldName("declaredValueUnits");
782
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeclaredValueUnits"));
783
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
784
        elemField.setMinOccurs(0);
785
        elemField.setNillable(false);
786
        typeDesc.addFieldDesc(elemField);
787
        elemField = new org.apache.axis.description.ElementDesc();
788
        elemField.setFieldName("liabilityCoverageDetail");
789
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LiabilityCoverageDetail"));
790
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LiabilityCoverageDetail"));
791
        elemField.setMinOccurs(0);
792
        elemField.setNillable(false);
793
        typeDesc.addFieldDesc(elemField);
794
        elemField = new org.apache.axis.description.ElementDesc();
795
        elemField.setFieldName("coupons");
796
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Coupons"));
797
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
798
        elemField.setMinOccurs(0);
799
        elemField.setNillable(false);
800
        elemField.setMaxOccursUnbounded(true);
801
        typeDesc.addFieldDesc(elemField);
802
        elemField = new org.apache.axis.description.ElementDesc();
803
        elemField.setFieldName("totalHandlingUnits");
804
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalHandlingUnits"));
805
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "nonNegativeInteger"));
806
        elemField.setMinOccurs(0);
807
        elemField.setNillable(false);
808
        typeDesc.addFieldDesc(elemField);
809
        elemField = new org.apache.axis.description.ElementDesc();
810
        elemField.setFieldName("clientDiscountPercent");
811
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ClientDiscountPercent"));
812
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "decimal"));
813
        elemField.setMinOccurs(0);
814
        elemField.setNillable(false);
815
        typeDesc.addFieldDesc(elemField);
816
        elemField = new org.apache.axis.description.ElementDesc();
817
        elemField.setFieldName("palletWeight");
818
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PalletWeight"));
819
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
820
        elemField.setMinOccurs(0);
821
        elemField.setNillable(false);
822
        typeDesc.addFieldDesc(elemField);
823
        elemField = new org.apache.axis.description.ElementDesc();
824
        elemField.setFieldName("shipmentDimensions");
825
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShipmentDimensions"));
826
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Dimensions"));
827
        elemField.setMinOccurs(0);
828
        elemField.setNillable(false);
829
        typeDesc.addFieldDesc(elemField);
830
        elemField = new org.apache.axis.description.ElementDesc();
831
        elemField.setFieldName("comment");
832
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Comment"));
833
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
834
        elemField.setMinOccurs(0);
835
        elemField.setNillable(false);
836
        typeDesc.addFieldDesc(elemField);
837
        elemField = new org.apache.axis.description.ElementDesc();
838
        elemField.setFieldName("specialServicePayments");
839
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SpecialServicePayments"));
840
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightSpecialServicePayment"));
841
        elemField.setMinOccurs(0);
842
        elemField.setNillable(false);
843
        elemField.setMaxOccursUnbounded(true);
844
        typeDesc.addFieldDesc(elemField);
845
        elemField = new org.apache.axis.description.ElementDesc();
846
        elemField.setFieldName("hazardousMaterialsEmergencyContactNumber");
847
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousMaterialsEmergencyContactNumber"));
848
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
849
        elemField.setMinOccurs(0);
850
        elemField.setNillable(false);
851
        typeDesc.addFieldDesc(elemField);
852
        elemField = new org.apache.axis.description.ElementDesc();
853
        elemField.setFieldName("hazardousMaterialsOfferor");
854
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HazardousMaterialsOfferor"));
855
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
856
        elemField.setMinOccurs(0);
857
        elemField.setNillable(false);
858
        typeDesc.addFieldDesc(elemField);
859
        elemField = new org.apache.axis.description.ElementDesc();
860
        elemField.setFieldName("lineItems");
861
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "LineItems"));
862
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightShipmentLineItem"));
863
        elemField.setMinOccurs(0);
864
        elemField.setNillable(false);
865
        elemField.setMaxOccursUnbounded(true);
866
        typeDesc.addFieldDesc(elemField);
867
    }
868
 
869
    /**
870
     * Return type metadata object
871
     */
872
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
873
        return typeDesc;
874
    }
875
 
876
    /**
877
     * Get Custom Serializer
878
     */
879
    public static org.apache.axis.encoding.Serializer getSerializer(
880
           java.lang.String mechType, 
881
           java.lang.Class _javaType,  
882
           javax.xml.namespace.QName _xmlType) {
883
        return 
884
          new  org.apache.axis.encoding.ser.BeanSerializer(
885
            _javaType, _xmlType, typeDesc);
886
    }
887
 
888
    /**
889
     * Get Custom Deserializer
890
     */
891
    public static org.apache.axis.encoding.Deserializer getDeserializer(
892
           java.lang.String mechType, 
893
           java.lang.Class _javaType,  
894
           javax.xml.namespace.QName _xmlType) {
895
        return 
896
          new  org.apache.axis.encoding.ser.BeanDeserializer(
897
            _javaType, _xmlType, typeDesc);
898
    }
899
 
900
}