Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
7905 manish.sha 1
/**
2
 * PackageRateDetail.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 for a package's rates, as calculated per a specific rate type.
13
 */
14
public class PackageRateDetail  implements java.io.Serializable {
15
    /* Type used for this specific set of rate data. */
16
    private com.fedex.ship.stub.ReturnedRateType rateType;
17
 
18
    /* Indicates which weight was used. */
19
    private com.fedex.ship.stub.RatedWeightMethod ratedWeightMethod;
20
 
21
    /* INTERNAL FEDEX USE ONLY. */
22
    private com.fedex.ship.stub.MinimumChargeType minimumChargeType;
23
 
24
    /* The weight that was used to calculate the rate. */
25
    private com.fedex.ship.stub.Weight billingWeight;
26
 
27
    /* The dimensional weight of this package (if greater than actual). */
28
    private com.fedex.ship.stub.Weight dimWeight;
29
 
30
    /* The oversize weight of this package (if the package is oversize). */
31
    private com.fedex.ship.stub.Weight oversizeWeight;
32
 
33
    /* The transportation charge only (prior to any discounts applied)
34
     * for this package. */
35
    private com.fedex.ship.stub.Money baseCharge;
36
 
37
    /* The sum of all discounts on this package. */
38
    private com.fedex.ship.stub.Money totalFreightDiscounts;
39
 
40
    /* This package's baseCharge - totalFreightDiscounts. */
41
    private com.fedex.ship.stub.Money netFreight;
42
 
43
    /* The sum of all surcharges on this package. */
44
    private com.fedex.ship.stub.Money totalSurcharges;
45
 
46
    /* This package's netFreight + totalSurcharges (not including
47
     * totalTaxes). */
48
    private com.fedex.ship.stub.Money netFedExCharge;
49
 
50
    /* The sum of all taxes on this package. */
51
    private com.fedex.ship.stub.Money totalTaxes;
52
 
53
    /* This package's netFreight + totalSurcharges + totalTaxes. */
54
    private com.fedex.ship.stub.Money netCharge;
55
 
56
    /* The total sum of all rebates applied to this package. */
57
    private com.fedex.ship.stub.Money totalRebates;
58
 
59
    /* All rate discounts that apply to this package. */
60
    private com.fedex.ship.stub.RateDiscount[] freightDiscounts;
61
 
62
    /* All rebates that apply to this package. */
63
    private com.fedex.ship.stub.Rebate[] rebates;
64
 
65
    /* All surcharges that apply to this package (either because of
66
     * characteristics of the package itself, or because it is carrying per-shipment
67
     * surcharges for the shipment of which it is a part). */
68
    private com.fedex.ship.stub.Surcharge[] surcharges;
69
 
70
    /* All taxes applicable (or distributed to) this package. */
71
    private com.fedex.ship.stub.Tax[] taxes;
72
 
73
    /* The variable handling charges calculated based on the type
74
     * variable handling charges requested. */
75
    private com.fedex.ship.stub.VariableHandlingCharges variableHandlingCharges;
76
 
77
    public PackageRateDetail() {
78
    }
79
 
80
    public PackageRateDetail(
81
           com.fedex.ship.stub.ReturnedRateType rateType,
82
           com.fedex.ship.stub.RatedWeightMethod ratedWeightMethod,
83
           com.fedex.ship.stub.MinimumChargeType minimumChargeType,
84
           com.fedex.ship.stub.Weight billingWeight,
85
           com.fedex.ship.stub.Weight dimWeight,
86
           com.fedex.ship.stub.Weight oversizeWeight,
87
           com.fedex.ship.stub.Money baseCharge,
88
           com.fedex.ship.stub.Money totalFreightDiscounts,
89
           com.fedex.ship.stub.Money netFreight,
90
           com.fedex.ship.stub.Money totalSurcharges,
91
           com.fedex.ship.stub.Money netFedExCharge,
92
           com.fedex.ship.stub.Money totalTaxes,
93
           com.fedex.ship.stub.Money netCharge,
94
           com.fedex.ship.stub.Money totalRebates,
95
           com.fedex.ship.stub.RateDiscount[] freightDiscounts,
96
           com.fedex.ship.stub.Rebate[] rebates,
97
           com.fedex.ship.stub.Surcharge[] surcharges,
98
           com.fedex.ship.stub.Tax[] taxes,
99
           com.fedex.ship.stub.VariableHandlingCharges variableHandlingCharges) {
100
           this.rateType = rateType;
101
           this.ratedWeightMethod = ratedWeightMethod;
102
           this.minimumChargeType = minimumChargeType;
103
           this.billingWeight = billingWeight;
104
           this.dimWeight = dimWeight;
105
           this.oversizeWeight = oversizeWeight;
106
           this.baseCharge = baseCharge;
107
           this.totalFreightDiscounts = totalFreightDiscounts;
108
           this.netFreight = netFreight;
109
           this.totalSurcharges = totalSurcharges;
110
           this.netFedExCharge = netFedExCharge;
111
           this.totalTaxes = totalTaxes;
112
           this.netCharge = netCharge;
113
           this.totalRebates = totalRebates;
114
           this.freightDiscounts = freightDiscounts;
115
           this.rebates = rebates;
116
           this.surcharges = surcharges;
117
           this.taxes = taxes;
118
           this.variableHandlingCharges = variableHandlingCharges;
119
    }
120
 
121
 
122
    /**
123
     * Gets the rateType value for this PackageRateDetail.
124
     * 
125
     * @return rateType   * Type used for this specific set of rate data.
126
     */
127
    public com.fedex.ship.stub.ReturnedRateType getRateType() {
128
        return rateType;
129
    }
130
 
131
 
132
    /**
133
     * Sets the rateType value for this PackageRateDetail.
134
     * 
135
     * @param rateType   * Type used for this specific set of rate data.
136
     */
137
    public void setRateType(com.fedex.ship.stub.ReturnedRateType rateType) {
138
        this.rateType = rateType;
139
    }
140
 
141
 
142
    /**
143
     * Gets the ratedWeightMethod value for this PackageRateDetail.
144
     * 
145
     * @return ratedWeightMethod   * Indicates which weight was used.
146
     */
147
    public com.fedex.ship.stub.RatedWeightMethod getRatedWeightMethod() {
148
        return ratedWeightMethod;
149
    }
150
 
151
 
152
    /**
153
     * Sets the ratedWeightMethod value for this PackageRateDetail.
154
     * 
155
     * @param ratedWeightMethod   * Indicates which weight was used.
156
     */
157
    public void setRatedWeightMethod(com.fedex.ship.stub.RatedWeightMethod ratedWeightMethod) {
158
        this.ratedWeightMethod = ratedWeightMethod;
159
    }
160
 
161
 
162
    /**
163
     * Gets the minimumChargeType value for this PackageRateDetail.
164
     * 
165
     * @return minimumChargeType   * INTERNAL FEDEX USE ONLY.
166
     */
167
    public com.fedex.ship.stub.MinimumChargeType getMinimumChargeType() {
168
        return minimumChargeType;
169
    }
170
 
171
 
172
    /**
173
     * Sets the minimumChargeType value for this PackageRateDetail.
174
     * 
175
     * @param minimumChargeType   * INTERNAL FEDEX USE ONLY.
176
     */
177
    public void setMinimumChargeType(com.fedex.ship.stub.MinimumChargeType minimumChargeType) {
178
        this.minimumChargeType = minimumChargeType;
179
    }
180
 
181
 
182
    /**
183
     * Gets the billingWeight value for this PackageRateDetail.
184
     * 
185
     * @return billingWeight   * The weight that was used to calculate the rate.
186
     */
187
    public com.fedex.ship.stub.Weight getBillingWeight() {
188
        return billingWeight;
189
    }
190
 
191
 
192
    /**
193
     * Sets the billingWeight value for this PackageRateDetail.
194
     * 
195
     * @param billingWeight   * The weight that was used to calculate the rate.
196
     */
197
    public void setBillingWeight(com.fedex.ship.stub.Weight billingWeight) {
198
        this.billingWeight = billingWeight;
199
    }
200
 
201
 
202
    /**
203
     * Gets the dimWeight value for this PackageRateDetail.
204
     * 
205
     * @return dimWeight   * The dimensional weight of this package (if greater than actual).
206
     */
207
    public com.fedex.ship.stub.Weight getDimWeight() {
208
        return dimWeight;
209
    }
210
 
211
 
212
    /**
213
     * Sets the dimWeight value for this PackageRateDetail.
214
     * 
215
     * @param dimWeight   * The dimensional weight of this package (if greater than actual).
216
     */
217
    public void setDimWeight(com.fedex.ship.stub.Weight dimWeight) {
218
        this.dimWeight = dimWeight;
219
    }
220
 
221
 
222
    /**
223
     * Gets the oversizeWeight value for this PackageRateDetail.
224
     * 
225
     * @return oversizeWeight   * The oversize weight of this package (if the package is oversize).
226
     */
227
    public com.fedex.ship.stub.Weight getOversizeWeight() {
228
        return oversizeWeight;
229
    }
230
 
231
 
232
    /**
233
     * Sets the oversizeWeight value for this PackageRateDetail.
234
     * 
235
     * @param oversizeWeight   * The oversize weight of this package (if the package is oversize).
236
     */
237
    public void setOversizeWeight(com.fedex.ship.stub.Weight oversizeWeight) {
238
        this.oversizeWeight = oversizeWeight;
239
    }
240
 
241
 
242
    /**
243
     * Gets the baseCharge value for this PackageRateDetail.
244
     * 
245
     * @return baseCharge   * The transportation charge only (prior to any discounts applied)
246
     * for this package.
247
     */
248
    public com.fedex.ship.stub.Money getBaseCharge() {
249
        return baseCharge;
250
    }
251
 
252
 
253
    /**
254
     * Sets the baseCharge value for this PackageRateDetail.
255
     * 
256
     * @param baseCharge   * The transportation charge only (prior to any discounts applied)
257
     * for this package.
258
     */
259
    public void setBaseCharge(com.fedex.ship.stub.Money baseCharge) {
260
        this.baseCharge = baseCharge;
261
    }
262
 
263
 
264
    /**
265
     * Gets the totalFreightDiscounts value for this PackageRateDetail.
266
     * 
267
     * @return totalFreightDiscounts   * The sum of all discounts on this package.
268
     */
269
    public com.fedex.ship.stub.Money getTotalFreightDiscounts() {
270
        return totalFreightDiscounts;
271
    }
272
 
273
 
274
    /**
275
     * Sets the totalFreightDiscounts value for this PackageRateDetail.
276
     * 
277
     * @param totalFreightDiscounts   * The sum of all discounts on this package.
278
     */
279
    public void setTotalFreightDiscounts(com.fedex.ship.stub.Money totalFreightDiscounts) {
280
        this.totalFreightDiscounts = totalFreightDiscounts;
281
    }
282
 
283
 
284
    /**
285
     * Gets the netFreight value for this PackageRateDetail.
286
     * 
287
     * @return netFreight   * This package's baseCharge - totalFreightDiscounts.
288
     */
289
    public com.fedex.ship.stub.Money getNetFreight() {
290
        return netFreight;
291
    }
292
 
293
 
294
    /**
295
     * Sets the netFreight value for this PackageRateDetail.
296
     * 
297
     * @param netFreight   * This package's baseCharge - totalFreightDiscounts.
298
     */
299
    public void setNetFreight(com.fedex.ship.stub.Money netFreight) {
300
        this.netFreight = netFreight;
301
    }
302
 
303
 
304
    /**
305
     * Gets the totalSurcharges value for this PackageRateDetail.
306
     * 
307
     * @return totalSurcharges   * The sum of all surcharges on this package.
308
     */
309
    public com.fedex.ship.stub.Money getTotalSurcharges() {
310
        return totalSurcharges;
311
    }
312
 
313
 
314
    /**
315
     * Sets the totalSurcharges value for this PackageRateDetail.
316
     * 
317
     * @param totalSurcharges   * The sum of all surcharges on this package.
318
     */
319
    public void setTotalSurcharges(com.fedex.ship.stub.Money totalSurcharges) {
320
        this.totalSurcharges = totalSurcharges;
321
    }
322
 
323
 
324
    /**
325
     * Gets the netFedExCharge value for this PackageRateDetail.
326
     * 
327
     * @return netFedExCharge   * This package's netFreight + totalSurcharges (not including
328
     * totalTaxes).
329
     */
330
    public com.fedex.ship.stub.Money getNetFedExCharge() {
331
        return netFedExCharge;
332
    }
333
 
334
 
335
    /**
336
     * Sets the netFedExCharge value for this PackageRateDetail.
337
     * 
338
     * @param netFedExCharge   * This package's netFreight + totalSurcharges (not including
339
     * totalTaxes).
340
     */
341
    public void setNetFedExCharge(com.fedex.ship.stub.Money netFedExCharge) {
342
        this.netFedExCharge = netFedExCharge;
343
    }
344
 
345
 
346
    /**
347
     * Gets the totalTaxes value for this PackageRateDetail.
348
     * 
349
     * @return totalTaxes   * The sum of all taxes on this package.
350
     */
351
    public com.fedex.ship.stub.Money getTotalTaxes() {
352
        return totalTaxes;
353
    }
354
 
355
 
356
    /**
357
     * Sets the totalTaxes value for this PackageRateDetail.
358
     * 
359
     * @param totalTaxes   * The sum of all taxes on this package.
360
     */
361
    public void setTotalTaxes(com.fedex.ship.stub.Money totalTaxes) {
362
        this.totalTaxes = totalTaxes;
363
    }
364
 
365
 
366
    /**
367
     * Gets the netCharge value for this PackageRateDetail.
368
     * 
369
     * @return netCharge   * This package's netFreight + totalSurcharges + totalTaxes.
370
     */
371
    public com.fedex.ship.stub.Money getNetCharge() {
372
        return netCharge;
373
    }
374
 
375
 
376
    /**
377
     * Sets the netCharge value for this PackageRateDetail.
378
     * 
379
     * @param netCharge   * This package's netFreight + totalSurcharges + totalTaxes.
380
     */
381
    public void setNetCharge(com.fedex.ship.stub.Money netCharge) {
382
        this.netCharge = netCharge;
383
    }
384
 
385
 
386
    /**
387
     * Gets the totalRebates value for this PackageRateDetail.
388
     * 
389
     * @return totalRebates   * The total sum of all rebates applied to this package.
390
     */
391
    public com.fedex.ship.stub.Money getTotalRebates() {
392
        return totalRebates;
393
    }
394
 
395
 
396
    /**
397
     * Sets the totalRebates value for this PackageRateDetail.
398
     * 
399
     * @param totalRebates   * The total sum of all rebates applied to this package.
400
     */
401
    public void setTotalRebates(com.fedex.ship.stub.Money totalRebates) {
402
        this.totalRebates = totalRebates;
403
    }
404
 
405
 
406
    /**
407
     * Gets the freightDiscounts value for this PackageRateDetail.
408
     * 
409
     * @return freightDiscounts   * All rate discounts that apply to this package.
410
     */
411
    public com.fedex.ship.stub.RateDiscount[] getFreightDiscounts() {
412
        return freightDiscounts;
413
    }
414
 
415
 
416
    /**
417
     * Sets the freightDiscounts value for this PackageRateDetail.
418
     * 
419
     * @param freightDiscounts   * All rate discounts that apply to this package.
420
     */
421
    public void setFreightDiscounts(com.fedex.ship.stub.RateDiscount[] freightDiscounts) {
422
        this.freightDiscounts = freightDiscounts;
423
    }
424
 
425
    public com.fedex.ship.stub.RateDiscount getFreightDiscounts(int i) {
426
        return this.freightDiscounts[i];
427
    }
428
 
429
    public void setFreightDiscounts(int i, com.fedex.ship.stub.RateDiscount _value) {
430
        this.freightDiscounts[i] = _value;
431
    }
432
 
433
 
434
    /**
435
     * Gets the rebates value for this PackageRateDetail.
436
     * 
437
     * @return rebates   * All rebates that apply to this package.
438
     */
439
    public com.fedex.ship.stub.Rebate[] getRebates() {
440
        return rebates;
441
    }
442
 
443
 
444
    /**
445
     * Sets the rebates value for this PackageRateDetail.
446
     * 
447
     * @param rebates   * All rebates that apply to this package.
448
     */
449
    public void setRebates(com.fedex.ship.stub.Rebate[] rebates) {
450
        this.rebates = rebates;
451
    }
452
 
453
    public com.fedex.ship.stub.Rebate getRebates(int i) {
454
        return this.rebates[i];
455
    }
456
 
457
    public void setRebates(int i, com.fedex.ship.stub.Rebate _value) {
458
        this.rebates[i] = _value;
459
    }
460
 
461
 
462
    /**
463
     * Gets the surcharges value for this PackageRateDetail.
464
     * 
465
     * @return surcharges   * All surcharges that apply to this package (either because of
466
     * characteristics of the package itself, or because it is carrying per-shipment
467
     * surcharges for the shipment of which it is a part).
468
     */
469
    public com.fedex.ship.stub.Surcharge[] getSurcharges() {
470
        return surcharges;
471
    }
472
 
473
 
474
    /**
475
     * Sets the surcharges value for this PackageRateDetail.
476
     * 
477
     * @param surcharges   * All surcharges that apply to this package (either because of
478
     * characteristics of the package itself, or because it is carrying per-shipment
479
     * surcharges for the shipment of which it is a part).
480
     */
481
    public void setSurcharges(com.fedex.ship.stub.Surcharge[] surcharges) {
482
        this.surcharges = surcharges;
483
    }
484
 
485
    public com.fedex.ship.stub.Surcharge getSurcharges(int i) {
486
        return this.surcharges[i];
487
    }
488
 
489
    public void setSurcharges(int i, com.fedex.ship.stub.Surcharge _value) {
490
        this.surcharges[i] = _value;
491
    }
492
 
493
 
494
    /**
495
     * Gets the taxes value for this PackageRateDetail.
496
     * 
497
     * @return taxes   * All taxes applicable (or distributed to) this package.
498
     */
499
    public com.fedex.ship.stub.Tax[] getTaxes() {
500
        return taxes;
501
    }
502
 
503
 
504
    /**
505
     * Sets the taxes value for this PackageRateDetail.
506
     * 
507
     * @param taxes   * All taxes applicable (or distributed to) this package.
508
     */
509
    public void setTaxes(com.fedex.ship.stub.Tax[] taxes) {
510
        this.taxes = taxes;
511
    }
512
 
513
    public com.fedex.ship.stub.Tax getTaxes(int i) {
514
        return this.taxes[i];
515
    }
516
 
517
    public void setTaxes(int i, com.fedex.ship.stub.Tax _value) {
518
        this.taxes[i] = _value;
519
    }
520
 
521
 
522
    /**
523
     * Gets the variableHandlingCharges value for this PackageRateDetail.
524
     * 
525
     * @return variableHandlingCharges   * The variable handling charges calculated based on the type
526
     * variable handling charges requested.
527
     */
528
    public com.fedex.ship.stub.VariableHandlingCharges getVariableHandlingCharges() {
529
        return variableHandlingCharges;
530
    }
531
 
532
 
533
    /**
534
     * Sets the variableHandlingCharges value for this PackageRateDetail.
535
     * 
536
     * @param variableHandlingCharges   * The variable handling charges calculated based on the type
537
     * variable handling charges requested.
538
     */
539
    public void setVariableHandlingCharges(com.fedex.ship.stub.VariableHandlingCharges variableHandlingCharges) {
540
        this.variableHandlingCharges = variableHandlingCharges;
541
    }
542
 
543
    private java.lang.Object __equalsCalc = null;
544
    public synchronized boolean equals(java.lang.Object obj) {
545
        if (!(obj instanceof PackageRateDetail)) return false;
546
        PackageRateDetail other = (PackageRateDetail) obj;
547
        if (obj == null) return false;
548
        if (this == obj) return true;
549
        if (__equalsCalc != null) {
550
            return (__equalsCalc == obj);
551
        }
552
        __equalsCalc = obj;
553
        boolean _equals;
554
        _equals = true && 
555
            ((this.rateType==null && other.getRateType()==null) || 
556
             (this.rateType!=null &&
557
              this.rateType.equals(other.getRateType()))) &&
558
            ((this.ratedWeightMethod==null && other.getRatedWeightMethod()==null) || 
559
             (this.ratedWeightMethod!=null &&
560
              this.ratedWeightMethod.equals(other.getRatedWeightMethod()))) &&
561
            ((this.minimumChargeType==null && other.getMinimumChargeType()==null) || 
562
             (this.minimumChargeType!=null &&
563
              this.minimumChargeType.equals(other.getMinimumChargeType()))) &&
564
            ((this.billingWeight==null && other.getBillingWeight()==null) || 
565
             (this.billingWeight!=null &&
566
              this.billingWeight.equals(other.getBillingWeight()))) &&
567
            ((this.dimWeight==null && other.getDimWeight()==null) || 
568
             (this.dimWeight!=null &&
569
              this.dimWeight.equals(other.getDimWeight()))) &&
570
            ((this.oversizeWeight==null && other.getOversizeWeight()==null) || 
571
             (this.oversizeWeight!=null &&
572
              this.oversizeWeight.equals(other.getOversizeWeight()))) &&
573
            ((this.baseCharge==null && other.getBaseCharge()==null) || 
574
             (this.baseCharge!=null &&
575
              this.baseCharge.equals(other.getBaseCharge()))) &&
576
            ((this.totalFreightDiscounts==null && other.getTotalFreightDiscounts()==null) || 
577
             (this.totalFreightDiscounts!=null &&
578
              this.totalFreightDiscounts.equals(other.getTotalFreightDiscounts()))) &&
579
            ((this.netFreight==null && other.getNetFreight()==null) || 
580
             (this.netFreight!=null &&
581
              this.netFreight.equals(other.getNetFreight()))) &&
582
            ((this.totalSurcharges==null && other.getTotalSurcharges()==null) || 
583
             (this.totalSurcharges!=null &&
584
              this.totalSurcharges.equals(other.getTotalSurcharges()))) &&
585
            ((this.netFedExCharge==null && other.getNetFedExCharge()==null) || 
586
             (this.netFedExCharge!=null &&
587
              this.netFedExCharge.equals(other.getNetFedExCharge()))) &&
588
            ((this.totalTaxes==null && other.getTotalTaxes()==null) || 
589
             (this.totalTaxes!=null &&
590
              this.totalTaxes.equals(other.getTotalTaxes()))) &&
591
            ((this.netCharge==null && other.getNetCharge()==null) || 
592
             (this.netCharge!=null &&
593
              this.netCharge.equals(other.getNetCharge()))) &&
594
            ((this.totalRebates==null && other.getTotalRebates()==null) || 
595
             (this.totalRebates!=null &&
596
              this.totalRebates.equals(other.getTotalRebates()))) &&
597
            ((this.freightDiscounts==null && other.getFreightDiscounts()==null) || 
598
             (this.freightDiscounts!=null &&
599
              java.util.Arrays.equals(this.freightDiscounts, other.getFreightDiscounts()))) &&
600
            ((this.rebates==null && other.getRebates()==null) || 
601
             (this.rebates!=null &&
602
              java.util.Arrays.equals(this.rebates, other.getRebates()))) &&
603
            ((this.surcharges==null && other.getSurcharges()==null) || 
604
             (this.surcharges!=null &&
605
              java.util.Arrays.equals(this.surcharges, other.getSurcharges()))) &&
606
            ((this.taxes==null && other.getTaxes()==null) || 
607
             (this.taxes!=null &&
608
              java.util.Arrays.equals(this.taxes, other.getTaxes()))) &&
609
            ((this.variableHandlingCharges==null && other.getVariableHandlingCharges()==null) || 
610
             (this.variableHandlingCharges!=null &&
611
              this.variableHandlingCharges.equals(other.getVariableHandlingCharges())));
612
        __equalsCalc = null;
613
        return _equals;
614
    }
615
 
616
    private boolean __hashCodeCalc = false;
617
    public synchronized int hashCode() {
618
        if (__hashCodeCalc) {
619
            return 0;
620
        }
621
        __hashCodeCalc = true;
622
        int _hashCode = 1;
623
        if (getRateType() != null) {
624
            _hashCode += getRateType().hashCode();
625
        }
626
        if (getRatedWeightMethod() != null) {
627
            _hashCode += getRatedWeightMethod().hashCode();
628
        }
629
        if (getMinimumChargeType() != null) {
630
            _hashCode += getMinimumChargeType().hashCode();
631
        }
632
        if (getBillingWeight() != null) {
633
            _hashCode += getBillingWeight().hashCode();
634
        }
635
        if (getDimWeight() != null) {
636
            _hashCode += getDimWeight().hashCode();
637
        }
638
        if (getOversizeWeight() != null) {
639
            _hashCode += getOversizeWeight().hashCode();
640
        }
641
        if (getBaseCharge() != null) {
642
            _hashCode += getBaseCharge().hashCode();
643
        }
644
        if (getTotalFreightDiscounts() != null) {
645
            _hashCode += getTotalFreightDiscounts().hashCode();
646
        }
647
        if (getNetFreight() != null) {
648
            _hashCode += getNetFreight().hashCode();
649
        }
650
        if (getTotalSurcharges() != null) {
651
            _hashCode += getTotalSurcharges().hashCode();
652
        }
653
        if (getNetFedExCharge() != null) {
654
            _hashCode += getNetFedExCharge().hashCode();
655
        }
656
        if (getTotalTaxes() != null) {
657
            _hashCode += getTotalTaxes().hashCode();
658
        }
659
        if (getNetCharge() != null) {
660
            _hashCode += getNetCharge().hashCode();
661
        }
662
        if (getTotalRebates() != null) {
663
            _hashCode += getTotalRebates().hashCode();
664
        }
665
        if (getFreightDiscounts() != null) {
666
            for (int i=0;
667
                 i<java.lang.reflect.Array.getLength(getFreightDiscounts());
668
                 i++) {
669
                java.lang.Object obj = java.lang.reflect.Array.get(getFreightDiscounts(), i);
670
                if (obj != null &&
671
                    !obj.getClass().isArray()) {
672
                    _hashCode += obj.hashCode();
673
                }
674
            }
675
        }
676
        if (getRebates() != null) {
677
            for (int i=0;
678
                 i<java.lang.reflect.Array.getLength(getRebates());
679
                 i++) {
680
                java.lang.Object obj = java.lang.reflect.Array.get(getRebates(), i);
681
                if (obj != null &&
682
                    !obj.getClass().isArray()) {
683
                    _hashCode += obj.hashCode();
684
                }
685
            }
686
        }
687
        if (getSurcharges() != null) {
688
            for (int i=0;
689
                 i<java.lang.reflect.Array.getLength(getSurcharges());
690
                 i++) {
691
                java.lang.Object obj = java.lang.reflect.Array.get(getSurcharges(), i);
692
                if (obj != null &&
693
                    !obj.getClass().isArray()) {
694
                    _hashCode += obj.hashCode();
695
                }
696
            }
697
        }
698
        if (getTaxes() != null) {
699
            for (int i=0;
700
                 i<java.lang.reflect.Array.getLength(getTaxes());
701
                 i++) {
702
                java.lang.Object obj = java.lang.reflect.Array.get(getTaxes(), i);
703
                if (obj != null &&
704
                    !obj.getClass().isArray()) {
705
                    _hashCode += obj.hashCode();
706
                }
707
            }
708
        }
709
        if (getVariableHandlingCharges() != null) {
710
            _hashCode += getVariableHandlingCharges().hashCode();
711
        }
712
        __hashCodeCalc = false;
713
        return _hashCode;
714
    }
715
 
716
    // Type metadata
717
    private static org.apache.axis.description.TypeDesc typeDesc =
718
        new org.apache.axis.description.TypeDesc(PackageRateDetail.class, true);
719
 
720
    static {
721
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageRateDetail"));
722
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
723
        elemField.setFieldName("rateType");
724
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateType"));
725
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ReturnedRateType"));
726
        elemField.setMinOccurs(0);
727
        elemField.setNillable(false);
728
        typeDesc.addFieldDesc(elemField);
729
        elemField = new org.apache.axis.description.ElementDesc();
730
        elemField.setFieldName("ratedWeightMethod");
731
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RatedWeightMethod"));
732
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RatedWeightMethod"));
733
        elemField.setMinOccurs(0);
734
        elemField.setNillable(false);
735
        typeDesc.addFieldDesc(elemField);
736
        elemField = new org.apache.axis.description.ElementDesc();
737
        elemField.setFieldName("minimumChargeType");
738
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "MinimumChargeType"));
739
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "MinimumChargeType"));
740
        elemField.setMinOccurs(0);
