GLS ShipIT 4.0.f2
GLS ShipIT - REST services
Loading...
Searching...
No Matches
glsgroup/fpcs/datatypes/soap/v1/shipmentprocessing/ShipmentUnit.java
Go to the documentation of this file.
1
2package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3
4import java.math.BigDecimal;
5import java.util.ArrayList;
6import java.util.List;
7import javax.xml.bind.annotation.XmlAccessType;
8import javax.xml.bind.annotation.XmlAccessorType;
9import javax.xml.bind.annotation.XmlElement;
10import javax.xml.bind.annotation.XmlSchemaType;
11import javax.xml.bind.annotation.XmlType;
12import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
13import eu.gls_group.fpcs.v1.common.NationalParcelData;
14import eu.gls_group.fpcs.v1.common.UnitService;
15import eu.gls_group.fpcs.v1.common.Volume;
16import org.w3._2001.xmlschema.Adapter1;
17
18
52@XmlAccessorType(XmlAccessType.FIELD)
53@XmlType(name = "ShipmentUnit", propOrder = {
54 "shipmentUnitReference",
55 "partnerParcelNumber",
56 "weight",
57 "note1",
58 "note2",
59 "service",
60 "frAlphaParcelReference",
61 "trackID",
62 "injected",
63 "parcelNumber",
64 "nationalParcelData",
65 "volume"
66})
67public class ShipmentUnit {
68
69 @XmlElement(name = "ShipmentUnitReference")
70 protected List<String> shipmentUnitReference;
71 @XmlElement(name = "PartnerParcelNumber")
72 protected String partnerParcelNumber;
73 @XmlElement(name = "Weight", type = String.class)
74 @XmlJavaTypeAdapter(Adapter1 .class)
75 @XmlSchemaType(name = "decimal")
76 protected BigDecimal weight;
77 @XmlElement(name = "Note1")
78 protected String note1;
79 @XmlElement(name = "Note2")
80 protected String note2;
81 @XmlElement(name = "Service")
82 protected List<UnitService> service;
83 @XmlElement(name = "FRAlphaParcelReference")
84 protected String frAlphaParcelReference;
85 @XmlElement(name = "TrackID")
86 protected String trackID;
87 @XmlElement(defaultValue = "false")
88 protected Boolean injected;
89 @XmlElement(name = "ParcelNumber")
90 protected String parcelNumber;
91 @XmlElement(name = "NationalParcelData")
92 protected NationalParcelData nationalParcelData;
93 @XmlElement(name = "Volume")
94 protected Volume volume;
95
118 public List<String> getShipmentUnitReference() {
119 if (shipmentUnitReference == null) {
120 shipmentUnitReference = new ArrayList<String>();
121 }
122 return this.shipmentUnitReference;
123 }
124
133 public String getPartnerParcelNumber() {
134 return partnerParcelNumber;
135 }
136
145 public void setPartnerParcelNumber(String value) {
146 this.partnerParcelNumber = value;
147 }
148
157 public BigDecimal getWeight() {
158 return weight;
159 }
160
169 public void setWeight(BigDecimal value) {
170 this.weight = value;
171 }
172
181 public String getNote1() {
182 return note1;
183 }
184
193 public void setNote1(String value) {
194 this.note1 = value;
195 }
196
205 public String getNote2() {
206 return note2;
207 }
208
217 public void setNote2(String value) {
218 this.note2 = value;
219 }
220
243 public List<UnitService> getService() {
244 if (service == null) {
245 service = new ArrayList<UnitService>();
246 }
247 return this.service;
248 }
249
259 return frAlphaParcelReference;
260 }
261
270 public void setFRAlphaParcelReference(String value) {
271 this.frAlphaParcelReference = value;
272 }
273
282 public String getTrackID() {
283 return trackID;
284 }
285
294 public void setTrackID(String value) {
295 this.trackID = value;
296 }
297
306 public Boolean isInjected() {
307 return injected;
308 }
309
318 public void setInjected(Boolean value) {
319 this.injected = value;
320 }
321
330 public String getParcelNumber() {
331 return parcelNumber;
332 }
333
342 public void setParcelNumber(String value) {
343 this.parcelNumber = value;
344 }
345
355 return nationalParcelData;
356 }
357
367 this.nationalParcelData = value;
368 }
369
378 public Volume getVolume() {
379 return volume;
380 }
381
390 public void setVolume(Volume value) {
391 this.volume = value;
392 }
393
394}