| 7905 |
manish.sha |
1 |
/**
|
|
|
2 |
* SmartPostShipmentDetail.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 required for shipments handled under the SMART_POST and GROUND_SMART_POST
|
|
|
13 |
* service types.
|
|
|
14 |
*/
|
|
|
15 |
public class SmartPostShipmentDetail implements java.io.Serializable {
|
|
|
16 |
private com.fedex.ship.stub.SmartPostIndiciaType indicia;
|
|
|
17 |
|
|
|
18 |
private com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement;
|
|
|
19 |
|
|
|
20 |
private java.lang.String hubId;
|
|
|
21 |
|
|
|
22 |
/* The CustomerManifestId is used to group Smart Post packages
|
|
|
23 |
* onto a manifest for each trailer that is being prepared. If you do
|
|
|
24 |
* not have multiple trailers this field can be omitted. If you have
|
|
|
25 |
* multiple trailers, you
|
|
|
26 |
* must assign the same Manifest Id to each SmartPost
|
|
|
27 |
* package as determined by its trailer. In other words, all packages
|
|
|
28 |
* on a trailer must have the same Customer Manifest Id. The manifest
|
|
|
29 |
* Id must be unique to your account number for a minimum of 6 months
|
|
|
30 |
* and cannot exceed 8 characters in length. We recommend you use the
|
|
|
31 |
* day of year + the trailer id (this could simply be a sequential number
|
|
|
32 |
* for that trailer). So if you had 3 trailers that you started loading
|
|
|
33 |
* on Feb 10
|
|
|
34 |
* the 3 manifest ids would be 041001, 041002, 041003
|
|
|
35 |
* (in this case we used leading zeros on the trailer numbers). */
|
|
|
36 |
private java.lang.String customerManifestId;
|
|
|
37 |
|
|
|
38 |
public SmartPostShipmentDetail() {
|
|
|
39 |
}
|
|
|
40 |
|
|
|
41 |
public SmartPostShipmentDetail(
|
|
|
42 |
com.fedex.ship.stub.SmartPostIndiciaType indicia,
|
|
|
43 |
com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement,
|
|
|
44 |
java.lang.String hubId,
|
|
|
45 |
java.lang.String customerManifestId) {
|
|
|
46 |
this.indicia = indicia;
|
|
|
47 |
this.ancillaryEndorsement = ancillaryEndorsement;
|
|
|
48 |
this.hubId = hubId;
|
|
|
49 |
this.customerManifestId = customerManifestId;
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
/**
|
|
|
54 |
* Gets the indicia value for this SmartPostShipmentDetail.
|
|
|
55 |
*
|
|
|
56 |
* @return indicia
|
|
|
57 |
*/
|
|
|
58 |
public com.fedex.ship.stub.SmartPostIndiciaType getIndicia() {
|
|
|
59 |
return indicia;
|
|
|
60 |
}
|
|
|
61 |
|
|
|
62 |
|
|
|
63 |
/**
|
|
|
64 |
* Sets the indicia value for this SmartPostShipmentDetail.
|
|
|
65 |
*
|
|
|
66 |
* @param indicia
|
|
|
67 |
*/
|
|
|
68 |
public void setIndicia(com.fedex.ship.stub.SmartPostIndiciaType indicia) {
|
|
|
69 |
this.indicia = indicia;
|
|
|
70 |
}
|
|
|
71 |
|
|
|
72 |
|
|
|
73 |
/**
|
|
|
74 |
* Gets the ancillaryEndorsement value for this SmartPostShipmentDetail.
|
|
|
75 |
*
|
|
|
76 |
* @return ancillaryEndorsement
|
|
|
77 |
*/
|
|
|
78 |
public com.fedex.ship.stub.SmartPostAncillaryEndorsementType getAncillaryEndorsement() {
|
|
|
79 |
return ancillaryEndorsement;
|
|
|
80 |
}
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
/**
|
|
|
84 |
* Sets the ancillaryEndorsement value for this SmartPostShipmentDetail.
|
|
|
85 |
*
|
|
|
86 |
* @param ancillaryEndorsement
|
|
|
87 |
*/
|
|
|
88 |
public void setAncillaryEndorsement(com.fedex.ship.stub.SmartPostAncillaryEndorsementType ancillaryEndorsement) {
|
|
|
89 |
this.ancillaryEndorsement = ancillaryEndorsement;
|
|
|
90 |
}
|
|
|
91 |
|
|
|
92 |
|
|
|
93 |
/**
|
|
|
94 |
* Gets the hubId value for this SmartPostShipmentDetail.
|
|
|
95 |
*
|
|
|
96 |
* @return hubId
|
|
|
97 |
*/
|
|
|
98 |
public java.lang.String getHubId() {
|
|
|
99 |
return hubId;
|
|
|
100 |
}
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* Sets the hubId value for this SmartPostShipmentDetail.
|
|
|
105 |
*
|
|
|
106 |
* @param hubId
|
|
|
107 |
*/
|
|
|
108 |
public void setHubId(java.lang.String hubId) {
|
|
|
109 |
this.hubId = hubId;
|
|
|
110 |
}
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
/**
|
|
|
114 |
* Gets the customerManifestId value for this SmartPostShipmentDetail.
|
|
|
115 |
*
|
|
|
116 |
* @return customerManifestId * The CustomerManifestId is used to group Smart Post packages
|
|
|
117 |
* onto a manifest for each trailer that is being prepared. If you do
|
|
|
118 |
* not have multiple trailers this field can be omitted. If you have
|
|
|
119 |
* multiple trailers, you
|
|
|
120 |
* must assign the same Manifest Id to each SmartPost
|
|
|
121 |
* package as determined by its trailer. In other words, all packages
|
|
|
122 |
* on a trailer must have the same Customer Manifest Id. The manifest
|
|
|
123 |
* Id must be unique to your account number for a minimum of 6 months
|
|
|
124 |
* and cannot exceed 8 characters in length. We recommend you use the
|
|
|
125 |
* day of year + the trailer id (this could simply be a sequential number
|
|
|
126 |
* for that trailer). So if you had 3 trailers that you started loading
|
|
|
127 |
* on Feb 10
|
|
|
128 |
* the 3 manifest ids would be 041001, 041002, 041003
|
|
|
129 |
* (in this case we used leading zeros on the trailer numbers).
|
|
|
130 |
*/
|
|
|
131 |
public java.lang.String getCustomerManifestId() {
|
|
|
132 |
return customerManifestId;
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
/**
|
|
|
137 |
* Sets the customerManifestId value for this SmartPostShipmentDetail.
|
|
|
138 |
*
|
|
|
139 |
* @param customerManifestId * The CustomerManifestId is used to group Smart Post packages
|
|
|
140 |
* onto a manifest for each trailer that is being prepared. If you do
|
|
|
141 |
* not have multiple trailers this field can be omitted. If you have
|
|
|
142 |
* multiple trailers, you
|
|
|
143 |
* must assign the same Manifest Id to each SmartPost
|
|
|
144 |
* package as determined by its trailer. In other words, all packages
|
|
|
145 |
* on a trailer must have the same Customer Manifest Id. The manifest
|
|
|
146 |
* Id must be unique to your account number for a minimum of 6 months
|
|
|
147 |
* and cannot exceed 8 characters in length. We recommend you use the
|
|
|
148 |
* day of year + the trailer id (this could simply be a sequential number
|
|
|
149 |
* for that trailer). So if you had 3 trailers that you started loading
|
|
|
150 |
* on Feb 10
|
|
|
151 |
* the 3 manifest ids would be 041001, 041002, 041003
|
|
|
152 |
* (in this case we used leading zeros on the trailer numbers).
|
|
|
153 |
*/
|
|
|
154 |
public void setCustomerManifestId(java.lang.String customerManifestId) {
|
|
|
155 |
this.customerManifestId = customerManifestId;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
private java.lang.Object __equalsCalc = null;
|
|
|
159 |
public synchronized boolean equals(java.lang.Object obj) {
|
|
|
160 |
if (!(obj instanceof SmartPostShipmentDetail)) return false;
|
|
|
161 |
SmartPostShipmentDetail other = (SmartPostShipmentDetail) obj;
|
|
|
162 |
if (obj == null) return false;
|
|
|
163 |
if (this == obj) return true;
|
|
|
164 |
if (__equalsCalc != null) {
|
|
|
165 |
return (__equalsCalc == obj);
|
|
|
166 |
}
|
|
|
167 |
__equalsCalc = obj;
|
|
|
168 |
boolean _equals;
|
|
|
169 |
_equals = true &&
|
|
|
170 |
((this.indicia==null && other.getIndicia()==null) ||
|
|
|
171 |
(this.indicia!=null &&
|
|
|
172 |
this.indicia.equals(other.getIndicia()))) &&
|
|
|
173 |
((this.ancillaryEndorsement==null && other.getAncillaryEndorsement()==null) ||
|
|
|
174 |
(this.ancillaryEndorsement!=null &&
|
|
|
175 |
this.ancillaryEndorsement.equals(other.getAncillaryEndorsement()))) &&
|
|
|
176 |
((this.hubId==null && other.getHubId()==null) ||
|
|
|
177 |
(this.hubId!=null &&
|
|
|
178 |
this.hubId.equals(other.getHubId()))) &&
|
|
|
179 |
((this.customerManifestId==null && other.getCustomerManifestId()==null) ||
|
|
|
180 |
(this.customerManifestId!=null &&
|
|
|
181 |
this.customerManifestId.equals(other.getCustomerManifestId())));
|
|
|
182 |
__equalsCalc = null;
|
|
|
183 |
return _equals;
|
|
|
184 |
}
|
|
|
185 |
|
|
|
186 |
private boolean __hashCodeCalc = false;
|
|
|
187 |
public synchronized int hashCode() {
|
|
|
188 |
if (__hashCodeCalc) {
|
|
|
189 |
return 0;
|
|
|
190 |
}
|
|
|
191 |
__hashCodeCalc = true;
|
|
|
192 |
int _hashCode = 1;
|
|
|
193 |
if (getIndicia() != null) {
|
|
|
194 |
_hashCode += getIndicia().hashCode();
|
|
|
195 |
}
|
|
|
196 |
if (getAncillaryEndorsement() != null) {
|
|
|
197 |
_hashCode += getAncillaryEndorsement().hashCode();
|
|
|
198 |
}
|
|
|
199 |
if (getHubId() != null) {
|
|
|
200 |
_hashCode += getHubId().hashCode();
|
|
|
201 |
}
|
|
|
202 |
if (getCustomerManifestId() != null) {
|
|
|
203 |
_hashCode += getCustomerManifestId().hashCode();
|
|
|
204 |
}
|
|
|
205 |
__hashCodeCalc = false;
|
|
|
206 |
return _hashCode;
|
|
|
207 |
}
|
|
|
208 |
|
|
|
209 |
// Type metadata
|
|
|
210 |
private static org.apache.axis.description.TypeDesc typeDesc =
|
|
|
211 |
new org.apache.axis.description.TypeDesc(SmartPostShipmentDetail.class, true);
|
|
|
212 |
|
|
|
213 |
static {
|
|
|
214 |
typeDesc.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostShipmentDetail"));
|
|
|
215 |
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
|
|
|
216 |
elemField.setFieldName("indicia");
|
|
|
217 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "Indicia"));
|
|
|
218 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostIndiciaType"));
|
|
|
219 |
elemField.setMinOccurs(0);
|
|
|
220 |
elemField.setNillable(false);
|
|
|
221 |
typeDesc.addFieldDesc(elemField);
|
|
|
222 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
223 |
elemField.setFieldName("ancillaryEndorsement");
|
|
|
224 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "AncillaryEndorsement"));
|
|
|
225 |
elemField.setXmlType(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "SmartPostAncillaryEndorsementType"));
|
|
|
226 |
elemField.setMinOccurs(0);
|
|
|
227 |
elemField.setNillable(false);
|
|
|
228 |
typeDesc.addFieldDesc(elemField);
|
|
|
229 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
230 |
elemField.setFieldName("hubId");
|
|
|
231 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "HubId"));
|
|
|
232 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
233 |
elemField.setMinOccurs(0);
|
|
|
234 |
elemField.setNillable(false);
|
|
|
235 |
typeDesc.addFieldDesc(elemField);
|
|
|
236 |
elemField = new org.apache.axis.description.ElementDesc();
|
|
|
237 |
elemField.setFieldName("customerManifestId");
|
|
|
238 |
elemField.setXmlName(new javax.xml.namespace.QName("http://fedex.com/ws/ship/v12", "CustomerManifestId"));
|
|
|
239 |
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
|
|
|
240 |
elemField.setMinOccurs(0);
|
|
|
241 |
elemField.setNillable(false);
|
|
|
242 |
typeDesc.addFieldDesc(elemField);
|
|
|
243 |
}
|
|
|
244 |
|
|
|
245 |
/**
|
|
|
246 |
* Return type metadata object
|
|
|
247 |
*/
|
|
|
248 |
public static org.apache.axis.description.TypeDesc getTypeDesc() {
|
|
|
249 |
return typeDesc;
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
/**
|
|
|
253 |
* Get Custom Serializer
|
|
|
254 |
*/
|
|
|
255 |
public static org.apache.axis.encoding.Serializer getSerializer(
|
|
|
256 |
java.lang.String mechType,
|
|
|
257 |
java.lang.Class _javaType,
|
|
|
258 |
javax.xml.namespace.QName _xmlType) {
|
|
|
259 |
return
|
|
|
260 |
new org.apache.axis.encoding.ser.BeanSerializer(
|
|
|
261 |
_javaType, _xmlType, typeDesc);
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
/**
|
|
|
265 |
* Get Custom Deserializer
|
|
|
266 |
*/
|
|
|
267 |
public static org.apache.axis.encoding.Deserializer getDeserializer(
|
|
|
268 |
java.lang.String mechType,
|
|
|
269 |
java.lang.Class _javaType,
|
|
|
270 |
javax.xml.namespace.QName _xmlType) {
|
|
|
271 |
return
|
|
|
272 |
new org.apache.axis.encoding.ser.BeanDeserializer(
|
|
|
273 |
_javaType, _xmlType, typeDesc);
|
|
|
274 |
}
|
|
|
275 |
|
|
|
276 |
}
|