741
        elemField.setNillable(false);
742
        typeDesc.addFieldDesc(elemField);
743
        elemField = new org.apache.axis.description.ElementDesc();
744
        elemField.setFieldName("billingWeight");
745
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BillingWeight"));
746
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
747
        elemField.setMinOccurs(0);
748
        elemField.setNillable(false);
749
        typeDesc.addFieldDesc(elemField);
750
        elemField = new org.apache.axis.description.ElementDesc();
751
        elemField.setFieldName("dimWeight");
752
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DimWeight"));
753
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
754
        elemField.setMinOccurs(0);
755
        elemField.setNillable(false);
756
        typeDesc.addFieldDesc(elemField);
757
        elemField = new org.apache.axis.description.ElementDesc();
758
        elemField.setFieldName("oversizeWeight");
759
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "OversizeWeight"));
760
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Weight"));
761
        elemField.setMinOccurs(0);
762
        elemField.setNillable(false);
763
        typeDesc.addFieldDesc(elemField);
764
        elemField = new org.apache.axis.description.ElementDesc();
765
        elemField.setFieldName("baseCharge");
766
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "BaseCharge"));
767
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
768
        elemField.setMinOccurs(0);
769
        elemField.setNillable(false);
770
        typeDesc.addFieldDesc(elemField);
