' Options: 'Date: 2024-12-03 18:27:41 '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: UpdateRebateCode.* '''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.Interfaces 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 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 Public Partial Class UpdateRebateCode Implements IReturn(Of RebateCodeResponse) Implements ICompany Public Sub New() DaysOfWeek = New List(Of Integer) Services = New List(Of Integer) Customers = New List(Of Guid) End Sub ''' '''Id of the rebate code ''' Public Overridable Property Id As Nullable(Of Integer) Public Overridable Property CompanyId As Nullable(Of Guid) ''' '''The default value is 9999 ''' Public Overridable Property MaxNumberOfUses As Nullable(Of Integer) ''' '''The default value is 1 ''' Public Overridable Property MaxNumberOfUsesPerCustomer As Nullable(Of Integer) ''' '''AutoGenerateRebateCodeSign=true - random generate code ''' Public Overridable Property AutoGenerateRebateCodeSign As Boolean ''' '''1 - Percent, 2 - Сurrency ''' Public Overridable Property RebateCodeTypeId As Integer ''' ''' ''' Public Overridable Property ValidFrom As Nullable(Of Date) ''' ''' ''' Public Overridable Property ValidTo As Nullable(Of 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 Nullable(Of 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 Nullable(Of TimeSpan) Public Overridable Property RebateCodeValue As Nullable(Of Integer) ''' '''Is empty - random generate code, is not empty - more than four letters, unique among active codes ''' Public Overridable Property RebateCodeSign As String ''' ''' ''' Public Overridable Property PersonalNote As String ''' ''' ''' Public Overridable Property DaysOfWeek As List(Of Integer) ''' ''' ''' Public Overridable Property Services As List(Of Integer) ''' ''' ''' Public Overridable Property Customers As List(Of Guid) End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace