Skip to content

Commit

Permalink
Use latest release of digipost-data-types
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanwh committed Nov 13, 2023
1 parent 35cd16d commit 8c5ae21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@
<dependency>
<groupId>no.digipost</groupId>
<artifactId>digipost-data-types</artifactId>
<version>0.39-RC9</version>
<version>0.39</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@
import no.digipost.api.client.tag.TagApi;
import no.digipost.api.client.util.JAXBContextUtils;
import no.digipost.api.datatypes.DataType;
import no.digipost.api.datatypes.types.share.ShareDocumentsRequestEvent;
import no.digipost.api.datatypes.types.share.ShareDocumentsRequestEventType;
import no.digipost.api.datatypes.types.share.ShareDocumentsRequestSharingStopped;
import org.apache.commons.io.output.ByteArrayOutputStream;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
Expand Down Expand Up @@ -522,11 +521,7 @@ public SharedDocumentContent getSharedDocumentContent(URI uri) {

@Override
public CloseableHttpResponse stopSharing(SenderId senderId, URI uri) {
DataType dataType = new ShareDocumentsRequestEvent(
ShareDocumentsRequestEventType.SHARING_STOPPED,
ZonedDateTime.now(),
null
);
DataType dataType = new ShareDocumentsRequestSharingStopped();
AdditionalData data = AdditionalData.Builder
.newAdditionalData(dataType)
.setSenderId(senderId)
Expand Down

0 comments on commit 8c5ae21

Please sign in to comment.