Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /company/invoice/article | Update company invoice article | Update company invoice article. |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
@ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
@ValidateRequest(Validator="IsAuthenticated")
open class UpdateCompanyInvoiceArticle
{
/**
* Invoice article No in Db.
*/
@ApiMember(Description="Invoice article No in Db.", IsRequired=true)
var Id:Int? = null
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
var Name:String? = null
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
var LicenseTypeId:Int? = null
/**
* Invoice LicenseProductTypeId
*/
@ApiMember(Description="Invoice LicenseProductTypeId")
var LicenseProductTypeId:Int? = null
/**
* Invoice article is TIER license
*/
@ApiMember(Description="Invoice article is TIER license")
var IsMainLicense:Boolean? = null
/**
* Invoice VossProductGroupId reference
*/
@ApiMember(Description="Invoice VossProductGroupId reference")
var VossProductGroupId:UUID? = null
}
open class CompanyInvoiceArticleQueryResponse
{
var Name:String? = null
var LicenseTypeId:Int? = null
var LicenseProductTypeId:Int? = null
var IsMainLicense:Boolean? = null
var VossProductGroupId:UUID? = null
var Id:Int? = null
}
Kotlin 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, IsMainLicense: False, Id: 0 }