771
        elemField = new org.apache.axis.description.ElementDesc();
772
        elemField.setFieldName("totalFreightDiscounts");
773
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalFreightDiscounts"));
774
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
775
        elemField.setMinOccurs(0);
776
        elemField.setNillable(false);
777
        typeDesc.addFieldDesc(elemField);
778
        elemField = new org.apache.axis.description.ElementDesc();
779
        elemField.setFieldName("netFreight");
780
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NetFreight"));
781
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
782
        elemField.setMinOccurs(0);
783
        elemField.setNillable(false);
784
        typeDesc.addFieldDesc(elemField);
785
        elemField = new org.apache.axis.description.ElementDesc();
786
        elemField.setFieldName("totalSurcharges");
787
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalSurcharges"));
788
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
789
        elemField.setMinOccurs(0);
790
        elemField.setNillable(false);
791
        typeDesc.addFieldDesc(elemField);
792
        elemField = new org.apache.axis.description.ElementDesc();
793
        elemField.setFieldName("netFedExCharge");
794
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NetFedExCharge"));
795
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
796
        elemField.setMinOccurs(0);
797
        elemField.setNillable(false);
798
        typeDesc.addFieldDesc(elemField);
799
        elemField = new org.apache.axis.description.ElementDesc();
800
        elemField.setFieldName("totalTaxes");
