Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /company/invoice/article | Update company invoice article | Update company invoice article. |
---|
namespace BokaMera.API.ServiceModel.Dtos
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type CompanyInvoiceArticleQueryResponse() =
member val Name:String = null with get,set
member val LicenseTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val LicenseProductTypeId:Int32 = new Int32() with get,set
member val IsMainLicense:Boolean = new Boolean() with get,set
member val VossProductGroupId:Guid = new Guid() with get,set
member val Id:Int32 = new Int32() with get,set
[<ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)>]
[<ValidateRequest(Validator="IsAuthenticated")>]
[<AllowNullLiteral>]
type UpdateCompanyInvoiceArticle() =
///<summary>
///Invoice article No in Db.
///</summary>
[<ApiMember(Description="Invoice article No in Db.", IsRequired=true)>]
member val Id:Int32 = new Int32() with get,set
///<summary>
///Invoice article Name
///</summary>
[<ApiMember(Description="Invoice article Name")>]
member val Name:String = null with get,set
///<summary>
///Invoice article Name
///</summary>
[<ApiMember(Description="Invoice article Name")>]
member val LicenseTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
///<summary>
///Invoice LicenseProductTypeId
///</summary>
[<ApiMember(Description="Invoice LicenseProductTypeId")>]
member val LicenseProductTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
///<summary>
///Invoice article is TIER license
///</summary>
[<ApiMember(Description="Invoice article is TIER license")>]
member val IsMainLicense:Nullable<Boolean> = new Nullable<Boolean>() with get,set
///<summary>
///Invoice VossProductGroupId reference
///</summary>
[<ApiMember(Description="Invoice VossProductGroupId reference")>]
member val VossProductGroupId:Nullable<Guid> = new Nullable<Guid>() with get,set
F# UpdateCompanyInvoiceArticle DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
Content-Type: text/jsonl
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/jsonl Content-Length: length {"Name":"String","LicenseTypeId":0,"LicenseProductTypeId":0,"IsMainLicense":false,"Id":0}