GLS ShipIT  3.5.15
GLS ShipIT - REST services
glsgroup/fpcs/datatypes/soap/v1/shipmentprocessing/ShipmentUnit.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
4 import java.math.BigDecimal;
5 import java.util.ArrayList;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
16 
17 
50 @XmlAccessorType(XmlAccessType.FIELD)
51 @XmlType(name = "ShipmentUnit", propOrder = {
52  "shipmentUnitReference",
53  "partnerParcelNumber",
54  "weight",
55  "note1",
56  "note2",
57  "service",
58  "frAlphaParcelReference",
59  "trackID",
60  "injected",
61  "parcelNumber",
62  "volume"
63 })
64 public class ShipmentUnit {
65 
66  @XmlElement(name = "ShipmentUnitReference")
67  protected List<String> shipmentUnitReference;
68  @XmlElement(name = "PartnerParcelNumber")
69  protected String partnerParcelNumber;
70  @XmlElement(name = "Weight", type = String.class)
71  @XmlJavaTypeAdapter(Adapter1 .class)
72  @XmlSchemaType(name = "decimal")
73  protected BigDecimal weight;
74  @XmlElement(name = "Note1")
75  protected String note1;
76  @XmlElement(name = "Note2")
77  protected String note2;
78  @XmlElement(name = "Service")
79  protected List<UnitService> service;
80  @XmlElement(name = "FRAlphaParcelReference")
81  protected String frAlphaParcelReference;
82  @XmlElement(name = "TrackID")
83  protected String trackID;
84  @XmlElement(defaultValue = "false")
85  protected Boolean injected;
86  @XmlElement(name = "ParcelNumber")
87  protected String parcelNumber;
88  @XmlElement(name = "Volume")
89  protected Volume volume;
90 
113  public List<String> getShipmentUnitReference() {
114  if (shipmentUnitReference == null) {
115  shipmentUnitReference = new ArrayList<String>();
116  }
117  return this.shipmentUnitReference;
118  }
119 
128  public String getPartnerParcelNumber() {
129  return partnerParcelNumber;
130  }
131 
140  public void setPartnerParcelNumber(String value) {
141  this.partnerParcelNumber = value;
142  }
143 
152  public BigDecimal getWeight() {
153  return weight;
154  }
155 
164  public void setWeight(BigDecimal value) {
165  this.weight = value;
166  }
167 
176  public String getNote1() {
177  return note1;
178  }
179 
188  public void setNote1(String value) {
189  this.note1 = value;
190  }
191 
200  public String getNote2() {
201  return note2;
202  }
203 
212  public void setNote2(String value) {
213  this.note2 = value;
214  }
215 
238  public List<UnitService> getService() {
239  if (service == null) {
240  service = new ArrayList<UnitService>();
241  }
242  return this.service;
243  }
244 
253  public String getFRAlphaParcelReference() {
254  return frAlphaParcelReference;
255  }
256 
265  public void setFRAlphaParcelReference(String value) {
266  this.frAlphaParcelReference = value;
267  }
268 
277  public String getTrackID() {
278  return trackID;
279  }
280 
289  public void setTrackID(String value) {
290  this.trackID = value;
291  }
292 
301  public Boolean isInjected() {
302  return injected;
303  }
304 
313  public void setInjected(Boolean value) {
314  this.injected = value;
315  }
316 
325  public String getParcelNumber() {
326  return parcelNumber;
327  }
328 
337  public void setParcelNumber(String value) {
338  this.parcelNumber = value;
339  }
340 
349  public Volume getVolume() {
350  return volume;
351  }
352 
361  public void setVolume(Volume value) {
362  this.volume = value;
363  }
364 
365 }