| 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 java.io.InputStream
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)
open var Id:Int? = null
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
open var Name:String? = null
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
open var LicenseTypeId:Int? = null
/**
* Invoice LicenseProductTypeId
*/
@ApiMember(Description="Invoice LicenseProductTypeId")
open var LicenseProductTypeId:Int? = null
/**
* Invoice article is TIER license
*/
@ApiMember(Description="Invoice article is TIER license")
open var IsMainLicense:Boolean? = null
/**
* Invoice VossProductGroupId reference
*/
@ApiMember(Description="Invoice VossProductGroupId reference")
open var VossProductGroupId:UUID? = null
}
open class CompanyInvoiceArticleQueryResponse
{
open var Name:String? = null
open var LicenseTypeId:Int? = null
open var LicenseProductTypeId:Int? = null
open 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,
Id: 0
}