' Options: 'Date: 2025-12-14 05:17:41 'Version: 8.80 '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: False '''ExportValueTypes: False 'IncludeTypes: CreateVossUsageTermination.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.IO 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.VossIntegration.ApiTools.Enums Imports BokaMera.VossIntegration.ApiTools.Model Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CreateVossUsageTermination Implements IReturn(Of CreateUsageTerminationResult) ''' '''The company id ''' Public Overridable Property CompanyId As Guid ''' '''Usage Id ''' Public Overridable Property Id As String Public Overridable Property InvoiceLineTexts As List(Of String) = New List(Of String) Public Overridable Property TerminationReasonComment As String Public Overridable Property TerminationReasonId As Guid ''' '''Credit behaviour: <br /> 1. Full - usage will be credited in full <br /> 2. None - no credit will be created ''' Public Overridable Property Behaviour As UsageBehaviourEnum ''' '''Credit kind: <br /> 1. Normal - default credit type <br /> 2. Internal - corresponding credit will be marked as internal in invoice file line ''' Public Overridable Property CreditKind As CreditKindEnum End Class End Namespace Namespace BokaMera.VossIntegration.ApiTools.Enums Public Enum CreditKindEnum Normal Internal End Enum Public Enum ProductTypeEnum Main Addon License Usage End Enum Public Enum UsageBehaviourEnum Full None End Enum End Namespace Namespace BokaMera.VossIntegration.ApiTools.Model Public Partial Class CreateUsageTerminationResult Public Overridable Property ScheduledDate As Date Public Overridable Property Reason As SubscriptionItemTerminationReasonDto Public Overridable Property CreditOptions As UsageCreditOptionsDto Public Overridable Property CustomerBalanceChange As CustomerBalanceChangeDto End Class Public Partial Class CustomerBalanceChangeDto Public Overridable Property Items As List(Of CustomerBalanceChangeItemDto) = New List(Of CustomerBalanceChangeItemDto) Public Overridable Property TotalAmount As Double Public Overridable Property TotalDiscountAmount As Double End Class Public Partial Class CustomerBalanceChangeItemDto Public Overridable Property ProductType As ProductTypeEnum Public Overridable Property Id As Guid Public Overridable Property Name As String Public Overridable Property ProductGroupId As Guid Public Overridable Property ProductGroupName As String Public Overridable Property Quantity As Double Public Overridable Property Amount As Double Public Overridable Property DiscountAmount As Double Public Overridable Property TotalAmount As Double Public Overridable Property InvoiceRecipientCustomerId As Guid End Class Public Partial Class SubscriptionItemTerminationReasonDto Public Overridable Property ReasonId As Guid Public Overridable Property ReasonName As String Public Overridable Property ReasonExternalId As String Public Overridable Property SubReasonId As Guid? Public Overridable Property SubReasonName As String Public Overridable Property SubReasonExternalId As String Public Overridable Property Comment As String End Class Public Partial Class UsageCreditOptionsDto Public Overridable Property UsageBehaviour As UsageBehaviourEnum Public Overridable Property CreditKind As CreditKindEnum End Class End Namespace End Namespace