| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* CommercialInvoice.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 |
* CommercialInvoice element is required for electronic upload of
|
|
|
13 |
* CI data. It will serve to create/transmit an Electronic Commercial
|
|
|
14 |
* Invoice through the FedEx Systems. Customers are responsible for printing
|
|
|
15 |
* their own Commercial Invoice.If you would likeFedEx to generate a
|
|
|
16 |
* Commercial Invoice and transmit it to Customs. for clearance purposes,
|
|
|
17 |
* you need to specify that in the ShippingDocumentSpecification element.
|
|
|
18 |
* If you would like a copy of the Commercial Invoice that FedEx generated
|
|
|
19 |
* returned to you in reply it needs to be specified in the ETDDetail/RequestedDocumentCopies
|
|
|
20 |
* element. Commercial Invoice support consists of maximum of 99 commodity
|
|
|
21 |
* line items.
|
|
|
22 |
*/
|
|
|
23 |
public class CommercialInvoice implements java.io.Serializable {
|
|
|
24 |
/* Any comments that need to be communicated about this shipment. */
|
|
|
25 |
private java.lang.String[] comments;
|
|
|
26 |
|
|
|
27 |
/* Any freight charges that are associated with this shipment. */
|
|
|
28 |
private com.fedex.ship.stub.Money freightCharge;
|
|
|
29 |
|
|
|
30 |
/* Any taxes or miscellaneous charges(other than Freight charges
|
|
|
31 |
* or Insurance charges) that are associated with this shipment. */
|
|
|
32 |
private com.fedex.ship.stub.Money taxesOrMiscellaneousCharge;
|
|
|
33 |
|
|
|
34 |
/* Specifies which kind of charge is being recorded in the preceding
|
|
|
35 |
* field. */
|
|
|
36 |
private com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType;
|
|
|
37 |
|
|
|
38 |
/* Any packing costs that are associated with this shipment. */
|
|
|
39 |
private com.fedex.ship.stub.Money packingCosts;
|
|
|
40 |
|
|
|
41 |
/* Any handling costs that are associated with this shipment. */
|
|
|
42 |
private com.fedex.ship.stub.Money handlingCosts;
|
|
|
43 |
|
|
|
44 |
/* Free-form text. */
|
|
|
45 |
private java.lang.String specialInstructions;
|
|
|
46 |
|
|
|
47 |
/* Free-form text. */
|
|
|
48 |
private java.lang.String declarationStatement;
|
|
|
49 |
|
|
|
50 |
/* Free-form text. */
|
|
|
51 |
private java.lang.String paymentTerms;
|
|
|
52 |
|
|
|
53 |
/* The reason for the shipment. Note: SOLD is not a valid purpose
|
|
|
54 |
* for a Proforma Invoice. */
|
|
|
55 |
private com.fedex.ship.stub.PurposeOfShipmentType purpose;
|
|
|
56 |
|
|
|
57 |
/* Additional customer reference data. */
|
|
|
58 |
private com.fedex.ship.stub.CustomerReference[] customerReferences;
|
|
|
59 |
|
|
|
60 |
/* Name of the International Expert that completed the Commercial
|
|
|
61 |
* Invoice different from Sender. */
|
|
|
62 |
private java.lang.String originatorName;
|
|
|
63 |
|
|
|
64 |
/* Required for dutiable international Express or Ground shipment.
|
|
|
65 |
* This field is not applicable to an international PIB(document) or
|
|
|
66 |
* a non-document which does not require a Commercial Invoice */
|
|
|
67 |
private com.fedex.ship.stub.TermsOfSaleType termsOfSale;
|
|
|
68 |
|
|
|
69 |
public CommercialInvoice() {
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
public CommercialInvoice(
|
|
|
73 |
java.lang.String[] comments,
|
|
|
74 |
com.fedex.ship.stub.Money freightCharge,
|
|
|
75 |
com.fedex.ship.stub.Money taxesOrMiscellaneousCharge,
|
|
|
76 |
com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType,
|
|
|
77 |
com.fedex.ship.stub.Money packingCosts,
|
|
|
78 |
com.fedex.ship.stub.Money handlingCosts,
|
|
|
79 |
java.lang.String specialInstructions,
|
|
|
80 |
java.lang.String declarationStatement,
|
|
|
81 |
java.lang.String paymentTerms,
|
|
|
82 |
com.fedex.ship.stub.PurposeOfShipmentType purpose,
|
|
|
83 |
com.fedex.ship.stub.CustomerReference[] customerReferences,
|
|
|
84 |
java.lang.String originatorName,
|
|
|
85 |
com.fedex.ship.stub.TermsOfSaleType termsOfSale) {
|
|
|
86 |
this.comments = comments;
|
|
|
87 |
this.freightCharge = freightCharge;
|
|
|
88 |
this.taxesOrMiscellaneousCharge = taxesOrMiscellaneousCharge;
|
|
|
89 |
this.taxesOrMiscellaneousChargeType = taxesOrMiscellaneousChargeType;
|
|
|
90 |
this.packingCosts = packingCosts;
|
|
|
91 |
this.handlingCosts = handlingCosts;
|
|
|
92 |
this.specialInstructions = specialInstructions;
|
|
|
93 |
this.declarationStatement = declarationStatement;
|
|
|
94 |
this.paymentTerms = paymentTerms;
|
|
|
95 |
this.purpose = purpose;
|
|
|
96 |
this.customerReferences = customerReferences;
|
|
|
97 |
this.originatorName = originatorName;
|
|
|
98 |
this.termsOfSale = termsOfSale;
|
|
|
99 |
}
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
/**
|
|
|
103 |
* Gets the comments value for this CommercialInvoice.
|
|
|
104 |
*
|
|
|
105 |
* @return comments * Any comments that need to be communicated about this shipment.
|
|
|
106 |
*/
|
|
|
107 |
public java.lang.String[] getComments() {
|
|
|
108 |
return comments;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
|
|
|
112 |
/**
|
|
|
113 |
* Sets the comments value for this CommercialInvoice.
|
|
|
114 |
*
|
|
|
115 |
* @param comments * Any comments that need to be communicated about this shipment.
|
|
|
116 |
*/
|
|
|
117 |
public void setComments(java.lang.String[] comments) {
|
|
|
118 |
this.comments = comments;
|
|
|
119 |
}
|
|
|
120 |
|
|
|
121 |
public java.lang.String getComments(int i) {
|
|
|
122 |
return this.comments[i];
|
|
|
123 |
}
|
|
|
124 |
|
|
|
125 |
public void setComments(int i, java.lang.String _value) {
|
|
|
126 |
this.comments[i] = _value;
|
|
|
127 |
}
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
/**
|
|
|
131 |
* Gets the freightCharge value for this CommercialInvoice.
|
|
|
132 |
*
|
|
|
133 |
* @return freightCharge * Any freight charges that are associated with this shipment.
|
|
|
134 |
*/
|
|
|
135 |
public com.fedex.ship.stub.Money getFreightCharge() {
|
|
|
136 |
return freightCharge;
|
|
|
137 |
}
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
/**
|
|
|
141 |
* Sets the freightCharge value for this CommercialInvoice.
|
|
|
142 |
*
|
|
|
143 |
* @param freightCharge * Any freight charges that are associated with this shipment.
|
|
|
144 |
*/
|
|
|
145 |
public void setFreightCharge(com.fedex.ship.stub.Money freightCharge) {
|
|
|
146 |
this.freightCharge = freightCharge;
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
/**
|
|
|
151 |
* Gets the taxesOrMiscellaneousCharge value for this CommercialInvoice.
|
|
|
152 |
*
|
|
|
153 |
* @return taxesOrMiscellaneousCharge * Any taxes or miscellaneous charges(other than Freight charges
|
|
|
154 |
* or Insurance charges) that are associated with this shipment.
|
|
|
155 |
*/
|
|
|
156 |
public com.fedex.ship.stub.Money getTaxesOrMiscellaneousCharge() {
|
|
|
157 |
return taxesOrMiscellaneousCharge;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
/**
|
|
|
162 |
* Sets the taxesOrMiscellaneousCharge value for this CommercialInvoice.
|
|
|
163 |
*
|
|
|
164 |
* @param taxesOrMiscellaneousCharge * Any taxes or miscellaneous charges(other than Freight charges
|
|
|
165 |
* or Insurance charges) that are associated with this shipment.
|
|
|
166 |
*/
|
|
|
167 |
public void setTaxesOrMiscellaneousCharge(com.fedex.ship.stub.Money taxesOrMiscellaneousCharge) {
|
|
|
168 |
this.taxesOrMiscellaneousCharge = taxesOrMiscellaneousCharge;
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
|
|
|
172 |
/**
|
|
|
173 |
* Gets the taxesOrMiscellaneousChargeType value for this CommercialInvoice.
|
|
|
174 |
*
|
|
|
175 |
* @return taxesOrMiscellaneousChargeType * Specifies which kind of charge is being recorded in the preceding
|
|
|
176 |
* field.
|
|
|
177 |
*/
|
|
|
178 |
public com.fedex.ship.stub.TaxesOrMiscellaneousChargeType getTaxesOrMiscellaneousChargeType() {
|
|
|
179 |
return taxesOrMiscellaneousChargeType;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
/**
|
|
|
184 |
* Sets the taxesOrMiscellaneousChargeType value for this CommercialInvoice.
|
|
|
185 |
*
|
|
|
186 |
* @param taxesOrMiscellaneousChargeType * Specifies which kind of charge is being recorded in the preceding
|
|
|
187 |
* field.
|
|
|
188 |
*/
|
|
|
189 |
public void setTaxesOrMiscellaneousChargeType(com.fedex.ship.stub.TaxesOrMiscellaneousChargeType taxesOrMiscellaneousChargeType) {
|
|
|
190 |
this.taxesOrMiscellaneousChargeType = taxesOrMiscellaneousChargeType;
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
/**
|
|
|
195 |
* Gets the packingCosts value for this CommercialInvoice.
|
|
|
196 |
*
|
|
|
197 |
* @return packingCosts * Any packing costs that are associated with this shipment.
|
|
|
198 |
*/
|
|
|
199 |
public com.fedex.ship.stub.Money getPackingCosts() {
|
|
|
200 |
return packingCosts;
|
|
|
201 |
}
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
/**
|
|
|
205 |
* Sets the packingCosts value for this CommercialInvoice.
|
|
|
206 |
*
|
|
|
207 |
* @param packingCosts * Any packing costs that are associated with this shipment.
|
|
|
208 |
*/
|
|
|
209 |
public void setPackingCosts(com.fedex.ship.stub.Money packingCosts) {
|
|
|
210 |
this.packingCosts = packingCosts;
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
/**
|
|
|
215 |
* Gets the handlingCosts value for this CommercialInvoice.
|
|
|
216 |
*
|
|
|
217 |
* @return handlingCosts * Any handling costs that are associated with this shipment.
|
|
|
218 |
*/
|
|
|
219 |
public com.fedex.ship.stub.Money getHandlingCosts() {
|
|
|
220 |
return handlingCosts;
|
|
|
221 |
}
|
|
|
222 |
|
|
|
223 |
|
|
|
224 |
/**
|
|
|
225 |
* Sets the handlingCosts value for this CommercialInvoice.
|
|
|
226 |
*
|
|
|
227 |
* @param handlingCosts * Any handling costs that are associated with this shipment.
|
|
|
228 |
*/
|
|
|
229 |
public void setHandlingCosts(com.fedex.ship.stub.Money handlingCosts) {
|
|
|
230 |
this.handlingCosts = handlingCosts;
|
|
|
231 |
}
|
|
|
232 |
|
|
|
233 |
|
|
|
234 |
/**
|
|
|
235 |
* Gets the specialInstructions value for this CommercialInvoice.
|
|
|
236 |
*
|
|
|
237 |
* @return specialInstructions * Free-form text.
|
|
|
238 |
*/
|
|
|
239 |
public java.lang.String getSpecialInstructions() {
|
|
|
240 |
return specialInstructions;
|
|
|
241 |
}
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
/**
|
|
|
245 |
* Sets the specialInstructions value for this CommercialInvoice.
|
|
|
246 |
*
|
|
|
247 |
* @param specialInstructions * Free-form text.
|
|
|
248 |
*/
|
|
|
249 |
public void setSpecialInstructions(java.lang.String specialInstructions) {
|
|
|
250 |
this.specialInstructions = specialInstructions;
|
|
|
251 |
}
|
|
|
252 |
|
|
|
253 |
|
|
|
254 |
/**
|
|
|
255 |
* Gets the declarationStatement value for this CommercialInvoice.
|
|
|
256 |
*
|
|
|
257 |
* @return declarationStatement * Free-form text.
|
|
|
258 |
*/
|
|
|
259 |
public java.lang.String getDeclarationStatement() {
|
|
|
260 |
return declarationStatement;
|
|
|
261 |
}
|
|
|
262 |
|
|
|
263 |
|
|
|
264 |
/**
|
|
|
265 |
* Sets the declarationStatement value for this CommercialInvoice.
|
|
|
266 |
*
|
|
|
267 |
* @param declarationStatement * Free-form text.
|
|
|
268 |
*/
|
|
|
269 |
public void setDeclarationStatement(java.lang.String declarationStatement) {
|
|
|
270 |
this.declarationStatement = declarationStatement;
|
|
|
271 |
}
|
|
|
272 |
|
|
|
273 |
|
|
|
274 |
/**
|
|
|
275 |
* Gets the paymentTerms value for this CommercialInvoice.
|
|
|
276 |
*
|
|
|
277 |
* @return paymentTerms * Free-form text.
|
|
|
278 |
*/
|
|
|
279 |
public java.lang.String getPaymentTerms() {
|
|
|
280 |
return paymentTerms;
|
|
|
281 |
}
|
|
|
282 |
|
|
|
283 |
|
|
|
284 |
/**
|
|
|
285 |
* Sets the paymentTerms value for this CommercialInvoice.
|
|
|
286 |
*
|
|
|
287 |
* @param paymentTerms * Free-form text.
|
|
|
288 |
*/
|
|
|
289 |
public void setPaymentTerms(java.lang.String paymentTerms) {
|
|
|
290 |
this.paymentTerms = paymentTerms;
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
|
|
|
294 |
/**
|
|
|
295 |
* Gets the purpose value for this CommercialInvoice.
|
|
|
296 |
*
|
|
|
297 |
* @return purpose * The reason for the shipment. Note: SOLD is not a valid purpose
|
|
|
298 |
* for a Proforma Invoice.
|
|
|
299 |
*/
|
|
|
300 |
public com.fedex.ship.stub.PurposeOfShipmentType getPurpose() {
|
|
|
301 |
return purpose;
|
|
|
302 |
}
|
|
|
303 |
|
|
|
304 |
|
|
|
305 |
/**
|
|
|
306 |
* Sets the purpose value for this CommercialInvoice.
|
|
|
307 |
*
|
|
|
308 |
* @param purpose * The reason for the shipment. Note: SOLD is not a valid purpose
|
|
|
309 |
* for a Proforma Invoice.
|
|
|
310 |
*/
|
|
|
311 |
public void setPurpose(com.fedex.ship.stub.PurposeOfShipmentType purpose) {
|
|
|
312 |
this.purpose = purpose;
|
|
|
313 |
}
|
|
|
314 |
|
|
|
315 |
|
|
|
316 |
/**
|
|
|
317 |
* Gets the customerReferences value for this CommercialInvoice.
|
|
|
318 |
*
|
|
|
319 |
* @return customerReferences * Additional customer reference data.
|
|
|
320 |
*/
|
|
|
321 |
public com.fedex.ship.stub.CustomerReference[] getCustomerReferences() {
|
|
|
322 |
return customerReferences;
|
|
|
323 |
}
|
|
|
324 |
|
|
|
325 |
|
|
|
326 |
/**
|
|
|
327 |
* Sets the customerReferences value for this CommercialInvoice.
|
|
|
328 |
*
|
|
|
329 |
* @param customerReferences * Additional customer reference data.
|
|
|
330 |
*/
|
|
|
331 |
public void setCustomerReferences(com.fedex.ship.stub.CustomerReference[] customerReferences) {
|
|
|
332 |
this.customerReferences = customerReferences;
|
|
|
333 |
}
|
|
|
334 |
|
|
|
335 |
public com.fedex.ship.stub.CustomerReference getCustomerReferences(int i) {
|
|
|
336 |
return this.customerReferences[i];
|
|
|
337 |
}
|
|
|
338 |
|
|
|
339 |
public void setCustomerReferences(int i, com.fedex.ship.stub.CustomerReference _value) {
|
|
|
340 |
this.customerReferences[i] = _value;
|
|
|
341 |
}
|
|
|
342 |
|
|
|
343 |
|
|
|
344 |
/**
|
|
|
345 |
* Gets the originatorName value for this CommercialInvoice.
|
|
|
346 |
*
|
|
|
347 |
* @return originatorName * Name of the International Expert that completed the Commercial
|
|
|
348 |
* Invoice different from Sender.
|
|
|
349 |
*/
|
|
|
350 |
public java.lang.String getOriginatorName() {
|
|
|
351 |
return originatorName;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
|
|
|
355 |
/**
|
|
|
356 |
* Sets the originatorName value for this CommercialInvoice.
|
|
|
357 |
*
|
|
|
358 |
* @param originatorName * Name of the International Expert that completed the Commercial
|
|
|
359 |
* Invoice different from Sender.
|
|
|
360 |
*/
|
|
|
361 |
public void setOriginatorName(java.lang.String originatorName) {
|
|
|
362 |
this.originatorName = originatorName;
|
|
|
363 |
}
|
|
|
364 |
|
|
|
365 |
|
|
|
366 |
/**
|
|
|
367 |
* Gets the termsOfSale value for this CommercialInvoice.
|
|
|
368 |
*
|
|
|
369 |
* @return termsOfSale * Required for dutiable international Express or Ground shipment.
|
|
|
370 |
* This field is not applicable to an international PIB(document) or
|
|
|
371 |
* a non-document which does not require a Commercial Invoice
|
|
|
372 |
*/
|
|
|
373 |
public com.fedex.ship.stub.TermsOfSaleType getTermsOfSale() {
|
|
|
374 |
return termsOfSale;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
|
|
|
378 |
/**
|
|
|
379 |
* Sets the termsOfSale value for this CommercialInvoice.
|
|
|
380 |
*
|
|
|
381 |
* @param termsOfSale * Required for dutiable international Express or Ground shipment.
|
|
|
382 |
* This field is not applicable to an international PIB(document) or
|
|
|
383 |
* a non-document which does not require a Commercial Invoice
|
|
|
384 |
*/
|
|
|
385 |
public void setTermsOfSale(com.fedex.ship.stub.TermsOfSaleType termsOfSale) {
|
|
|
386 |
this.termsOfSale = termsOfSale;
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
private java.lang.Object __equalsCalc = null;
|
|
|
390 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
391 |
if (!(obj instanceof CommercialInvoice)) return false;
|
|
|
392 |
CommercialInvoice other = (CommercialInvoice) obj;
|
|
|
393 |
if (obj == null) return false;
|
|
|
394 |
if (this == obj) return true;
|
|
|
395 |
if (__equalsCalc != null) {
|
|
|
396 |
return (__equalsCalc == obj);
|
|
|
397 |
}
|
|
|
398 |
__equalsCalc = obj;
|
|
|
399 |
boolean _equals;
|
|
|
400 |
_equals = true &&
|
|
|
401 |
((this.comments==null && other.getComments()==null) ||
|
|
|
402 |
(this.comments!=null &&
|
|
|
403 |
java.util.Arrays.equals(this.comments, other.getComments()))) &&
|
|
|
404 |
((this.freightCharge==null && other.getFreightCharge()==null) ||
|
|
|
405 |
(this.freightCharge!=null &&
|
|
|
406 |
this.freightCharge.equals(other.getFreightCharge()))) &&
|
|
|
407 |
((this.taxesOrMiscellaneousCharge==null && other.getTaxesOrMiscellaneousCharge()==null) ||
|
|
|
408 |
(this.taxesOrMiscellaneousCharge!=null &&
|
|
|
409 |
this.taxesOrMiscellaneousCharge.equals(other.getTaxesOrMiscellaneousCharge()))) &&
|
|
|
410 |
((this.taxesOrMiscellaneousChargeType==null && other.getTaxesOrMiscellaneousChargeType()==null) ||
|
|
|
411 |
(this.taxesOrMiscellaneousChargeType!=null &&
|
|
|
412 |
this.taxesOrMiscellaneousChargeType.equals(other.getTaxesOrMiscellaneousChargeType()))) &&
|
|
|
413 |
((this.packingCosts==null && other.getPackingCosts()==null) ||
|
|
|
414 |
(this.packingCosts!=null &&
|
|
|
415 |
this.packingCosts.equals(other.getPackingCosts()))) &&
|
|
|
416 |
((this.handlingCosts==null && other.getHandlingCosts()==null) ||
|
|
|
417 |
(this.handlingCosts!=null &&
|
|
|
418 |
this.handlingCosts.equals(other.getHandlingCosts()))) &&
|
|
|
419 |
((this.specialInstructions==null && other.getSpecialInstructions()==null) ||
|
|
|
420 |
(this.specialInstructions!=null &&
|
|
|
421 |
this.specialInstructions.equals(other.getSpecialInstructions()))) &&
|
|
|
422 |
((this.declarationStatement==null && other.getDeclarationStatement()==null) ||
|
|
|
423 |
(this.declarationStatement!=null &&
|
|
|
424 |
this.declarationStatement.equals(other.getDeclarationStatement()))) &&
|
|
|
425 |
((this.paymentTerms==null && other.getPaymentTerms()==null) ||
|
|
|
426 |
(this.paymentTerms!=null &&
|
|
|
427 |
this.paymentTerms.equals(other.getPaymentTerms()))) &&
|
|
|
428 |
((this.purpose==null && other.getPurpose()==null) ||
|
|
|
429 |
(this.purpose!=null &&
|
|
|
430 |
this.purpose.equals(other.getPurpose()))) &&
|
|
|
431 |
((this.customerReferences==null && other.getCustomerReferences()==null) ||
|
|
|
432 |
(this.customerReferences!=null &&
|
|
|
433 |
java.util.Arrays.equals(this.customerReferences, other.getCustomerReferences()))) &&
|
|
|
434 |
((this.originatorName==null && other.getOriginatorName()==null) ||
|
|
|
435 |
(this.originatorName!=null &&
|
|
|
436 |
this.originatorName.equals(other.getOriginatorName()))) &&
|
|
|
437 |
((this.termsOfSale==null && other.getTermsOfSale()==null) ||
|
|
|
438 |
(this.termsOfSale!=null &&
|
|
|
439 |
this.termsOfSale.equals(other.getTermsOfSale())));
|
|
|
440 |
__equalsCalc = null;
|
|
|
441 |
return _equals;
|
|
|
442 |
}
|
|
|
443 |
|
|
|
444 |
private boolean __hashCodeCalc = false;
|
|
|
445 |
public synchronized int hashCode() {
|
|
|
446 |
if (__hashCodeCalc) {
|
|
|
447 |
return 0;
|
|
|
448 |
}
|
|
|
449 |
__hashCodeCalc = true;
|
|
|
450 |
int _hashCode = 1;
|
|
|
451 |
if (getComments() != null) {
|
|
|
452 |
for (int i=0;
|
|
|
453 |
i<java.lang.reflect.Array.getLength(getComments());
|
|
|
454 |
i++) {
|
|
|
455 |
java.lang.Object obj = java.lang.reflect.Array.get(getComments(), i);
|
|
|
456 |
if (obj != null &&
|
|
|
457 |
!obj.getClass().isArray()) {
|
|
|
458 |
_hashCode += obj.hashCode();
|
|
|
459 |
}
|
|
|
460 |
}
|
|
|
461 |
}
|
|
|
462 |
if (getFreightCharge() != null) {
|
|
|
463 |
_hashCode += getFreightCharge().hashCode();
|
|
|
464 |
}
|
|
|
465 |
if (getTaxesOrMiscellaneousCharge() != null) {
|
|
|
466 |
_hashCode += getTaxesOrMiscellaneousCharge().hashCode();
|
|
|
467 |
}
|
|
|
468 |
if (getTaxesOrMiscellaneousChargeType() != null) {
|
|
|
469 |
_hashCode += getTaxesOrMiscellaneousChargeType().hashCode();
|
|
|
470 |
}
|
|
|
471 |
if (getPackingCosts() != null) {
|
|
|
472 |
_hashCode += getPackingCosts().hashCode();
|
|
|
473 |
}
|
|
|
474 |
if (getHandlingCosts() != null) {
|
|
|
475 |
_hashCode += getHandlingCosts().hashCode();
|
|
|
476 |
}
|
|
|
477 |
if (getSpecialInstructions() != null) {
|
|
|
478 |
_hashCode += getSpecialInstructions().hashCode();
|
|
|
479 |
}
|
|
|
480 |
if (getDeclarationStatement() != null) {
|
|
|
481 |
_hashCode += getDeclarationStatement().hashCode();
|
|
|
482 |
}
|
|
|
483 |
if (getPaymentTerms() != null) {
|
|
|
484 |
_hashCode += getPaymentTerms().hashCode();
|
|
|
485 |
}
|
|
|
486 |
if (getPurpose() != null) {
|
|
|
487 |
_hashCode += getPurpose().hashCode();
|
|
|
488 |
}
|
|
|
489 |
if (getCustomerReferences() != null) {
|
|
|
490 |
for (int i=0;
|
|
|
491 |
i<java.lang.reflect.Array.getLength(getCustomerReferences());
|
|
|
492 |
i++) {
|
|
|
493 |
java.lang.Object obj = java.lang.reflect.Array.get(getCustomerReferences(), i);
|
|
|
494 |
if (obj != null &&
|
|
|
495 |
!obj.getClass().isArray()) {
|
|
|
496 |
_hashCode += obj.hashCode();
|
|
|
497 |
}
|
|
|
498 |
}
|
|
|
499 |
}
|
|
|
500 |
if (getOriginatorName() != null) {
|
|
|
501 |
_hashCode += getOriginatorName().hashCode();
|
|
|
502 |
}
|
|
|
503 |
if (getTermsOfSale() != null) {
|
|
|
504 |
_hashCode += getTermsOfSale().hashCode();
|
|
|
505 |
}
|
|
|
506 |
__hashCodeCalc = false;
|
|
|
507 |
return _hashCode;
|
|
|
508 |
}
|
|
|
509 |
|
|
|
510 |
// Type metadata
|
|
|
511 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
512 |
new org.apache.axis.description.TypeDesc(CommercialInvoice.class, true);
|
|
|
513 |
|
|
|
514 |
static {
|
|
|
515 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CommercialInvoice"));
|
|
|
516 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
517 |
elemField.setFieldName("comments");
|
|
|
518 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Comments"));
|
|
|
519 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
520 |
elemField.setMinOccurs(0);
|
|
|
521 |
elemField.setNillable(false);
|
|
|
522 |
typeDesc.addFieldDesc(elemField);
|
|
|
523 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
524 |
elemField.setFieldName("freightCharge");
|
|
|
525 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "FreightCharge"));
|
|
|
526 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
|
|
|
527 |
elemField.setMinOccurs(0);
|
|
|
528 |
elemField.setNillable(false);
|
|
|
529 |
typeDesc.addFieldDesc(elemField);
|
|
|
530 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
531 |
elemField.setFieldName("taxesOrMiscellaneousCharge");
|
|
|
532 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxesOrMiscellaneousCharge"));
|
|
|
533 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
|
|
|
534 |
elemField.setMinOccurs(0);
|
|
|
535 |
elemField.setNillable(false);
|
|
|
536 |
typeDesc.addFieldDesc(elemField);
|
|
|
537 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
538 |
elemField.setFieldName("taxesOrMiscellaneousChargeType");
|
|
|
539 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxesOrMiscellaneousChargeType"));
|
|
|
540 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TaxesOrMiscellaneousChargeType"));
|
|
|
541 |
elemField.setMinOccurs(0);
|
|
|
542 |
elemField.setNillable(false);
|
|
|
543 |
typeDesc.addFieldDesc(elemField);
|
|
|
544 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
545 |
elemField.setFieldName("packingCosts");
|
|
|
546 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackingCosts"));
|
|
|
547 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
|
|
|
548 |
elemField.setMinOccurs(0);
|
|
|
549 |
elemField.setNillable(false);
|
|
|
550 |
typeDesc.addFieldDesc(elemField);
|
|
|
551 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
552 |
elemField.setFieldName("handlingCosts");
|
|
|
553 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HandlingCosts"));
|
|
|
554 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
|
|
|
555 |
elemField.setMinOccurs(0);
|
|
|
556 |
elemField.setNillable(false);
|
|
|
557 |
typeDesc.addFieldDesc(elemField);
|
|
|
558 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
559 |
elemField.setFieldName("specialInstructions");
|
|
|
560 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SpecialInstructions"));
|
|
|
561 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
562 |
elemField.setMinOccurs(0);
|
|
|
563 |
elemField.setNillable(false);
|
|
|
564 |
typeDesc.addFieldDesc(elemField);
|
|
|
565 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
566 |
elemField.setFieldName("declarationStatement");
|
|
|
567 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "DeclarationStatement"));
|
|
|
568 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
569 |
elemField.setMinOccurs(0);
|
|
|
570 |
elemField.setNillable(false);
|
|
|
571 |
typeDesc.addFieldDesc(elemField);
|
|
|
572 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
573 |
elemField.setFieldName("paymentTerms");
|
|
|
574 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PaymentTerms"));
|
|
|
575 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
576 |
elemField.setMinOccurs(0);
|
|
|
577 |
elemField.setNillable(false);
|
|
|
578 |
typeDesc.addFieldDesc(elemField);
|
|
|
579 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
580 |
elemField.setFieldName("purpose");
|
|
|
581 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Purpose"));
|
|
|
582 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PurposeOfShipmentType"));
|
|
|
583 |
elemField.setMinOccurs(0);
|
|
|
584 |
elemField.setNillable(false);
|
|
|
585 |
typeDesc.addFieldDesc(elemField);
|
|
|
586 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
587 |
elemField.setFieldName("customerReferences");
|
|
|
588 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerReferences"));
|
|
|
589 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerReference"));
|
|
|
590 |
elemField.setMinOccurs(0);
|
|
|
591 |
elemField.setNillable(false);
|
|
|
592 |
elemField.setMaxOccursUnbounded(true);
|
|
|
593 |
typeDesc.addFieldDesc(elemField);
|
|
|
594 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
595 |
elemField.setFieldName("originatorName");
|
|
|
596 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "OriginatorName"));
|
|
|
597 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
598 |
elemField.setMinOccurs(0);
|
|
|
599 |
elemField.setNillable(false);
|
|
|
600 |
typeDesc.addFieldDesc(elemField);
|
|
|
601 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
602 |
elemField.setFieldName("termsOfSale");
|
|
|
603 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TermsOfSale"));
|
|
|
604 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "TermsOfSaleType"));
|
|
|
605 |
elemField.setMinOccurs(0);
|
|
|
606 |
elemField.setNillable(false);
|
|
|
607 |
typeDesc.addFieldDesc(elemField);
|
|
|
608 |
}
|
|
|
609 |
|
|
|
610 |
/**
|
|
|
611 |
* Return type metadata object
|
|
|
612 |
*/
|
|
|
613 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
614 |
return typeDesc;
|
|
|
615 |
}
|
|
|
616 |
|
|
|
617 |
/**
|
|
|
618 |
* Get Custom Serializer
|
|
|
619 |
*/
|
|
|
620 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
621 |
java.lang.String mechType,
|
|
|
622 |
java.lang.Class _javaType,
|
|
|
623 |
javax.xml.namespace.QName _xmlType) {
|
|
|
624 |
return
|
|
|
625 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
626 |
_javaType, _xmlType, typeDesc);
|
|
|
627 |
}
|
|
|
628 |
|
|
|
629 |
/**
|
|
|
630 |
* Get Custom Deserializer
|
|
|
631 |
*/
|
|
|
632 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
633 |
java.lang.String mechType,
|
|
|
634 |
java.lang.Class _javaType,
|
|
|
635 |
javax.xml.namespace.QName _xmlType) {
|
|
|
636 |
return
|
|
|
637 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
638 |
_javaType, _xmlType, typeDesc);
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
}
|