' Options: 'Date: 2025-06-28 08:05:23 'Version: 8.23 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://api.bookmore.com ' '''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: CompanyIncentiveQuery.* '''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 System.Net Imports System.Net.Http.Headers Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Db.Incentive Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Db.Incentive Public Enum CriteriaType LicenseAvailability SmsActivation eAccountingActivation CodeLockActivation SocialActivation OnlinePaymentActivation FollowUpMessageActivation RatingActivation End Enum Public Enum IncentiveRecurrenceFrequency OneTime = 1 Weekly = 2 Monthly = 3 End Enum End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CompanyIncentiveQuery Implements IReturn(Of CompanyIncentivesQueryResponse) Implements ICompany ''' '''The company id, if empty will use the company id for the user you are logged in with. ''' Public Overridable Property CompanyId As Nullable(Of Guid) End Class Public Partial Class CompanyIncentiveResponse Public Sub New() CompanyIds = New List(Of Guid) Criteria = New List(Of IncentiveCriteriaDto) End Sub Public Overridable Property Id As Integer Public Overridable Property Heading As String Public Overridable Property StorageUrl As String Public Overridable Property SuccessButtonText As String Public Overridable Property ActionId As Integer Public Overridable Property InitialDelayInSeconds As Integer Public Overridable Property MaxDisplayCount As Nullable(Of Integer) Public Overridable Property ValidFrom As DateTimeOffset Public Overridable Property ValidTo As DateTimeOffset Public Overridable Property Action As IncentiveActionResponse Public Overridable Property Payload As String Public Overridable Property Body As String Public Overridable Property Frequency As IncentiveRecurrenceFrequency Public Overridable Property InitialDeferredDays As Integer Public Overridable Property RecurrenceInterval As UInt32 Public Overridable Property Active As Boolean Public Overridable Property CompanyIds As List(Of Guid) Public Overridable Property Criteria As List(Of IncentiveCriteriaDto) End Class Public Partial Class CompanyIncentivesQueryResponse Public Overridable Property Incentives As IList(Of CompanyIncentiveResponse) Public Overridable Property CompanyId As Guid End Class Public Partial Class IncentiveActionResponse Public Overridable Property Id As Integer Public Overridable Property Description As String Public Overridable Property ActionType As IncentiveActionType Public Overridable Property Page As String Public Overridable Property Segment As String Public Overridable Property Element As String Public Overridable Property LicenseTypeId As Nullable(Of Integer) Public Overridable Property SuggestedLicenseToUpgrade As LicenseTypeQueryResponse End Class Public Partial Class IncentiveCriteriaDto Public Overridable Property CriteriaType As CriteriaType Public Overridable Property Value As String Public Overridable Property InvertCondition As Boolean End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace