diff --git a/datatypes-examples.xml b/datatypes-examples.xml index 183534d..9800245 100644 --- a/datatypes-examples.xml +++ b/datatypes-examples.xml @@ -212,6 +212,7 @@ 0 0 + Krever fremvisning av Pass eller Norsk nasjonalt ID-kort (Show Passport or Norwegian national ID-card). Fullmakt ikke tillatt. READY_FOR_PICKUP POSTEN NB diff --git a/datatypes.xsd b/datatypes.xsd index c51df8d..0b9f932 100644 --- a/datatypes.xsd +++ b/datatypes.xsd @@ -240,6 +240,7 @@ + diff --git a/readme.md b/readme.md index 347ecd8..e272bc5 100644 --- a/readme.md +++ b/readme.md @@ -490,9 +490,10 @@ Details about a pickup notice |pickupPlace|[PickupPlace](#pickupnoticepickupplace)|yes|where the parcel can be fetched| |thePackage|[Package](#pickupnoticepackage)|no|package information| |cost|[Cost](#pickupnoticecost)|no|Information about value, mva, customs processing and more| +|extraInformation|String|no|Additional information about the pickup. May for example be used to inform the recipient that identification will be required upon pickup.| |status|[Status](#pickupnoticestatus)|no|The state the package is at present time| |tags|Set|no|Tags to describe the document| -|language|[Language](#pickupnoticelanguage)|no|Languange for the document| +|language|[Language](#pickupnoticelanguage)|no|Language for the document| |link|[ExternalLink](#pickupnoticeexternallink)|no|An optional link to an external site, where the recipient can perform additional actions for their package| ### PickupNotice.Barcode @@ -652,6 +653,7 @@ Valid values: 0 0 + Krever fremvisning av Pass eller Norsk nasjonalt ID-kort (Show Passport or Norwegian national ID-card). Fullmakt ikke tillatt. READY_FOR_PICKUP POSTEN NB diff --git a/src/main/java/no/digipost/api/datatypes/types/pickup/PickupNotice.java b/src/main/java/no/digipost/api/datatypes/types/pickup/PickupNotice.java index a162fa8..e29a9fb 100644 --- a/src/main/java/no/digipost/api/datatypes/types/pickup/PickupNotice.java +++ b/src/main/java/no/digipost/api/datatypes/types/pickup/PickupNotice.java @@ -83,6 +83,10 @@ public class PickupNotice implements DataType { @XmlElement(name = "cost") @Description("Information about value, mva, customs processing and more") Cost cost; + + @XmlElement(name = "extra-information") + @Description("Additional information about the pickup. May for example be used to inform the recipient that identification will be required upon pickup.") + String extraInformation; @XmlElement(name = "status") @Description("The state the package is at present time") @@ -93,7 +97,7 @@ public class PickupNotice implements DataType { Set tags; @XmlElement(defaultValue = "NB") - @Description("Languange for the document") + @Description("Language for the document") Language language; @XmlElement(name = "link") @@ -122,6 +126,7 @@ public PickupNotice withDefaultsForMissingOptionalValues() { , PickupPlace.EXAMPLE , Package.EXAMPLE , Cost.EXAMPLE + , "Krever fremvisning av Pass eller Norsk nasjonalt ID-kort (Show Passport or Norwegian national ID-card). Fullmakt ikke tillatt." , Status.READY_FOR_PICKUP , Collections.singleton(Tag.POSTEN) , Language.NB