| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* CodReturnPackageDetail.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 |
* Specifies the information associated with a package that has COD
|
|
|
13 |
* special service in a ground shipment.
|
|
|
14 |
*/
|
|
|
15 |
public class CodReturnPackageDetail implements java.io.Serializable {
|
|
|
16 |
/* The COD amount (after any accumulations) that must be collected
|
|
|
17 |
* upon delivery of a package shipped using the COD special service. */
|
|
|
18 |
private com.fedex.ship.stub.Money collectionAmount;
|
|
|
19 |
|
|
|
20 |
private com.fedex.ship.stub.CodAdjustmentType adjustmentType;
|
|
|
21 |
|
|
|
22 |
private java.lang.Boolean electronic;
|
|
|
23 |
|
|
|
24 |
/* Contains the data which form the Astra and 2DCommon barcodes
|
|
|
25 |
* that print on the COD return label. */
|
|
|
26 |
private com.fedex.ship.stub.PackageBarcodes barcodes;
|
|
|
27 |
|
|
|
28 |
/* The label image or printer commands to print the label. */
|
|
|
29 |
private com.fedex.ship.stub.ShippingDocument label;
|
|
|
30 |
|
|
|
31 |
public CodReturnPackageDetail() {
|
|
|
32 |
}
|
|
|
33 |
|
|
|
34 |
public CodReturnPackageDetail(
|
|
|
35 |
com.fedex.ship.stub.Money collectionAmount,
|
|
|
36 |
com.fedex.ship.stub.CodAdjustmentType adjustmentType,
|
|
|
37 |
java.lang.Boolean electronic,
|
|
|
38 |
com.fedex.ship.stub.PackageBarcodes barcodes,
|
|
|
39 |
com.fedex.ship.stub.ShippingDocument label) {
|
|
|
40 |
this.collectionAmount = collectionAmount;
|
|
|
41 |
this.adjustmentType = adjustmentType;
|
|
|
42 |
this.electronic = electronic;
|
|
|
43 |
this.barcodes = barcodes;
|
|
|
44 |
this.label = label;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
|
|
|
48 |
/**
|
|
|
49 |
* Gets the collectionAmount value for this CodReturnPackageDetail.
|
|
|
50 |
*
|
|
|
51 |
* @return collectionAmount * The COD amount (after any accumulations) that must be collected
|
|
|
52 |
* upon delivery of a package shipped using the COD special service.
|
|
|
53 |
*/
|
|
|
54 |
public com.fedex.ship.stub.Money getCollectionAmount() {
|
|
|
55 |
return collectionAmount;
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
|
|
|
59 |
/**
|
|
|
60 |
* Sets the collectionAmount value for this CodReturnPackageDetail.
|
|
|
61 |
*
|
|
|
62 |
* @param collectionAmount * The COD amount (after any accumulations) that must be collected
|
|
|
63 |
* upon delivery of a package shipped using the COD special service.
|
|
|
64 |
*/
|
|
|
65 |
public void setCollectionAmount(com.fedex.ship.stub.Money collectionAmount) {
|
|
|
66 |
this.collectionAmount = collectionAmount;
|
|
|
67 |
}
|
|
|
68 |
|
|
|
69 |
|
|
|
70 |
/**
|
|
|
71 |
* Gets the adjustmentType value for this CodReturnPackageDetail.
|
|
|
72 |
*
|
|
|
73 |
* @return adjustmentType
|
|
|
74 |
*/
|
|
|
75 |
public com.fedex.ship.stub.CodAdjustmentType getAdjustmentType() {
|
|
|
76 |
return adjustmentType;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
|
|
|
80 |
/**
|
|
|
81 |
* Sets the adjustmentType value for this CodReturnPackageDetail.
|
|
|
82 |
*
|
|
|
83 |
* @param adjustmentType
|
|
|
84 |
*/
|
|
|
85 |
public void setAdjustmentType(com.fedex.ship.stub.CodAdjustmentType adjustmentType) {
|
|
|
86 |
this.adjustmentType = adjustmentType;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Gets the electronic value for this CodReturnPackageDetail.
|
|
|
92 |
*
|
|
|
93 |
* @return electronic
|
|
|
94 |
*/
|
|
|
95 |
public java.lang.Boolean getElectronic() {
|
|
|
96 |
return electronic;
|
|
|
97 |
}
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
/**
|
|
|
101 |
* Sets the electronic value for this CodReturnPackageDetail.
|
|
|
102 |
*
|
|
|
103 |
* @param electronic
|
|
|
104 |
*/
|
|
|
105 |
public void setElectronic(java.lang.Boolean electronic) {
|
|
|
106 |
this.electronic = electronic;
|
|
|
107 |
}
|
|
|
108 |
|
|
|
109 |
|
|
|
110 |
/**
|
|
|
111 |
* Gets the barcodes value for this CodReturnPackageDetail.
|
|
|
112 |
*
|
|
|
113 |
* @return barcodes * Contains the data which form the Astra and 2DCommon barcodes
|
|
|
114 |
* that print on the COD return label.
|
|
|
115 |
*/
|
|
|
116 |
public com.fedex.ship.stub.PackageBarcodes getBarcodes() {
|
|
|
117 |
return barcodes;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
/**
|
|
|
122 |
* Sets the barcodes value for this CodReturnPackageDetail.
|
|
|
123 |
*
|
|
|
124 |
* @param barcodes * Contains the data which form the Astra and 2DCommon barcodes
|
|
|
125 |
* that print on the COD return label.
|
|
|
126 |
*/
|
|
|
127 |
public void setBarcodes(com.fedex.ship.stub.PackageBarcodes barcodes) {
|
|
|
128 |
this.barcodes = barcodes;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
/**
|
|
|
133 |
* Gets the label value for this CodReturnPackageDetail.
|
|
|
134 |
*
|
|
|
135 |
* @return label * The label image or printer commands to print the label.
|
|
|
136 |
*/
|
|
|
137 |
public com.fedex.ship.stub.ShippingDocument getLabel() {
|
|
|
138 |
return label;
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
|
|
|
142 |
/**
|
|
|
143 |
* Sets the label value for this CodReturnPackageDetail.
|
|
|
144 |
*
|
|
|
145 |
* @param label * The label image or printer commands to print the label.
|
|
|
146 |
*/
|
|
|
147 |
public void setLabel(com.fedex.ship.stub.ShippingDocument label) {
|
|
|
148 |
this.label = label;
|
|
|
149 |
}
|
|
|
150 |
|
|
|
151 |
private java.lang.Object __equalsCalc = null;
|
|
|
152 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
153 |
if (!(obj instanceof CodReturnPackageDetail)) return false;
|
|
|
154 |
CodReturnPackageDetail other = (CodReturnPackageDetail) obj;
|
|
|
155 |
if (obj == null) return false;
|
|
|
156 |
if (this == obj) return true;
|
|
|
157 |
if (__equalsCalc != null) {
|
|
|
158 |
return (__equalsCalc == obj);
|
|
|
159 |
}
|
|
|
160 |
__equalsCalc = obj;
|
|
|
161 |
boolean _equals;
|
|
|
162 |
_equals = true &&
|
|
|
163 |
((this.collectionAmount==null && other.getCollectionAmount()==null) ||
|
|
|
164 |
(this.collectionAmount!=null &&
|
|
|
165 |
this.collectionAmount.equals(other.getCollectionAmount()))) &&
|
|
|
166 |
((this.adjustmentType==null && other.getAdjustmentType()==null) ||
|
|
|
167 |
(this.adjustmentType!=null &&
|
|
|
168 |
this.adjustmentType.equals(other.getAdjustmentType()))) &&
|
|
|
169 |
((this.electronic==null && other.getElectronic()==null) ||
|
|
|
170 |
(this.electronic!=null &&
|
|
|
171 |
this.electronic.equals(other.getElectronic()))) &&
|
|
|
172 |
((this.barcodes==null && other.getBarcodes()==null) ||
|
|
|
173 |
(this.barcodes!=null &&
|
|
|
174 |
this.barcodes.equals(other.getBarcodes()))) &&
|
|
|
175 |
((this.label==null && other.getLabel()==null) ||
|
|
|
176 |
(this.label!=null &&
|
|
|
177 |
this.label.equals(other.getLabel())));
|
|
|
178 |
__equalsCalc = null;
|
|
|
179 |
return _equals;
|
|
|
180 |
}
|
|
|
181 |
|
|
|
182 |
private boolean __hashCodeCalc = false;
|
|
|
183 |
public synchronized int hashCode() {
|
|
|
184 |
if (__hashCodeCalc) {
|
|
|
185 |
return 0;
|
|
|
186 |
}
|
|
|
187 |
__hashCodeCalc = true;
|
|
|
188 |
int _hashCode = 1;
|
|
|
189 |
if (getCollectionAmount() != null) {
|
|
|
190 |
_hashCode += getCollectionAmount().hashCode();
|
|
|
191 |
}
|
|
|
192 |
if (getAdjustmentType() != null) {
|
|
|
193 |
_hashCode += getAdjustmentType().hashCode();
|
|
|
194 |
}
|
|
|
195 |
if (getElectronic() != null) {
|
|
|
196 |
_hashCode += getElectronic().hashCode();
|
|
|
197 |
}
|
|
|
198 |
if (getBarcodes() != null) {
|
|
|
199 |
_hashCode += getBarcodes().hashCode();
|
|
|
200 |
}
|
|
|
201 |
if (getLabel() != null) {
|
|
|
202 |
_hashCode += getLabel().hashCode();
|
|
|
203 |
}
|
|
|
204 |
__hashCodeCalc = false;
|
|
|
205 |
return _hashCode;
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
// Type metadata
|
|
|
209 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
210 |
new org.apache.axis.description.TypeDesc(CodReturnPackageDetail.class, true);
|
|
|
211 |
|
|
|
212 |
static {
|
|
|
213 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodReturnPackageDetail"));
|
|
|
214 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
215 |
elemField.setFieldName("collectionAmount");
|
|
|
216 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CollectionAmount"));
|
|
|
217 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Money"));
|
|
|
218 |
elemField.setMinOccurs(0);
|
|
|
219 |
elemField.setNillable(false);
|
|
|
220 |
typeDesc.addFieldDesc(elemField);
|
|
|
221 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
222 |
elemField.setFieldName("adjustmentType");
|
|
|
223 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AdjustmentType"));
|
|
|
224 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CodAdjustmentType"));
|
|
|
225 |
elemField.setMinOccurs(0);
|
|
|
226 |
elemField.setNillable(false);
|
|
|
227 |
typeDesc.addFieldDesc(elemField);
|
|
|
228 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
229 |
elemField.setFieldName("electronic");
|
|
|
230 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Electronic"));
|
|
|
231 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
|
|
|
232 |
elemField.setMinOccurs(0);
|
|
|
233 |
elemField.setNillable(false);
|
|
|
234 |
typeDesc.addFieldDesc(elemField);
|
|
|
235 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
236 |
elemField.setFieldName("barcodes");
|
|
|
237 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Barcodes"));
|
|
|
238 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "PackageBarcodes"));
|
|
|
239 |
elemField.setMinOccurs(0);
|
|
|
240 |
elemField.setNillable(false);
|
|
|
241 |
typeDesc.addFieldDesc(elemField);
|
|
|
242 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
243 |
elemField.setFieldName("label");
|
|
|
244 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Label"));
|
|
|
245 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "ShippingDocument"));
|
|
|
246 |
elemField.setMinOccurs(0);
|
|
|
247 |
elemField.setNillable(false);
|
|
|
248 |
typeDesc.addFieldDesc(elemField);
|
|
|
249 |
}
|
|
|
250 |
|
|
|
251 |
/**
|
|
|
252 |
* Return type metadata object
|
|
|
253 |
*/
|
|
|
254 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
255 |
return typeDesc;
|
|
|
256 |
}
|
|
|
257 |
|
|
|
258 |
/**
|
|
|
259 |
* Get Custom Serializer
|
|
|
260 |
*/
|
|
|
261 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
262 |
java.lang.String mechType,
|
|
|
263 |
java.lang.Class _javaType,
|
|
|
264 |
javax.xml.namespace.QName _xmlType) {
|
|
|
265 |
return
|
|
|
266 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
267 |
_javaType, _xmlType, typeDesc);
|
|
|
268 |
}
|
|
|
269 |
|
|
|
270 |
/**
|
|
|
271 |
* Get Custom Deserializer
|
|
|
272 |
*/
|
|
|
273 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
274 |
java.lang.String mechType,
|
|
|
275 |
java.lang.Class _javaType,
|
|
|
276 |
javax.xml.namespace.QName _xmlType) {
|
|
|
277 |
return
|
|
|
278 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
279 |
_javaType, _xmlType, typeDesc);
|
|
|
280 |
}
|
|
|
281 |
|
|
|
282 |
}
|