801
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalTaxes"));
802
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
803
        elemField.setMinOccurs(0);
804
        elemField.setNillable(false);
805
        typeDesc.addFieldDesc(elemField);
806
        elemField = new org.apache.axis.description.ElementDesc();
807
        elemField.setFieldName("netCharge");
808
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "NetCharge"));
809
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
810
        elemField.setMinOccurs(0);
811
        elemField.setNillable(false);
812
        typeDesc.addFieldDesc(elemField);
813
        elemField = new org.apache.axis.description.ElementDesc();
814
        elemField.setFieldName("totalRebates");
815
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TotalRebates"));
816
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
817
        elemField.setMinOccurs(0);
818
        elemField.setNillable(false);
819
        typeDesc.addFieldDesc(elemField);
820
        elemField = new org.apache.axis.description.ElementDesc();
821
        elemField.setFieldName("freightDiscounts");
822
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightDiscounts"));
823
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "RateDiscount"));
824
        elemField.setMinOccurs(0);
825
        elemField.setNillable(false);
826
        elemField.setMaxOccursUnbounded(true);
827
        typeDesc.addFieldDesc(elemField);
828
        elemField = new org.apache.axis.description.ElementDesc();
829
        elemField.setFieldName("rebates");
830
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Rebates"));
831
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Rebate"));
832
        elemField.setMinOccurs(0);
