diff --git a/Digipost.Api.Client.Common.Tests/Actions/DigipostActionTests.cs b/Digipost.Api.Client.Common.Tests/Actions/DigipostActionTests.cs index acac833d..47ba5301 100755 --- a/Digipost.Api.Client.Common.Tests/Actions/DigipostActionTests.cs +++ b/Digipost.Api.Client.Common.Tests/Actions/DigipostActionTests.cs @@ -28,4 +28,4 @@ public void ReturnsCorrectDataForIdentification() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/DataTransferObjectConverterTests.cs b/Digipost.Api.Client.Common.Tests/DataTransferObjectConverterTests.cs index 776a3233..74c73caf 100755 --- a/Digipost.Api.Client.Common.Tests/DataTransferObjectConverterTests.cs +++ b/Digipost.Api.Client.Common.Tests/DataTransferObjectConverterTests.cs @@ -6,7 +6,6 @@ using Digipost.Api.Client.Common.Print; using Digipost.Api.Client.Common.Recipient; using Digipost.Api.Client.Common.Search; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Digipost.Api.Client.Tests.CompareObjects; using Xunit; @@ -885,4 +884,4 @@ public void Error() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/EnvironmentTests.cs b/Digipost.Api.Client.Common.Tests/EnvironmentTests.cs index f7248c6f..c8250dbd 100755 --- a/Digipost.Api.Client.Common.Tests/EnvironmentTests.cs +++ b/Digipost.Api.Client.Common.Tests/EnvironmentTests.cs @@ -12,4 +12,4 @@ public void Can_Change_Url() env.Url = new Uri("http://api.newenvironment.digipost.no"); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Extensions/EnumExtensionsTests.cs b/Digipost.Api.Client.Common.Tests/Extensions/EnumExtensionsTests.cs index 51b29765..30749da5 100755 --- a/Digipost.Api.Client.Common.Tests/Extensions/EnumExtensionsTests.cs +++ b/Digipost.Api.Client.Common.Tests/Extensions/EnumExtensionsTests.cs @@ -1,7 +1,6 @@ using System; using Digipost.Api.Client.Common.Enums; using Digipost.Api.Client.Common.Extensions; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Xunit; namespace Digipost.Api.Client.Common.Tests.Extensions @@ -191,4 +190,4 @@ public void Converts_All_Enum_Values() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Handlers/AuthenticationHandlerTests.cs b/Digipost.Api.Client.Common.Tests/Handlers/AuthenticationHandlerTests.cs index a132426f..c2ae5546 100755 --- a/Digipost.Api.Client.Common.Tests/Handlers/AuthenticationHandlerTests.cs +++ b/Digipost.Api.Client.Common.Tests/Handlers/AuthenticationHandlerTests.cs @@ -75,4 +75,4 @@ public void ReturnsCorrectHash() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Identify/IdentificationResultTests.cs b/Digipost.Api.Client.Common.Tests/Identify/IdentificationResultTests.cs index d5c09014..fcaef514 100755 --- a/Digipost.Api.Client.Common.Tests/Identify/IdentificationResultTests.cs +++ b/Digipost.Api.Client.Common.Tests/Identify/IdentificationResultTests.cs @@ -3,7 +3,6 @@ using Digipost.Api.Client.Common.Enums; using Digipost.Api.Client.Common.Extensions; using Digipost.Api.Client.Common.Identify; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Xunit; namespace Digipost.Api.Client.Common.Tests.Identify @@ -140,4 +139,4 @@ public void Handles_unidentifiedreason() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Identify/IdentificationTests.cs b/Digipost.Api.Client.Common.Tests/Identify/IdentificationTests.cs index 84b2b3a3..aa660aa5 100755 --- a/Digipost.Api.Client.Common.Tests/Identify/IdentificationTests.cs +++ b/Digipost.Api.Client.Common.Tests/Identify/IdentificationTests.cs @@ -22,4 +22,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Print/ForeignAddressTests.cs b/Digipost.Api.Client.Common.Tests/Print/ForeignAddressTests.cs index bebecd24..dc91fc70 100755 --- a/Digipost.Api.Client.Common.Tests/Print/ForeignAddressTests.cs +++ b/Digipost.Api.Client.Common.Tests/Print/ForeignAddressTests.cs @@ -32,4 +32,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Print/NorwegianAddressTests.cs b/Digipost.Api.Client.Common.Tests/Print/NorwegianAddressTests.cs index bab74052..5711cd08 100755 --- a/Digipost.Api.Client.Common.Tests/Print/NorwegianAddressTests.cs +++ b/Digipost.Api.Client.Common.Tests/Print/NorwegianAddressTests.cs @@ -24,4 +24,4 @@ public void WhatYouAreTestingOnMethod() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Print/PrintDetailsTests.cs b/Digipost.Api.Client.Common.Tests/Print/PrintDetailsTests.cs index 15366a6a..b6082bf4 100755 --- a/Digipost.Api.Client.Common.Tests/Print/PrintDetailsTests.cs +++ b/Digipost.Api.Client.Common.Tests/Print/PrintDetailsTests.cs @@ -38,4 +38,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Print/PrintRecipientTests.cs b/Digipost.Api.Client.Common.Tests/Print/PrintRecipientTests.cs index 19c44817..247ed783 100755 --- a/Digipost.Api.Client.Common.Tests/Print/PrintRecipientTests.cs +++ b/Digipost.Api.Client.Common.Tests/Print/PrintRecipientTests.cs @@ -34,4 +34,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Print/PrintReturnRecipientTests.cs b/Digipost.Api.Client.Common.Tests/Print/PrintReturnRecipientTests.cs index 7d460ab4..67d9fa6a 100755 --- a/Digipost.Api.Client.Common.Tests/Print/PrintReturnRecipientTests.cs +++ b/Digipost.Api.Client.Common.Tests/Print/PrintReturnRecipientTests.cs @@ -32,4 +32,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Common.Tests/Properties/AssemblyInfo.cs index b7a30df7..28f55ad9 100755 --- a/Digipost.Api.Client.Common.Tests/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Common.Tests/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Reflection; -[assembly: AssemblyTitle("Digipost.Api.Client.Common.Tests")] \ No newline at end of file +[assembly: AssemblyTitle("Digipost.Api.Client.Common.Tests")] diff --git a/Digipost.Api.Client.Common.Tests/Recipient/RecipientByIdTests.cs b/Digipost.Api.Client.Common.Tests/Recipient/RecipientByIdTests.cs index 99d070c3..6f3b8c3d 100755 --- a/Digipost.Api.Client.Common.Tests/Recipient/RecipientByIdTests.cs +++ b/Digipost.Api.Client.Common.Tests/Recipient/RecipientByIdTests.cs @@ -26,4 +26,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common.Tests/Recipient/RecipientByNameAndAddressTests.cs b/Digipost.Api.Client.Common.Tests/Recipient/RecipientByNameAndAddressTests.cs index 7818fc35..3912fc7a 100755 --- a/Digipost.Api.Client.Common.Tests/Recipient/RecipientByNameAndAddressTests.cs +++ b/Digipost.Api.Client.Common.Tests/Recipient/RecipientByNameAndAddressTests.cs @@ -28,4 +28,4 @@ public void SimpleConstructor() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Actions/DigipostAction.cs b/Digipost.Api.Client.Common/Actions/DigipostAction.cs index 088ea209..18691afe 100755 --- a/Digipost.Api.Client.Common/Actions/DigipostAction.cs +++ b/Digipost.Api.Client.Common/Actions/DigipostAction.cs @@ -26,4 +26,4 @@ private void InitializeRequestXmlContent(IRequestContent requestContent) RequestContent = document; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Actions/IdentificationAction.cs b/Digipost.Api.Client.Common/Actions/IdentificationAction.cs index 2a9b5e14..51d5eadc 100755 --- a/Digipost.Api.Client.Common/Actions/IdentificationAction.cs +++ b/Digipost.Api.Client.Common/Actions/IdentificationAction.cs @@ -32,4 +32,4 @@ protected override string Serialize(IRequestContent requestContent) return SerializeUtil.Serialize(identificationDto); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/ApiClientXmlValidator.cs b/Digipost.Api.Client.Common/ApiClientXmlValidator.cs index 6966ea94..c2b0da62 100755 --- a/Digipost.Api.Client.Common/ApiClientXmlValidator.cs +++ b/Digipost.Api.Client.Common/ApiClientXmlValidator.cs @@ -10,4 +10,4 @@ public ApiClientXmlValidator() AddXsd(Namespace.DigipostApiV7, XsdResource.GetApiV7Xsd()); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Broker.cs b/Digipost.Api.Client.Common/Broker.cs index 8cbe40c4..56c2e644 100755 --- a/Digipost.Api.Client.Common/Broker.cs +++ b/Digipost.Api.Client.Common/Broker.cs @@ -23,4 +23,4 @@ public Broker(long id) /// public long Id { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/ClientConfig.cs b/Digipost.Api.Client.Common/ClientConfig.cs index 2479ad1a..615933a8 100755 --- a/Digipost.Api.Client.Common/ClientConfig.cs +++ b/Digipost.Api.Client.Common/ClientConfig.cs @@ -35,4 +35,4 @@ public ClientConfig(Broker broker, Environment environment) /// public bool LogRequestAndResponse { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/DataTransferObjectConverter.cs b/Digipost.Api.Client.Common/DataTransferObjectConverter.cs index 7b8ace2c..974e2903 100755 --- a/Digipost.Api.Client.Common/DataTransferObjectConverter.cs +++ b/Digipost.Api.Client.Common/DataTransferObjectConverter.cs @@ -6,7 +6,6 @@ using Digipost.Api.Client.Common.Print; using Digipost.Api.Client.Common.Recipient; using Digipost.Api.Client.Common.Search; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Common { @@ -291,4 +290,4 @@ public static SearchDetailsResult FromDataTransferObject(recipients recipients) }; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/DigipostVersion.cs b/Digipost.Api.Client.Common/DigipostVersion.cs index b2381be2..7592e7e7 100755 --- a/Digipost.Api.Client.Common/DigipostVersion.cs +++ b/Digipost.Api.Client.Common/DigipostVersion.cs @@ -4,4 +4,4 @@ internal class DigipostVersion { public static string V7 = "application/vnd.digipost-v7+xml"; } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/AuthenticationLevel.cs b/Digipost.Api.Client.Common/Enums/AuthenticationLevel.cs index 0eacbc06..669829c5 100755 --- a/Digipost.Api.Client.Common/Enums/AuthenticationLevel.cs +++ b/Digipost.Api.Client.Common/Enums/AuthenticationLevel.cs @@ -12,4 +12,4 @@ public enum AuthenticationLevel /// TwoFactor } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/CountryIdentifier.cs b/Digipost.Api.Client.Common/Enums/CountryIdentifier.cs index 96dc5afe..48083bfb 100755 --- a/Digipost.Api.Client.Common/Enums/CountryIdentifier.cs +++ b/Digipost.Api.Client.Common/Enums/CountryIdentifier.cs @@ -12,4 +12,4 @@ public enum CountryIdentifier /// Countrycode } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/DeliveryMethod.cs b/Digipost.Api.Client.Common/Enums/DeliveryMethod.cs index fe599bc9..324bce6d 100755 --- a/Digipost.Api.Client.Common/Enums/DeliveryMethod.cs +++ b/Digipost.Api.Client.Common/Enums/DeliveryMethod.cs @@ -12,4 +12,4 @@ public enum DeliveryMethod /// Digipost } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/IdentificationChoiceType.cs b/Digipost.Api.Client.Common/Enums/IdentificationChoiceType.cs index bc926755..9e9bac83 100755 --- a/Digipost.Api.Client.Common/Enums/IdentificationChoiceType.cs +++ b/Digipost.Api.Client.Common/Enums/IdentificationChoiceType.cs @@ -22,4 +22,4 @@ public enum IdentificationChoiceType /// PersonalidentificationNumber } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/IdentificationError.cs b/Digipost.Api.Client.Common/Enums/IdentificationError.cs index c6ba787b..e23d4127 100755 --- a/Digipost.Api.Client.Common/Enums/IdentificationError.cs +++ b/Digipost.Api.Client.Common/Enums/IdentificationError.cs @@ -16,4 +16,4 @@ public enum IdentificationError MultipleMatches } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/IdentificationResultCode.cs b/Digipost.Api.Client.Common/Enums/IdentificationResultCode.cs index 0f73c863..a0cdfcb0 100755 --- a/Digipost.Api.Client.Common/Enums/IdentificationResultCode.cs +++ b/Digipost.Api.Client.Common/Enums/IdentificationResultCode.cs @@ -10,4 +10,4 @@ public enum IdentificationResultCode Invalid } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/IdentificationResultType.cs b/Digipost.Api.Client.Common/Enums/IdentificationResultType.cs index 9a895473..824a0e15 100755 --- a/Digipost.Api.Client.Common/Enums/IdentificationResultType.cs +++ b/Digipost.Api.Client.Common/Enums/IdentificationResultType.cs @@ -10,4 +10,4 @@ public enum IdentificationResultType UnidentifiedReason } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/IdentificationType.cs b/Digipost.Api.Client.Common/Enums/IdentificationType.cs index f681803e..bfa39a6c 100755 --- a/Digipost.Api.Client.Common/Enums/IdentificationType.cs +++ b/Digipost.Api.Client.Common/Enums/IdentificationType.cs @@ -10,4 +10,4 @@ public enum IdentificationType NameAndAddress } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/InvalidReason.cs b/Digipost.Api.Client.Common/Enums/InvalidReason.cs index 5d77dd35..63b7b5f0 100755 --- a/Digipost.Api.Client.Common/Enums/InvalidReason.cs +++ b/Digipost.Api.Client.Common/Enums/InvalidReason.cs @@ -17,4 +17,4 @@ public enum InvalidReason /// Unknown } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/MessageStatus.cs b/Digipost.Api.Client.Common/Enums/MessageStatus.cs index 3fe0ca9c..4485e00a 100755 --- a/Digipost.Api.Client.Common/Enums/MessageStatus.cs +++ b/Digipost.Api.Client.Common/Enums/MessageStatus.cs @@ -23,4 +23,4 @@ public enum MessageStatus /// DeliveredToPrint } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/NonDeliverableHandling.cs b/Digipost.Api.Client.Common/Enums/NonDeliverableHandling.cs index b49bfccf..aec1082c 100755 --- a/Digipost.Api.Client.Common/Enums/NonDeliverableHandling.cs +++ b/Digipost.Api.Client.Common/Enums/NonDeliverableHandling.cs @@ -7,4 +7,4 @@ public enum NondeliverableHandling /// ReturnToSender } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/PostType.cs b/Digipost.Api.Client.Common/Enums/PostType.cs index 876b112a..f76d4538 100755 --- a/Digipost.Api.Client.Common/Enums/PostType.cs +++ b/Digipost.Api.Client.Common/Enums/PostType.cs @@ -12,4 +12,4 @@ public enum PostType /// B } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/PrintColors.cs b/Digipost.Api.Client.Common/Enums/PrintColors.cs index 6a50c5d7..f9a3d09e 100755 --- a/Digipost.Api.Client.Common/Enums/PrintColors.cs +++ b/Digipost.Api.Client.Common/Enums/PrintColors.cs @@ -12,4 +12,4 @@ public enum PrintColors /// Colors } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/SensitivityLevel.cs b/Digipost.Api.Client.Common/Enums/SensitivityLevel.cs index 93609a0a..682b7de4 100755 --- a/Digipost.Api.Client.Common/Enums/SensitivityLevel.cs +++ b/Digipost.Api.Client.Common/Enums/SensitivityLevel.cs @@ -18,4 +18,4 @@ public enum SensitivityLevel /// Sensitive } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Enums/UnidentifiedReason.cs b/Digipost.Api.Client.Common/Enums/UnidentifiedReason.cs index e2835f92..b6db2b53 100755 --- a/Digipost.Api.Client.Common/Enums/UnidentifiedReason.cs +++ b/Digipost.Api.Client.Common/Enums/UnidentifiedReason.cs @@ -12,4 +12,4 @@ public enum UnidentifiedReason /// NotFound } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Environment.cs b/Digipost.Api.Client.Common/Environment.cs index 56add597..631de8a9 100755 --- a/Digipost.Api.Client.Common/Environment.cs +++ b/Digipost.Api.Client.Common/Environment.cs @@ -24,4 +24,4 @@ public override string ToString() return $"Url: {Url}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Error.cs b/Digipost.Api.Client.Common/Error.cs index a69a80d3..c2dcb821 100755 --- a/Digipost.Api.Client.Common/Error.cs +++ b/Digipost.Api.Client.Common/Error.cs @@ -13,4 +13,4 @@ public override string ToString() return $"Errorcode: {Errorcode}, Errormessage: {Errormessage}, Errortype: {Errortype}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Exceptions/APIException.cs b/Digipost.Api.Client.Common/Exceptions/APIException.cs index 2044c108..bd1a08cc 100755 --- a/Digipost.Api.Client.Common/Exceptions/APIException.cs +++ b/Digipost.Api.Client.Common/Exceptions/APIException.cs @@ -14,4 +14,4 @@ public ApiException(string message, Exception inner) { } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Exceptions/ClientResponseException.cs b/Digipost.Api.Client.Common/Exceptions/ClientResponseException.cs index 6e7d925a..2bb166f9 100755 --- a/Digipost.Api.Client.Common/Exceptions/ClientResponseException.cs +++ b/Digipost.Api.Client.Common/Exceptions/ClientResponseException.cs @@ -28,4 +28,4 @@ public ClientResponseException(string message, IError error, Exception inner) public IError Error { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Exceptions/ConfigException.cs b/Digipost.Api.Client.Common/Exceptions/ConfigException.cs index fb94e152..500eba24 100755 --- a/Digipost.Api.Client.Common/Exceptions/ConfigException.cs +++ b/Digipost.Api.Client.Common/Exceptions/ConfigException.cs @@ -14,4 +14,4 @@ public ConfigException(string message, Exception inner) { } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Exceptions/XmlParseException.cs b/Digipost.Api.Client.Common/Exceptions/XmlParseException.cs index 277e56c5..e8e5e70d 100755 --- a/Digipost.Api.Client.Common/Exceptions/XmlParseException.cs +++ b/Digipost.Api.Client.Common/Exceptions/XmlParseException.cs @@ -20,4 +20,4 @@ public XmlParseException(string message, Exception inner, string xmlRawData) public string XmlRawData { get; private set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Extensions/EnumExtensions.cs b/Digipost.Api.Client.Common/Extensions/EnumExtensions.cs index ba4de925..04e644d8 100755 --- a/Digipost.Api.Client.Common/Extensions/EnumExtensions.cs +++ b/Digipost.Api.Client.Common/Extensions/EnumExtensions.cs @@ -1,6 +1,5 @@ using System; using Digipost.Api.Client.Common.Enums; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Common.Extensions { @@ -189,4 +188,4 @@ public static SensitivityLevel ToSensitivityLevel(this sensitivitylevel sensitiv } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Handlers/AuthenticationHandler.cs b/Digipost.Api.Client.Common/Handlers/AuthenticationHandler.cs index 1c470710..0b723025 100755 --- a/Digipost.Api.Client.Common/Handlers/AuthenticationHandler.cs +++ b/Digipost.Api.Client.Common/Handlers/AuthenticationHandler.cs @@ -156,4 +156,4 @@ public UriParts(Uri uri) public string Parameters { get; } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Handlers/LoggingHandler.cs b/Digipost.Api.Client.Common/Handlers/LoggingHandler.cs index 9dc55100..be09c9fb 100755 --- a/Digipost.Api.Client.Common/Handlers/LoggingHandler.cs +++ b/Digipost.Api.Client.Common/Handlers/LoggingHandler.cs @@ -51,4 +51,4 @@ private async Task LogContent(HttpContent httpContent, bool isRequest) } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/IDigipostRecipient.cs b/Digipost.Api.Client.Common/IDigipostRecipient.cs index e0745405..43ddfdbe 100755 --- a/Digipost.Api.Client.Common/IDigipostRecipient.cs +++ b/Digipost.Api.Client.Common/IDigipostRecipient.cs @@ -3,4 +3,4 @@ public interface IDigipostRecipient { } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/IError.cs b/Digipost.Api.Client.Common/IError.cs index ea81b5d3..a50164eb 100755 --- a/Digipost.Api.Client.Common/IError.cs +++ b/Digipost.Api.Client.Common/IError.cs @@ -10,4 +10,4 @@ public interface IError string ToString(); } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/ISmsNotification.cs b/Digipost.Api.Client.Common/ISmsNotification.cs index c9806cf3..2c113229 100755 --- a/Digipost.Api.Client.Common/ISmsNotification.cs +++ b/Digipost.Api.Client.Common/ISmsNotification.cs @@ -15,4 +15,4 @@ public interface ISmsNotification /// List NotifyAfterHours { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Identify/IIdentification.cs b/Digipost.Api.Client.Common/Identify/IIdentification.cs index 444f5f31..dd684009 100755 --- a/Digipost.Api.Client.Common/Identify/IIdentification.cs +++ b/Digipost.Api.Client.Common/Identify/IIdentification.cs @@ -6,4 +6,4 @@ public interface IIdentification : IRequestContent { DigipostRecipient DigipostRecipient { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Identify/IIdentificationRecipient.cs b/Digipost.Api.Client.Common/Identify/IIdentificationRecipient.cs index cdfb6a35..a1702100 100755 --- a/Digipost.Api.Client.Common/Identify/IIdentificationRecipient.cs +++ b/Digipost.Api.Client.Common/Identify/IIdentificationRecipient.cs @@ -3,4 +3,4 @@ public interface IIdentificationRecipient { } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Identify/IIdentificationResult.cs b/Digipost.Api.Client.Common/Identify/IIdentificationResult.cs index 5f808900..acbb6e3e 100755 --- a/Digipost.Api.Client.Common/Identify/IIdentificationResult.cs +++ b/Digipost.Api.Client.Common/Identify/IIdentificationResult.cs @@ -10,4 +10,4 @@ public interface IIdentificationResult string Data { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Identify/Identification.cs b/Digipost.Api.Client.Common/Identify/Identification.cs index 89ec0390..f8abb417 100755 --- a/Digipost.Api.Client.Common/Identify/Identification.cs +++ b/Digipost.Api.Client.Common/Identify/Identification.cs @@ -11,4 +11,4 @@ public Identification(DigipostRecipient digipostRecipient) public DigipostRecipient DigipostRecipient { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Identify/IdentificationResult.cs b/Digipost.Api.Client.Common/Identify/IdentificationResult.cs index a0a2e268..1bc16aae 100755 --- a/Digipost.Api.Client.Common/Identify/IdentificationResult.cs +++ b/Digipost.Api.Client.Common/Identify/IdentificationResult.cs @@ -1,6 +1,5 @@ using System; using Digipost.Api.Client.Common.Enums; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Common.Identify { @@ -56,4 +55,4 @@ private static IdentificationError ParseToIdentificationError(string identificat } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Namespace.cs b/Digipost.Api.Client.Common/Namespace.cs index 009dc356..f7e1c242 100755 --- a/Digipost.Api.Client.Common/Namespace.cs +++ b/Digipost.Api.Client.Common/Namespace.cs @@ -7,4 +7,4 @@ internal class Namespace /// public const string DigipostApiV7 = "http://api.digipost.no/schema/v7"; } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/Address.cs b/Digipost.Api.Client.Common/Print/Address.cs index 283fc827..c063df92 100755 --- a/Digipost.Api.Client.Common/Print/Address.cs +++ b/Digipost.Api.Client.Common/Print/Address.cs @@ -15,4 +15,4 @@ protected Address(string addressLine1 = null, string addressLine2 = null, string public string AddressLine3 { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/ForeignAddress.cs b/Digipost.Api.Client.Common/Print/ForeignAddress.cs index f2ea2c27..15a46d2b 100755 --- a/Digipost.Api.Client.Common/Print/ForeignAddress.cs +++ b/Digipost.Api.Client.Common/Print/ForeignAddress.cs @@ -28,4 +28,4 @@ public ForeignAddress(CountryIdentifier countryIdentifier, string countryIdentif public CountryIdentifier CountryIdentifier { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IAddress.cs b/Digipost.Api.Client.Common/Print/IAddress.cs index 7d174b8f..89814fe8 100755 --- a/Digipost.Api.Client.Common/Print/IAddress.cs +++ b/Digipost.Api.Client.Common/Print/IAddress.cs @@ -8,4 +8,4 @@ public interface IAddress string AddressLine3 { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IForeignAddress.cs b/Digipost.Api.Client.Common/Print/IForeignAddress.cs index 9c4ac950..ca636c01 100755 --- a/Digipost.Api.Client.Common/Print/IForeignAddress.cs +++ b/Digipost.Api.Client.Common/Print/IForeignAddress.cs @@ -16,4 +16,4 @@ public interface IForeignAddress : IAddress /// CountryIdentifier CountryIdentifier { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/INorwegianAddress.cs b/Digipost.Api.Client.Common/Print/INorwegianAddress.cs index 3d549a16..036cc35c 100755 --- a/Digipost.Api.Client.Common/Print/INorwegianAddress.cs +++ b/Digipost.Api.Client.Common/Print/INorwegianAddress.cs @@ -6,4 +6,4 @@ public interface INorwegianAddress : IAddress string City { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IPrint.cs b/Digipost.Api.Client.Common/Print/IPrint.cs index 0d753fdd..a5c037b7 100755 --- a/Digipost.Api.Client.Common/Print/IPrint.cs +++ b/Digipost.Api.Client.Common/Print/IPrint.cs @@ -13,4 +13,4 @@ public interface IPrint /// Address Address { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IPrintDetails.cs b/Digipost.Api.Client.Common/Print/IPrintDetails.cs index 6286b204..22435325 100755 --- a/Digipost.Api.Client.Common/Print/IPrintDetails.cs +++ b/Digipost.Api.Client.Common/Print/IPrintDetails.cs @@ -30,4 +30,4 @@ public interface IPrintDetails /// NondeliverableHandling NondeliverableHandling { get; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IPrintRecipient.cs b/Digipost.Api.Client.Common/Print/IPrintRecipient.cs index 8f80c9b0..d099375d 100755 --- a/Digipost.Api.Client.Common/Print/IPrintRecipient.cs +++ b/Digipost.Api.Client.Common/Print/IPrintRecipient.cs @@ -6,4 +6,4 @@ public interface IPrintRecipient Address Address { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/IPrintReturnRecipient.cs b/Digipost.Api.Client.Common/Print/IPrintReturnRecipient.cs index 66bb6846..a33340b9 100755 --- a/Digipost.Api.Client.Common/Print/IPrintReturnRecipient.cs +++ b/Digipost.Api.Client.Common/Print/IPrintReturnRecipient.cs @@ -6,4 +6,4 @@ public interface IPrintReturnRecipient Address Address { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/NorwegianAddress.cs b/Digipost.Api.Client.Common/Print/NorwegianAddress.cs index 54d94e2b..c20750de 100755 --- a/Digipost.Api.Client.Common/Print/NorwegianAddress.cs +++ b/Digipost.Api.Client.Common/Print/NorwegianAddress.cs @@ -22,4 +22,4 @@ public NorwegianAddress(string postalCode, public string City { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/Print.cs b/Digipost.Api.Client.Common/Print/Print.cs index 1d898f5c..8fc0654e 100755 --- a/Digipost.Api.Client.Common/Print/Print.cs +++ b/Digipost.Api.Client.Common/Print/Print.cs @@ -12,4 +12,4 @@ protected Print(string name, Address address) public Address Address { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/PrintDetails.cs b/Digipost.Api.Client.Common/Print/PrintDetails.cs index 1dab0ea8..ec7c4a8b 100755 --- a/Digipost.Api.Client.Common/Print/PrintDetails.cs +++ b/Digipost.Api.Client.Common/Print/PrintDetails.cs @@ -23,4 +23,4 @@ public PrintDetails(IPrintRecipient printRecipient, IPrintReturnRecipient printR public NondeliverableHandling NondeliverableHandling { get; internal set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/PrintRecipient.cs b/Digipost.Api.Client.Common/Print/PrintRecipient.cs index 2982ddb1..e52a3bea 100755 --- a/Digipost.Api.Client.Common/Print/PrintRecipient.cs +++ b/Digipost.Api.Client.Common/Print/PrintRecipient.cs @@ -7,4 +7,4 @@ public PrintRecipient(string name, Address address) { } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Print/PrintReturnRecipient.cs b/Digipost.Api.Client.Common/Print/PrintReturnRecipient.cs index 12ea7891..56a17135 100755 --- a/Digipost.Api.Client.Common/Print/PrintReturnRecipient.cs +++ b/Digipost.Api.Client.Common/Print/PrintReturnRecipient.cs @@ -7,4 +7,4 @@ public PrintReturnRecipient(string name, Address address) { } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Common/Properties/AssemblyInfo.cs index 06b4b73c..22f4b96d 100755 --- a/Digipost.Api.Client.Common/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Common/Properties/AssemblyInfo.cs @@ -8,4 +8,4 @@ [assembly: InternalsVisibleTo("Digipost.Api.Client.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Send,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] \ No newline at end of file +[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] diff --git a/Digipost.Api.Client.Common/Recipient/DigipostRecipient.cs b/Digipost.Api.Client.Common/Recipient/DigipostRecipient.cs index 93bf0d37..759e6fd8 100755 --- a/Digipost.Api.Client.Common/Recipient/DigipostRecipient.cs +++ b/Digipost.Api.Client.Common/Recipient/DigipostRecipient.cs @@ -3,4 +3,4 @@ public abstract class DigipostRecipient : IDigipostRecipient { } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Recipient/IRecipientById.cs b/Digipost.Api.Client.Common/Recipient/IRecipientById.cs index 17f72bab..3a599e2a 100755 --- a/Digipost.Api.Client.Common/Recipient/IRecipientById.cs +++ b/Digipost.Api.Client.Common/Recipient/IRecipientById.cs @@ -8,4 +8,4 @@ public interface IRecipientById string Id { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Recipient/IRecipientByNameAndAddress.cs b/Digipost.Api.Client.Common/Recipient/IRecipientByNameAndAddress.cs index 0931f82e..863e5342 100755 --- a/Digipost.Api.Client.Common/Recipient/IRecipientByNameAndAddress.cs +++ b/Digipost.Api.Client.Common/Recipient/IRecipientByNameAndAddress.cs @@ -20,4 +20,4 @@ public interface IRecipientByNameAndAddress string Email { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Recipient/RecipientById.cs b/Digipost.Api.Client.Common/Recipient/RecipientById.cs index 3264ae31..2705de85 100755 --- a/Digipost.Api.Client.Common/Recipient/RecipientById.cs +++ b/Digipost.Api.Client.Common/Recipient/RecipientById.cs @@ -19,4 +19,4 @@ public override string ToString() return $"Id: {Id}, IdentificationType: {IdentificationType}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Recipient/RecipientByNameAndAddress.cs b/Digipost.Api.Client.Common/Recipient/RecipientByNameAndAddress.cs index e23cb575..bb714570 100755 --- a/Digipost.Api.Client.Common/Recipient/RecipientByNameAndAddress.cs +++ b/Digipost.Api.Client.Common/Recipient/RecipientByNameAndAddress.cs @@ -33,4 +33,4 @@ public override string ToString() return $"FullName: {FullName}, AddressLine1: {AddressLine1}, AddressLine2: {AddressLine2}, PostalCode: {PostalCode}, City: {City}, BirthDate: {BirthDate}, PhoneNumber: {PhoneNumber}, Email: {Email}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/RequestContent.cs b/Digipost.Api.Client.Common/RequestContent.cs index 4cd2ca97..b752c7d7 100755 --- a/Digipost.Api.Client.Common/RequestContent.cs +++ b/Digipost.Api.Client.Common/RequestContent.cs @@ -3,4 +3,4 @@ public interface IRequestContent { } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/ISearchDetails.cs b/Digipost.Api.Client.Common/Search/ISearchDetails.cs index dff37a37..47a3be37 100755 --- a/Digipost.Api.Client.Common/Search/ISearchDetails.cs +++ b/Digipost.Api.Client.Common/Search/ISearchDetails.cs @@ -20,4 +20,4 @@ public interface ISearchDetails IEnumerable SearchDetailsAddress { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/ISearchDetailsAddress.cs b/Digipost.Api.Client.Common/Search/ISearchDetailsAddress.cs index f6685202..c20f3f8d 100755 --- a/Digipost.Api.Client.Common/Search/ISearchDetailsAddress.cs +++ b/Digipost.Api.Client.Common/Search/ISearchDetailsAddress.cs @@ -14,4 +14,4 @@ public interface ISearchDetailsAddress string City { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/ISearchDetailsResult.cs b/Digipost.Api.Client.Common/Search/ISearchDetailsResult.cs index 34f97a32..11bb3d21 100755 --- a/Digipost.Api.Client.Common/Search/ISearchDetailsResult.cs +++ b/Digipost.Api.Client.Common/Search/ISearchDetailsResult.cs @@ -6,4 +6,4 @@ public interface ISearchDetailsResult { IEnumerable PersonDetails { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/SearchDetails.cs b/Digipost.Api.Client.Common/Search/SearchDetails.cs index 77609370..ed009691 100755 --- a/Digipost.Api.Client.Common/Search/SearchDetails.cs +++ b/Digipost.Api.Client.Common/Search/SearchDetails.cs @@ -28,4 +28,4 @@ public override string ToString() return $"FirstName: {FirstName}, MiddleName: {MiddleName}, LastName: {LastName}, DigipostAddress: {DigipostAddress}, MobileNumber: {MobileNumber}, OrganizationName: {OrganizationName}, SearchDetailsAddress: {SearchDetailsAddress}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/SearchDetailsAddress.cs b/Digipost.Api.Client.Common/Search/SearchDetailsAddress.cs index 62e5c18c..5a72d5ba 100755 --- a/Digipost.Api.Client.Common/Search/SearchDetailsAddress.cs +++ b/Digipost.Api.Client.Common/Search/SearchDetailsAddress.cs @@ -19,4 +19,4 @@ public override string ToString() return $"Street: {Street}, HouseNumber: {HouseNumber}, HouseLetter: {HouseLetter}, AdditionalAddressLine: {AdditionalAddressLine}, PostalCode: {PostalCode}, City: {City}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Search/SearchDetailsResult.cs b/Digipost.Api.Client.Common/Search/SearchDetailsResult.cs index 629fd946..f2152585 100755 --- a/Digipost.Api.Client.Common/Search/SearchDetailsResult.cs +++ b/Digipost.Api.Client.Common/Search/SearchDetailsResult.cs @@ -15,4 +15,4 @@ public override string ToString() return $"PersonDetails: {string.Join(",", PersonDetails.Select(p => p.ToString()))}"; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Sender.cs b/Digipost.Api.Client.Common/Sender.cs index 0628ffc1..3c57415a 100755 --- a/Digipost.Api.Client.Common/Sender.cs +++ b/Digipost.Api.Client.Common/Sender.cs @@ -24,4 +24,4 @@ public Sender(long id) /// public long Id { get; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/SmsNotification.cs b/Digipost.Api.Client.Common/SmsNotification.cs index d1589ef9..6bdf2429 100755 --- a/Digipost.Api.Client.Common/SmsNotification.cs +++ b/Digipost.Api.Client.Common/SmsNotification.cs @@ -36,4 +36,4 @@ public SmsNotification(params int[] afterHours) public List NotifyAfterHours { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Utilities/RequestHelper.cs b/Digipost.Api.Client.Common/Utilities/RequestHelper.cs index 9f395360..ca24b0d7 100755 --- a/Digipost.Api.Client.Common/Utilities/RequestHelper.cs +++ b/Digipost.Api.Client.Common/Utilities/RequestHelper.cs @@ -5,7 +5,6 @@ using System.Threading.Tasks; using System.Xml; using Digipost.Api.Client.Common.Exceptions; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Common.Utilities { @@ -116,4 +115,4 @@ private static T HandleSuccessResponse(string responseContent) return SerializeUtil.Deserialize(responseContent); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Common/Utilities/SerializeUtil.cs b/Digipost.Api.Client.Common/Utilities/SerializeUtil.cs index 23102871..eb7891ef 100755 --- a/Digipost.Api.Client.Common/Utilities/SerializeUtil.cs +++ b/Digipost.Api.Client.Common/Utilities/SerializeUtil.cs @@ -59,4 +59,4 @@ private sealed class Utf8StringWriter : StringWriter public override Encoding Encoding => Encoding.UTF8; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs index db500e3d..12fc6ea0 100755 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs +++ b/Digipost.Api.Client.ConcurrencyTest/DigipostAsync.cs @@ -29,4 +29,4 @@ public override void Run(RequestType requestType) DisplayTestResults(); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs index 84421b52..ee43075a 100755 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs +++ b/Digipost.Api.Client.ConcurrencyTest/DigipostParalell.cs @@ -38,4 +38,4 @@ public override void Run(RequestType requestType) DisplayTestResults(); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs b/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs index 5ea62c0d..f029e12a 100755 --- a/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs +++ b/Digipost.Api.Client.ConcurrencyTest/DigipostRunner.cs @@ -111,4 +111,4 @@ protected void DisplayTestResults() "Performance full run:" + performanceAllWork.ToString("#.###") + " req/sec"); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs b/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs index 8e1adab7..759ab790 100755 --- a/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs +++ b/Digipost.Api.Client.ConcurrencyTest/Enums/ProcessingType.cs @@ -5,4 +5,4 @@ internal enum ProcessingType Parallel, Async } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs b/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs index f0f58bc2..c8be575a 100755 --- a/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs +++ b/Digipost.Api.Client.ConcurrencyTest/Enums/RequestType.cs @@ -5,4 +5,4 @@ internal enum RequestType Message, Identify } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/Initializer.cs b/Digipost.Api.Client.ConcurrencyTest/Initializer.cs index 2a65f88d..b5a58a6f 100755 --- a/Digipost.Api.Client.ConcurrencyTest/Initializer.cs +++ b/Digipost.Api.Client.ConcurrencyTest/Initializer.cs @@ -40,4 +40,4 @@ private static void Digipost(int numberOfRequests, int connectionLimit, Processi } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs b/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs index f9520c1a..2cea9f5a 100755 --- a/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.ConcurrencyTest/Properties/AssemblyInfo.cs @@ -2,4 +2,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("Digipost.Api.Client.ConcurrencyTest")] -[assembly: ComVisible(false)] \ No newline at end of file +[assembly: ComVisible(false)] diff --git a/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs b/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs index 2704954c..f110bccd 100755 --- a/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs +++ b/Digipost.Api.Client.ConcurrencyTest/WebGetAsync.cs @@ -92,4 +92,4 @@ private async void ProcessUrlAsync(HttpClient httpClient) } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Docs/CertificateLoading.cs b/Digipost.Api.Client.Docs/CertificateLoading.cs index 47a5bb94..77bdb9c0 100755 --- a/Digipost.Api.Client.Docs/CertificateLoading.cs +++ b/Digipost.Api.Client.Docs/CertificateLoading.cs @@ -29,4 +29,4 @@ public void LoadCertificateFrom() var client = new DigipostClient(clientConfig, businessCertificate); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Docs/InboxExamples.cs b/Digipost.Api.Client.Docs/InboxExamples.cs index 19f355df..8d5c98ff 100755 --- a/Digipost.Api.Client.Docs/InboxExamples.cs +++ b/Digipost.Api.Client.Docs/InboxExamples.cs @@ -51,4 +51,4 @@ private async Task Slett_dokument() await inbox.DeleteDocument(documentMetadata); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Docs/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Docs/Properties/AssemblyInfo.cs index 167e2809..f65cac5c 100755 --- a/Digipost.Api.Client.Docs/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Docs/Properties/AssemblyInfo.cs @@ -36,4 +36,4 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Digipost.Api.Client.Docs/SendExamples.cs b/Digipost.Api.Client.Docs/SendExamples.cs index 6f89bd2c..98dc83a1 100755 --- a/Digipost.Api.Client.Docs/SendExamples.cs +++ b/Digipost.Api.Client.Docs/SendExamples.cs @@ -62,10 +62,10 @@ public void WithMultipleAttachments() var attachment2 = new Document(subject: "Attachment 2", fileType: "pdf", path: @"c:\...\attachment_02.pdf"); var message = new Message( - sender, - new RecipientById(IdentificationType.PersonalIdentificationNumber, id: "241084xxxxx"), - primaryDocument - ){Attachments = {attachment1, attachment2}}; + sender, + new RecipientById(IdentificationType.PersonalIdentificationNumber, id: "241084xxxxx"), + primaryDocument + ) {Attachments = {attachment1, attachment2}}; var result = client.SendMessage(message); } @@ -228,4 +228,4 @@ public void SendMessageWithDeliveryTime() var result = client.SendMessage(message); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox.Tests/DataTransferObjectConverterTests.cs b/Digipost.Api.Client.Inbox.Tests/DataTransferObjectConverterTests.cs index b1dba4ae..d263605f 100755 --- a/Digipost.Api.Client.Inbox.Tests/DataTransferObjectConverterTests.cs +++ b/Digipost.Api.Client.Inbox.Tests/DataTransferObjectConverterTests.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using Digipost.Api.Client.Common.Enums; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Digipost.Api.Client.Tests.CompareObjects; using Xunit; @@ -72,4 +71,4 @@ public void InboxWithEmptyListOnNullResult() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox.Tests/Integration/InboxApiIntegrationTests.cs b/Digipost.Api.Client.Inbox.Tests/Integration/InboxApiIntegrationTests.cs index 7e55a8bc..9720bec9 100755 --- a/Digipost.Api.Client.Inbox.Tests/Integration/InboxApiIntegrationTests.cs +++ b/Digipost.Api.Client.Inbox.Tests/Integration/InboxApiIntegrationTests.cs @@ -86,4 +86,4 @@ public void ErrorShouldCauseDigipostResponseException() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox.Tests/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Inbox.Tests/Properties/AssemblyInfo.cs index 2d95e419..90cb9799 100755 --- a/Digipost.Api.Client.Inbox.Tests/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Inbox.Tests/Properties/AssemblyInfo.cs @@ -1,3 +1,3 @@ using System.Reflection; -[assembly: AssemblyTitle("Digipost.Api.Client.Inbox.Tests")] \ No newline at end of file +[assembly: AssemblyTitle("Digipost.Api.Client.Inbox.Tests")] diff --git a/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTests.cs b/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTests.cs index fa8d16d7..ebf5a04e 100755 --- a/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTests.cs +++ b/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTests.cs @@ -22,4 +22,4 @@ public void Get_inbox_and_read_document() .Delete_document(); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTestsHelper.cs b/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTestsHelper.cs index 6a6aa20e..03f39a23 100755 --- a/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTestsHelper.cs +++ b/Digipost.Api.Client.Inbox.Tests/Smoke/InboxSmokeTestsHelper.cs @@ -74,4 +74,4 @@ private static void Assert_state(object obj) } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox/IInbox.cs b/Digipost.Api.Client.Inbox/IInbox.cs index 4817db06..eeb22792 100755 --- a/Digipost.Api.Client.Inbox/IInbox.cs +++ b/Digipost.Api.Client.Inbox/IInbox.cs @@ -12,4 +12,4 @@ internal interface IInbox Task DeleteDocument(InboxDocument document); } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox/Inbox.cs b/Digipost.Api.Client.Inbox/Inbox.cs index 244730ff..1532c487 100755 --- a/Digipost.Api.Client.Inbox/Inbox.cs +++ b/Digipost.Api.Client.Inbox/Inbox.cs @@ -4,7 +4,6 @@ using System.Threading.Tasks; using Digipost.Api.Client.Common; using Digipost.Api.Client.Common.Utilities; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Inbox { @@ -45,4 +44,4 @@ public async Task DeleteDocument(InboxDocument document) await _requestHelper.Delete(document.Delete).ConfigureAwait(false); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox/InboxDataTransferObjectConverter.cs b/Digipost.Api.Client.Inbox/InboxDataTransferObjectConverter.cs index d97d31a0..cd4e2c1a 100755 --- a/Digipost.Api.Client.Inbox/InboxDataTransferObjectConverter.cs +++ b/Digipost.Api.Client.Inbox/InboxDataTransferObjectConverter.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using Digipost.Api.Client.Common.Extensions; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Inbox { @@ -26,8 +25,9 @@ internal static InboxDocument FromDataTransferObject(inboxdocument inboxdocument FirstAccessed = inboxdocument.firstaccessedSpecified ? inboxdocument.firstaccessed : (DateTime?) null, Id = inboxdocument.id, Sender = inboxdocument.sender, - Subject = inboxdocument.subject + Subject = inboxdocument.subject, + ReferenceFromSender = inboxdocument.referencefromsender }; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox/InboxDocument.cs b/Digipost.Api.Client.Inbox/InboxDocument.cs index 6e018b7a..308c5269 100755 --- a/Digipost.Api.Client.Inbox/InboxDocument.cs +++ b/Digipost.Api.Client.Inbox/InboxDocument.cs @@ -25,5 +25,7 @@ public class InboxDocument public Uri Delete { get; set; } public IEnumerable Attachments { get; set; } = new List(); + + public string ReferenceFromSender { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Inbox/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Inbox/Properties/AssemblyInfo.cs index 27a340cd..e7100a51 100755 --- a/Digipost.Api.Client.Inbox/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Inbox/Properties/AssemblyInfo.cs @@ -3,4 +3,4 @@ [assembly: AssemblyTitle("Digipost.Api.Client.Inbox")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Inbox.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: InternalsVisibleTo("Digipost.Api.Client,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] \ No newline at end of file +[assembly: InternalsVisibleTo("Digipost.Api.Client,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] diff --git a/Digipost.Api.Client.Resources/Certificate/CertificateResource.cs b/Digipost.Api.Client.Resources/Certificate/CertificateResource.cs index 928bdb9f..328e9382 100755 --- a/Digipost.Api.Client.Resources/Certificate/CertificateResource.cs +++ b/Digipost.Api.Client.Resources/Certificate/CertificateResource.cs @@ -13,4 +13,4 @@ public static X509Certificate2 Certificate() return certificate; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Resources/Content/ContentResource.cs b/Digipost.Api.Client.Resources/Content/ContentResource.cs index 0be99e2e..80bc2d74 100755 --- a/Digipost.Api.Client.Resources/Content/ContentResource.cs +++ b/Digipost.Api.Client.Resources/Content/ContentResource.cs @@ -37,4 +37,4 @@ public static byte[] Text() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs index bc2790b0..90194ee5 100755 --- a/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Resources/Properties/AssemblyInfo.cs @@ -12,4 +12,4 @@ [assembly: InternalsVisibleTo("Digipost.Api.Client.Common,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Inbox.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] \ No newline at end of file +[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] diff --git a/Digipost.Api.Client.Resources/Xml/XmlResource.cs b/Digipost.Api.Client.Resources/Xml/XmlResource.cs index a7be158e..2aad9848 100755 --- a/Digipost.Api.Client.Resources/Xml/XmlResource.cs +++ b/Digipost.Api.Client.Resources/Xml/XmlResource.cs @@ -58,4 +58,4 @@ public static StringContent GetError() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Resources/Xml/XmlUtility.cs b/Digipost.Api.Client.Resources/Xml/XmlUtility.cs index d8c4746c..f0a92152 100755 --- a/Digipost.Api.Client.Resources/Xml/XmlUtility.cs +++ b/Digipost.Api.Client.Resources/Xml/XmlUtility.cs @@ -12,4 +12,4 @@ public static XmlDocument ToXmlDocument(string xml) return xmlDocument; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Resources/Xsd/Data/api_v7.xsd b/Digipost.Api.Client.Resources/Xsd/Data/api_v7.xsd index 7f749479..1bed1f6f 100755 --- a/Digipost.Api.Client.Resources/Xsd/Data/api_v7.xsd +++ b/Digipost.Api.Client.Resources/Xsd/Data/api_v7.xsd @@ -3,7 +3,7 @@ xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:annox="http://annox.dev.java.net" jaxb:extensionBindingPrefixes="annox" jaxb:version="2.0" elementFormDefault="qualified"> - - - - - Authentication-levels you may require the receiver to be authenticated with to read documents. - Note that IDPORTEN_3 and IDPORTEN_4 needs an explicit permission to use, and are intended for - government agencies. Using those levels while not being permitted to, will result in an error - response. - - - - - - - + - Default. Password is required to read the message. - - - - - - - - Two factor authentication will be required to read it. - - - - - - - - ID-porten level 3. Can only be used by government agencies. - - - - - ID-porten level 4. Can only be used by government agencies. - - - - - - - - - - - - - - - - Default. Non sensitive message. Metadata about the message, like the sender and subject, - will be revealed in user notifications (eg. email and SMS), and can also be seen when logged in at a - security level below the one specified for the message. - - - - - - - - - - Sensitive message. Metadata about the message, like the sender and subject, will be hidden - until logged in at the appropriate security level specified for the message. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Country name in Norwegian or English. - - - - - - Country code according to the ISO 3166-1 alpha-2 standard. + Authentication-levels you may require the receiver to be authenticated with to read documents. + Note that IDPORTEN_3 and IDPORTEN_4 needs an explicit permission to use, and are intended for + government agencies. Using those levels while not being permitted to, will result in an error + response. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The message resource is not complete. Consult the provided links to see what options are availiable. - - - - + + + - - + + + + Default. Password is required to read the message. + + + + + + + + Two factor authentication will be required to read it. + + + + + + + + ID-porten level 3. Can only be used by government agencies. + + + + + ID-porten level 4. Can only be used by government agencies. + + + + + + - - The message resource is complete, and can be sent. Note that you can also tweak the message before sending it. - Consult the provided links to see what options are availiable. - - - - + + + - - - - The message is delivered. Consult the provided links to see what options are availiable. - - - - - - - - The message is delivered to print. Consult the provided links to see what options are availiable. - - - - - - - - - - - - - - + + + + Default. Non sensitive message. Metadata about the message, like the sender and subject, + will be revealed in user notifications (eg. email and SMS), and can also be seen when logged in at a + security level below the one specified for the message. + + + + + + + + Sensitive message. Metadata about the message, like the sender and subject, will be hidden + until logged in at the appropriate security level specified for the message. + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + - - + - - - - + - - + + - - - Used as identifier for matching recipients that does not have a Digipost account - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + - + + + + + - - - - - - - Fødselsnummer. - - - - - - - - - - - - Organisasjonsnummer. - - - - - - - - - - - - - - - - - - - - - - Fødselsnummer. - - - - - - - - - - - - Organisasjonsnummer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A or B for respectively A-Priority and B-Economy - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The sender of the message, i.e. what the receiver of the message sees as - the sender of the message. If the originating message has specified no sender-id nor - sender-organization, it will be set to the broker-id which was specified in the - X-Digipost-UserId header of the initiating request. - - - - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - Indicates if the document has already been opened - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Country name in Norwegian or English. + + + + + + + Country code according to the ISO 3166-1 alpha-2 standard. + + + + + + + + + + + + + + + + + + + + + + + - - Optional SMS notification to Recipient. - Additional charges apply. - + + + - - + + + + The message resource is not complete. Consult the provided links to see what options are availiable. + + + + + + + + + The message resource is complete, and can be sent. Note that you can also tweak the message before sending it. + Consult the provided links to see what options are availiable. + + + + + + + + The message is delivered. Consult the provided links to see what options are availiable. + + + + + + + + The message is delivered to print. Consult the provided links to see what options are availiable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used as identifier for matching recipients that does not have a Digipost account + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Fødselsnummer. + + + + + + + + + + + + Organisasjonsnummer. + + + + + + + + + + + + + + + + + + + + + + Fødselsnummer. + + + + + + + + + + + + Organisasjonsnummer. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A or B for respectively A-Priority and B-Economy + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The sender of the message, i.e. what the receiver of the message sees as + the sender of the message. If the originating message has specified no sender-id nor + sender-organization, it will be set to the broker-id which was specified in the + X-Digipost-UserId header of the initiating request. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Indicates if the document has already been opened + + + + + + + + Optional SMS notification to Recipient. + Additional charges apply. + + + + + + + Optional email notification to recipient. + + + + + + + + + Sender will encrypt the letter with the receivers public key before sending it. + + + + + + + + + + + + + + + + - - Optional email notification to recipient. - + + + + + - - - - + + + + + + + The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message + on behalf of another, the sender. It is only possible if the sender has granted the broker the right to send + on its behalf. + + + + + + + + + + The delivery time of the message as it appears in the receiver's mail box. + The use of this field is limited to those with explicit permission. If set in the + future, the message will not appear until the set time. Historical delivery-time is not allowed. + + + + + + + + + + + + + + + + - - Sender will encrypt the letter with the receivers public key before sending it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message - on behalf of another, the sender. It is only possible if the sender has granted the broker the right to send - on its behalf. + The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message + on behalf of another, the sender. It is only possible if the sender has granted the broker the right to send + on its behalf. The use of this type is limited to those with explicit permission. Consists of a Norwegian + organization identifier and an optional part-id identifying a unit within your organization. - - - - - - - - - The delivery time of the message as it appears in the receiver's mail box. - The use of this field is limited to those with explicit permission. If set in the - future, the message will not appear until the set time. Historical delivery-time is not allowed. - - - - - - - - - - - - - - - - - - The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message - on behalf of another, the sender. It is only possible if the sender has granted the broker the right to send - on its behalf. The use of this type is limited to those with explicit permission. Consists of a Norwegian - organization identifier and an optional part-id identifying a unit within your organization. - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + Receiving account. 11 digits with no spaces or dots. + + + + + + + + + + + + + - - - + - - - - - - - - - - - - - - - - - - - Receiving account. 11 digits with no spaces or dots. - - - - - - - - - + + + + Mobile number for notifying the receiver by SMS text message. + + + + + + + The text to be used in the notification. + + + + + + + + + - - - + - - - - - - Mobile number for notifying the receiver by SMS text message. - - - - - - - The text to be used in the notification. - - - - - - - - - - - - - - - - - - - If the message is unread, a notification will be sent at these times. - SMS is only sent between 9-20. Any notification falling outside this interval, will be sent around 9 the next morning. - - - - - - - If the message is unread, a notification will be sent after the given amount of hours after delivery. - SMS is only sent between 9-20. Any notification falling outside this interval, will be sent around 9 the next morning. - - - - - + + + + + + + If the message is unread, a notification will be sent at these times. + SMS is only sent between 9-20. Any notification falling outside this interval, will be sent around 9 the next morning. + + + + + + + If the message is unread, a notification will be sent after the given amount of hours after delivery. + SMS is only sent between 9-20. Any notification falling outside this interval, will be sent around 9 the next morning. + + + + + - - - - - - Email address for notifying the receiver. - - - - + + + + + + Email address for notifying the receiver. + + + + + + + The subject to be used for the notification. + + + + + + + + + + + + + The text to be used for the notification. + + + + + + + + + + + + + If the message is unread, a notification will be sent at these times. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + No information about the requested sender could be retrieved. This may either be + because the sender does not exist, or the broker is not authorized to send on behalf + of the sender. + + + + + + + The sender exists in Digipost, and the broker is authorized to act on behalf of the sender + (typically send messages). + + + + + + + - - The subject to be used for the notification. - + + A non-exhaustive list of features. The possible reported features may be expanded at any time, + and clients must as such be built to discard values which are unknown. The elements should + be regarded as means to query "is [some feature] available?". + + Please consult the documentation]]> + for possible values and their semantics. + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - The text to be used for the notification. - + + + + + - - - - - - - - + + + + + + + + + The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message + on behalf of another, the sender, which is only possible if the sender has granted the broker the right to send + on its behalf. + + + + + + + + + + Only relevant for the web-channel, i.e. . When an opening receipt is requested by the sender, this value indicates(Y/N) whether the receiver has + read the letter or not. This attribute is empty if no opening receipt has been requested. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - If the message is unread, a notification will be sent at these times. - + + + + + - - - + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - + + + + + + + - - - - - - No information about the requested sender could be retrieved. This may either be - because the sender does not exist, or the broker is not authorized to send on behalf - of the sender. - - - - + + + + + + + + + + + + + + + + + + + + + - - The sender exists in Digipost, and the broker is authorized to act on behalf of the sender - (typically send messages). - + + A UUID (Universally unique identifier). This ID must be globally unique for the sender. + With Java, a UUID can be created using UUID.randomUUID(), whereas + System.Guid.NewGuid() can be used in .NET C#. O og tilsvarende i andre språk. + - - - - - - - - A non-exhaustive list of features. The possible reported features may be expanded at any time, - and clients must as such be built to discard values which are unknown. The elements should - be regarded as means to query "is [some feature] available?". - - Please consult the documentation]]> - for possible values and their semantics. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The actual sender of the message. This is used in scenarios where one party, the broker, is creating a message - on behalf of another, the sender, which is only possible if the sender has granted the broker the right to send - on its behalf. - - - - - - - - - - Only relevant for the web-channel, i.e. . When an opening receipt is requested by the sender, this value indicates(Y/N) whether the receiver has - read the letter or not. This attribute is empty if no opening receipt has been requested. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A UUID (Universally unique identifier). This ID must be globally unique for the sender. - With Java, a UUID can be created using UUID.randomUUID(), whereas - System.Guid.NewGuid() can be used in .NET C#. O og tilsvarende i andre språk. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + diff --git a/Digipost.Api.Client.Resources/Xsd/XsdResource.cs b/Digipost.Api.Client.Resources/Xsd/XsdResource.cs index 18c29048..69e22c5f 100755 --- a/Digipost.Api.Client.Resources/Xsd/XsdResource.cs +++ b/Digipost.Api.Client.Resources/Xsd/XsdResource.cs @@ -19,4 +19,4 @@ public static XmlReader GetApiV7Xsd() return GetResource("api_v7.xsd"); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Scripts/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Scripts/Properties/AssemblyInfo.cs index de8bc5d1..2c1a74cb 100755 --- a/Digipost.Api.Client.Scripts/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Scripts/Properties/AssemblyInfo.cs @@ -2,4 +2,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("Digipost.Api.Client.Scripts")] -[assembly: ComVisible(false)] \ No newline at end of file +[assembly: ComVisible(false)] diff --git a/Digipost.Api.Client.Scripts/XsdToCode/Code/api_v7.cs b/Digipost.Api.Client.Scripts/XsdToCode/Code/api_v7.cs index 2db69970..65577ef1 100755 --- a/Digipost.Api.Client.Scripts/XsdToCode/Code/api_v7.cs +++ b/Digipost.Api.Client.Scripts/XsdToCode/Code/api_v7.cs @@ -10,3105 +10,3129 @@ using System.Xml.Serialization; -namespace Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code -{ // +// // This source code was auto-generated by xsd, Version=4.6.81.0. // - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class entrypoint { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class entrypoint { - private string certificateField; + private string certificateField; - private link[] linkField; + private link[] linkField; - /// - public string certificate { - get { - return this.certificateField; - } - set { - this.certificateField = value; - } + /// + public string certificate { + get { + return this.certificateField; + } + set { + this.certificateField = value; } + } - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class link { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class link { - private string relField; + private string relField; - private string uriField; + private string uriField; - private string mediatypeField; + private string mediatypeField; - /// - [XmlAttribute()] - public string rel { - get { - return this.relField; - } - set { - this.relField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string rel { + get { + return this.relField; + } + set { + this.relField = value; } + } - /// - [XmlAttribute()] - public string uri { - get { - return this.uriField; - } - set { - this.uriField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string uri { + get { + return this.uriField; } + set { + this.uriField = value; + } + } - /// - [XmlAttribute("media-type")] - public string mediatype { - get { - return this.mediatypeField; - } - set { - this.mediatypeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("media-type")] + public string mediatype { + get { + return this.mediatypeField; + } + set { + this.mediatypeField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="inbox-document", Namespace="http://api.digipost.no/schema/v7")] - public partial class inboxdocument { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="inbox-document", Namespace="http://api.digipost.no/schema/v7")] +public partial class inboxdocument { + + private long idField; + + private string referencefromsenderField; + + private string subjectField; - private long idField; + private string senderField; - private string subjectField; + private System.DateTime deliverytimeField; - private string senderField; + private System.DateTime firstaccessedField; - private System.DateTime deliverytimeField; + private bool firstaccessedFieldSpecified; - private System.DateTime firstaccessedField; + private authenticationlevel authenticationlevelField; - private bool firstaccessedFieldSpecified; - - private authenticationlevel authenticationlevelField; - - private string contenttypeField; - - private string contenturiField; + private string contenttypeField; - private string deleteuriField; + private string contenturiField; - private inboxdocument[] attachmentField; - - /// - public long id { - get { - return this.idField; - } - set { - this.idField = value; - } + private string deleteuriField; + + private inboxdocument[] attachmentField; + + /// + public long id { + get { + return this.idField; } - - /// - public string subject { - get { - return this.subjectField; - } - set { - this.subjectField = value; - } + set { + this.idField = value; } + } - /// - public string sender { - get { - return this.senderField; - } - set { - this.senderField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("reference-from-sender")] + public string referencefromsender { + get { + return this.referencefromsenderField; } - - /// - [XmlElement("delivery-time")] - public System.DateTime deliverytime { - get { - return this.deliverytimeField; - } - set { - this.deliverytimeField = value; - } + set { + this.referencefromsenderField = value; } + } - /// - [XmlElement("first-accessed")] - public System.DateTime firstaccessed { - get { - return this.firstaccessedField; - } - set { - this.firstaccessedField = value; - } + /// + public string subject { + get { + return this.subjectField; } - - /// - [XmlIgnore()] - public bool firstaccessedSpecified { - get { - return this.firstaccessedFieldSpecified; - } - set { - this.firstaccessedFieldSpecified = value; - } + set { + this.subjectField = value; } + } - /// - [XmlElement("authentication-level")] - public authenticationlevel authenticationlevel { - get { - return this.authenticationlevelField; - } - set { - this.authenticationlevelField = value; - } + /// + public string sender { + get { + return this.senderField; + } + set { + this.senderField = value; } + } - /// - [XmlElement("content-type")] - public string contenttype { - get { - return this.contenttypeField; - } - set { - this.contenttypeField = value; - } - } - - /// - [XmlElement("content-uri")] - public string contenturi { - get { - return this.contenturiField; - } - set { - this.contenturiField = value; - } - } - - /// - [XmlElement("delete-uri")] - public string deleteuri { - get { - return this.deleteuriField; - } - set { - this.deleteuriField = value; - } - } - - /// - [XmlElement("attachment")] - public inboxdocument[] attachment { - get { - return this.attachmentField; - } - set { - this.attachmentField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="authentication-level", Namespace="http://api.digipost.no/schema/v7")] - public enum authenticationlevel { - - /// - PASSWORD, - - /// - TWO_FACTOR, - - /// - IDPORTEN_3, - - /// - IDPORTEN_4, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="document-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class documentmetadata { + /// + [System.Xml.Serialization.XmlElementAttribute("delivery-time")] + public System.DateTime deliverytime { + get { + return this.deliverytimeField; + } + set { + this.deliverytimeField = value; + } + } - private link[] linkField; + /// + [System.Xml.Serialization.XmlElementAttribute("first-accessed")] + public System.DateTime firstaccessed { + get { + return this.firstaccessedField; + } + set { + this.firstaccessedField = value; + } + } - private string uuidField; + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool firstaccessedSpecified { + get { + return this.firstaccessedFieldSpecified; + } + set { + this.firstaccessedFieldSpecified = value; + } + } - private string technicaltypeField; + /// + [System.Xml.Serialization.XmlElementAttribute("authentication-level")] + public authenticationlevel authenticationlevel { + get { + return this.authenticationlevelField; + } + set { + this.authenticationlevelField = value; + } + } - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("content-type")] + public string contenttype { + get { + return this.contenttypeField; } + set { + this.contenttypeField = value; + } + } - /// - [XmlAttribute()] - public string uuid { - get { - return this.uuidField; - } - set { - this.uuidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("content-uri")] + public string contenturi { + get { + return this.contenturiField; + } + set { + this.contenturiField = value; } + } - /// - [XmlAttribute("technical-type")] - public string technicaltype { - get { - return this.technicaltypeField; - } - set { - this.technicaltypeField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("delete-uri")] + public string deleteuri { + get { + return this.deleteuriField; + } + set { + this.deleteuriField = value; } } - + /// - [XmlInclude(typeof(postmarkedmetadata))] - [XmlInclude(typeof(failedprintmetadata))] - [XmlInclude(typeof(smsnotificationfailedmetadata))] - [XmlInclude(typeof(emailnotificationfailedmetadata))] - [XmlInclude(typeof(movefilesfrompublicsectormetadata))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="event-metadata", Namespace="http://api.digipost.no/schema/v7")] - public abstract partial class eventmetadata { + [System.Xml.Serialization.XmlElementAttribute("attachment")] + public inboxdocument[] attachment { + get { + return this.attachmentField; + } + set { + this.attachmentField = value; + } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="authentication-level", Namespace="http://api.digipost.no/schema/v7")] +public enum authenticationlevel { + + /// + PASSWORD, + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="postmarked-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class postmarkedmetadata : eventmetadata { + TWO_FACTOR, - private System.DateTime postmarkeddateField; + /// + IDPORTEN_3, + + /// + IDPORTEN_4, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="document-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class documentmetadata { - /// - [XmlAttribute("postmarked-date")] - public System.DateTime postmarkeddate { - get { - return this.postmarkeddateField; - } - set { - this.postmarkeddateField = value; - } + private link[] linkField; + + private string uuidField; + + private string technicaltypeField; + + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="failed-print-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class failedprintmetadata : eventmetadata { + [System.Xml.Serialization.XmlAttributeAttribute()] + public string uuid { + get { + return this.uuidField; + } + set { + this.uuidField = value; + } + } - private string errorcodeField; + /// + [System.Xml.Serialization.XmlAttributeAttribute("technical-type")] + public string technicaltype { + get { + return this.technicaltypeField; + } + set { + this.technicaltypeField = value; + } + } +} + +/// +[System.Xml.Serialization.XmlIncludeAttribute(typeof(postmarkedmetadata))] +[System.Xml.Serialization.XmlIncludeAttribute(typeof(failedprintmetadata))] +[System.Xml.Serialization.XmlIncludeAttribute(typeof(smsnotificationfailedmetadata))] +[System.Xml.Serialization.XmlIncludeAttribute(typeof(emailnotificationfailedmetadata))] +[System.Xml.Serialization.XmlIncludeAttribute(typeof(movefilesfrompublicsectormetadata))] +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="event-metadata", Namespace="http://api.digipost.no/schema/v7")] +public abstract partial class eventmetadata { +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="postmarked-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class postmarkedmetadata : eventmetadata { + + private System.DateTime postmarkeddateField; - /// - [XmlAttribute("error-code")] - public string errorcode { - get { - return this.errorcodeField; - } - set { - this.errorcodeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("postmarked-date")] + public System.DateTime postmarkeddate { + get { + return this.postmarkeddateField; + } + set { + this.postmarkeddateField = value; } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="failed-print-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class failedprintmetadata : eventmetadata { + + private string errorcodeField; + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="sms-notification-failed-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class smsnotificationfailedmetadata : eventmetadata { + [System.Xml.Serialization.XmlAttributeAttribute("error-code")] + public string errorcode { + get { + return this.errorcodeField; + } + set { + this.errorcodeField = value; + } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sms-notification-failed-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class smsnotificationfailedmetadata : eventmetadata { - private string mobilenumberField; + private string mobilenumberField; - private string errorcodeField; + private string errorcodeField; - /// - [XmlAttribute("mobile-number")] - public string mobilenumber { - get { - return this.mobilenumberField; - } - set { - this.mobilenumberField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("mobile-number")] + public string mobilenumber { + get { + return this.mobilenumberField; + } + set { + this.mobilenumberField = value; } + } - /// - [XmlAttribute("error-code")] - public string errorcode { - get { - return this.errorcodeField; - } - set { - this.errorcodeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("error-code")] + public string errorcode { + get { + return this.errorcodeField; + } + set { + this.errorcodeField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="email-notification-failed-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class emailnotificationfailedmetadata : eventmetadata { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="email-notification-failed-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class emailnotificationfailedmetadata : eventmetadata { - private string emailaddressField; + private string emailaddressField; - private string errorcodeField; + private string errorcodeField; - /// - [XmlAttribute("email-address")] - public string emailaddress { - get { - return this.emailaddressField; - } - set { - this.emailaddressField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("email-address")] + public string emailaddress { + get { + return this.emailaddressField; + } + set { + this.emailaddressField = value; } + } - /// - [XmlAttribute("error-code")] - public string errorcode { - get { - return this.errorcodeField; - } - set { - this.errorcodeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("error-code")] + public string errorcode { + get { + return this.errorcodeField; + } + set { + this.errorcodeField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="move-files-from-public-sector-metadata", Namespace="http://api.digipost.no/schema/v7")] - public partial class movefilesfrompublicsectormetadata : eventmetadata { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="move-files-from-public-sector-metadata", Namespace="http://api.digipost.no/schema/v7")] +public partial class movefilesfrompublicsectormetadata : eventmetadata { - private documentmetadata[] documentField; - - private string x509CertificateField; - - private bool openedField; + private documentmetadata[] documentField; - private System.DateTime deliverytimeField; + private string x509CertificateField; - private string subjectField; - - private authenticationlevel authenticationlevelField; - - private sensitivitylevel sensitivitylevelField; - - private string destinationmailboxField; + private bool openedField; - private string destinationmailboxaddressField; + private System.DateTime deliverytimeField; - /// - [XmlElement("document")] - public documentmetadata[] document { - get { - return this.documentField; - } - set { - this.documentField = value; - } - } + private string subjectField; - /// - public string x509Certificate { - get { - return this.x509CertificateField; - } - set { - this.x509CertificateField = value; - } - } + private authenticationlevel authenticationlevelField; - /// - [XmlAttribute()] - public bool opened { - get { - return this.openedField; - } - set { - this.openedField = value; - } + private sensitivitylevel sensitivitylevelField; + + private string destinationmailboxField; + + private string destinationmailboxaddressField; + + /// + [System.Xml.Serialization.XmlElementAttribute("document")] + public documentmetadata[] document { + get { + return this.documentField; } + set { + this.documentField = value; + } + } - /// - [XmlAttribute("delivery-time")] - public System.DateTime deliverytime { - get { - return this.deliverytimeField; - } - set { - this.deliverytimeField = value; - } + /// + public string x509Certificate { + get { + return this.x509CertificateField; + } + set { + this.x509CertificateField = value; } + } - /// - [XmlAttribute()] - public string subject { - get { - return this.subjectField; - } - set { - this.subjectField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public bool opened { + get { + return this.openedField; } + set { + this.openedField = value; + } + } - /// - [XmlAttribute("authentication-level")] - public authenticationlevel authenticationlevel { - get { - return this.authenticationlevelField; - } - set { - this.authenticationlevelField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("delivery-time")] + public System.DateTime deliverytime { + get { + return this.deliverytimeField; + } + set { + this.deliverytimeField = value; } + } - /// - [XmlAttribute("sensitivity-level")] - public sensitivitylevel sensitivitylevel { - get { - return this.sensitivitylevelField; - } - set { - this.sensitivitylevelField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string subject { + get { + return this.subjectField; } + set { + this.subjectField = value; + } + } - /// - [XmlAttribute("destination-mailbox")] - public string destinationmailbox { - get { - return this.destinationmailboxField; - } - set { - this.destinationmailboxField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("authentication-level")] + public authenticationlevel authenticationlevel { + get { + return this.authenticationlevelField; + } + set { + this.authenticationlevelField = value; } + } - /// - [XmlAttribute("destination-mailbox-address")] - public string destinationmailboxaddress { - get { - return this.destinationmailboxaddressField; - } - set { - this.destinationmailboxaddressField = value; - } - } - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="sensitivity-level", Namespace="http://api.digipost.no/schema/v7")] - public enum sensitivitylevel { + [System.Xml.Serialization.XmlAttributeAttribute("sensitivity-level")] + public sensitivitylevel sensitivitylevel { + get { + return this.sensitivitylevelField; + } + set { + this.sensitivitylevelField = value; + } + } - /// - NORMAL, + /// + [System.Xml.Serialization.XmlAttributeAttribute("destination-mailbox")] + public string destinationmailbox { + get { + return this.destinationmailboxField; + } + set { + this.destinationmailboxField = value; + } + } - /// - SENSITIVE, + /// + [System.Xml.Serialization.XmlAttributeAttribute("destination-mailbox-address")] + public string destinationmailboxaddress { + get { + return this.destinationmailboxaddressField; + } + set { + this.destinationmailboxaddressField = value; + } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sensitivity-level", Namespace="http://api.digipost.no/schema/v7")] +public enum sensitivitylevel { + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class @event { + NORMAL, - private eventmetadata metadataField; + /// + SENSITIVE, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class @event { + + private eventmetadata metadataField; + + private string uuidField; - private string uuidField; + private eventtype typeField; - private eventtype typeField; + private System.DateTime createdField; - private System.DateTime createdField; + private System.DateTime documentcreatedField; + + /// + public eventmetadata metadata { + get { + return this.metadataField; + } + set { + this.metadataField = value; + } + } - /// - public eventmetadata metadata { - get { - return this.metadataField; - } - set { - this.metadataField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string uuid { + get { + return this.uuidField; } + set { + this.uuidField = value; + } + } - /// - [XmlAttribute()] - public string uuid { - get { - return this.uuidField; - } - set { - this.uuidField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public eventtype type { + get { + return this.typeField; + } + set { + this.typeField = value; } + } - /// - [XmlAttribute()] - public eventtype type { - get { - return this.typeField; - } - set { - this.typeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public System.DateTime created { + get { + return this.createdField; } + set { + this.createdField = value; + } + } - /// - [XmlAttribute()] - public System.DateTime created { - get { - return this.createdField; - } - set { - this.createdField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("document-created")] + public System.DateTime documentcreated { + get { + return this.documentcreatedField; + } + set { + this.documentcreatedField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="event-type", Namespace="http://api.digipost.no/schema/v7")] - public enum eventtype { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="event-type", Namespace="http://api.digipost.no/schema/v7")] +public enum eventtype { - /// - EMAIL_NOTIFICATION_FAILED, + /// + EMAIL_NOTIFICATION_FAILED, - /// - SMS_NOTIFICATION_FAILED, + /// + SMS_NOTIFICATION_FAILED, - /// - OPENED, + /// + OPENED, - /// - MOVE_FILES_FROM_PUBLIC_SECTOR, + /// + MOVE_FILES_FROM_PUBLIC_SECTOR, - /// - POSTMARKED, + /// + POSTMARKED, - /// - PRINT_FAILED, + /// + PRINT_FAILED, - /// - SHREDDED, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class feature { + SHREDDED, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class feature { - private string paramField; + private string paramField; - private string valueField; + private string valueField; - /// - [XmlAttribute()] - public string param { - get { - return this.paramField; - } - set { - this.paramField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string param { + get { + return this.paramField; + } + set { + this.paramField = value; } + } - /// - [XmlText()] - public string Value { - get { - return this.valueField; - } - set { - this.valueField = value; - } + /// + [System.Xml.Serialization.XmlTextAttribute()] + public string Value { + get { + return this.valueField; + } + set { + this.valueField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="sender-organization", Namespace="http://api.digipost.no/schema/v7")] - public partial class senderorganization { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sender-organization", Namespace="http://api.digipost.no/schema/v7")] +public partial class senderorganization { - private string organizationidField; + private string organizationidField; - private string partidField; + private string partidField; - /// - [XmlElement("organization-id")] - public string organizationid { - get { - return this.organizationidField; - } - set { - this.organizationidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("organization-id")] + public string organizationid { + get { + return this.organizationidField; + } + set { + this.organizationidField = value; } + } - /// - [XmlElement("part-id")] - public string partid { - get { - return this.partidField; - } - set { - this.partidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("part-id")] + public string partid { + get { + return this.partidField; + } + set { + this.partidField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="content-hash", Namespace="http://api.digipost.no/schema/v7")] - public partial class contenthash { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="content-hash", Namespace="http://api.digipost.no/schema/v7")] +public partial class contenthash { - private string hashalgorithmField; + private string hashalgorithmField; - private string valueField; + private string valueField; - /// - [XmlAttribute("hash-algorithm")] - public string hashalgorithm { - get { - return this.hashalgorithmField; - } - set { - this.hashalgorithmField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("hash-algorithm")] + public string hashalgorithm { + get { + return this.hashalgorithmField; + } + set { + this.hashalgorithmField = value; } + } - /// - [XmlText()] - public string Value { - get { - return this.valueField; - } - set { - this.valueField = value; - } + /// + [System.Xml.Serialization.XmlTextAttribute()] + public string Value { + get { + return this.valueField; + } + set { + this.valueField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class encrypted { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class encrypted { - private int numberofpagesField; + private int numberofpagesField; - private bool numberofpagesFieldSpecified; + private bool numberofpagesFieldSpecified; - /// - [XmlAttribute("number-of-pages")] - public int numberofpages { - get { - return this.numberofpagesField; - } - set { - this.numberofpagesField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("number-of-pages")] + public int numberofpages { + get { + return this.numberofpagesField; + } + set { + this.numberofpagesField = value; } + } - /// - [XmlIgnore()] - public bool numberofpagesSpecified { - get { - return this.numberofpagesFieldSpecified; - } - set { - this.numberofpagesFieldSpecified = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool numberofpagesSpecified { + get { + return this.numberofpagesFieldSpecified; + } + set { + this.numberofpagesFieldSpecified = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="email-notification", Namespace="http://api.digipost.no/schema/v7")] - public partial class emailnotification { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="email-notification", Namespace="http://api.digipost.no/schema/v7")] +public partial class emailnotification { - private string emailaddressField; + private string emailaddressField; - private string subjectField; + private string subjectField; - private string textField; + private string textField; - private listedtime[] atField; + private listedtime[] atField; - /// - [XmlElement("email-address")] - public string emailaddress { - get { - return this.emailaddressField; - } - set { - this.emailaddressField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("email-address")] + public string emailaddress { + get { + return this.emailaddressField; + } + set { + this.emailaddressField = value; } + } - /// - public string subject { - get { - return this.subjectField; - } - set { - this.subjectField = value; - } + /// + public string subject { + get { + return this.subjectField; } + set { + this.subjectField = value; + } + } - /// - public string text { - get { - return this.textField; - } - set { - this.textField = value; - } + /// + public string text { + get { + return this.textField; + } + set { + this.textField = value; } + } - /// - [XmlElement("at")] - public listedtime[] at { - get { - return this.atField; - } - set { - this.atField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("at")] + public listedtime[] at { + get { + return this.atField; + } + set { + this.atField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="listed-time", Namespace="http://api.digipost.no/schema/v7")] - public partial class listedtime { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="listed-time", Namespace="http://api.digipost.no/schema/v7")] +public partial class listedtime { - private System.DateTime timeField; + private System.DateTime timeField; - private bool timeFieldSpecified; + private bool timeFieldSpecified; - /// - [XmlAttribute()] - public System.DateTime time { - get { - return this.timeField; - } - set { - this.timeField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public System.DateTime time { + get { + return this.timeField; + } + set { + this.timeField = value; } + } - /// - [XmlIgnore()] - public bool timeSpecified { - get { - return this.timeFieldSpecified; - } - set { - this.timeFieldSpecified = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool timeSpecified { + get { + return this.timeFieldSpecified; + } + set { + this.timeFieldSpecified = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="sms-overrides", Namespace="http://api.digipost.no/schema/v7")] - public partial class smsoverrides { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sms-overrides", Namespace="http://api.digipost.no/schema/v7")] +public partial class smsoverrides { - private string smsmobilenumberField; + private string smsmobilenumberField; - private string textField; + private string textField; - /// - [XmlElement("sms-mobile-number")] - public string smsmobilenumber { - get { - return this.smsmobilenumberField; - } - set { - this.smsmobilenumberField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("sms-mobile-number")] + public string smsmobilenumber { + get { + return this.smsmobilenumberField; + } + set { + this.smsmobilenumberField = value; } + } - /// - public string text { - get { - return this.textField; - } - set { - this.textField = value; - } + /// + public string text { + get { + return this.textField; + } + set { + this.textField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="sms-notification", Namespace="http://api.digipost.no/schema/v7")] - public partial class smsnotification { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sms-notification", Namespace="http://api.digipost.no/schema/v7")] +public partial class smsnotification { - private smsoverrides overridesField; + private smsoverrides overridesField; - private listedtime[] atField; + private listedtime[] atField; - private int[] afterhoursField; + private int[] afterhoursField; - /// - public smsoverrides overrides { - get { - return this.overridesField; - } - set { - this.overridesField = value; - } + /// + public smsoverrides overrides { + get { + return this.overridesField; + } + set { + this.overridesField = value; } + } - /// - [XmlElement("at")] - public listedtime[] at { - get { - return this.atField; - } - set { - this.atField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("at")] + public listedtime[] at { + get { + return this.atField; } + set { + this.atField = value; + } + } - /// - [XmlElement("after-hours")] - public int[] afterhours { - get { - return this.afterhoursField; - } - set { - this.afterhoursField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("after-hours")] + public int[] afterhours { + get { + return this.afterhoursField; + } + set { + this.afterhoursField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="foreign-address", Namespace="http://api.digipost.no/schema/v7")] - public partial class foreignaddress { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="foreign-address", Namespace="http://api.digipost.no/schema/v7")] +public partial class foreignaddress { - private string addressline1Field; + private string addressline1Field; - private string addressline2Field; + private string addressline2Field; - private string addressline3Field; + private string addressline3Field; - private string addressline4Field; + private string addressline4Field; - private string itemField; + private string itemField; - private ItemChoiceType2 itemElementNameField; + private ItemChoiceType2 itemElementNameField; - /// - public string addressline1 { - get { - return this.addressline1Field; - } - set { - this.addressline1Field = value; - } + /// + public string addressline1 { + get { + return this.addressline1Field; } + set { + this.addressline1Field = value; + } + } - /// - public string addressline2 { - get { - return this.addressline2Field; - } - set { - this.addressline2Field = value; - } + /// + public string addressline2 { + get { + return this.addressline2Field; + } + set { + this.addressline2Field = value; } + } - /// - public string addressline3 { - get { - return this.addressline3Field; - } - set { - this.addressline3Field = value; - } + /// + public string addressline3 { + get { + return this.addressline3Field; } + set { + this.addressline3Field = value; + } + } - /// - public string addressline4 { - get { - return this.addressline4Field; - } - set { - this.addressline4Field = value; - } + /// + public string addressline4 { + get { + return this.addressline4Field; + } + set { + this.addressline4Field = value; } + } - /// - [XmlElement("country", typeof(string))] - [XmlElement("country-code", typeof(string))] - [XmlChoiceIdentifier("ItemElementName")] - public string Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("country", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("country-code", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public string Item { + get { + return this.itemField; } + set { + this.itemField = value; + } + } - /// - [XmlIgnore()] - public ItemChoiceType2 ItemElementName { - get { - return this.itemElementNameField; - } - set { - this.itemElementNameField = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType2 ItemElementName { + get { + return this.itemElementNameField; + } + set { + this.itemElementNameField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] - public enum ItemChoiceType2 { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] +public enum ItemChoiceType2 { - /// - country, + /// + country, - /// - [XmlEnum("country-code")] - countrycode, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="norwegian-address", Namespace="http://api.digipost.no/schema/v7")] - public partial class norwegianaddress { + [System.Xml.Serialization.XmlEnumAttribute("country-code")] + countrycode, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="norwegian-address", Namespace="http://api.digipost.no/schema/v7")] +public partial class norwegianaddress { - private string addressline1Field; + private string addressline1Field; - private string addressline2Field; + private string addressline2Field; - private string addressline3Field; + private string addressline3Field; - private string zipcodeField; + private string zipcodeField; - private string cityField; + private string cityField; - /// - public string addressline1 { - get { - return this.addressline1Field; - } - set { - this.addressline1Field = value; - } + /// + public string addressline1 { + get { + return this.addressline1Field; } - - /// - public string addressline2 { - get { - return this.addressline2Field; - } - set { - this.addressline2Field = value; - } + set { + this.addressline1Field = value; } + } - /// - public string addressline3 { - get { - return this.addressline3Field; - } - set { - this.addressline3Field = value; - } + /// + public string addressline2 { + get { + return this.addressline2Field; } - - /// - [XmlElement("zip-code")] - public string zipcode { - get { - return this.zipcodeField; - } - set { - this.zipcodeField = value; - } + set { + this.addressline2Field = value; } + } - /// - public string city { - get { - return this.cityField; - } - set { - this.cityField = value; - } + /// + public string addressline3 { + get { + return this.addressline3Field; + } + set { + this.addressline3Field = value; } } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="print-recipient", Namespace="http://api.digipost.no/schema/v7")] - public partial class printrecipient { - - private string nameField; - private object itemField; - - /// - public string name { - get { - return this.nameField; - } - set { - this.nameField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("zip-code")] + public string zipcode { + get { + return this.zipcodeField; } + set { + this.zipcodeField = value; + } + } - /// - [XmlElement("foreign-address", typeof(foreignaddress))] - [XmlElement("norwegian-address", typeof(norwegianaddress))] - public object Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } + /// + public string city { + get { + return this.cityField; + } + set { + this.cityField = value; } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="print-recipient", Namespace="http://api.digipost.no/schema/v7")] +public partial class printrecipient { + + private string nameField; + + private object itemField; + + /// + public string name { + get { + return this.nameField; + } + set { + this.nameField = value; + } + } + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="print-details", Namespace="http://api.digipost.no/schema/v7")] - public partial class printdetails { + [System.Xml.Serialization.XmlElementAttribute("foreign-address", typeof(foreignaddress))] + [System.Xml.Serialization.XmlElementAttribute("norwegian-address", typeof(norwegianaddress))] + public object Item { + get { + return this.itemField; + } + set { + this.itemField = value; + } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="print-details", Namespace="http://api.digipost.no/schema/v7")] +public partial class printdetails { - private printrecipient recipientField; + private printrecipient recipientField; - private printrecipient returnaddressField; + private printrecipient returnaddressField; - private posttype posttypeField; + private posttype posttypeField; - private printcolors colorField; + private printcolors colorField; - private nondeliverablehandling nondeliverablehandlingField; + private nondeliverablehandling nondeliverablehandlingField; - public printdetails() { - this.colorField = printcolors.MONOCHROME; - this.nondeliverablehandlingField = nondeliverablehandling.RETURN_TO_SENDER; - } + public printdetails() { + this.colorField = printcolors.MONOCHROME; + this.nondeliverablehandlingField = nondeliverablehandling.RETURN_TO_SENDER; + } - /// - public printrecipient recipient { - get { - return this.recipientField; - } - set { - this.recipientField = value; - } + /// + public printrecipient recipient { + get { + return this.recipientField; + } + set { + this.recipientField = value; } + } - /// - [XmlElement("return-address")] - public printrecipient returnaddress { - get { - return this.returnaddressField; - } - set { - this.returnaddressField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("return-address")] + public printrecipient returnaddress { + get { + return this.returnaddressField; } + set { + this.returnaddressField = value; + } + } - /// - [XmlElement("post-type")] - public posttype posttype { - get { - return this.posttypeField; - } - set { - this.posttypeField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("post-type")] + public posttype posttype { + get { + return this.posttypeField; + } + set { + this.posttypeField = value; } + } - /// - [System.ComponentModel.DefaultValueAttribute(printcolors.MONOCHROME)] - public printcolors color { - get { - return this.colorField; - } - set { - this.colorField = value; - } + /// + [System.ComponentModel.DefaultValueAttribute(printcolors.MONOCHROME)] + public printcolors color { + get { + return this.colorField; } + set { + this.colorField = value; + } + } - /// - [XmlElement("nondeliverable-handling")] - [System.ComponentModel.DefaultValueAttribute(nondeliverablehandling.RETURN_TO_SENDER)] - public nondeliverablehandling nondeliverablehandling { - get { - return this.nondeliverablehandlingField; - } - set { - this.nondeliverablehandlingField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("nondeliverable-handling")] + [System.ComponentModel.DefaultValueAttribute(nondeliverablehandling.RETURN_TO_SENDER)] + public nondeliverablehandling nondeliverablehandling { + get { + return this.nondeliverablehandlingField; + } + set { + this.nondeliverablehandlingField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="post-type", Namespace="http://api.digipost.no/schema/v7")] - public enum posttype { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="post-type", Namespace="http://api.digipost.no/schema/v7")] +public enum posttype { - /// - A, + /// + A, - /// - B, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="print-colors", Namespace="http://api.digipost.no/schema/v7")] - public enum printcolors { + B, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="print-colors", Namespace="http://api.digipost.no/schema/v7")] +public enum printcolors { - /// - MONOCHROME, + /// + MONOCHROME, - /// - COLORS, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="nondeliverable-handling", Namespace="http://api.digipost.no/schema/v7")] - public enum nondeliverablehandling { + COLORS, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="nondeliverable-handling", Namespace="http://api.digipost.no/schema/v7")] +public enum nondeliverablehandling { - /// - SHRED, + /// + SHRED, - /// - RETURN_TO_SENDER, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="name-and-address", Namespace="http://api.digipost.no/schema/v7")] - public partial class nameandaddress { + RETURN_TO_SENDER, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="name-and-address", Namespace="http://api.digipost.no/schema/v7")] +public partial class nameandaddress { - private string fullnameField; + private string fullnameField; - private string addressline1Field; + private string addressline1Field; - private string addressline2Field; + private string addressline2Field; - private string postalcodeField; + private string postalcodeField; - private string cityField; + private string cityField; - private System.DateTime birthdateField; + private System.DateTime birthdateField; - private bool birthdateFieldSpecified; + private bool birthdateFieldSpecified; - private string phonenumberField; + private string phonenumberField; - private string emailaddressField; + private string emailaddressField; - /// - public string fullname { - get { - return this.fullnameField; - } - set { - this.fullnameField = value; - } + /// + public string fullname { + get { + return this.fullnameField; } - - /// - public string addressline1 { - get { - return this.addressline1Field; - } - set { - this.addressline1Field = value; - } + set { + this.fullnameField = value; } + } - /// - public string addressline2 { - get { - return this.addressline2Field; - } - set { - this.addressline2Field = value; - } + /// + public string addressline1 { + get { + return this.addressline1Field; } - - /// - public string postalcode { - get { - return this.postalcodeField; - } - set { - this.postalcodeField = value; - } + set { + this.addressline1Field = value; } + } - /// - public string city { - get { - return this.cityField; - } - set { - this.cityField = value; - } + /// + public string addressline2 { + get { + return this.addressline2Field; } - - /// - [XmlElement("birth-date", DataType="date")] - public System.DateTime birthdate { - get { - return this.birthdateField; - } - set { - this.birthdateField = value; - } + set { + this.addressline2Field = value; } + } - /// - [XmlIgnore()] - public bool birthdateSpecified { - get { - return this.birthdateFieldSpecified; - } - set { - this.birthdateFieldSpecified = value; - } + /// + public string postalcode { + get { + return this.postalcodeField; } - - /// - [XmlElement("phone-number")] - public string phonenumber { - get { - return this.phonenumberField; - } - set { - this.phonenumberField = value; - } - } - - /// - [XmlElement("email-address")] - public string emailaddress { - get { - return this.emailaddressField; - } - set { - this.emailaddressField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class suggestion { - - private string searchstringField; - - private link linkField; - - /// - [XmlElement("search-string")] - public string searchstring { - get { - return this.searchstringField; - } - set { - this.searchstringField = value; - } - } - - /// - public link link { - get { - return this.linkField; - } - set { - this.linkField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public partial class address { - - private string streetField; - - private string housenumberField; - - private string houseletterField; - - private string additionaladdresslineField; - - private string zipcodeField; - - private string cityField; - - /// - public string street { - get { - return this.streetField; - } - set { - this.streetField = value; - } + set { + this.postalcodeField = value; } + } - /// - [XmlElement("house-number")] - public string housenumber { - get { - return this.housenumberField; - } - set { - this.housenumberField = value; - } + /// + public string city { + get { + return this.cityField; } - - /// - [XmlElement("house-letter")] - public string houseletter { - get { - return this.houseletterField; - } - set { - this.houseletterField = value; - } + set { + this.cityField = value; } + } - /// - [XmlElement("additional-addressline")] - public string additionaladdressline { - get { - return this.additionaladdresslineField; - } - set { - this.additionaladdresslineField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("birth-date", DataType="date")] + public System.DateTime birthdate { + get { + return this.birthdateField; } - - /// - [XmlElement("zip-code")] - public string zipcode { - get { - return this.zipcodeField; - } - set { - this.zipcodeField = value; - } + set { + this.birthdateField = value; } + } - /// - public string city { - get { - return this.cityField; - } - set { - this.cityField = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool birthdateSpecified { + get { + return this.birthdateFieldSpecified; + } + set { + this.birthdateFieldSpecified = value; } } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class recipients { - - private recipient[] recipientField; - - private link[] linkField; - /// - [XmlElement("recipient")] - public recipient[] recipient { - get { - return this.recipientField; - } - set { - this.recipientField = value; - } - } - - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class recipient { - - private string firstnameField; - - private string middlenameField; - - private string lastnameField; - - private string digipostaddressField; - - private string mobilenumberField; - - private string organisationnumberField; - - private string organisationnameField; - - private address[] addressField; - - private link[] linkField; - - /// - public string firstname { - get { - return this.firstnameField; - } - set { - this.firstnameField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("phone-number")] + public string phonenumber { + get { + return this.phonenumberField; + } + set { + this.phonenumberField = value; } + } - /// - public string middlename { - get { - return this.middlenameField; - } - set { - this.middlenameField = value; - } - } - - /// - public string lastname { - get { - return this.lastnameField; - } - set { - this.lastnameField = value; - } - } - - /// - [XmlElement("digipost-address")] - public string digipostaddress { - get { - return this.digipostaddressField; - } - set { - this.digipostaddressField = value; - } - } - - /// - [XmlElement("mobile-number")] - public string mobilenumber { - get { - return this.mobilenumberField; - } - set { - this.mobilenumberField = value; - } - } - - /// - [XmlElement("organisation-number")] - public string organisationnumber { - get { - return this.organisationnumberField; - } - set { - this.organisationnumberField = value; - } - } - - /// - [XmlElement("organisation-name")] - public string organisationname { - get { - return this.organisationnameField; - } - set { - this.organisationnameField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("email-address")] + public string emailaddress { + get { + return this.emailaddressField; } - - /// - [XmlElement("address")] - public address[] address { - get { - return this.addressField; - } - set { - this.addressField = value; - } + set { + this.emailaddressField = value; } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class suggestion { - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="encryption-key", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("encryption-key", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class encryptionkey { - - private string keyidField; - - private string valueField; - - /// - [XmlAttribute("key-id")] - public string keyid { - get { - return this.keyidField; - } - set { - this.keyidField = value; - } - } - - /// - [XmlText()] - public string Value { - get { - return this.valueField; - } - set { - this.valueField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(AnonymousType=true, Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class autocomplete { - - private suggestion[] suggestionField; - - private link[] linkField; - - /// - [XmlElement("suggestion")] - public suggestion[] suggestion { - get { - return this.suggestionField; - } - set { - this.suggestionField = value; - } - } - - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(AnonymousType=true, Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class error { - - private string errorcodeField; - - private string errormessageField; - - private string errortypeField; + private string searchstringField; - private link[] linkField; - - /// - [XmlElement("error-code")] - public string errorcode { - get { - return this.errorcodeField; - } - set { - this.errorcodeField = value; - } - } + private link linkField; - /// - [XmlElement("error-message")] - public string errormessage { - get { - return this.errormessageField; - } - set { - this.errormessageField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("search-string")] + public string searchstring { + get { + return this.searchstringField; } - - /// - [XmlElement("error-type")] - public string errortype { - get { - return this.errortypeField; - } - set { - this.errortypeField = value; - } + set { + this.searchstringField = value; } + } - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } + /// + public link link { + get { + return this.linkField; + } + set { + this.linkField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="identification-result", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("identification-result", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class identificationresult { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public partial class address { - private identificationresultcode resultField; + private string streetField; - private object[] itemsField; + private string housenumberField; - private ItemsChoiceType[] itemsElementNameField; + private string houseletterField; - /// - public identificationresultcode result { - get { - return this.resultField; - } - set { - this.resultField = value; - } - } + private string additionaladdresslineField; - /// - [XmlElement("digipost-address", typeof(string))] - [XmlElement("invalid-reason", typeof(invalidreason))] - [XmlElement("person-alias", typeof(string))] - [XmlElement("unidentified-reason", typeof(unidentifiedreason))] - [XmlChoiceIdentifier("ItemsElementName")] - public object[] Items { - get { - return this.itemsField; - } - set { - this.itemsField = value; - } - } + private string zipcodeField; + + private string cityField; - /// - [XmlElement("ItemsElementName")] - [XmlIgnore()] - public ItemsChoiceType[] ItemsElementName { - get { - return this.itemsElementNameField; - } - set { - this.itemsElementNameField = value; - } + /// + public string street { + get { + return this.streetField; + } + set { + this.streetField = value; } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="identification-result-code", Namespace="http://api.digipost.no/schema/v7")] - public enum identificationresultcode { + [System.Xml.Serialization.XmlElementAttribute("house-number")] + public string housenumber { + get { + return this.housenumberField; + } + set { + this.housenumberField = value; + } + } - /// - DIGIPOST, + /// + [System.Xml.Serialization.XmlElementAttribute("house-letter")] + public string houseletter { + get { + return this.houseletterField; + } + set { + this.houseletterField = value; + } + } - /// - IDENTIFIED, + /// + [System.Xml.Serialization.XmlElementAttribute("additional-addressline")] + public string additionaladdressline { + get { + return this.additionaladdresslineField; + } + set { + this.additionaladdresslineField = value; + } + } - /// - UNIDENTIFIED, + /// + [System.Xml.Serialization.XmlElementAttribute("zip-code")] + public string zipcode { + get { + return this.zipcodeField; + } + set { + this.zipcodeField = value; + } + } - /// - INVALID, + /// + public string city { + get { + return this.cityField; + } + set { + this.cityField = value; + } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="invalid-reason", Namespace="http://api.digipost.no/schema/v7")] - public enum invalidreason { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class recipients { - /// - INVALID_PERSONAL_IDENTIFICATION_NUMBER, + private recipient[] recipientField; - /// - INVALID_ORGANISATION_NUMBER, + private link[] linkField; - /// - UNKNOWN, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="unidentified-reason", Namespace="http://api.digipost.no/schema/v7")] - public enum unidentifiedreason { - - /// - MULTIPLE_MATCHES, + [System.Xml.Serialization.XmlElementAttribute("recipient")] + public recipient[] recipient { + get { + return this.recipientField; + } + set { + this.recipientField = value; + } + } - /// - NOT_FOUND, + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; + } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] - public enum ItemsChoiceType { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class recipient { - /// - [XmlEnum("digipost-address")] - digipostaddress, + private string firstnameField; - /// - [XmlEnum("invalid-reason")] - invalidreason, + private string middlenameField; - /// - [XmlEnum("person-alias")] - personalias, + private string lastnameField; - /// - [XmlEnum("unidentified-reason")] - unidentifiedreason, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="identification-result-with-encryption-key", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("identification-result-with-encryption-key", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class identificationresultwithencryptionkey { + private string digipostaddressField; - private identificationresult identificationresultField; + private string mobilenumberField; - private encryptionkey encryptionkeyField; + private string organisationnumberField; - /// - [XmlElement("identification-result")] - public identificationresult identificationresult { - get { - return this.identificationresultField; - } - set { - this.identificationresultField = value; - } - } + private string organisationnameField; + + private address[] addressField; - /// - [XmlElement("encryption-key")] - public encryptionkey encryptionkey { - get { - return this.encryptionkeyField; - } - set { - this.encryptionkeyField = value; - } + private link[] linkField; + + /// + public string firstname { + get { + return this.firstnameField; + } + set { + this.firstnameField = value; } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class identification { + public string middlename { + get { + return this.middlenameField; + } + set { + this.middlenameField = value; + } + } - private object itemField; + /// + public string lastname { + get { + return this.lastnameField; + } + set { + this.lastnameField = value; + } + } - private ItemChoiceType itemElementNameField; + /// + [System.Xml.Serialization.XmlElementAttribute("digipost-address")] + public string digipostaddress { + get { + return this.digipostaddressField; + } + set { + this.digipostaddressField = value; + } + } - private bool includepersonaliasfordigipostuserField; + /// + [System.Xml.Serialization.XmlElementAttribute("mobile-number")] + public string mobilenumber { + get { + return this.mobilenumberField; + } + set { + this.mobilenumberField = value; + } + } - public identification() { - this.includepersonaliasfordigipostuserField = false; + /// + [System.Xml.Serialization.XmlElementAttribute("organisation-number")] + public string organisationnumber { + get { + return this.organisationnumberField; + } + set { + this.organisationnumberField = value; } + } - /// - [XmlElement("digipost-address", typeof(string))] - [XmlElement("name-and-address", typeof(nameandaddress))] - [XmlElement("organisation-number", typeof(string))] - [XmlElement("personal-identification-number", typeof(string))] - [XmlChoiceIdentifier("ItemElementName")] - public object Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("organisation-name")] + public string organisationname { + get { + return this.organisationnameField; } + set { + this.organisationnameField = value; + } + } - /// - [XmlIgnore()] - public ItemChoiceType ItemElementName { - get { - return this.itemElementNameField; - } - set { - this.itemElementNameField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("address")] + public address[] address { + get { + return this.addressField; + } + set { + this.addressField = value; } + } - /// - [XmlAttribute("include-personalias-for-digipost-user")] - [System.ComponentModel.DefaultValueAttribute(false)] - public bool includepersonaliasfordigipostuser { - get { - return this.includepersonaliasfordigipostuserField; - } - set { - this.includepersonaliasfordigipostuserField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] - public enum ItemChoiceType { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="encryption-key", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("encryption-key", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class encryptionkey { - /// - [XmlEnum("digipost-address")] - digipostaddress, + private string keyidField; - /// - [XmlEnum("name-and-address")] - nameandaddress, + private string valueField; - /// - [XmlEnum("organisation-number")] - organisationnumber, + /// + [System.Xml.Serialization.XmlAttributeAttribute("key-id")] + public string keyid { + get { + return this.keyidField; + } + set { + this.keyidField = value; + } + } - /// - [XmlEnum("personal-identification-number")] - personalidentificationnumber, + /// + [System.Xml.Serialization.XmlTextAttribute()] + public string Value { + get { + return this.valueField; + } + set { + this.valueField = value; + } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="message-recipient", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("message-recipient", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class messagerecipient { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class autocomplete { - private object itemField; + private suggestion[] suggestionField; - private ItemChoiceType1 itemElementNameField; + private link[] linkField; - private printdetails printdetailsField; - - /// - [XmlElement("digipost-address", typeof(string))] - [XmlElement("name-and-address", typeof(nameandaddress))] - [XmlElement("organisation-number", typeof(string))] - [XmlElement("personal-identification-number", typeof(string))] - [XmlChoiceIdentifier("ItemElementName")] - public object Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("suggestion")] + public suggestion[] suggestion { + get { + return this.suggestionField; } - - /// - [XmlIgnore()] - public ItemChoiceType1 ItemElementName { - get { - return this.itemElementNameField; - } - set { - this.itemElementNameField = value; - } + set { + this.suggestionField = value; } + } - /// - [XmlElement("print-details")] - public printdetails printdetails { - get { - return this.printdetailsField; - } - set { - this.printdetailsField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] - public enum ItemChoiceType1 { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class error { - /// - [XmlEnum("digipost-address")] - digipostaddress, + private string errorcodeField; - /// - [XmlEnum("name-and-address")] - nameandaddress, + private string errormessageField; - /// - [XmlEnum("organisation-number")] - organisationnumber, + private string errortypeField; - /// - [XmlEnum("personal-identification-number")] - personalidentificationnumber, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="message-delivery", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("message-delivery", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class messagedelivery { - - private string messageidField; - - private channel deliverymethodField; - - private long senderidField; + private link[] linkField; - private messagestatus statusField; - - private System.DateTime deliverytimeField; - - private bool deliverytimeFieldSpecified; - - private document primarydocumentField; - - private document[] attachmentField; - - private link[] linkField; - - /// - [XmlElement("message-id")] - public string messageid { - get { - return this.messageidField; - } - set { - this.messageidField = value; - } - } - - /// - [XmlElement("delivery-method")] - public channel deliverymethod { - get { - return this.deliverymethodField; - } - set { - this.deliverymethodField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("error-code")] + public string errorcode { + get { + return this.errorcodeField; } - - /// - [XmlElement("sender-id")] - public long senderid { - get { - return this.senderidField; - } - set { - this.senderidField = value; - } + set { + this.errorcodeField = value; } + } - /// - public messagestatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("error-message")] + public string errormessage { + get { + return this.errormessageField; } - - /// - [XmlElement("delivery-time")] - public System.DateTime deliverytime { - get { - return this.deliverytimeField; - } - set { - this.deliverytimeField = value; - } + set { + this.errormessageField = value; } + } - /// - [XmlIgnore()] - public bool deliverytimeSpecified { - get { - return this.deliverytimeFieldSpecified; - } - set { - this.deliverytimeFieldSpecified = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("error-type")] + public string errortype { + get { + return this.errortypeField; } - - /// - [XmlElement("primary-document")] - public document primarydocument { - get { - return this.primarydocumentField; - } - set { - this.primarydocumentField = value; - } + set { + this.errortypeField = value; } + } - /// - [XmlElement("attachment")] - public document[] attachment { - get { - return this.attachmentField; - } - set { - this.attachmentField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; } - - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } + set { + this.linkField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public enum channel { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="identification-result", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("identification-result", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class identificationresult { - /// - PRINT, + private identificationresultcode resultField; - /// - DIGIPOST, - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="message-status", Namespace="http://api.digipost.no/schema/v7")] - public enum messagestatus { + private object[] itemsField; - /// - NOT_COMPLETE, + private ItemsChoiceType[] itemsElementNameField; - /// - COMPLETE, + /// + public identificationresultcode result { + get { + return this.resultField; + } + set { + this.resultField = value; + } + } - /// - DELIVERED, + /// + [System.Xml.Serialization.XmlElementAttribute("digipost-address", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("invalid-reason", typeof(invalidreason))] + [System.Xml.Serialization.XmlElementAttribute("person-alias", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("unidentified-reason", typeof(unidentifiedreason))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemsElementName")] + public object[] Items { + get { + return this.itemsField; + } + set { + this.itemsField = value; + } + } - /// - DELIVERED_TO_PRINT, + /// + [System.Xml.Serialization.XmlElementAttribute("ItemsElementName")] + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemsChoiceType[] ItemsElementName { + get { + return this.itemsElementNameField; + } + set { + this.itemsElementNameField = value; + } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="identification-result-code", Namespace="http://api.digipost.no/schema/v7")] +public enum identificationresultcode { + /// - [XmlInclude(typeof(invoice))] - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class document { + DIGIPOST, - private string uuidField; + /// + IDENTIFIED, - private string subjectField; + /// + UNIDENTIFIED, - private string filetypeField; + /// + INVALID, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="invalid-reason", Namespace="http://api.digipost.no/schema/v7")] +public enum invalidreason { - private object itemField; + /// + INVALID_PERSONAL_IDENTIFICATION_NUMBER, - private smsnotification smsnotificationField; + /// + INVALID_ORGANISATION_NUMBER, - private emailnotification emailnotificationField; + /// + UNKNOWN, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="unidentified-reason", Namespace="http://api.digipost.no/schema/v7")] +public enum unidentifiedreason { - private authenticationlevel authenticationlevelField; + /// + MULTIPLE_MATCHES, - private bool authenticationlevelFieldSpecified; + /// + NOT_FOUND, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] +public enum ItemsChoiceType { - private sensitivitylevel sensitivitylevelField; + /// + [System.Xml.Serialization.XmlEnumAttribute("digipost-address")] + digipostaddress, - private bool sensitivitylevelFieldSpecified; + /// + [System.Xml.Serialization.XmlEnumAttribute("invalid-reason")] + invalidreason, - private encrypted encryptedField; + /// + [System.Xml.Serialization.XmlEnumAttribute("person-alias")] + personalias, - private contenthash contenthashField; + /// + [System.Xml.Serialization.XmlEnumAttribute("unidentified-reason")] + unidentifiedreason, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="identification-result-with-encryption-key", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("identification-result-with-encryption-key", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class identificationresultwithencryptionkey { - private link[] linkField; + private identificationresult identificationresultField; - private string technicaltypeField; + private encryptionkey encryptionkeyField; - /// - public string uuid { - get { - return this.uuidField; - } - set { - this.uuidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("identification-result")] + public identificationresult identificationresult { + get { + return this.identificationresultField; } - - /// - public string subject { - get { - return this.subjectField; - } - set { - this.subjectField = value; - } + set { + this.identificationresultField = value; } + } - /// - [XmlElement("file-type")] - public string filetype { - get { - return this.filetypeField; - } - set { - this.filetypeField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("encryption-key")] + public encryptionkey encryptionkey { + get { + return this.encryptionkeyField; } - - /// - [XmlElement("opened", typeof(bool))] - [XmlElement("opening-receipt", typeof(string))] - public object Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } + set { + this.encryptionkeyField = value; } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class identification { - /// - [XmlElement("sms-notification")] - public smsnotification smsnotification { - get { - return this.smsnotificationField; - } - set { - this.smsnotificationField = value; - } - } + private object itemField; - /// - [XmlElement("email-notification")] - public emailnotification emailnotification { - get { - return this.emailnotificationField; - } - set { - this.emailnotificationField = value; - } - } - - /// - [XmlElement("authentication-level")] - public authenticationlevel authenticationlevel { - get { - return this.authenticationlevelField; - } - set { - this.authenticationlevelField = value; - } - } + private ItemChoiceType itemElementNameField; + + private bool includepersonaliasfordigipostuserField; + + public identification() { + this.includepersonaliasfordigipostuserField = false; + } - /// - [XmlIgnore()] - public bool authenticationlevelSpecified { - get { - return this.authenticationlevelFieldSpecified; - } - set { - this.authenticationlevelFieldSpecified = value; - } - } - - /// - [XmlElement("sensitivity-level")] - public sensitivitylevel sensitivitylevel { - get { - return this.sensitivitylevelField; - } - set { - this.sensitivitylevelField = value; - } - } - - /// - [XmlIgnore()] - public bool sensitivitylevelSpecified { - get { - return this.sensitivitylevelFieldSpecified; - } - set { - this.sensitivitylevelFieldSpecified = value; - } - } - - /// - public encrypted encrypted { - get { - return this.encryptedField; - } - set { - this.encryptedField = value; - } - } - - /// - [XmlElement("content-hash")] - public contenthash contenthash { - get { - return this.contenthashField; - } - set { - this.contenthashField = value; - } - } - - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } - } - - /// - [XmlAttribute("technical-type")] - public string technicaltype { - get { - return this.technicaltypeField; - } - set { - this.technicaltypeField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class message { - - private string messageidField; - - private object itemField; - - private messagerecipient recipientField; - - private System.DateTime deliverytimeField; - - private bool deliverytimeFieldSpecified; - - private string invoicereferenceField; - - private document primarydocumentField; - - private document[] attachmentField; - - /// - [XmlElement("message-id")] - public string messageid { - get { - return this.messageidField; - } - set { - this.messageidField = value; - } - } - - /// - [XmlElement("sender-id", typeof(long))] - [XmlElement("sender-organization", typeof(senderorganization))] - public object Item { - get { - return this.itemField; - } - set { - this.itemField = value; - } - } - - /// - public messagerecipient recipient { - get { - return this.recipientField; - } - set { - this.recipientField = value; - } - } - - /// - [XmlElement("delivery-time")] - public System.DateTime deliverytime { - get { - return this.deliverytimeField; - } - set { - this.deliverytimeField = value; - } - } - - /// - [XmlIgnore()] - public bool deliverytimeSpecified { - get { - return this.deliverytimeFieldSpecified; - } - set { - this.deliverytimeFieldSpecified = value; - } - } - - /// - [XmlElement("invoice-reference")] - public string invoicereference { - get { - return this.invoicereferenceField; - } - set { - this.invoicereferenceField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("digipost-address", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("name-and-address", typeof(nameandaddress))] + [System.Xml.Serialization.XmlElementAttribute("organisation-number", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("personal-identification-number", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public object Item { + get { + return this.itemField; + } + set { + this.itemField = value; } + } - /// - [XmlElement("primary-document")] - public document primarydocument { - get { - return this.primarydocumentField; - } - set { - this.primarydocumentField = value; - } - } - - /// - [XmlElement("attachment")] - public document[] attachment { - get { - return this.attachmentField; - } - set { - this.attachmentField = value; - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class invoice : document { - - private string kidField; - - private decimal amountField; - - private string accountField; - - private System.DateTime duedateField; - - /// - public string kid { - get { - return this.kidField; - } - set { - this.kidField = value; - } - } - - /// - public decimal amount { - get { - return this.amountField; - } - set { - this.amountField = value; - } - } - - /// - public string account { - get { - return this.accountField; - } - set { - this.accountField = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType ItemElementName { + get { + return this.itemElementNameField; } + set { + this.itemElementNameField = value; + } + } - /// - [XmlElement("due-date", DataType="date")] - public System.DateTime duedate { - get { - return this.duedateField; - } - set { - this.duedateField = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("include-personalias-for-digipost-user")] + [System.ComponentModel.DefaultValueAttribute(false)] + public bool includepersonaliasfordigipostuser { + get { + return this.includepersonaliasfordigipostuserField; + } + set { + this.includepersonaliasfordigipostuserField = value; } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] +public enum ItemChoiceType { + + /// + [System.Xml.Serialization.XmlEnumAttribute("digipost-address")] + digipostaddress, + + /// + [System.Xml.Serialization.XmlEnumAttribute("name-and-address")] + nameandaddress, + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="sender-information", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("sender-information", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class senderinformation { + [System.Xml.Serialization.XmlEnumAttribute("organisation-number")] + organisationnumber, - private long senderidField; + /// + [System.Xml.Serialization.XmlEnumAttribute("personal-identification-number")] + personalidentificationnumber, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="message-recipient", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("message-recipient", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class messagerecipient { - private bool senderidFieldSpecified; + private object itemField; - private senderstatus statusField; + private ItemChoiceType1 itemElementNameField; - private feature[] supportedfeaturesField; + private printdetails printdetailsField; - /// - [XmlElement("sender-id")] - public long senderid { - get { - return this.senderidField; - } - set { - this.senderidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("digipost-address", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("name-and-address", typeof(nameandaddress))] + [System.Xml.Serialization.XmlElementAttribute("organisation-number", typeof(string))] + [System.Xml.Serialization.XmlElementAttribute("personal-identification-number", typeof(string))] + [System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")] + public object Item { + get { + return this.itemField; + } + set { + this.itemField = value; } + } - /// - [XmlIgnore()] - public bool senderidSpecified { - get { - return this.senderidFieldSpecified; - } - set { - this.senderidFieldSpecified = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public ItemChoiceType1 ItemElementName { + get { + return this.itemElementNameField; } - - /// - public senderstatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - } + set { + this.itemElementNameField = value; } + } - /// - [XmlArray("supported-features")] - [XmlArrayItem(IsNullable=false)] - public feature[] supportedfeatures { - get { - return this.supportedfeaturesField; - } - set { - this.supportedfeaturesField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("print-details")] + public printdetails printdetails { + get { + return this.printdetailsField; + } + set { + this.printdetailsField = value; } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7", IncludeInSchema=false)] +public enum ItemChoiceType1 { + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="sender-status", Namespace="http://api.digipost.no/schema/v7")] - public enum senderstatus { + [System.Xml.Serialization.XmlEnumAttribute("digipost-address")] + digipostaddress, - /// - NO_INFO_AVAILABLE, + /// + [System.Xml.Serialization.XmlEnumAttribute("name-and-address")] + nameandaddress, - /// - VALID_SENDER, - } - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="document-status", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("document-status", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class documentstatus { + [System.Xml.Serialization.XmlEnumAttribute("organisation-number")] + organisationnumber, - private documentstatus[] attachmentsField; + /// + [System.Xml.Serialization.XmlEnumAttribute("personal-identification-number")] + personalidentificationnumber, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="message-delivery", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("message-delivery", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class messagedelivery { - private link[] linkField; + private string messageidField; - private string uuidField; + private channel deliverymethodField; - private long senderidField; + private long senderidField; - private bool senderidFieldSpecified; + private messagestatus statusField; - private deliverystatus statusField; + private System.DateTime deliverytimeField; - private bool statusFieldSpecified; + private bool deliverytimeFieldSpecified; - private System.DateTime createdField; + private document primarydocumentField; - private bool createdFieldSpecified; + private document[] attachmentField; - private System.DateTime deliveredField; + private link[] linkField; - private bool deliveredFieldSpecified; + /// + [System.Xml.Serialization.XmlElementAttribute("message-id")] + public string messageid { + get { + return this.messageidField; + } + set { + this.messageidField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("delivery-method")] + public channel deliverymethod { + get { + return this.deliverymethodField; + } + set { + this.deliverymethodField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("sender-id")] + public long senderid { + get { + return this.senderidField; + } + set { + this.senderidField = value; + } + } - private read readField; + /// + public messagestatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("delivery-time")] + public System.DateTime deliverytime { + get { + return this.deliverytimeField; + } + set { + this.deliverytimeField = value; + } + } - private bool readFieldSpecified; + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deliverytimeSpecified { + get { + return this.deliverytimeFieldSpecified; + } + set { + this.deliverytimeFieldSpecified = value; + } + } - private channel channelField; + /// + [System.Xml.Serialization.XmlElementAttribute("primary-document")] + public document primarydocument { + get { + return this.primarydocumentField; + } + set { + this.primarydocumentField = value; + } + } - private bool channelFieldSpecified; + /// + [System.Xml.Serialization.XmlElementAttribute("attachment")] + public document[] attachment { + get { + return this.attachmentField; + } + set { + this.attachmentField = value; + } + } - private bool isprimarydocumentField; + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; + } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public enum channel { - private bool isprimarydocumentFieldSpecified; + /// + PRINT, - private string contenthashField; + /// + DIGIPOST, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="message-status", Namespace="http://api.digipost.no/schema/v7")] +public enum messagestatus { - private hashalgorithm contenthashalgorithmField; + /// + NOT_COMPLETE, + + /// + COMPLETE, + + /// + DELIVERED, + + /// + DELIVERED_TO_PRINT, +} + +/// +[System.Xml.Serialization.XmlIncludeAttribute(typeof(invoice))] +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class document { + + private string uuidField; + + private string subjectField; + + private string filetypeField; + + private object itemField; + + private smsnotification smsnotificationField; + + private emailnotification emailnotificationField; + + private authenticationlevel authenticationlevelField; + + private bool authenticationlevelFieldSpecified; + + private sensitivitylevel sensitivitylevelField; + + private bool sensitivitylevelFieldSpecified; + + private encrypted encryptedField; + + private contenthash contenthashField; + + private link[] linkField; + + private string technicaltypeField; + + /// + public string uuid { + get { + return this.uuidField; + } + set { + this.uuidField = value; + } + } + + /// + public string subject { + get { + return this.subjectField; + } + set { + this.subjectField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("file-type")] + public string filetype { + get { + return this.filetypeField; + } + set { + this.filetypeField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("opened", typeof(bool))] + [System.Xml.Serialization.XmlElementAttribute("opening-receipt", typeof(string))] + public object Item { + get { + return this.itemField; + } + set { + this.itemField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("sms-notification")] + public smsnotification smsnotification { + get { + return this.smsnotificationField; + } + set { + this.smsnotificationField = value; + } + } - private bool contenthashalgorithmFieldSpecified; + /// + [System.Xml.Serialization.XmlElementAttribute("email-notification")] + public emailnotification emailnotification { + get { + return this.emailnotificationField; + } + set { + this.emailnotificationField = value; + } + } - /// - [XmlElement("attachments")] - public documentstatus[] attachments { - get { - return this.attachmentsField; - } - set { - this.attachmentsField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("authentication-level")] + public authenticationlevel authenticationlevel { + get { + return this.authenticationlevelField; + } + set { + this.authenticationlevelField = value; } + } - /// - [XmlElement("link")] - public link[] link { - get { - return this.linkField; - } - set { - this.linkField = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool authenticationlevelSpecified { + get { + return this.authenticationlevelFieldSpecified; } + set { + this.authenticationlevelFieldSpecified = value; + } + } - /// - [XmlAttribute()] - public string uuid { - get { - return this.uuidField; - } - set { - this.uuidField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("sensitivity-level")] + public sensitivitylevel sensitivitylevel { + get { + return this.sensitivitylevelField; } + set { + this.sensitivitylevelField = value; + } + } - /// - [XmlAttribute("sender-id")] - public long senderid { - get { - return this.senderidField; - } - set { - this.senderidField = value; - } + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool sensitivitylevelSpecified { + get { + return this.sensitivitylevelFieldSpecified; } + set { + this.sensitivitylevelFieldSpecified = value; + } + } - /// - [XmlIgnore()] - public bool senderidSpecified { - get { - return this.senderidFieldSpecified; - } - set { - this.senderidFieldSpecified = value; - } - } - - /// - [XmlAttribute()] - public deliverystatus status { - get { - return this.statusField; - } - set { - this.statusField = value; - } - } - - /// - [XmlIgnore()] - public bool statusSpecified { - get { - return this.statusFieldSpecified; - } - set { - this.statusFieldSpecified = value; - } - } - - /// - [XmlAttribute()] - public System.DateTime created { - get { - return this.createdField; - } - set { - this.createdField = value; - } - } - - /// - [XmlIgnore()] - public bool createdSpecified { - get { - return this.createdFieldSpecified; - } - set { - this.createdFieldSpecified = value; - } - } - - /// - [XmlAttribute()] - public System.DateTime delivered { - get { - return this.deliveredField; - } - set { - this.deliveredField = value; - } - } - - /// - [XmlIgnore()] - public bool deliveredSpecified { - get { - return this.deliveredFieldSpecified; - } - set { - this.deliveredFieldSpecified = value; - } - } - - /// - [XmlAttribute()] - public read read { - get { - return this.readField; - } - set { - this.readField = value; - } - } - - /// - [XmlIgnore()] - public bool readSpecified { - get { - return this.readFieldSpecified; - } - set { - this.readFieldSpecified = value; - } - } - - /// - [XmlAttribute()] - public channel channel { - get { - return this.channelField; - } - set { - this.channelField = value; - } - } - - /// - [XmlIgnore()] - public bool channelSpecified { - get { - return this.channelFieldSpecified; - } - set { - this.channelFieldSpecified = value; - } - } - - /// - [XmlAttribute("is-primary-document")] - public bool isprimarydocument { - get { - return this.isprimarydocumentField; - } - set { - this.isprimarydocumentField = value; - } - } - - /// - [XmlIgnore()] - public bool isprimarydocumentSpecified { - get { - return this.isprimarydocumentFieldSpecified; - } - set { - this.isprimarydocumentFieldSpecified = value; - } - } + /// + public encrypted encrypted { + get { + return this.encryptedField; + } + set { + this.encryptedField = value; + } + } - /// - [XmlAttribute("content-hash")] - public string contenthash { - get { - return this.contenthashField; - } - set { - this.contenthashField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("content-hash")] + public contenthash contenthash { + get { + return this.contenthashField; + } + set { + this.contenthashField = value; } + } - /// - [XmlAttribute("content-hash-algorithm")] - public hashalgorithm contenthashalgorithm { - get { - return this.contenthashalgorithmField; - } - set { - this.contenthashalgorithmField = value; - } + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } + } - /// - [XmlIgnore()] - public bool contenthashalgorithmSpecified { - get { - return this.contenthashalgorithmFieldSpecified; - } - set { - this.contenthashalgorithmFieldSpecified = value; - } + /// + [System.Xml.Serialization.XmlAttributeAttribute("technical-type")] + public string technicaltype { + get { + return this.technicaltypeField; + } + set { + this.technicaltypeField = value; } } +} - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="delivery-status", Namespace="http://api.digipost.no/schema/v7")] - public enum deliverystatus { +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class message { + + private string messageidField; + + private object itemField; - /// - DELIVERED, + private messagerecipient recipientField; - /// - NOT_DELIVERED, + private System.DateTime deliverytimeField; + + private bool deliverytimeFieldSpecified; + + private string invoicereferenceField; + + private document primarydocumentField; + + private document[] attachmentField; + + /// + [System.Xml.Serialization.XmlElementAttribute("message-id")] + public string messageid { + get { + return this.messageidField; + } + set { + this.messageidField = value; + } } + + /// + [System.Xml.Serialization.XmlElementAttribute("sender-id", typeof(long))] + [System.Xml.Serialization.XmlElementAttribute("sender-organization", typeof(senderorganization))] + public object Item { + get { + return this.itemField; + } + set { + this.itemField = value; + } + } + + /// + public messagerecipient recipient { + get { + return this.recipientField; + } + set { + this.recipientField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("delivery-time")] + public System.DateTime deliverytime { + get { + return this.deliverytimeField; + } + set { + this.deliverytimeField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deliverytimeSpecified { + get { + return this.deliverytimeFieldSpecified; + } + set { + this.deliverytimeFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("invoice-reference")] + public string invoicereference { + get { + return this.invoicereferenceField; + } + set { + this.invoicereferenceField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("primary-document")] + public document primarydocument { + get { + return this.primarydocumentField; + } + set { + this.primarydocumentField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("attachment")] + public document[] attachment { + get { + return this.attachmentField; + } + set { + this.attachmentField = value; + } + } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class invoice : document { + + private string kidField; + + private decimal amountField; + + private string accountField; + + private System.DateTime duedateField; + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - public enum read { + public string kid { + get { + return this.kidField; + } + set { + this.kidField = value; + } + } - /// - Y, + /// + public decimal amount { + get { + return this.amountField; + } + set { + this.amountField = value; + } + } - /// - N, + /// + public string account { + get { + return this.accountField; + } + set { + this.accountField = value; + } } + + /// + [System.Xml.Serialization.XmlElementAttribute("due-date", DataType="date")] + public System.DateTime duedate { + get { + return this.duedateField; + } + set { + this.duedateField = value; + } + } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sender-information", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("sender-information", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class senderinformation { + + private long senderidField; + + private bool senderidFieldSpecified; + + private senderstatus statusField; + + private feature[] supportedfeaturesField; + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [XmlType(TypeName="hash-algorithm", Namespace="http://api.digipost.no/schema/v7")] - public enum hashalgorithm { + [System.Xml.Serialization.XmlElementAttribute("sender-id")] + public long senderid { + get { + return this.senderidField; + } + set { + this.senderidField = value; + } + } - /// - NONE, + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool senderidSpecified { + get { + return this.senderidFieldSpecified; + } + set { + this.senderidFieldSpecified = value; + } + } - /// - MD5, + /// + public senderstatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + } + } - /// - SHA256, + /// + [System.Xml.Serialization.XmlArrayAttribute("supported-features")] + [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] + public feature[] supportedfeatures { + get { + return this.supportedfeaturesField; + } + set { + this.supportedfeaturesField = value; + } } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="sender-status", Namespace="http://api.digipost.no/schema/v7")] +public enum senderstatus { + + /// + NO_INFO_AVAILABLE, + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(TypeName="document-events", Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot("document-events", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class documentevents { + VALID_SENDER, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="document-status", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("document-status", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class documentstatus { + + private documentstatus[] attachmentsField; + + private link[] linkField; + + private string uuidField; + + private long senderidField; + + private bool senderidFieldSpecified; + + private deliverystatus statusField; + + private bool statusFieldSpecified; + + private System.DateTime createdField; + + private bool createdFieldSpecified; + + private System.DateTime deliveredField; + + private bool deliveredFieldSpecified; + + private read readField; - private @event[] eventField; + private bool readFieldSpecified; - /// - [XmlElement("event")] - public @event[] @event { - get { - return this.eventField; - } - set { - this.eventField = value; - } + private channel channelField; + + private bool channelFieldSpecified; + + private bool isprimarydocumentField; + + private bool isprimarydocumentFieldSpecified; + + private string contenthashField; + + private hashalgorithm contenthashalgorithmField; + + private bool contenthashalgorithmFieldSpecified; + + /// + [System.Xml.Serialization.XmlElementAttribute("attachments")] + public documentstatus[] attachments { + get { + return this.attachmentsField; + } + set { + this.attachmentsField = value; + } + } + + /// + [System.Xml.Serialization.XmlElementAttribute("link")] + public link[] link { + get { + return this.linkField; + } + set { + this.linkField = value; } } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public string uuid { + get { + return this.uuidField; + } + set { + this.uuidField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("sender-id")] + public long senderid { + get { + return this.senderidField; + } + set { + this.senderidField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool senderidSpecified { + get { + return this.senderidFieldSpecified; + } + set { + this.senderidFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public deliverystatus status { + get { + return this.statusField; + } + set { + this.statusField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool statusSpecified { + get { + return this.statusFieldSpecified; + } + set { + this.statusFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public System.DateTime created { + get { + return this.createdField; + } + set { + this.createdField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool createdSpecified { + get { + return this.createdFieldSpecified; + } + set { + this.createdFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public System.DateTime delivered { + get { + return this.deliveredField; + } + set { + this.deliveredField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool deliveredSpecified { + get { + return this.deliveredFieldSpecified; + } + set { + this.deliveredFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public read read { + get { + return this.readField; + } + set { + this.readField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool readSpecified { + get { + return this.readFieldSpecified; + } + set { + this.readFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute()] + public channel channel { + get { + return this.channelField; + } + set { + this.channelField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool channelSpecified { + get { + return this.channelFieldSpecified; + } + set { + this.channelFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("is-primary-document")] + public bool isprimarydocument { + get { + return this.isprimarydocumentField; + } + set { + this.isprimarydocumentField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool isprimarydocumentSpecified { + get { + return this.isprimarydocumentFieldSpecified; + } + set { + this.isprimarydocumentFieldSpecified = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("content-hash")] + public string contenthash { + get { + return this.contenthashField; + } + set { + this.contenthashField = value; + } + } + + /// + [System.Xml.Serialization.XmlAttributeAttribute("content-hash-algorithm")] + public hashalgorithm contenthashalgorithm { + get { + return this.contenthashalgorithmField; + } + set { + this.contenthashalgorithmField = value; + } + } + + /// + [System.Xml.Serialization.XmlIgnoreAttribute()] + public bool contenthashalgorithmSpecified { + get { + return this.contenthashalgorithmFieldSpecified; + } + set { + this.contenthashalgorithmFieldSpecified = value; + } + } +} +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="delivery-status", Namespace="http://api.digipost.no/schema/v7")] +public enum deliverystatus { + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [XmlType(Namespace="http://api.digipost.no/schema/v7")] - [XmlRoot(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] - public partial class inbox { + DELIVERED, - private inboxdocument[] documentField; + /// + NOT_DELIVERED, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +public enum read { - /// - [XmlElement("document")] - public inboxdocument[] document { - get { - return this.documentField; - } - set { - this.documentField = value; - } + /// + Y, + + /// + N, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="hash-algorithm", Namespace="http://api.digipost.no/schema/v7")] +public enum hashalgorithm { + + /// + NONE, + + /// + MD5, + + /// + SHA256, +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(TypeName="document-events", Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute("document-events", Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class documentevents { + + private @event[] eventField; + + /// + [System.Xml.Serialization.XmlElementAttribute("event")] + public @event[] @event { + get { + return this.eventField; + } + set { + this.eventField = value; + } + } +} + +/// +[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://api.digipost.no/schema/v7")] +[System.Xml.Serialization.XmlRootAttribute(Namespace="http://api.digipost.no/schema/v7", IsNullable=false)] +public partial class inbox { + + private inboxdocument[] documentField; + + /// + [System.Xml.Serialization.XmlElementAttribute("document")] + public inboxdocument[] document { + get { + return this.documentField; + } + set { + this.documentField = value; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/DocumentTests.cs b/Digipost.Api.Client.Send.Tests/DocumentTests.cs index ee9e79a2..44f6c58b 100755 --- a/Digipost.Api.Client.Send.Tests/DocumentTests.cs +++ b/Digipost.Api.Client.Send.Tests/DocumentTests.cs @@ -68,4 +68,4 @@ public void DocumentFromStream() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/Fakes/FakeDocument.cs b/Digipost.Api.Client.Send.Tests/Fakes/FakeDocument.cs index cebba0ba..3a5cebc9 100755 --- a/Digipost.Api.Client.Send.Tests/Fakes/FakeDocument.cs +++ b/Digipost.Api.Client.Send.Tests/Fakes/FakeDocument.cs @@ -31,4 +31,4 @@ internal override byte[] ReadAllBytes(string pathToDocument) return new byte[] {1, 2, 3, 4}; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/Fakes/FakeInvoice.cs b/Digipost.Api.Client.Send.Tests/Fakes/FakeInvoice.cs index 765468ee..e116f013 100755 --- a/Digipost.Api.Client.Send.Tests/Fakes/FakeInvoice.cs +++ b/Digipost.Api.Client.Send.Tests/Fakes/FakeInvoice.cs @@ -32,4 +32,4 @@ internal override byte[] ReadAllBytes(string pathToDocument) return new byte[] {1, 2, 3, 4}; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/InvoiceTests.cs b/Digipost.Api.Client.Send.Tests/InvoiceTests.cs index aa51d147..ee9ee275 100755 --- a/Digipost.Api.Client.Send.Tests/InvoiceTests.cs +++ b/Digipost.Api.Client.Send.Tests/InvoiceTests.cs @@ -110,4 +110,4 @@ public void ConstuctorStreamTest() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/MessageActionTests.cs b/Digipost.Api.Client.Send.Tests/MessageActionTests.cs index a96d77e1..562a8e8a 100755 --- a/Digipost.Api.Client.Send.Tests/MessageActionTests.cs +++ b/Digipost.Api.Client.Send.Tests/MessageActionTests.cs @@ -24,4 +24,4 @@ public void ReturnsCorrectDataForMessage() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/MessageTests.cs b/Digipost.Api.Client.Send.Tests/MessageTests.cs index a477e92e..c18ba134 100755 --- a/Digipost.Api.Client.Send.Tests/MessageTests.cs +++ b/Digipost.Api.Client.Send.Tests/MessageTests.cs @@ -72,4 +72,4 @@ public void DeliveryTimeSpecifiedGivesTrue() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/SendDataTransferObjectConverterTests.cs b/Digipost.Api.Client.Send.Tests/SendDataTransferObjectConverterTests.cs index c4521770..cab90463 100755 --- a/Digipost.Api.Client.Send.Tests/SendDataTransferObjectConverterTests.cs +++ b/Digipost.Api.Client.Send.Tests/SendDataTransferObjectConverterTests.cs @@ -4,7 +4,6 @@ using Digipost.Api.Client.Common; using Digipost.Api.Client.Common.Enums; using Digipost.Api.Client.Common.Extensions; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Digipost.Api.Client.Tests; using Digipost.Api.Client.Tests.CompareObjects; using Xunit; @@ -328,4 +327,4 @@ public void SmsNotification() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send.Tests/SmsNotificationTests.cs b/Digipost.Api.Client.Send.Tests/SmsNotificationTests.cs index de04fad6..8ae127bc 100755 --- a/Digipost.Api.Client.Send.Tests/SmsNotificationTests.cs +++ b/Digipost.Api.Client.Send.Tests/SmsNotificationTests.cs @@ -52,4 +52,4 @@ public void WithSendingTime() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/ContentHash.cs b/Digipost.Api.Client.Send/ContentHash.cs index 3d763492..e149eb12 100755 --- a/Digipost.Api.Client.Send/ContentHash.cs +++ b/Digipost.Api.Client.Send/ContentHash.cs @@ -6,4 +6,4 @@ public class ContentHash public string Value { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/Document.cs b/Digipost.Api.Client.Send/Document.cs index da826d39..f1b1efdb 100755 --- a/Digipost.Api.Client.Send/Document.cs +++ b/Digipost.Api.Client.Send/Document.cs @@ -84,4 +84,4 @@ internal virtual byte[] ReadAllBytes(Stream documentStream) return File.ReadAllBytes(new StreamReader(documentStream).ReadToEnd()); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/IDocument.cs b/Digipost.Api.Client.Send/IDocument.cs index 37f970a2..fd4f2b2f 100755 --- a/Digipost.Api.Client.Send/IDocument.cs +++ b/Digipost.Api.Client.Send/IDocument.cs @@ -42,4 +42,4 @@ public interface IDocument /// byte[] ContentBytes { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/IInvoice.cs b/Digipost.Api.Client.Send/IInvoice.cs index e5d36966..c391aa36 100755 --- a/Digipost.Api.Client.Send/IInvoice.cs +++ b/Digipost.Api.Client.Send/IInvoice.cs @@ -24,4 +24,4 @@ public interface IInvoice /// DateTime Duedate { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/IMessage.cs b/Digipost.Api.Client.Send/IMessage.cs index fb1fa10d..4d5d61be 100755 --- a/Digipost.Api.Client.Send/IMessage.cs +++ b/Digipost.Api.Client.Send/IMessage.cs @@ -56,4 +56,4 @@ public interface IMessage : IRequestContent /// IPrintDetails PrintDetails { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/IMessageDeliveryResult.cs b/Digipost.Api.Client.Send/IMessageDeliveryResult.cs index 770ff435..55c12bcb 100755 --- a/Digipost.Api.Client.Send/IMessageDeliveryResult.cs +++ b/Digipost.Api.Client.Send/IMessageDeliveryResult.cs @@ -38,4 +38,4 @@ public interface IMessageDeliveryResult /// IEnumerable Attachments { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/Invoice.cs b/Digipost.Api.Client.Send/Invoice.cs index 420bdab1..0d77e67e 100755 --- a/Digipost.Api.Client.Send/Invoice.cs +++ b/Digipost.Api.Client.Send/Invoice.cs @@ -61,4 +61,4 @@ private static byte[] ExtractBytesFromStream(Stream fileStream) return bytes; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/Message.cs b/Digipost.Api.Client.Send/Message.cs index 668c8857..15c1c42b 100755 --- a/Digipost.Api.Client.Send/Message.cs +++ b/Digipost.Api.Client.Send/Message.cs @@ -40,4 +40,4 @@ public Message(Sender sender, IDigipostRecipient digipostRecipient, IDocument pr public List Attachments { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/MessageAction.cs b/Digipost.Api.Client.Send/MessageAction.cs index c08fcb4f..72af524d 100755 --- a/Digipost.Api.Client.Send/MessageAction.cs +++ b/Digipost.Api.Client.Send/MessageAction.cs @@ -78,4 +78,4 @@ private static void AddAttachmentsToContent(IMessage message, MultipartFormDataC } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/MessageDeliveryResult.cs b/Digipost.Api.Client.Send/MessageDeliveryResult.cs index 551f828f..9bd67e68 100755 --- a/Digipost.Api.Client.Send/MessageDeliveryResult.cs +++ b/Digipost.Api.Client.Send/MessageDeliveryResult.cs @@ -20,4 +20,4 @@ public class MessageDeliveryResult : IMessageDeliveryResult public IEnumerable Attachments { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Send/Properties/AssemblyInfo.cs index 3bf79bcb..5001b965 100755 --- a/Digipost.Api.Client.Send/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Send/Properties/AssemblyInfo.cs @@ -4,4 +4,4 @@ [assembly: AssemblyTitle("Digipost.Api.Client.Send")] [assembly: InternalsVisibleTo("Digipost.Api.Client,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] \ No newline at end of file +[assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] diff --git a/Digipost.Api.Client.Send/SendDataTransferObjectConverter.cs b/Digipost.Api.Client.Send/SendDataTransferObjectConverter.cs index 1a3e1a46..71078135 100755 --- a/Digipost.Api.Client.Send/SendDataTransferObjectConverter.cs +++ b/Digipost.Api.Client.Send/SendDataTransferObjectConverter.cs @@ -4,7 +4,6 @@ using Digipost.Api.Client.Common; using Digipost.Api.Client.Common.Extensions; using Digipost.Api.Client.Common.Recipient; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; namespace Digipost.Api.Client.Send { @@ -119,4 +118,4 @@ public static ISmsNotification FromDataTransferObject(smsnotification smsNotific return smsNotification; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Send/SendRequestHelper.cs b/Digipost.Api.Client.Send/SendRequestHelper.cs index 969e3e7a..28df96b1 100755 --- a/Digipost.Api.Client.Send/SendRequestHelper.cs +++ b/Digipost.Api.Client.Send/SendRequestHelper.cs @@ -36,4 +36,4 @@ internal Task PostIdentification(IIdentification identification, Uri uri) return _requestHelper.Post(httpContent, messageAction.RequestContent, uri); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Testklient/Program.cs b/Digipost.Api.Client.Testklient/Program.cs index 9d2d9c07..a8434133 100755 --- a/Digipost.Api.Client.Testklient/Program.cs +++ b/Digipost.Api.Client.Testklient/Program.cs @@ -26,4 +26,4 @@ public static void Main(string[] args) var result = client.SendMessage(message); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Testklient/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Testklient/Properties/AssemblyInfo.cs index 80b960fb..2eaebd92 100755 --- a/Digipost.Api.Client.Testklient/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Testklient/Properties/AssemblyInfo.cs @@ -2,4 +2,4 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("Digipost.Api.Client.Testklient")] -[assembly: ComVisible(false)] \ No newline at end of file +[assembly: ComVisible(false)] diff --git a/Digipost.Api.Client.Tests/CompareObjects/Comparator.cs b/Digipost.Api.Client.Tests/CompareObjects/Comparator.cs index 1b8e14c5..ad7d4a78 100755 --- a/Digipost.Api.Client.Tests/CompareObjects/Comparator.cs +++ b/Digipost.Api.Client.Tests/CompareObjects/Comparator.cs @@ -36,4 +36,4 @@ public bool Equal(object expected, object actual, out IEnumerable d return compareResult.AreEqual; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/CompareObjects/ComparisonConfiguration.cs b/Digipost.Api.Client.Tests/CompareObjects/ComparisonConfiguration.cs index a126fefb..a0f45a99 100755 --- a/Digipost.Api.Client.Tests/CompareObjects/ComparisonConfiguration.cs +++ b/Digipost.Api.Client.Tests/CompareObjects/ComparisonConfiguration.cs @@ -4,4 +4,4 @@ internal class ComparisonConfiguration { public bool IgnoreObjectTypes { get; set; } = false; } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/CompareObjects/Difference.cs b/Digipost.Api.Client.Tests/CompareObjects/Difference.cs index 1cfe6200..5488f091 100755 --- a/Digipost.Api.Client.Tests/CompareObjects/Difference.cs +++ b/Digipost.Api.Client.Tests/CompareObjects/Difference.cs @@ -10,4 +10,4 @@ internal class Difference : IDifference public string PropertyName { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/CompareObjects/IComparator.cs b/Digipost.Api.Client.Tests/CompareObjects/IComparator.cs index 16c3741d..5b46198c 100755 --- a/Digipost.Api.Client.Tests/CompareObjects/IComparator.cs +++ b/Digipost.Api.Client.Tests/CompareObjects/IComparator.cs @@ -8,4 +8,4 @@ public interface IComparator bool Equal(object expected, object actual, out IEnumerable differences); } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/CompareObjects/IDifference.cs b/Digipost.Api.Client.Tests/CompareObjects/IDifference.cs index 7cfd4028..b83a7c1a 100755 --- a/Digipost.Api.Client.Tests/CompareObjects/IDifference.cs +++ b/Digipost.Api.Client.Tests/CompareObjects/IDifference.cs @@ -10,4 +10,4 @@ public interface IDifference string PropertyName { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/DomainUtility.cs b/Digipost.Api.Client.Tests/DomainUtility.cs index f090d0ae..8dd80c38 100755 --- a/Digipost.Api.Client.Tests/DomainUtility.cs +++ b/Digipost.Api.Client.Tests/DomainUtility.cs @@ -6,7 +6,6 @@ using Digipost.Api.Client.Common.Print; using Digipost.Api.Client.Common.Recipient; using Digipost.Api.Client.Resources.Content; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Digipost.Api.Client.Send; using Environment = Digipost.Api.Client.Common.Environment; @@ -186,4 +185,4 @@ public static IPrintReturnRecipient GetPrintReturnRecipientWithNorwegianAddress( return new PrintReturnRecipient("name", GetNorwegianAddress()); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Fakes/FakeResponseHandler.cs b/Digipost.Api.Client.Tests/Fakes/FakeResponseHandler.cs index 3063d7f5..54897643 100755 --- a/Digipost.Api.Client.Tests/Fakes/FakeResponseHandler.cs +++ b/Digipost.Api.Client.Tests/Fakes/FakeResponseHandler.cs @@ -22,4 +22,4 @@ protected override async Task SendAsync( return await Task.FromResult(response).ConfigureAwait(false); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Fakes/IFakeHttpClientHandlerResponse.cs b/Digipost.Api.Client.Tests/Fakes/IFakeHttpClientHandlerResponse.cs index 6527abf7..d186aec1 100755 --- a/Digipost.Api.Client.Tests/Fakes/IFakeHttpClientHandlerResponse.cs +++ b/Digipost.Api.Client.Tests/Fakes/IFakeHttpClientHandlerResponse.cs @@ -9,4 +9,4 @@ public interface IFakeHttpClientHandlerResponse HttpContent HttpContent { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Integration/DigipostApiIntegrationTests.cs b/Digipost.Api.Client.Tests/Integration/DigipostApiIntegrationTests.cs index 1c000018..360ee1f5 100755 --- a/Digipost.Api.Client.Tests/Integration/DigipostApiIntegrationTests.cs +++ b/Digipost.Api.Client.Tests/Integration/DigipostApiIntegrationTests.cs @@ -150,4 +150,4 @@ public void ProperRequestSent() } } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Properties/AssemblyInfo.cs b/Digipost.Api.Client.Tests/Properties/AssemblyInfo.cs index fcd3b7b2..ef0d4ef5 100755 --- a/Digipost.Api.Client.Tests/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client.Tests/Properties/AssemblyInfo.cs @@ -6,4 +6,4 @@ [assembly: ComVisible(false)] [assembly: InternalsVisibleTo("Digipost.Api.Client.Inbox.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Send.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] \ No newline at end of file +[assembly: InternalsVisibleTo("Digipost.Api.Client.Common.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] diff --git a/Digipost.Api.Client.Tests/Smoke/ClientSmokeTests.cs b/Digipost.Api.Client.Tests/Smoke/ClientSmokeTests.cs index 7b52b092..9546cb78 100755 --- a/Digipost.Api.Client.Tests/Smoke/ClientSmokeTests.cs +++ b/Digipost.Api.Client.Tests/Smoke/ClientSmokeTests.cs @@ -41,4 +41,4 @@ public void Can_send_document_digipost_user() .Expect_message_to_have_status(MessageStatus.Delivered); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Smoke/TestHelper.cs b/Digipost.Api.Client.Tests/Smoke/TestHelper.cs index c67e063e..0fc6302e 100755 --- a/Digipost.Api.Client.Tests/Smoke/TestHelper.cs +++ b/Digipost.Api.Client.Tests/Smoke/TestHelper.cs @@ -131,4 +131,4 @@ public void Expect_search_to_have_result() Assert.InRange(_searchResult.PersonDetails.ToList().Count, 1, 11); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Utilities/ByteUtility.cs b/Digipost.Api.Client.Tests/Utilities/ByteUtility.cs index cd0f426d..f3dfe763 100755 --- a/Digipost.Api.Client.Tests/Utilities/ByteUtility.cs +++ b/Digipost.Api.Client.Tests/Utilities/ByteUtility.cs @@ -11,4 +11,4 @@ public static byte[] GetBytes(string str) return bytes; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client.Tests/Utilities/SenderUtility.cs b/Digipost.Api.Client.Tests/Utilities/SenderUtility.cs index ae6f9b30..a162becb 100755 --- a/Digipost.Api.Client.Tests/Utilities/SenderUtility.cs +++ b/Digipost.Api.Client.Tests/Utilities/SenderUtility.cs @@ -28,7 +28,7 @@ public static TestSender GetSender(TestEnvironment testEnvironment) 1010, digipostTestintegrasjonforDigitalPostThumbprint, Environment.Qa, - new RecipientById(IdentificationType.DigipostAddress, "digipost.testintegrasjon.for.digita#VTGM") + new RecipientById(IdentificationType.DigipostAddress, "digipost.testintegrasjon.for.digita#VZJS") ); default: throw new ArgumentOutOfRangeException(nameof(testEnvironment), testEnvironment, null); @@ -60,4 +60,4 @@ public TestSender(long id, string certificateThumbprint, Environment environment public RecipientById Recipient { get; set; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client/Api/SendMessageApi.cs b/Digipost.Api.Client/Api/SendMessageApi.cs index 7d181c67..b36a8ec5 100755 --- a/Digipost.Api.Client/Api/SendMessageApi.cs +++ b/Digipost.Api.Client/Api/SendMessageApi.cs @@ -7,7 +7,6 @@ using Digipost.Api.Client.Common.Identify; using Digipost.Api.Client.Common.Search; using Digipost.Api.Client.Extensions; -using Digipost.Api.Client.Scripts.Xsd.XsdToCode.Code; using Digipost.Api.Client.Send; namespace Digipost.Api.Client.Api @@ -113,4 +112,4 @@ public async Task SearchAsync(string search) return searchDetailsResult; } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client/DigipostClient.cs b/Digipost.Api.Client/DigipostClient.cs index cda2f424..519140ac 100755 --- a/Digipost.Api.Client/DigipostClient.cs +++ b/Digipost.Api.Client/DigipostClient.cs @@ -86,4 +86,4 @@ public Task SearchAsync(string query) return _api.SearchAsync(query); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client/Extensions/StringExtensions.cs b/Digipost.Api.Client/Extensions/StringExtensions.cs index 8105bd11..0fb872d3 100755 --- a/Digipost.Api.Client/Extensions/StringExtensions.cs +++ b/Digipost.Api.Client/Extensions/StringExtensions.cs @@ -17,4 +17,4 @@ public static string RemoveReservedUriCharacters(this string str) return pattern.Replace(str, ""); } } -} \ No newline at end of file +} diff --git a/Digipost.Api.Client/Properties/AssemblyInfo.cs b/Digipost.Api.Client/Properties/AssemblyInfo.cs index c0d9bc56..3a50befd 100755 --- a/Digipost.Api.Client/Properties/AssemblyInfo.cs +++ b/Digipost.Api.Client/Properties/AssemblyInfo.cs @@ -4,4 +4,4 @@ [assembly: AssemblyTitle("Digipost.Api.Client")] [assembly: InternalsVisibleTo("Digipost.Api.Client.Tests,PublicKey=0024000004800000940000000602000000240000525341310004000001000100316e4dede15e9c7abbb2af935ae2a983f3df3d04edf806ac01cba681ca15781bd969d78556a6f1edb79db27e4be9b205335fa73d0d6b8df239d5867540c55171fbf63aa667dc46e871e1399da71e38af47b46eca3d3830629979975ccd92eb1cb59fa6d21f95245106a3ee8853d43c2e9096f114fb7bc377661c60264dc064ad")] -[assembly: ComVisible(false)] \ No newline at end of file +[assembly: ComVisible(false)] diff --git a/SharedAssemblyInfo.cs b/SharedAssemblyInfo.cs index 8d56be44..4f555640 100755 --- a/SharedAssemblyInfo.cs +++ b/SharedAssemblyInfo.cs @@ -4,8 +4,8 @@ [assembly: AssemblyTrademark("Digipost AS")] [assembly: AssemblyProduct("Digipost API Client")] [assembly: AssemblyDescription("Digipost Client library for API integration.")] -[assembly: AssemblyVersion("8.0.0")] -[assembly: AssemblyFileVersion("8.0.0")] -[assembly: AssemblyInformationalVersion("8.0.0")] +[assembly: AssemblyVersion("8.1.0")] +[assembly: AssemblyFileVersion("8.1.0")] +[assembly: AssemblyInformationalVersion("8.1.0")] [assembly: AssemblyCulture("")] -[assembly: AssemblyCopyright("© 2015-2017 Digipost AS")] \ No newline at end of file +[assembly: AssemblyCopyright("© 2015-2017 Digipost AS")] diff --git a/digipost-api-client.sln.DotSettings b/digipost-api-client.sln.DotSettings index 7813cf06..7da8712b 100755 --- a/digipost-api-client.sln.DotSettings +++ b/digipost-api-client.sln.DotSettings @@ -8,6 +8,7 @@ 0 1 1 + True False False False