PUT | /eaccounting/settings | Create a new settings in e-accounting system; Should be uniques per company; If settings exists, they will be updated instead |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UpdateEAccountingSettingsQuery implements ICompany
{
/**
* Article id for 25% VAT in e-accounting system
*/
@ApiMember(Description="Article id for 25% VAT in e-accounting system")
public String DefaultArticle25PercentVat = null;
/**
* Article id for 12% VAT in e-accounting system
*/
@ApiMember(Description="Article id for 12% VAT in e-accounting system")
public String DefaultArticle12PercentVat = null;
/**
* Article id for 6% VAT in e-accounting system
*/
@ApiMember(Description="Article id for 6% VAT in e-accounting system")
public String DefaultArticle6PercentVat = null;
/**
* Default invoice create type for invoice creation
*/
@ApiMember(Description="Default invoice create type for invoice creation")
public String DefaultCreateType = null;
/**
* Determines wether e-accounting intergration is active or not
*/
@ApiMember(Description="Determines wether e-accounting intergration is active or not")
public Boolean EAccountingIntegrationActive = null;
/**
* Default terms of payment value for invoice creation
*/
@ApiMember(Description="Default terms of payment value for invoice creation")
public String DefaultTermsOfPaymentId = null;
/**
* E-Accounting settings company Id.
*/
@ApiMember(Description="E-Accounting settings company Id.")
public UUID CompanyId = null;
public String getDefaultArticle25PercentVat() { return DefaultArticle25PercentVat; }
public UpdateEAccountingSettingsQuery setDefaultArticle25PercentVat(String value) { this.DefaultArticle25PercentVat = value; return this; }
public String getDefaultArticle12PercentVat() { return DefaultArticle12PercentVat; }
public UpdateEAccountingSettingsQuery setDefaultArticle12PercentVat(String value) { this.DefaultArticle12PercentVat = value; return this; }
public String getDefaultArticle6PercentVat() { return DefaultArticle6PercentVat; }
public UpdateEAccountingSettingsQuery setDefaultArticle6PercentVat(String value) { this.DefaultArticle6PercentVat = value; return this; }
public String getDefaultCreateType() { return DefaultCreateType; }
public UpdateEAccountingSettingsQuery setDefaultCreateType(String value) { this.DefaultCreateType = value; return this; }
public Boolean isEAccountingIntegrationActive() { return EAccountingIntegrationActive; }
public UpdateEAccountingSettingsQuery setEAccountingIntegrationActive(Boolean value) { this.EAccountingIntegrationActive = value; return this; }
public String getDefaultTermsOfPaymentId() { return DefaultTermsOfPaymentId; }
public UpdateEAccountingSettingsQuery setDefaultTermsOfPaymentId(String value) { this.DefaultTermsOfPaymentId = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public UpdateEAccountingSettingsQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
}
public static class EAccountingSettingsQueryResponse
{
public UUID CompanyId = null;
public Boolean Active = null;
public String DefaultArticle6PercentVat = null;
public BigDecimal DefaultArticle12PercentVat = null;
public BigDecimal DefaultArticle25PercentVat = null;
public String DefaultCreateType = null;
public String DefaultTermsOfPaymentId = null;
public UUID getCompanyId() { return CompanyId; }
public EAccountingSettingsQueryResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
public Boolean isActive() { return Active; }
public EAccountingSettingsQueryResponse setActive(Boolean value) { this.Active = value; return this; }
public String getDefaultArticle6PercentVat() { return DefaultArticle6PercentVat; }
public EAccountingSettingsQueryResponse setDefaultArticle6PercentVat(String value) { this.DefaultArticle6PercentVat = value; return this; }
public BigDecimal getDefaultArticle12PercentVat() { return DefaultArticle12PercentVat; }
public EAccountingSettingsQueryResponse setDefaultArticle12PercentVat(BigDecimal value) { this.DefaultArticle12PercentVat = value; return this; }
public BigDecimal getDefaultArticle25PercentVat() { return DefaultArticle25PercentVat; }
public EAccountingSettingsQueryResponse setDefaultArticle25PercentVat(BigDecimal value) { this.DefaultArticle25PercentVat = value; return this; }
public String getDefaultCreateType() { return DefaultCreateType; }
public EAccountingSettingsQueryResponse setDefaultCreateType(String value) { this.DefaultCreateType = value; return this; }
public String getDefaultTermsOfPaymentId() { return DefaultTermsOfPaymentId; }
public EAccountingSettingsQueryResponse setDefaultTermsOfPaymentId(String value) { this.DefaultTermsOfPaymentId = value; return this; }
}
}
Java UpdateEAccountingSettingsQuery 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 /eaccounting/settings HTTP/1.1
Host: api.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"DefaultArticle25PercentVat":"String","DefaultArticle12PercentVat":"String","DefaultArticle6PercentVat":"String","DefaultCreateType":"String","EAccountingIntegrationActive":false,"DefaultTermsOfPaymentId":"String","CompanyId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"CompanyId":"00000000-0000-0000-0000-000000000000","Active":false,"DefaultArticle6PercentVat":"String","DefaultArticle12PercentVat":0,"DefaultArticle25PercentVat":0,"DefaultCreateType":"String","DefaultTermsOfPaymentId":"String"}