833
        elemField.setNillable(false);
834
        elemField.setMaxOccursUnbounded(true);
835
        typeDesc.addFieldDesc(elemField);
836
        elemField = new org.apache.axis.description.ElementDesc();
837
        elemField.setFieldName("surcharges");
838
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Surcharges"));
839
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Surcharge"));
840
        elemField.setMinOccurs(0);
841
        elemField.setNillable(false);
842
        elemField.setMaxOccursUnbounded(true);
843
        typeDesc.addFieldDesc(elemField);
844
        elemField = new org.apache.axis.description.ElementDesc();
845
        elemField.setFieldName("taxes");
846
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Taxes"));
847
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Tax"));
848
        elemField.setMinOccurs(0);
849
        elemField.setNillable(false);
850
        elemField.setMaxOccursUnbounded(true);
851
        typeDesc.addFieldDesc(elemField);
852
        elemField = new org.apache.axis.description.ElementDesc();
853
        elemField.setFieldName("variableHandlingCharges");
854
        elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VariableHandlingCharges"));
855
        elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "VariableHandlingCharges"));
856
        elemField.setMinOccurs(0);
857
        elemField.setNillable(false);
858
        typeDesc.addFieldDesc(elemField);
859
    }
860
 
861
    /**
862
     * Return type metadata object
863
     */
864
    public static org.apache.axis.description.TypeDesc getTypeDesc() {
865
        return typeDesc;
866
    }
867
 
868
    /**
869
     * Get Custom Serializer
870
     */
871
    public static org.apache.axis.encoding.Serializer getSerializer(
872
           java.lang.String mechType, 
873
           java.lang.Class _javaType,  
874
           javax.xml.namespace.QName _xmlType) {
875
        return 
876
          new  org.apache.axis.encoding.ser.BeanSerializer(
877
            _javaType, _xmlType, typeDesc);
878
    }
879
 
880
    /**
881
     * Get Custom Deserializer
882
     */
883
    public static org.apache.axis.encoding.Deserializer getDeserializer(
884
           java.lang.String mechType, 
885
           java.lang.Class _javaType,  
886
           javax.xml.namespace.QName _xmlType) {
887
        return 
888
          new  org.apache.axis.encoding.ser.BeanDeserializer(
889
            _javaType, _xmlType, typeDesc);
890
    }
891
 
892
}