Skip to content

Commit

Permalink
gjør sender optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Strandenæs committed Nov 6, 2018
1 parent b4127aa commit 12a426c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,15 @@ Details about a pickup notice
|Name|Type|Required|Description|
|----|----|--------|-----------|
|parcelId|String|yes|The id of the parcel in posten|
|parcelUUID|String|yes|The uuid of the parcel|
|parcelUUID|String|no|The uuid of the parcel|
|barcode|[Barcode](#pickupnoticebarcode)|yes|Barcode|
|productName|String|yes|Mail Service product name|
|productName|String|no|Mail Service product name|
|arrivalDateTime|ZonedDateTime|yes|ISO8601 full DateTime for arrival at pickup place|
|returnDateTime|ZonedDateTime|yes|ISO8601 full DateTime for return back to sender|
|recipient|[Recipient](#pickupnoticerecipient)|yes|The recipient of the parcel|
|sender|[Sender](#pickupnoticesender)|yes|The sender of the parcel|
|sender|[Sender](#pickupnoticesender)|no|The sender of the parcel|
|pickupPlace|[PickupPlace](#pickupnoticepickupplace)|yes|where the parcel can be fetched|
|thePackage|[Package](#pickupnoticepackage)|yes|package information|
|thePackage|[Package](#pickupnoticepackage)|no|package information|
|cost|[Cost](#pickupnoticecost)|no|Information about value, mva, customs processing and more|

### PickupNotice.Barcode
Expand Down Expand Up @@ -265,7 +265,7 @@ Details about a pickup notice

|Name|Type|Required|Description|
|----|----|--------|-----------|
|name|String|yes|The senders name|
|name|String|no|The senders name|
|reference|String|no|The senders reference|
|address|[Address](#pickupnoticeaddress)|no||

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ public class PickupNotice implements DataType {
@Valid
String parcelId;

@XmlElement(name = "parcel-uuid", required = true)
@XmlElement(name = "parcel-uuid")
@Description("The uuid of the parcel")
String parcelUUID;

@XmlElement(name = "barcode", required = true)
@Description("Barcode")
Barcode barcode;

@XmlElement(name = "product-name", required = true)
@XmlElement(name = "product-name")
@Description("Mail Service product name")
String productName;

Expand All @@ -58,9 +58,8 @@ public class PickupNotice implements DataType {
@Valid
Recipient recipient;

@XmlElement(name = "sender", required = true)
@XmlElement(name = "sender")
@Description("The sender of the parcel")
@NotNull
@Valid
Sender sender;

Expand All @@ -70,7 +69,7 @@ public class PickupNotice implements DataType {
@Valid
PickupPlace pickupPlace;

@XmlElement(name = "package", required = true)
@XmlElement(name = "package")
@Description("package information")
Package thePackage;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
@Wither
public class Sender {

@XmlElement(name = "name", required = true)
@XmlElement(name = "name")
@Description("The senders name")
String name;

@XmlElement(name = "reference", required = false)
@XmlElement(name = "reference")
@Description("The senders reference")
String reference;

Expand Down

0 comments on commit 12a426c

Please sign in to comment.