BokaMera.API.Host

<back to all web services

UpdateEaccountingCustomer

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
PUT/eaccounting/customersUpdate E-Accounting Customer
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 UpdateEaccountingCustomer implements ICompany
    {
        /**
        * Customer Id in e-accounting.
        */
        @ApiMember(Description="Customer Id in e-accounting.", IsRequired=true)
        public String Id = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public String InvoiceCity = null;

        /**
        * Max length: 10 characters
        */
        @ApiMember(Description="Max length: 10 characters")
        public String InvoicePostalCode = null;

        /**
        * Max length: 50 characters
        */
        @ApiMember(Description="Max length: 50 characters")
        public String Name = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public String TermsOfPaymentId = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public Boolean IsPrivatePerson = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public Boolean IsActive = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public String Telephone = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public String EmailAddress = null;

        /**
        * 
        */
        @ApiMember(Description="")
        public String MobilePhone = 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 getId() { return Id; }
        public UpdateEaccountingCustomer setId(String value) { this.Id = value; return this; }
        public String getInvoiceCity() { return InvoiceCity; }
        public UpdateEaccountingCustomer setInvoiceCity(String value) { this.InvoiceCity = value; return this; }
        public String getInvoicePostalCode() { return InvoicePostalCode; }
        public UpdateEaccountingCustomer setInvoicePostalCode(String value) { this.InvoicePostalCode = value; return this; }
        public String getName() { return Name; }
        public UpdateEaccountingCustomer setName(String value) { this.Name = value; return this; }
        public String getTermsOfPaymentId() { return TermsOfPaymentId; }
        public UpdateEaccountingCustomer setTermsOfPaymentId(String value) { this.TermsOfPaymentId = value; return this; }
        public Boolean getIsPrivatePerson() { return IsPrivatePerson; }
        public UpdateEaccountingCustomer setIsPrivatePerson(Boolean value) { this.IsPrivatePerson = value; return this; }
        public Boolean getIsActive() { return IsActive; }
        public UpdateEaccountingCustomer setIsActive(Boolean value) { this.IsActive = value; return this; }
        public String getTelephone() { return Telephone; }
        public UpdateEaccountingCustomer setTelephone(String value) { this.Telephone = value; return this; }
        public String getEmailAddress() { return EmailAddress; }
        public UpdateEaccountingCustomer setEmailAddress(String value) { this.EmailAddress = value; return this; }
        public String getMobilePhone() { return MobilePhone; }
        public UpdateEaccountingCustomer setMobilePhone(String value) { this.MobilePhone = value; return this; }
        public UUID getCompanyId() { return CompanyId; }
        public UpdateEaccountingCustomer setCompanyId(UUID value) { this.CompanyId = 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 UpdateEaccountingCustomer DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /eaccounting/customers HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Id":"String","InvoiceCity":"String","InvoicePostalCode":"String","Name":"String","TermsOfPaymentId":"String","IsPrivatePerson":false,"IsActive":false,"Telephone":"String","EmailAddress":"String","MobilePhone":"String","CompanyId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Id":"String","CustomerNumber":"String","ContactPersonEmail":"String","ContactPersonMobile":"String","ContactPersonName":"String","ContactPersonPhone":"String","CurrencyCode":"String","GLN":"String","EmailAddress":"String","EmailAddressOrder":"String","EmailAddressQuote":"String","DeliveryCustomerName":"String","DeliveryAddress1":"String","DeliveryAddress2":"String","DeliveryCity":"String","DeliveryCountryCode":"String","DeliveryPostalCode":"String","DeliveryMethodId":"String","DeliveryTermId":"String","PayToAccountId":"String","Name":"String","Note":"String","ReverseChargeOnConstructionServices":false,"WebshopCustomerNumber":0,"MobilePhone":"String","Telephone":"String","TermsOfPaymentId":"String","EAccountingTermsOfPayment":{"Id":"String","Name":"String","NameEnglish":"String","NumberOfDays":0,"TermsOfPaymentTypeId":0,"TermsOfPaymentTypeText":"String","AvailableForSales":false,"AvailableForPurchase":false},"VatNumber":"String","WwwAddress":"String","LastInvoiceDate":"String","IsPrivatePerson":false,"IsNorthernIreland":false,"DiscountPercentage":0,"ChangedUtc":"0001-01-01T00:00:00","IsActive":false,"ForceBookkeepVat":false,"EdiGlnNumber":"String","SalesDocumentLanguage":"String","ElectronicAddress":"String","ElectronicReference":"String","EdiServiceDelivererId":"String","AutoInvoiceActivationEmailSentDate":"0001-01-01T00:00:00","AutoInvoiceRegistrationRequestSentDate":"0001-01-01T00:00:00","EmailAddresses":["String"],"CustomerLabels":[{"Id":"String","Name":"String","Description":"String"}],"MessageThreads":["String"],"Notes":["String"],"IsFutureInvoiceDateAllowed":false,"DeliveryBasedVat":false,"SalesPriceListId":"String","Iban":"String","DirectDebitCustomerSettings":{"MandateId":"String","MandateType":0,"SequenceType":0},"DiscountAgreementId":"String","UnpaidInvoicesAmount":0,"CorporateIdentityNumber":"String","InvoiceAddress1":"String","InvoiceAddress2":"String","InvoiceCity":"String","InvoicePostalCode":"String","InvoiceCountryCode":"String"}