GET | /eaccounting/termofpayments |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EAccountingTermOfPaymentQuery implements ICompany
{
/**
* Payment Term Id in e-accounting.
*/
@ApiMember(Description="Payment Term Id in e-accounting.")
public String PaymentTermId = null;
/**
* The company id, if empty will use the company id for the user you are logged in with.
*/
@ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.")
public UUID CompanyId = null;
public String getPaymentTermId() { return PaymentTermId; }
public EAccountingTermOfPaymentQuery setPaymentTermId(String value) { this.PaymentTermId = value; return this; }
public UUID getCompanyId() { return CompanyId; }
public EAccountingTermOfPaymentQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
}
public static class EAccountingTermsOfPaymentQueryResponse
{
public String Id = null;
public String Name = null;
public String NameEnglish = null;
public Integer NumberOfDays = null;
public Integer TermsOfPaymentTypeId = null;
public String TermsOfPaymentTypeText = null;
public Boolean AvailableForSales = null;
public Boolean AvailableForPurchase = null;
public String getId() { return Id; }
public EAccountingTermsOfPaymentQueryResponse setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public EAccountingTermsOfPaymentQueryResponse setName(String value) { this.Name = value; return this; }
public String getNameEnglish() { return NameEnglish; }
public EAccountingTermsOfPaymentQueryResponse setNameEnglish(String value) { this.NameEnglish = value; return this; }
public Integer getNumberOfDays() { return NumberOfDays; }
public EAccountingTermsOfPaymentQueryResponse setNumberOfDays(Integer value) { this.NumberOfDays = value; return this; }
public Integer getTermsOfPaymentTypeId() { return TermsOfPaymentTypeId; }
public EAccountingTermsOfPaymentQueryResponse setTermsOfPaymentTypeId(Integer value) { this.TermsOfPaymentTypeId = value; return this; }
public String getTermsOfPaymentTypeText() { return TermsOfPaymentTypeText; }
public EAccountingTermsOfPaymentQueryResponse setTermsOfPaymentTypeText(String value) { this.TermsOfPaymentTypeText = value; return this; }
public Boolean isAvailableForSales() { return AvailableForSales; }
public EAccountingTermsOfPaymentQueryResponse setAvailableForSales(Boolean value) { this.AvailableForSales = value; return this; }
public Boolean isAvailableForPurchase() { return AvailableForPurchase; }
public EAccountingTermsOfPaymentQueryResponse setAvailableForPurchase(Boolean value) { this.AvailableForPurchase = value; return this; }
}
}
Java EAccountingTermOfPaymentQuery DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eaccounting/termofpayments HTTP/1.1 Host: api.bokamera.se Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Id":"String","Name":"String","NameEnglish":"String","NumberOfDays":0,"TermsOfPaymentTypeId":0,"TermsOfPaymentTypeText":"String","AvailableForSales":false,"AvailableForPurchase":false}