' Options:
'Date: 2024-12-27 04:09:53
'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: SearchAccountsAsync.*
'''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.Requests
Imports PwC.Metering.Core.Services.Contracts.Helpers
Imports PwC.Metering.Core.Domain.Concretes.Models
Imports PwC.Metering.Core.Domain.Concretes.Interfaces
Imports PwC.Metering.Core.Services.Contracts.Responses
Namespace Global
Namespace PwC.Metering.Core.Domain.Concretes.Interfaces
'''
''' 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
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 to search for accounts in an asynchronous operation.
'''
Public Partial Class SearchAccountsAsync
Inherits SearchAccountsBase
Implements IReturn(Of AccountQueryResponse)
'''
'''The unique identifier of the user account.
'''
Public Overridable Property AccountId As Nullable(Of Integer)
'''
'''The unique identifier of the customer associated with this account.
'''
Public Overridable Property CustomerId As Nullable(Of Integer)
'''
'''The user name of the user account.
'''
Public Overridable Property UserName As String
'''
'''Search by using the user name that starts with the specified value.
'''
Public Overridable Property UserNameStartsWith As String
'''
'''Search by using the user name that ends with the specified value.
'''
Public Overridable Property UserNameEndsWith As String
'''
'''Search by using the user name that contains the specified value.
'''
Public Overridable Property UserNameContains As String
'''
'''The display name of the user account.
'''
Public Overridable Property DisplayName As String
'''
'''The e-mail address of the user account.
'''
Public Overridable Property Email As String
'''
'''Search by using the e-mail address of the user account that starts with the specified value.
'''
Public Overridable Property EmailStartsWith As String
'''
'''Search by using the e-mail address of the user account that ends with the specified value.
'''
Public Overridable Property EmailEndsWith As String
'''
'''Search by using the e-mail address of the user account that contains the specified value.
'''
Public Overridable Property EmailContains As String
'''
'''Search by using the display name that starts with the specified value.
'''
Public Overridable Property DisplayNameStartsWith As String
'''
'''Search by using the display name that ends with the specified value.
'''
Public Overridable Property DisplayNameEndsWith As String
'''
'''Search by using the display name that contains the specified value.
'''
Public Overridable Property DisplayNameContains As String
'''
'''Search with the profile URL of the user account.
'''
Public Overridable Property ProfileUrl As String
'''
'''Should the related products of the account be included in the retrieved accounts?
'''
Public Overridable Property IncludeProducts As Boolean
'''
'''Should the related orders of the account be included in the retrieved accounts?
'''
Public Overridable Property IncludeOrders As Boolean
'''
'''Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true.
'''
Public Overridable Property SkipProducts As Nullable(Of Integer)
'''
'''Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true.
'''
Public Overridable Property TakeProducts As Nullable(Of Integer)
'''
'''Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true.
'''
Public Overridable Property SkipOrders As Nullable(Of Integer)
'''
'''Specifies the number of orders to include per account. 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 to search for accounts.
'''
Public Partial Class SearchAccountsBase
Inherits PaginationBase
Implements IGet
'''
'''The unique identifier of the user account.
'''
Public Overridable Property AccountId As Nullable(Of Integer)
'''
'''The unique identifier of the customer associated with this account.
'''
Public Overridable Property CustomerId As Nullable(Of Integer)
'''
'''The user name of the user account.
'''
Public Overridable Property UserName As String
'''
'''Search by using the user name that starts with the specified value.
'''
Public Overridable Property UserNameStartsWith As String
'''
'''Search by using the user name that ends with the specified value.
'''
Public Overridable Property UserNameEndsWith As String
'''
'''Search by using the user name that contains the specified value.
'''
Public Overridable Property UserNameContains As String
'''
'''The display name of the user account.
'''
Public Overridable Property DisplayName As String
'''
'''The e-mail address of the user account.
'''
Public Overridable Property Email As String
'''
'''Search by using the e-mail address of the user account that starts with the specified value.
'''
Public Overridable Property EmailStartsWith As String
'''
'''Search by using the e-mail address of the user account that ends with the specified value.
'''
Public Overridable Property EmailEndsWith As String
'''
'''Search by using the e-mail address of the user account that contains the specified value.
'''
Public Overridable Property EmailContains As String
'''
'''Search by using the display name that starts with the specified value.
'''
Public Overridable Property DisplayNameStartsWith As String
'''
'''Search by using the display name that ends with the specified value.
'''
Public Overridable Property DisplayNameEndsWith As String
'''
'''Search by using the display name that contains the specified value.
'''
Public Overridable Property DisplayNameContains As String
'''
'''Search with the profile URL of the user account.
'''
Public Overridable Property ProfileUrl As String
'''
'''Should the related products of the account be included in the retrieved accounts?
'''
Public Overridable Property IncludeProducts As Boolean
'''
'''Should the related orders of the account be included in the retrieved accounts?
'''
Public Overridable Property IncludeOrders As Boolean
'''
'''Specifies the number of products to skip per account. Applicable only when 'IncludeProducts' is true.
'''
Public Overridable Property SkipProducts As Nullable(Of Integer)
'''
'''Specifies the number of products to include per account. Applicable only when 'IncludeProducts' is true.
'''
Public Overridable Property TakeProducts As Nullable(Of Integer)
'''
'''Specifies the number of orders to skip per account. Applicable only when 'IncludeOrders' is true.
'''
Public Overridable Property SkipOrders As Nullable(Of Integer)
'''
'''Specifies the number of orders to include per account. 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 query response that contains a structured error information and encapsulates user accounts.
'''
Public Partial Class AccountQueryResponse
Inherits QueryResponse(Of Account)
Public Sub New()
ProductsMap = New Dictionary(Of Integer, List(Of Product))
OrdersMap = New Dictionary(Of Integer, List(Of Order))
Results = New List(Of Account)
Meta = New Dictionary(Of String, String)
End Sub
'''
'''The dictionary of products associated to found user accounts.
'''
Public Overridable Property ProductsMap As Dictionary(Of Integer, List(Of Product))
'''
'''The dictionary of orders associated with each found user account.
'''
Public Overridable Property OrdersMap As Dictionary(Of Integer, List(Of Order))
Public Overridable Property Offset As Integer
Public Overridable Property Total As Integer
Public Overridable Property Results As List(Of Account)
Public Overridable Property Meta As Dictionary(Of String, String)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace