-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Diverse utvidelser av Appointment for å støtte Valgkort:
* Barcode er nå tilgjengelig opsjon * Barcode har fått beskrivelse som kan legges ved koden * Lagt til Tag i Appointment slik at vi kan sjekke etter om Appointment er et valgkort i koden som skal rendre dette. * Lagt til ny type for Link * Det er nå mulig å spesifisere tittelen på sted.
- Loading branch information
Showing
7 changed files
with
85 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package no.digipost.api.datatypes.types; | ||
|
||
import lombok.*; | ||
import lombok.experimental.Wither; | ||
import no.digipost.api.datatypes.DataType; | ||
import no.digipost.api.datatypes.documentation.Description; | ||
import no.digipost.api.datatypes.validation.WebUrl; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import javax.validation.constraints.Size; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import javax.xml.bind.annotation.XmlSchemaType; | ||
import javax.xml.bind.annotation.XmlType; | ||
import java.net.URI; | ||
import java.time.ZoneId; | ||
import java.time.ZonedDateTime; | ||
|
||
@XmlType | ||
@Value | ||
@AllArgsConstructor | ||
@NoArgsConstructor(force = true, access = AccessLevel.PRIVATE) | ||
@Wither | ||
@Description("A link is a represention of an <a> element in html with href-url and a text. <a href='url'>description</a>") | ||
public class Link { | ||
|
||
@XmlElement(required = true) | ||
@XmlSchemaType(name="anyURI") | ||
@NotNull | ||
@WebUrl | ||
@Description("Target URL of this link. Must be http or https.") | ||
URI url; | ||
|
||
@XmlElement(required = true) | ||
@Size(max = 70) | ||
@Description("The text-part of av an <a> html element.") | ||
String description; | ||
|
||
public static Link EXAMPLE = new Link(URI.create("https://valg.no"), | ||
"Les mer om valget på valg.no"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,5 @@ public enum Tag { | |
VARSEL1 | ||
, VARSEL2 | ||
, POSTEN | ||
, VALGKORT | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters