' Options: 'Date: 2024-06-18 12:21:57 'Version: 8.12 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://taxfiling.pwc.de ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: True '''ExportValueTypes: False 'IncludeTypes: RetrieveAccountAsync.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.Net Imports PwC.Metering.Core.Services.Contracts.Helpers Imports PwC.Metering.Core.Services.Contracts.Requests Imports PwC.Metering.Core.Domain.Concretes.Models Imports PwC.Metering.Core.Services.Contracts.Responses Imports PwC.Metering.Core.Domain.Concretes.Interfaces Namespace Global Namespace PwC.Metering.Core.Domain.Concretes.Interfaces ''' ''' Specifies that a data type should have a 'Name' property. ''' Public Interface IHasName ''' '''The 'Name' property. ''' Property Name As String End Interface ''' ''' Specifies that a data type should have a 'UserName' property. ''' Public Interface IHasUserName Property UserName As String End Interface End Namespace Namespace PwC.Metering.Core.Domain.Concretes.Models ''' '''Represents a user account. ''' Public Partial Class Account Implements IHasUserName Public Sub New() Roles = New List(Of String) Permissions = New List(Of String) Meta = New Dictionary(Of String, String) End Sub ''' '''The unique identifier of the user account. ''' Public Overridable Property Id As Integer ''' '''The position of this instance in a collection of 'Account' instances ''' Public Overridable Property Index As Integer ''' '''The unique identifier of the customer associated with this account. ''' Public Overridable Property RefId As Nullable(Of Integer) ''' '''The string representation of the unique identifier of a reference that associates with this user account. This should have the same value as 'RefId'. ''' Public Overridable Property RefIdStr As String ''' '''The unique user name of the user account. ''' Public Overridable Property UserName As String ''' '''The electronic mail address of the user account. ''' Public Overridable Property Email As String ''' '''The friendly name of the user account. ''' Public Overridable Property DisplayName As String ''' '''The first name of the owner (natural person) of the user account. ''' Public Overridable Property FirstName As String ''' '''The last name of the owner (natural person) of the user account. ''' Public Overridable Property LastName As String ''' '''The unique identifier of the customer associated with this account. ''' Public Overridable Property FullName As String ''' '''The gender of the owner (natural person) of the user account. ''' Public Overridable Property Gender As String ''' '''The language of the owner of teh user account. ''' Public Overridable Property Language As String ''' '''The company, where the user is an employee. ''' Public Overridable Property Company As String ''' '''The profile URL of the user account. ''' Public Overridable Property ProfileUrl As String ''' '''The roles assigned to the user account. ''' Public Overridable Property Roles As List(Of String) ''' '''The permissions assigned to the user account. ''' Public Overridable Property Permissions As List(Of String) ''' '''The primary e-mail address of the user. ''' Public Overridable Property PrimaryEmail As String ''' '''Random data to enhance the security of the user password. ''' Public Overridable Property Salt As String ''' '''The hash value of the user password that the PBKDF2 algorithm produces. ''' Public Overridable Property PasswordHash As String ''' '''The hash value of the user password that the DigestHa1 algorithm produces. ''' Public Overridable Property DigestHa1Hash As String ''' '''The number of times the user account tried to sign in but failed. ''' Public Overridable Property InvalidLoginAttempts As Integer ''' '''The last time the user account attempted a sign in. ''' Public Overridable Property LastLoginAttempt As Nullable(Of Date) ''' '''The date and time when the user acount was denied access. ''' Public Overridable Property LockedDate As Nullable(Of Date) ''' '''The date and time when the user account was created. ''' Public Overridable Property CreatedDate As Date ''' '''The date and time when the user account was last modified. ''' Public Overridable Property ModifiedDate As Date ''' '''The telephone number of the owner of the user account. ''' Public Overridable Property PhoneNumber As String ''' '''The birth date of the owner of the user account ''' Public Overridable Property BirthDate As Nullable(Of Date) ''' '''The string representation of the birth date of the user account. ''' Public Overridable Property BirthDateRaw As String ''' '''The mail address of the user account. ''' Public Overridable Property Address As String ''' '''Additional information for the specified 'Address' of the user. ''' Public Overridable Property Address2 As String ''' '''The city of the owner of the user account. ''' Public Overridable Property City As String ''' '''The state of the owner of the user account. ''' Public Overridable Property State As String ''' '''The country of the owner of the user account. It is recommended to use the name of the associated 'Customer'. ''' Public Overridable Property Country As String ''' '''The locale of the user account. ''' Public Overridable Property Culture As String ''' '''The mail address of the user account. ''' Public Overridable Property MailAddress As String ''' '''The nickname of the user of the user account. ''' Public Overridable Property Nickname As String ''' '''The postal code of the user account. ''' Public Overridable Property PostalCode As String ''' '''The time zone of the user of the user account. ''' Public Overridable Property TimeZone As String ''' '''Additional information to attach to the user account. ''' Public Overridable Property Meta As Dictionary(Of String, String) End Class ''' '''Represents a commission to consume services. ''' Public Partial Class Order Implements IHasName ''' '''The unique identifier of the order. ''' Public Overridable Property Id As Integer ''' '''The unique identifier of the product, for which the order is made. ''' Public Overridable Property ProductId As Integer ''' '''The unique identifier of the user account, who placed the order. ''' Public Overridable Property AccountId As Integer ''' '''A name to identify the order. ''' Public Overridable Property Name As String ''' '''The name of the service, for which the order was made. ''' Public Overridable Property ServiceName As String ''' '''The time stamp at which the order was initiated. ''' Public Overridable Property RequestTimestamp As Nullable(Of Date) ''' '''The time stamp at which the order was completed. ''' Public Overridable Property ResponseTimestamp As Nullable(Of Date) ''' '''The URI from which the order was initiated. ''' Public Overridable Property RequestUri As String ''' '''The HTTP method of the order request. ''' Public Overridable Property RequestHttpMethod As String ''' '''The duration of the order request. ''' Public Overridable Property RequestDuration As Nullable(Of TimeSpan) ''' '''The HTTP status code of the order request. ''' Public Overridable Property ResponseStatusCode As HttpStatusCode ''' '''The IP address of client, who placed the order. ''' Public Overridable Property ClientIPAddress As String ''' '''The unit of measurement for the order. ''' Public Overridable Property UnitOfMeasurement As String ''' '''The type of process, for which the order is charged. ''' Public Overridable Property ProcessType As String ''' '''The type of data, for which the order is charged. ''' Public Overridable Property DataType As String ''' '''The name of the data, for which the order is charged. ''' Public Overridable Property DataName As String ''' '''The date of creation of the order. ''' Public Overridable Property CreationDate As Date ''' '''The final date to retain the order in the records. After this date, the order is expunged from the records. ''' Public Overridable Property ExpiryDate As Nullable(Of Date) ''' '''Indicates whether the order is simulated for test purposes. True if the order is simulated for test purposes; otherwise it is a false order for production purposes. ''' Public Overridable Property IsTest As Boolean End Class ''' '''Represents a product. ''' Public Partial Class Product Implements IHasName Public Sub New() Tags = New List(Of String) End Sub ''' '''The unique identifier of the product. ''' Public Overridable Property Id As Integer ''' '''The position of this instance in a collection of 'Product' instances ''' Public Overridable Property Index As Integer ''' '''The name of the product. ''' Public Overridable Property Name As String ''' '''The version of the product. ''' Public Overridable Property Version As String ''' '''The version of the product. ''' Public Overridable Property Description As String ''' '''Tags associated with the product. ''' Public Overridable Property Tags As List(Of String) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Helpers Public Interface IPaginate Property Skip As Nullable(Of Integer) Property Take As Nullable(Of Integer) End Interface ''' '''The number of query results to skip. ''' Public Partial Class PaginationBase Implements IPaginate ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Requests ''' '''Represents a service request to retrieve an account in an asynchronous operation. ''' Public Partial Class RetrieveAccountAsync Inherits RetrieveAccountBase Implements IReturn(Of AccountResponse) ''' '''The user name of the account. ''' Public Overridable Property UserName As String ''' '''Should the related products of the account be included in the retrieved account? ''' Public Overridable Property IncludeProducts As Nullable(Of Boolean) ''' '''Should the related orders of the account be included in the retrieved account? ''' Public Overridable Property IncludeOrders As Nullable(Of Boolean) ''' '''Specifies the number of products to skip. Applicable only when 'IncludeProducts' is true. ''' Public Overridable Property SkipProducts As Nullable(Of Integer) ''' '''Specifies the number of products to include. Applicable only when 'IncludeProducts' is true. ''' Public Overridable Property TakeProducts As Nullable(Of Integer) ''' '''Specifies the number of orders to skip. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property SkipOrders As Nullable(Of Integer) ''' '''Specifies the number of orders to include. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property TakeOrders As Nullable(Of Integer) ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class ''' '''Specifies a service request to retrieve an account. ''' Public Partial Class RetrieveAccountBase Inherits PaginationBase Implements IGet ''' '''The user name of the account. ''' Public Overridable Property UserName As String ''' '''Should the related products of the account be included in the retrieved account? ''' Public Overridable Property IncludeProducts As Nullable(Of Boolean) ''' '''Should the related orders of the account be included in the retrieved account? ''' Public Overridable Property IncludeOrders As Nullable(Of Boolean) ''' '''Specifies the number of products to skip. Applicable only when 'IncludeProducts' is true. ''' Public Overridable Property SkipProducts As Nullable(Of Integer) ''' '''Specifies the number of products to include. Applicable only when 'IncludeProducts' is true. ''' Public Overridable Property TakeProducts As Nullable(Of Integer) ''' '''Specifies the number of orders to skip. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property SkipOrders As Nullable(Of Integer) ''' '''Specifies the number of orders to include. Applicable only when 'IncludeOrders' is true. ''' Public Overridable Property TakeOrders As Nullable(Of Integer) ''' '''The number of query results to skip. ''' Public Overridable Property Skip As Nullable(Of Integer) ''' '''The number of query results to include. ''' Public Overridable Property Take As Nullable(Of Integer) End Class End Namespace Namespace PwC.Metering.Core.Services.Contracts.Responses ''' '''Represents a service response that contains a structured error information and encapsulates a user account. ''' Public Partial Class AccountResponse Inherits ServiceResponseBase Public Sub New() Products = New List(Of Product) Orders = New List(Of Order) End Sub ''' '''The user account encapsulated in the response. ''' Public Overridable Property Account As Account ''' '''The index position of the reponse in a collection, if it were returned together with other responses. ''' Public Overridable Property Index As Long ''' '''The list of products associated with the encapsulated user account. ''' Public Overridable Property Products As List(Of Product) ''' '''The list of orders associated with the encapsulated user account. ''' Public Overridable Property Orders As List(Of Order) ''' '''Data structure that holds error information from a service operation. ''' Public Overridable Property ResponseStatus As ResponseStatus End Class ''' '''Specifies a base service response class that contains a structured error information. ''' Public Partial Class ServiceResponseBase ''' '''Data structure that holds error information from a service operation. ''' Public Overridable Property ResponseStatus As ResponseStatus End Class End Namespace End Namespace