GET | /eaccounting/customers |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EAccountingCustomerQuery extends EAccountingPagination implements ICompany
{
public UUID CompanyId = null;
public UUID getCompanyId() { return CompanyId; }
public EAccountingCustomerQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
}
public static class EAccountingPagination
{
/**
* Page number that will be fetched to e-accounting client; Default 1
*/
@DataMember(Order=1)
@ApiMember(Description="Page number that will be fetched to e-accounting client; Default 1")
public Integer PageNumber = null;
/**
* Page size that will be fetched to e-accounting client; Default 75~
*/
@DataMember(Order=2)
@ApiMember(Description="Page size that will be fetched to e-accounting client; Default 75~")
public Integer PageSize = null;
public Integer getPageNumber() { return PageNumber; }
public EAccountingPagination setPageNumber(Integer value) { this.PageNumber = value; return this; }
public Integer getPageSize() { return PageSize; }
public EAccountingPagination setPageSize(Integer value) { this.PageSize = value; return this; }
}
public static class EAccountingCustomerResponse extends CreateEAccountingCustomer
{
public String Id = null;
public String getId() { return Id; }
public EAccountingCustomerResponse setId(String value) { this.Id = value; return this; }
}
public static class CreateEAccountingCustomer extends InvoiceAddress
{
public String CustomerNumber = null;
public String ContactPersonEmail = null;
public String ContactPersonMobile = null;
public String ContactPersonName = null;
public String ContactPersonPhone = null;
public String CurrencyCode = null;
public String GLN = null;
public String EmailAddress = null;
public String EmailAddressOrder = null;
public String EmailAddressQuote = null;
public String DeliveryCustomerName = null;
public String DeliveryAddress1 = null;
public String DeliveryAddress2 = null;
public String DeliveryCity = null;
public String DeliveryCountryCode = null;
public String DeliveryPostalCode = null;
public String DeliveryMethodId = null;
public String DeliveryTermId = null;
public String PayToAccountId = null;
public String Name = null;
public String Note = null;
public Boolean ReverseChargeOnConstructionServices = null;
public Integer WebshopCustomerNumber = null;
public String MobilePhone = null;
public String Telephone = null;
public String TermsOfPaymentId = null;
public EAccountingTermsOfPayment EAccountingTermsOfPayment = null;
public String VatNumber = null;
public String WwwAddress = null;
public String LastInvoiceDate = null;
public Boolean IsPrivatePerson = null;
public Boolean IsNorthernIreland = null;
public BigDecimal DiscountPercentage = null;
public Date ChangedUtc = null;
public Boolean IsActive = null;
public Boolean ForceBookkeepVat = null;
public String EdiGlnNumber = null;
public String SalesDocumentLanguage = null;
public String ElectronicAddress = null;
public String ElectronicReference = null;
public String EdiServiceDelivererId = null;
public Date AutoInvoiceActivationEmailSentDate = null;
public Date AutoInvoiceRegistrationRequestSentDate = null;
public ArrayList<String> EmailAddresses = null;
public ArrayList<CustomerLabel> CustomerLabels = null;
public ArrayList<String> MessageThreads = null;
public ArrayList<String> Notes = null;
public Boolean IsFutureInvoiceDateAllowed = null;
public Boolean DeliveryBasedVat = null;
public String SalesPriceListId = null;
public String Iban = null;
public DirectDebitCustomerSettings DirectDebitCustomerSettings = null;
public String DiscountAgreementId = null;
public BigDecimal UnpaidInvoicesAmount = null;
public String getCustomerNumber() { return CustomerNumber; }
public CreateEAccountingCustomer setCustomerNumber(String value) { this.CustomerNumber = value; return this; }
public String getContactPersonEmail() { return ContactPersonEmail; }
public CreateEAccountingCustomer setContactPersonEmail(String value) { this.ContactPersonEmail = value; return this; }
public String getContactPersonMobile() { return ContactPersonMobile; }
public CreateEAccountingCustomer setContactPersonMobile(String value) { this.ContactPersonMobile = value; return this; }
public String getContactPersonName() { return ContactPersonName; }
public CreateEAccountingCustomer setContactPersonName(String value) { this.ContactPersonName = value; return this; }
public String getContactPersonPhone() { return ContactPersonPhone; }
public CreateEAccountingCustomer setContactPersonPhone(String value) { this.ContactPersonPhone = value; return this; }
public String getCurrencyCode() { return CurrencyCode; }
public CreateEAccountingCustomer setCurrencyCode(String value) { this.CurrencyCode = value; return this; }
public String getGln() { return GLN; }
public CreateEAccountingCustomer setGln(String value) { this.GLN = value; return this; }
public String getEmailAddress() { return EmailAddress; }
public CreateEAccountingCustomer setEmailAddress(String value) { this.EmailAddress = value; return this; }
public String getEmailAddressOrder() { return EmailAddressOrder; }
public CreateEAccountingCustomer setEmailAddressOrder(String value) { this.EmailAddressOrder = value; return this; }
public String getEmailAddressQuote() { return EmailAddressQuote; }
public CreateEAccountingCustomer setEmailAddressQuote(String value) { this.EmailAddressQuote = value; return this; }
public String getDeliveryCustomerName() { return DeliveryCustomerName; }
public CreateEAccountingCustomer setDeliveryCustomerName(String value) { this.DeliveryCustomerName = value; return this; }
public String getDeliveryAddress1() { return DeliveryAddress1; }
public CreateEAccountingCustomer setDeliveryAddress1(String value) { this.DeliveryAddress1 = value; return this; }
public String getDeliveryAddress2() { return DeliveryAddress2; }
public CreateEAccountingCustomer setDeliveryAddress2(String value) { this.DeliveryAddress2 = value; return this; }
public String getDeliveryCity() { return DeliveryCity; }
public CreateEAccountingCustomer setDeliveryCity(String value) { this.DeliveryCity = value; return this; }
public String getDeliveryCountryCode() { return DeliveryCountryCode; }
public CreateEAccountingCustomer setDeliveryCountryCode(String value) { this.DeliveryCountryCode = value; return this; }
public String getDeliveryPostalCode() { return DeliveryPostalCode; }
public CreateEAccountingCustomer setDeliveryPostalCode(String value) { this.DeliveryPostalCode = value; return this; }
public String getDeliveryMethodId() { return DeliveryMethodId; }
public CreateEAccountingCustomer setDeliveryMethodId(String value) { this.DeliveryMethodId = value; return this; }
public String getDeliveryTermId() { return DeliveryTermId; }
public CreateEAccountingCustomer setDeliveryTermId(String value) { this.DeliveryTermId = value; return this; }
public String getPayToAccountId() { return PayToAccountId; }
public CreateEAccountingCustomer setPayToAccountId(String value) { this.PayToAccountId = value; return this; }
public String getName() { return Name; }
public CreateEAccountingCustomer setName(String value) { this.Name = value; return this; }
public String getNote() { return Note; }
public CreateEAccountingCustomer setNote(String value) { this.Note = value; return this; }
public Boolean isReverseChargeOnConstructionServices() { return ReverseChargeOnConstructionServices; }
public CreateEAccountingCustomer setReverseChargeOnConstructionServices(Boolean value) { this.ReverseChargeOnConstructionServices = value; return this; }
public Integer getWebshopCustomerNumber() { return WebshopCustomerNumber; }
public CreateEAccountingCustomer setWebshopCustomerNumber(Integer value) { this.WebshopCustomerNumber = value; return this; }
public String getMobilePhone() { return MobilePhone; }
public CreateEAccountingCustomer setMobilePhone(String value) { this.MobilePhone = value; return this; }
public String getTelephone() { return Telephone; }
public CreateEAccountingCustomer setTelephone(String value) { this.Telephone = value; return this; }
public String getTermsOfPaymentId() { return TermsOfPaymentId; }
public CreateEAccountingCustomer setTermsOfPaymentId(String value) { this.TermsOfPaymentId = value; return this; }
public EAccountingTermsOfPayment getEAccountingTermsOfPayment() { return EAccountingTermsOfPayment; }
public CreateEAccountingCustomer setEAccountingTermsOfPayment(EAccountingTermsOfPayment value) { this.EAccountingTermsOfPayment = value; return this; }
public String getVatNumber() { return VatNumber; }
public CreateEAccountingCustomer setVatNumber(String value) { this.VatNumber = value; return this; }
public String getWwwAddress() { return WwwAddress; }
public CreateEAccountingCustomer setWwwAddress(String value) { this.WwwAddress = value; return this; }
public String getLastInvoiceDate() { return LastInvoiceDate; }
public CreateEAccountingCustomer setLastInvoiceDate(String value) { this.LastInvoiceDate = value; return this; }
public Boolean getIsPrivatePerson() { return IsPrivatePerson; }
public CreateEAccountingCustomer setIsPrivatePerson(Boolean value) { this.IsPrivatePerson = value; return this; }
public Boolean getIsNorthernIreland() { return IsNorthernIreland; }
public CreateEAccountingCustomer setIsNorthernIreland(Boolean value) { this.IsNorthernIreland = value; return this; }
public BigDecimal getDiscountPercentage() { return DiscountPercentage; }
public CreateEAccountingCustomer setDiscountPercentage(BigDecimal value) { this.DiscountPercentage = value; return this; }
public Date getChangedUtc() { return ChangedUtc; }
public CreateEAccountingCustomer setChangedUtc(Date value) { this.ChangedUtc = value; return this; }
public Boolean getIsActive() { return IsActive; }
public CreateEAccountingCustomer setIsActive(Boolean value) { this.IsActive = value; return this; }
public Boolean isForceBookkeepVat() { return ForceBookkeepVat; }
public CreateEAccountingCustomer setForceBookkeepVat(Boolean value) { this.ForceBookkeepVat = value; return this; }
public String getEdiGlnNumber() { return EdiGlnNumber; }
public CreateEAccountingCustomer setEdiGlnNumber(String value) { this.EdiGlnNumber = value; return this; }
public String getSalesDocumentLanguage() { return SalesDocumentLanguage; }
public CreateEAccountingCustomer setSalesDocumentLanguage(String value) { this.SalesDocumentLanguage = value; return this; }
public String getElectronicAddress() { return ElectronicAddress; }
public CreateEAccountingCustomer setElectronicAddress(String value) { this.ElectronicAddress = value; return this; }
public String getElectronicReference() { return ElectronicReference; }
public CreateEAccountingCustomer setElectronicReference(String value) { this.ElectronicReference = value; return this; }
public String getEdiServiceDelivererId() { return EdiServiceDelivererId; }
public CreateEAccountingCustomer setEdiServiceDelivererId(String value) { this.EdiServiceDelivererId = value; return this; }
public Date getAutoInvoiceActivationEmailSentDate() { return AutoInvoiceActivationEmailSentDate; }
public CreateEAccountingCustomer setAutoInvoiceActivationEmailSentDate(Date value) { this.AutoInvoiceActivationEmailSentDate = value; return this; }
public Date getAutoInvoiceRegistrationRequestSentDate() { return AutoInvoiceRegistrationRequestSentDate; }
public CreateEAccountingCustomer setAutoInvoiceRegistrationRequestSentDate(Date value) { this.AutoInvoiceRegistrationRequestSentDate = value; return this; }
public ArrayList<String> getEmailAddresses() { return EmailAddresses; }
public CreateEAccountingCustomer setEmailAddresses(ArrayList<String> value) { this.EmailAddresses = value; return this; }
public ArrayList<CustomerLabel> getCustomerLabels() { return CustomerLabels; }
public CreateEAccountingCustomer setCustomerLabels(ArrayList<CustomerLabel> value) { this.CustomerLabels = value; return this; }
public ArrayList<String> getMessageThreads() { return MessageThreads; }
public CreateEAccountingCustomer setMessageThreads(ArrayList<String> value) { this.MessageThreads = value; return this; }
public ArrayList<String> getNotes() { return Notes; }
public CreateEAccountingCustomer setNotes(ArrayList<String> value) { this.Notes = value; return this; }
public Boolean getIsFutureInvoiceDateAllowed() { return IsFutureInvoiceDateAllowed; }
public CreateEAccountingCustomer setIsFutureInvoiceDateAllowed(Boolean value) { this.IsFutureInvoiceDateAllowed = value; return this; }
public Boolean isDeliveryBasedVat() { return DeliveryBasedVat; }
public CreateEAccountingCustomer setDeliveryBasedVat(Boolean value) { this.DeliveryBasedVat = value; return this; }
public String getSalesPriceListId() { return SalesPriceListId; }
public CreateEAccountingCustomer setSalesPriceListId(String value) { this.SalesPriceListId = value; return this; }
public String getIban() { return Iban; }
public CreateEAccountingCustomer setIban(String value) { this.Iban = value; return this; }
public DirectDebitCustomerSettings getDirectDebitCustomerSettings() { return DirectDebitCustomerSettings; }
public CreateEAccountingCustomer setDirectDebitCustomerSettings(DirectDebitCustomerSettings value) { this.DirectDebitCustomerSettings = value; return this; }
public String getDiscountAgreementId() { return DiscountAgreementId; }
public CreateEAccountingCustomer setDiscountAgreementId(String value) { this.DiscountAgreementId = value; return this; }
public BigDecimal getUnpaidInvoicesAmount() { return UnpaidInvoicesAmount; }
public CreateEAccountingCustomer setUnpaidInvoicesAmount(BigDecimal value) { this.UnpaidInvoicesAmount = value; return this; }
}
public static class InvoiceAddress
{
public String CorporateIdentityNumber = null;
public String InvoiceAddress1 = null;
public String InvoiceAddress2 = null;
public String InvoiceCity = null;
public String InvoicePostalCode = null;
public String InvoiceCountryCode = null;
public String getCorporateIdentityNumber() { return CorporateIdentityNumber; }
public InvoiceAddress setCorporateIdentityNumber(String value) { this.CorporateIdentityNumber = value; return this; }
public String getInvoiceAddress1() { return InvoiceAddress1; }
public InvoiceAddress setInvoiceAddress1(String value) { this.InvoiceAddress1 = value; return this; }
public String getInvoiceAddress2() { return InvoiceAddress2; }
public InvoiceAddress setInvoiceAddress2(String value) { this.InvoiceAddress2 = value; return this; }
public String getInvoiceCity() { return InvoiceCity; }
public InvoiceAddress setInvoiceCity(String value) { this.InvoiceCity = value; return this; }
public String getInvoicePostalCode() { return InvoicePostalCode; }
public InvoiceAddress setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; }
public String getInvoiceCountryCode() { return InvoiceCountryCode; }
public InvoiceAddress setInvoiceCountryCode(String value) { this.InvoiceCountryCode = value; return this; }
}
public static class EAccountingTermsOfPayment
{
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 EAccountingTermsOfPayment setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public EAccountingTermsOfPayment setName(String value) { this.Name = value; return this; }
public String getNameEnglish() { return NameEnglish; }
public EAccountingTermsOfPayment setNameEnglish(String value) { this.NameEnglish = value; return this; }
public Integer getNumberOfDays() { return NumberOfDays; }
public EAccountingTermsOfPayment setNumberOfDays(Integer value) { this.NumberOfDays = value; return this; }
public Integer getTermsOfPaymentTypeId() { return TermsOfPaymentTypeId; }
public EAccountingTermsOfPayment setTermsOfPaymentTypeId(Integer value) { this.TermsOfPaymentTypeId = value; return this; }
public String getTermsOfPaymentTypeText() { return TermsOfPaymentTypeText; }
public EAccountingTermsOfPayment setTermsOfPaymentTypeText(String value) { this.TermsOfPaymentTypeText = value; return this; }
public Boolean isAvailableForSales() { return AvailableForSales; }
public EAccountingTermsOfPayment setAvailableForSales(Boolean value) { this.AvailableForSales = value; return this; }
public Boolean isAvailableForPurchase() { return AvailableForPurchase; }
public EAccountingTermsOfPayment setAvailableForPurchase(Boolean value) { this.AvailableForPurchase = value; return this; }
}
public static class CustomerLabel
{
public String Id = null;
public String Name = null;
public String Description = null;
public String getId() { return Id; }
public CustomerLabel setId(String value) { this.Id = value; return this; }
public String getName() { return Name; }
public CustomerLabel setName(String value) { this.Name = value; return this; }
public String getDescription() { return Description; }
public CustomerLabel setDescription(String value) { this.Description = value; return this; }
}
public static class DirectDebitCustomerSettings
{
public String MandateId = null;
public Integer MandateType = null;
public Integer SequenceType = null;
public Date SigningDate = null;
public Date EndDate = null;
public Date LatestDirectDebit = null;
public String getMandateId() { return MandateId; }
public DirectDebitCustomerSettings setMandateId(String value) { this.MandateId = value; return this; }
public Integer getMandateType() { return MandateType; }
public DirectDebitCustomerSettings setMandateType(Integer value) { this.MandateType = value; return this; }
public Integer getSequenceType() { return SequenceType; }
public DirectDebitCustomerSettings setSequenceType(Integer value) { this.SequenceType = value; return this; }
public Date getSigningDate() { return SigningDate; }
public DirectDebitCustomerSettings setSigningDate(Date value) { this.SigningDate = value; return this; }
public Date getEndDate() { return EndDate; }
public DirectDebitCustomerSettings setEndDate(Date value) { this.EndDate = value; return this; }
public Date getLatestDirectDebit() { return LatestDirectDebit; }
public DirectDebitCustomerSettings setLatestDirectDebit(Date value) { this.LatestDirectDebit = value; return this; }
}
}
Java EAccountingCustomerQuery DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eaccounting/customers HTTP/1.1 Host: api.bokamera.se Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EAccountingClientDtos.EAccountingCustomerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BokaMera.API.ServiceModel.Dtos"> <CorporateIdentityNumber>String</CorporateIdentityNumber> <InvoiceAddress1>String</InvoiceAddress1> <InvoiceAddress2>String</InvoiceAddress2> <InvoiceCity>String</InvoiceCity> <InvoiceCountryCode>String</InvoiceCountryCode> <InvoicePostalCode>String</InvoicePostalCode> <AutoInvoiceActivationEmailSentDate>0001-01-01T00:00:00</AutoInvoiceActivationEmailSentDate> <AutoInvoiceRegistrationRequestSentDate>0001-01-01T00:00:00</AutoInvoiceRegistrationRequestSentDate> <ChangedUtc>0001-01-01T00:00:00</ChangedUtc> <ContactPersonEmail>String</ContactPersonEmail> <ContactPersonMobile>String</ContactPersonMobile> <ContactPersonName>String</ContactPersonName> <ContactPersonPhone>String</ContactPersonPhone> <CurrencyCode>String</CurrencyCode> <CustomerLabels> <EAccountingClientDtos.CustomerLabel> <Description>String</Description> <Id>String</Id> <Name>String</Name> </EAccountingClientDtos.CustomerLabel> </CustomerLabels> <CustomerNumber>String</CustomerNumber> <DeliveryAddress1>String</DeliveryAddress1> <DeliveryAddress2>String</DeliveryAddress2> <DeliveryBasedVat>false</DeliveryBasedVat> <DeliveryCity>String</DeliveryCity> <DeliveryCountryCode>String</DeliveryCountryCode> <DeliveryCustomerName>String</DeliveryCustomerName> <DeliveryMethodId>String</DeliveryMethodId> <DeliveryPostalCode>String</DeliveryPostalCode> <DeliveryTermId>String</DeliveryTermId> <DirectDebitCustomerSettings> <EndDate>0001-01-01T00:00:00</EndDate> <LatestDirectDebit>0001-01-01T00:00:00</LatestDirectDebit> <MandateId>String</MandateId> <MandateType>0</MandateType> <SequenceType>0</SequenceType> <SigningDate>0001-01-01T00:00:00</SigningDate> </DirectDebitCustomerSettings> <DiscountAgreementId>String</DiscountAgreementId> <DiscountPercentage>0</DiscountPercentage> <EAccountingTermsOfPayment> <AvailableForPurchase>false</AvailableForPurchase> <AvailableForSales>false</AvailableForSales> <Id>String</Id> <Name>String</Name> <NameEnglish>String</NameEnglish> <NumberOfDays>0</NumberOfDays> <TermsOfPaymentTypeId>0</TermsOfPaymentTypeId> <TermsOfPaymentTypeText>String</TermsOfPaymentTypeText> </EAccountingTermsOfPayment> <EdiGlnNumber>String</EdiGlnNumber> <EdiServiceDelivererId>String</EdiServiceDelivererId> <ElectronicAddress>String</ElectronicAddress> <ElectronicReference>String</ElectronicReference> <EmailAddress>String</EmailAddress> <EmailAddressOrder>String</EmailAddressOrder> <EmailAddressQuote>String</EmailAddressQuote> <EmailAddresses xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </EmailAddresses> <ForceBookkeepVat>false</ForceBookkeepVat> <GLN>String</GLN> <Iban>String</Iban> <IsActive>false</IsActive> <IsFutureInvoiceDateAllowed>false</IsFutureInvoiceDateAllowed> <IsNorthernIreland>false</IsNorthernIreland> <IsPrivatePerson>false</IsPrivatePerson> <LastInvoiceDate>String</LastInvoiceDate> <MessageThreads xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </MessageThreads> <MobilePhone>String</MobilePhone> <Name>String</Name> <Note>String</Note> <Notes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>String</d2p1:string> </Notes> <PayToAccountId>String</PayToAccountId> <ReverseChargeOnConstructionServices>false</ReverseChargeOnConstructionServices> <SalesDocumentLanguage>String</SalesDocumentLanguage> <SalesPriceListId>String</SalesPriceListId> <Telephone>String</Telephone> <TermsOfPaymentId>String</TermsOfPaymentId> <UnpaidInvoicesAmount>0</UnpaidInvoicesAmount> <VatNumber>String</VatNumber> <WebshopCustomerNumber>0</WebshopCustomerNumber> <WwwAddress>String</WwwAddress> <Id>String</Id> </EAccountingClientDtos.EAccountingCustomerResponse>