' Options: 'Date: 2024-12-03 18:25:19 '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: CreateLicense.* '''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.Db Imports BokaMera.API.ServiceModel.Dtos Imports PaysonIntegrationCO2.Models.Enums Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class Country Inherits BaseModel Public Overridable Property CurrencyId As String Public Overridable Property CurrencyInfo As Currency Public Overridable Property Name As String Public Overridable Property Culture As String Public Overridable Property TimeZone As String Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) Public Overridable Property Id As String End Class Public Partial Class Currency Inherits BaseModel Public Overridable Property Name As String Public Overridable Property CurrencySign As String Public Overridable Property Active As Boolean Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) Public Overridable Property Id As String End Class Public Partial Class LicensePrice Inherits BaseModel Public Overridable Property Country As Country Public Overridable Property MonthlyPayment As Boolean Public Overridable Property LicenseTypeId As Integer Public Overridable Property CountryId As String Public Overridable Property Price As Integer Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class BillingInformationResponse Public Sub New() BillingMethodOptions = New List(Of BillingMethod) End Sub ''' '''The company id. ''' Public Overridable Property CompanyId As Guid ''' '''The prefered billing method. ''' Public Overridable Property BillingMethodId As Integer ''' '''The name that should be printed on the billing information, normally this would be your company name. ''' Public Overridable Property Name As String ''' '''If you want to add the attention to the billing address. ''' Public Overridable Property Attention As String ''' '''The street for the billing adress. This is required when having postal invoice as billing method. ''' Public Overridable Property Street1 As String ''' '''The street for the billing adress. ''' Public Overridable Property Street2 As String ''' '''The zip code (postal code) for the billing adress. This is required when having postal invoice as billing method. ''' Public Overridable Property ZipCode As String ''' '''The city for the billing adress. This is required when having postal invoice as billing method. ''' Public Overridable Property City As String ''' '''The country for the billing adress. This is required when having postal invoice as billing method. ''' Public Overridable Property CountryId As String ''' '''The billing email. This is required when having email invoice as billing method. ''' Public Overridable Property Email As String ''' '''The company global location number. ''' Public Overridable Property GLN As String ''' '''You're internal rereference. ''' Public Overridable Property ReferenceLine1 As String ''' '''You're internal rereference. ''' Public Overridable Property ReferenceLine2 As String ''' '''The billing payment terms in days. This is default 15 days. ''' Public Overridable Property PaymentTermsDays As Integer ''' '''The company vat registration number. ''' Public Overridable Property VatRegistrationNumber As String ''' '''The billing method options to choose from ''' Public Overridable Property BillingMethodOptions As List(Of BillingMethod) End Class Public Partial Class CompanyLicenseQueryResponse Public Overridable Property Id As Integer Public Overridable Property TypeId As Integer Public Overridable Property Type As LicenseTypeQueryResponse Public Overridable Property ValidFrom As Date Public Overridable Property ValidTo As Date Public Overridable Property MetaData As String Public Overridable Property Active As Boolean Public Overridable Property Canceled As Boolean Public Overridable Property Updated As Date Public Overridable Property Created As Date End Class Public Partial Class CreateLicense Implements IReturn(Of CompanyLicenseQueryResponse) 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) ''' '''Id of the license type ''' Public Overridable Property TypeId As Nullable(Of Integer) ''' '''Any metadata connected to the license. In example for domain license set the requested domain name here. ''' Public Overridable Property MetaData As String ''' '''If you want to update your company billing information. Note, if no billing information is added before, you need to set this. ''' Public Overridable Property BillingInformation As BillingInformationResponse End Class Public Partial Class LicenseItemsResponse Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property AllowedItems As Integer End Class Public Partial Class LicenseTypeQueryResponse Public Sub New() Items = New List(Of LicenseItemsResponse) Prices = New List(Of LicensePrice) End Sub ''' '''The license type id ''' Public Overridable Property Id As Integer ''' '''The license type name ''' Public Overridable Property Name As String ''' '''The license type description ''' Public Overridable Property Description As String ''' '''If the license type is not a standard license but instead an extra license option. An example would be sending new letter license. ''' Public Overridable Property IsExtraLicenseOption As Boolean ''' '''The period of notice for the license in days. ''' Public Overridable Property PeriodOfNoticeDays As Integer ''' '''The license items for the license type ''' Public Overridable Property Items As List(Of LicenseItemsResponse) ''' '''The license prices in each country for the license type ''' Public Overridable Property Prices As List(Of LicensePrice) End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace Namespace PaysonIntegrationCO2.Models.Enums Public Enum Currency SEK = 1 EUR = 2 End Enum End Namespace End Namespace