' Options: 'Date: 2024-11-21 12:04:55 '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: CompanyCreditCardInformation.* '''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.IO Imports BokaMera.API.ServiceModel.Interfaces Imports BokaMera.API.ServiceModel.Db Imports BokaMera.API.ServiceModel.Dtos Namespace Global Namespace BokaMera.API.ServiceModel.Db Public Partial Class BaseModel End Class Public Partial Class CreditCard Inherits BaseModel Public Overridable Property IsValid As Boolean Public Overridable Property CompanyId As Guid Public Overridable Property Id As Integer Public Overridable Property Name As String Public Overridable Property Active As Boolean Public Overridable Property Type As String Public Overridable Property ExpYear As String Public Overridable Property ExpMonth As String Public Overridable Property TicketId As String Public Overridable Property Updated As Nullable(Of Date) Public Overridable Property Created As Nullable(Of Date) Public Overridable Property ModifiedDate As Nullable(Of DateTimeOffset) End Class End Namespace Namespace BokaMera.API.ServiceModel.Dtos Public Partial Class CompanyCreditCardInformation Inherits QueryDb(Of CreditCard, CompanyCreditCardQueryResponse) Implements IReturn(Of QueryResponse(Of CompanyCreditCardQueryResponse)) 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) ''' '''If you want to include only active credit cards ''' Public Overridable Property Active As Boolean ''' '''If you want to include only valid credit cards (not expired and valid) ''' Public Overridable Property IsValid As Boolean End Class Public Partial Class CompanyCreditCardQueryResponse ''' '''The credit card id ''' Public Overridable Property Id As Integer ''' '''The credit card name ''' Public Overridable Property Name As String ''' '''If the credit card is active ''' Public Overridable Property Active As Boolean ''' '''If the credit card is valid (active and not expired) ''' Public Overridable Property IsValid As Boolean ''' '''The credit card type ''' Public Overridable Property Type As String ''' '''The credit card expiration Year ''' Public Overridable Property ExpYear As String ''' '''The credit card expiration month ''' Public Overridable Property ExpMonth As String ''' '''The credit card ticket name. This is secret information and won't be displayed ''' Public Overridable Property TicketId As String ''' '''The date when the credit card was saved. ''' Public Overridable Property Created As Nullable(Of Date) ''' '''The date when the credit card was updated. ''' Public Overridable Property Updated As Nullable(Of Date) End Class End Namespace Namespace BokaMera.API.ServiceModel.Interfaces Public Interface ICompany Property CompanyId As Nullable(Of Guid) End Interface End Namespace End Namespace