' Options:
'Date: 2025-04-12 16:53:49
'Version: 8.23
'Tip: To override a DTO option, remove "''" prefix before updating
'BaseUrl: https://testapi.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: AddSupportCaseAttachment.*
'''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 System.Net
Imports System.Net.Http.Headers
Imports BokaMera.API.ServiceModel.Interfaces
Imports BokaMera.API.ServiceModel.Dtos

Namespace Global

    Namespace BokaMera.API.ServiceModel.Dtos

        <Route("/support/cases/{Id}/attachments", "POST")>
        <ApiResponse(Description:="You were unauthorized to call this service", StatusCode:=401)>
        <ApiResponse(Description:="You have too low privilegies to call this service", StatusCode:=403)>
        <ValidateRequest(Validator:="IsAuthenticated")>
        Public Partial Class AddSupportCaseAttachment
            Implements IReturn(Of SupportCaseAttachmentResponse)
            Implements ISupportCase
            '''<Summary>
            '''Enter the company id, if blank company id and you are an admin, your company id will be used.
            '''</Summary>
            <ApiMember(Description:="Enter the company id, if blank company id and you are an admin, your company id will be used.", IsRequired:=true)>
            Public Overridable Property CompanyId As Nullable(Of Guid)

            '''<Summary>
            '''The support case id
            '''</Summary>
            <ApiMember(Description:="The support case id", ParameterType:="path")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''The case attachment url. Only images are allowed to attach.
            '''</Summary>
            <ApiMember(Description:="The case attachment url. Only images are allowed to attach.")>
            Public Overridable Property FileUrl As String
        End Class

        Public Partial Class SupportCaseAttachmentResponse
            '''<Summary>
            '''The attachment id
            '''</Summary>
            <ApiMember(Description:="The attachment id")>
            Public Overridable Property Id As Integer

            '''<Summary>
            '''The attachment file url
            '''</Summary>
            <ApiMember(Description:="The attachment file url")>
            Public Overridable Property FileUrl As String
        End Class
    End Namespace

    Namespace BokaMera.API.ServiceModel.Interfaces

        Public Interface ICompany
            Property CompanyId As Nullable(Of Guid)
        End Interface

        Public Interface ISupportCase
            Implements ICompany
            Property Id As Integer
        End Interface
    End Namespace
End Namespace