' Options: 'Date: 2024-11-23 08:59:24 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.bokamera.se ' '''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: GetRebateCodeBySign.* '''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.Globalization Imports ServiceStack.Data Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class ArticleResponse Public Sub New() Services = New List(Of ArticleServiceRelation) ServiceIds = New List(Of Integer) End Sub Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property ArticleTypeId As Integer Public Overridable Property Description As String Public Overridable Property ImageUrl As String Public Overridable Property Active As Boolean Public Overridable Property Amount As Integer Public Overridable Property Price As Double Public Overridable Property CurrencyId As String Public Overridable Property UpdatedDate As Date Public Overridable Property CreatedDate As Date Public Overridable Property Services As List(Of ArticleServiceRelation) Public Overridable Property ServiceIds As List(Of Integer) Public Overridable Property PriceSign As String End Class Public Partial Class DaysOfWeekResponse Public Overridable Property Id As Integer Public Overridable Property DayOfWeek As String Public Overridable Property DayOfWeekTranslation As String Public Overridable Property DayOfWeekActive As Nullable(Of Boolean) Public Overridable Property DayOfWeekSortOrder As Nullable(Of Short) End Class Public Partial Class GetRebateCodeBySign Implements IReturn(Of RebateCodeResponse) ''' ''' ''' Public Overridable Property CompanyId As Guid ''' ''' ''' Public Overridable Property RebateCodeSign As String ''' ''' ''' Public Overridable Property ServiceId As Integer ''' '''The datetime for when to check if the code is valid ''' Public Overridable Property [Date] As Date ''' ''' ''' Public Overridable Property IncludeConnectedServices As Boolean ''' ''' ''' Public Overridable Property IncludeConnectedDaysOfWeek As Boolean ''' ''' ''' Public Overridable Property IncludeConnectedCustomers As Boolean ''' ''' ''' Public Overridable Property CustomerEmail As String End Class Public Partial Class RebateCodeCustomerResponse Public Overridable Property Id As Guid Public Overridable Property Firstname As String Public Overridable Property Lastname As String Public Overridable Property Email As String Public Overridable Property Phone As String Public Overridable Property ImageUrl As String End Class Public Partial Class RebateCodeResponse Public Sub New() DaysOfWeek = New List(Of DaysOfWeekResponse) Services = New List(Of RebateCodeServiceResponse) Transactions = New List(Of RebateCodeTransactionQueryResponse) Customers = New List(Of RebateCodeCustomerResponse) End Sub Public Overridable Property Id As Integer Public Overridable Property CompanyId As Nullable(Of Guid) Public Overridable Property ValidFrom As Date Public Overridable Property ValidTo As Date ''' '''If the price is only valid for specific days in week add a comma separated list of which days this day price belongs to, 1 = Monday .. 7 = Sunday. All old days connected will be removed on update. ''' Public Overridable Property FromTime As TimeSpan ''' '''If the price is only valid for a specific time span during a time of day enter the FromTime and ToTime parameters. ''' Public Overridable Property ToTime As TimeSpan Public Overridable Property CreatedBy As String Public Overridable Property Created As Date Public Overridable Property UpdatedBy As String Public Overridable Property Updated As Date Public Overridable Property PersonalNote As String Public Overridable Property RebateCodeSign As String Public Overridable Property RebateCodeValue As Integer Public Overridable Property RebateCodeTypeId As Integer Public Overridable Property Name As String Public Overridable Property RebateCodeStatusId As Integer Public Overridable Property StatusName As String Public Overridable Property MaxNumberOfUses As Integer Public Overridable Property MaxNumberOfUsesPerCustomer As Integer Public Overridable Property NumberOfUsesUsed As Integer Public Overridable Property DaysOfWeek As List(Of DaysOfWeekResponse) Public Overridable Property Services As List(Of RebateCodeServiceResponse) Public Overridable Property Article As ArticleResponse Public Overridable Property Transactions As List(Of RebateCodeTransactionQueryResponse) Public Overridable Property RemainingAmount As Nullable(Of Double) Public Overridable Property RemainingUsage As Nullable(Of Integer) Public Overridable Property Customers As List(Of RebateCodeCustomerResponse) Public Overridable Property ResponseStatus As ResponseStatus Public Overridable Property PaymentReceived As Boolean Public Overridable Property RebateCodeCurrencySign As String Public Overridable Property ActiveByStatus As Boolean Public Overridable Property PriceSign As String Public Overridable Property RebateCodeTypeName As String End Class Public Partial Class RebateCodeServiceResponse Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Description As String Public Overridable Property Active As Boolean End Class Public Partial Class RebateCodeTransactionQueryResponse Public Overridable Property Id As Integer Public Overridable Property CompanyId As Guid Public Overridable Property Note As String Public Overridable Property RebateCodeId As Integer Public Overridable Property RebateCodeSign As String Public Overridable Property RebateCodeTypeId As Nullable(Of Integer) Public Overridable Property RebateCodeTypeName As String Public Overridable Property Amount As Double Public Overridable Property BookingId As Nullable(Of Integer) Public Overridable Property UpdatedDate As Date Public Overridable Property CreatedDate As Date Public Overridable Property Service As RebateCodeServiceResponse Public Overridable Property Customer As RebateCodeCustomerResponse Public Overridable Property PriceSign As String End Class End Namespace End Namespace