BokaMera.API.Host

<back to all web services

EAccountingTermOfPaymentQuery

The following routes are available for this service:
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 .xml suffix or ?format=xml

HTTP + XML

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: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EAccountingDtos.EAccountingTermsOfPaymentQueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos">
  <AvailableForPurchase>false</AvailableForPurchase>
  <AvailableForSales>false</AvailableForSales>
  <Id>String</Id>
  <Name>String</Name>
  <NameEnglish>String</NameEnglish>
  <NumberOfDays>0</NumberOfDays>
  <TermsOfPaymentTypeId>0</TermsOfPaymentTypeId>
  <TermsOfPaymentTypeText>String</TermsOfPaymentTypeText>
</EAccountingDtos.EAccountingTermsOfPaymentQueryResponse>