Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /company/invoice/article | Update company invoice article | Update company invoice article. |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Namespace Global
Namespace BokaMera.API.ServiceModel.Dtos
Public Partial Class CompanyInvoiceArticleQueryResponse
Public Overridable Property Name As String
Public Overridable Property LicenseTypeId As Nullable(Of Integer)
Public Overridable Property LicenseProductTypeId As Integer
Public Overridable Property Id As Integer
End Class
<ApiResponse(Description:="You were unauthorized to call this service", StatusCode:=401)>
<ValidateRequest(Validator:="IsAuthenticated")>
Public Partial Class UpdateCompanyInvoiceArticle
'''<Summary>
'''Invoice article No in Db.
'''</Summary>
<ApiMember(Description:="Invoice article No in Db.", IsRequired:=true)>
Public Overridable Property Id As Integer
'''<Summary>
'''Invoice article Name
'''</Summary>
<ApiMember(Description:="Invoice article Name")>
Public Overridable Property Name As String
'''<Summary>
'''Invoice article Name
'''</Summary>
<ApiMember(Description:="Invoice article Name")>
Public Overridable Property LicenseTypeId As Nullable(Of Integer)
'''<Summary>
'''Invoice LicenseProductTypeId
'''</Summary>
<ApiMember(Description:="Invoice LicenseProductTypeId")>
Public Overridable Property LicenseProductTypeId As Nullable(Of Integer)
'''<Summary>
'''Invoice article is TIER license
'''</Summary>
<ApiMember(Description:="Invoice article is TIER license")>
Public Overridable Property IsMainLicense As Nullable(Of Boolean)
'''<Summary>
'''Invoice VossProductGroupId reference
'''</Summary>
<ApiMember(Description:="Invoice VossProductGroupId reference")>
Public Overridable Property VossProductGroupId As Nullable(Of Guid)
End Class
End Namespace
End Namespace
VB.NET UpdateCompanyInvoiceArticle DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /company/invoice/article HTTP/1.1
Host: testapi.bokamera.se
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
Name: String,
LicenseTypeId: 0,
LicenseProductTypeId: 0,
IsMainLicense: False,
VossProductGroupId: 00000000-0000-0000-0000-000000000000
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Name: String, LicenseTypeId: 0, LicenseProductTypeId: 0, Id: 0 }