GLS ShipIT  5.3.4
GLS ShipIT - REST services
gls_group/fpcs/v1/shipmentprocessing/types/ShipmentUnit.java
Go to the documentation of this file.
1 
2 package eu.gls_group.fpcs.v1.shipmentprocessing.types;
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;
17 
18 
53 @XmlAccessorType(XmlAccessType.FIELD)
54 @XmlType(name = "ShipmentUnit", propOrder = {
55  "shipmentUnitReference",
56  "partnerParcelNumber",
57  "weight",
58  "note1",
59  "note2",
60  "service",
61  "frAlphaParcelReference",
62  "trackID",
63  "injected",
64  "parcelNumber",
65  "nationalParcelData",
66  "volume",
67  "globalShipmentUnitId"
68 })
69 public class ShipmentUnit {
70 
71  @XmlElement(name = "ShipmentUnitReference")
72  protected List<String> shipmentUnitReference;
73  @XmlElement(name = "PartnerParcelNumber")
74  protected String partnerParcelNumber;
75  @XmlElement(name = "Weight", type = String.class)
76  @XmlJavaTypeAdapter(Adapter1 .class)
77  @XmlSchemaType(name = "decimal")
78  protected BigDecimal weight;
79  @XmlElement(name = "Note1")
80  protected String note1;
81  @XmlElement(name = "Note2")
82  protected String note2;
83  @XmlElement(name = "Service")
84  protected List<UnitService> service;
85  @XmlElement(name = "FRAlphaParcelReference")
86  protected String frAlphaParcelReference;
87  @XmlElement(name = "TrackID")
88  protected String trackID;
89  @XmlElement(defaultValue = "false")
90  protected Boolean injected;
91  @XmlElement(name = "ParcelNumber")
92  protected String parcelNumber;
93  @XmlElement(name = "NationalParcelData")
94  protected NationalParcelData nationalParcelData;
95  @XmlElement(name = "Volume")
96  protected Volume volume;
97  @XmlElement(name = "GlobalShipmentUnitId")
98  protected String globalShipmentUnitId;
99 
122  public List<String> getShipmentUnitReference() {
123  if (shipmentUnitReference == null) {
124  shipmentUnitReference = new ArrayList<String>();
125  }
126  return this.shipmentUnitReference;
127  }
128 
137  public String getPartnerParcelNumber() {
138  return partnerParcelNumber;
139  }
140 
149  public void setPartnerParcelNumber(String value) {
150  this.partnerParcelNumber = value;
151  }
152 
161  public BigDecimal getWeight() {
162  return weight;
163  }
164 
173  public void setWeight(BigDecimal value) {
174  this.weight = value;
175  }
176 
185  public String getNote1() {
186  return note1;
187  }
188 
197  public void setNote1(String value) {
198  this.note1 = value;
199  }
200 
209  public String getNote2() {
210  return note2;
211  }
212 
221  public void setNote2(String value) {
222  this.note2 = value;
223  }
224 
247  public List<UnitService> getService() {
248  if (service == null) {
249  service = new ArrayList<UnitService>();
250  }
251  return this.service;
252  }
253 
262  public String getFRAlphaParcelReference() {
263  return frAlphaParcelReference;
264  }
265 
274  public void setFRAlphaParcelReference(String value) {
275  this.frAlphaParcelReference = value;
276  }
277 
286  public String getTrackID() {
287  return trackID;
288  }
289 
298  public void setTrackID(String value) {
299  this.trackID = value;
300  }
301 
310  public Boolean isInjected() {
311  return injected;
312  }
313 
322  public void setInjected(Boolean value) {
323  this.injected = value;
324  }
325 
334  public String getParcelNumber() {
335  return parcelNumber;
336  }
337 
346  public void setParcelNumber(String value) {
347  this.parcelNumber = value;
348  }
349 
359  return nationalParcelData;
360  }
361 
371  this.nationalParcelData = value;
372  }
373 
382  public Volume getVolume() {
383  return volume;
384  }
385 
394  public void setVolume(Volume value) {
395  this.volume = value;
396  }
397 
406  public String getGlobalShipmentUnitId() {
407  return globalShipmentUnitId;
408  }
409 
418  public void setGlobalShipmentUnitId(String value) {
419  this.globalShipmentUnitId = value;
420  }
421 
422 }