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.*;
public class dtos
{
@ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
@ValidateRequest(Validator="IsAuthenticated")
public static class UpdateCompanyInvoiceArticle
{
/**
* Invoice article No in Db.
*/
@ApiMember(Description="Invoice article No in Db.", IsRequired=true)
public Integer Id = null;
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
public String Name = null;
/**
* Invoice article Name
*/
@ApiMember(Description="Invoice article Name")
public Integer LicenseTypeId = null;
/**
* Invoice LicenseProductTypeId
*/
@ApiMember(Description="Invoice LicenseProductTypeId")
public Integer LicenseProductTypeId = null;
/**
* Invoice article is TIER license
*/
@ApiMember(Description="Invoice article is TIER license")
public Boolean IsMainLicense = null;
/**
* Invoice VossProductGroupId reference
*/
@ApiMember(Description="Invoice VossProductGroupId reference")
public UUID VossProductGroupId = null;
public Integer getId() { return Id; }
public UpdateCompanyInvoiceArticle setId(Integer value) { this.Id = value; return this; }
public String getName() { return Name; }
public UpdateCompanyInvoiceArticle setName(String value) { this.Name = value; return this; }
public Integer getLicenseTypeId() { return LicenseTypeId; }
public UpdateCompanyInvoiceArticle setLicenseTypeId(Integer value) { this.LicenseTypeId = value; return this; }
public Integer getLicenseProductTypeId() { return LicenseProductTypeId; }
public UpdateCompanyInvoiceArticle setLicenseProductTypeId(Integer value) { this.LicenseProductTypeId = value; return this; }
public Boolean getIsMainLicense() { return IsMainLicense; }
public UpdateCompanyInvoiceArticle setIsMainLicense(Boolean value) { this.IsMainLicense = value; return this; }
public UUID getVossProductGroupId() { return VossProductGroupId; }
public UpdateCompanyInvoiceArticle setVossProductGroupId(UUID value) { this.VossProductGroupId = value; return this; }
}
public static class CompanyInvoiceArticleQueryResponse
{
public String Name = null;
public Integer LicenseTypeId = null;
public Integer LicenseProductTypeId = null;
public Boolean IsMainLicense = null;
public UUID VossProductGroupId = null;
public Integer Id = null;
public String getName() { return Name; }
public CompanyInvoiceArticleQueryResponse setName(String value) { this.Name = value; return this; }
public Integer getLicenseTypeId() { return LicenseTypeId; }
public CompanyInvoiceArticleQueryResponse setLicenseTypeId(Integer value) { this.LicenseTypeId = value; return this; }
public Integer getLicenseProductTypeId() { return LicenseProductTypeId; }
public CompanyInvoiceArticleQueryResponse setLicenseProductTypeId(Integer value) { this.LicenseProductTypeId = value; return this; }
public Boolean getIsMainLicense() { return IsMainLicense; }
public CompanyInvoiceArticleQueryResponse setIsMainLicense(Boolean value) { this.IsMainLicense = value; return this; }
public UUID getVossProductGroupId() { return VossProductGroupId; }
public CompanyInvoiceArticleQueryResponse setVossProductGroupId(UUID value) { this.VossProductGroupId = value; return this; }
public Integer getId() { return Id; }
public CompanyInvoiceArticleQueryResponse setId(Integer value) { this.Id = value; return this; }
}
}
Java 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 }