-
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.
EPA-81: Added authorization related operations
- Loading branch information
1 parent
3d72372
commit 5392abf
Showing
9 changed files
with
199 additions
and
20 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
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
12 changes: 12 additions & 0 deletions
12
diga-epa-client/src/main/java/com/oviva/epa/client/internal/svc/utils/Models.java
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,12 @@ | ||
package com.oviva.epa.client.internal.svc.utils; | ||
|
||
import telematik.ws.fd.phr.phrcommon.xsd.v1_1.InsurantIdType; | ||
|
||
public class Models { | ||
|
||
private Models() {} | ||
|
||
public static InsurantIdType fromKvnr(String kvnr) { | ||
return new InsurantIdType().withExtension(kvnr).withRoot(new InsurantIdType().getRoot()); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
diga-epa-client/src/main/java/com/oviva/epa/client/model/AuthorizationEntry.java
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,5 @@ | ||
package com.oviva.epa.client.model; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record AuthorizationEntry(RecordIdentifier recordIdentifier, LocalDate validTo) {} |
9 changes: 9 additions & 0 deletions
9
diga-epa-client/src/main/java/com/oviva/epa/client/model/AuthorizedApplication.java
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,9 @@ | ||
package com.oviva.epa.client.model; | ||
|
||
import java.time.LocalDate; | ||
|
||
/** | ||
* @param name the name of the application, e.g. 'ePA' | ||
* @param validTo the date until when this authorization is valid | ||
*/ | ||
public record AuthorizedApplication(String name, LocalDate validTo) {} |
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