GET | /api/companies/lookup/{ChamberNr} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetCompanyLookupDetails
{
public String ChamberNr = null;
public String ChamberEstablishmentNumber = null;
public String getChamberNr() { return ChamberNr; }
public GetCompanyLookupDetails setChamberNr(String value) { this.ChamberNr = value; return this; }
public String getChamberEstablishmentNumber() { return ChamberEstablishmentNumber; }
public GetCompanyLookupDetails setChamberEstablishmentNumber(String value) { this.ChamberEstablishmentNumber = value; return this; }
}
public static class CompanyLookupDetails
{
public String ChamberNr = null;
public String ChamberEstablishmentNumber = null;
public String CompanyLegalName = null;
public String CompanyTradeName = null;
public String ChamberCity = null;
public Date ChamberFoundingDate = null;
public String EstablishmentStreet = null;
public String EstablishmentHouseNr = null;
public String EstablishmentHouseNrAddition = null;
public String EstablishmentPostalCode = null;
public String EstablishmentCity = null;
public String EstablishmentCountryTLA = null;
public String CorrespondencePOBox = null;
public String CorrespondencePostalCode = null;
public String CorrespondenceCity = null;
public String CorrespondenceCountryTLA = null;
public String Website = null;
public String Telephone = null;
public String Mobile = null;
public String EMail = null;
public Boolean DebtorInPossession = null;
public Boolean Bankrupt = null;
public HashMap<String,Object> ExtraFields = null;
public String getChamberNr() { return ChamberNr; }
public CompanyLookupDetails setChamberNr(String value) { this.ChamberNr = value; return this; }
public String getChamberEstablishmentNumber() { return ChamberEstablishmentNumber; }
public CompanyLookupDetails setChamberEstablishmentNumber(String value) { this.ChamberEstablishmentNumber = value; return this; }
public String getCompanyLegalName() { return CompanyLegalName; }
public CompanyLookupDetails setCompanyLegalName(String value) { this.CompanyLegalName = value; return this; }
public String getCompanyTradeName() { return CompanyTradeName; }
public CompanyLookupDetails setCompanyTradeName(String value) { this.CompanyTradeName = value; return this; }
public String getChamberCity() { return ChamberCity; }
public CompanyLookupDetails setChamberCity(String value) { this.ChamberCity = value; return this; }
public Date getChamberFoundingDate() { return ChamberFoundingDate; }
public CompanyLookupDetails setChamberFoundingDate(Date value) { this.ChamberFoundingDate = value; return this; }
public String getEstablishmentStreet() { return EstablishmentStreet; }
public CompanyLookupDetails setEstablishmentStreet(String value) { this.EstablishmentStreet = value; return this; }
public String getEstablishmentHouseNr() { return EstablishmentHouseNr; }
public CompanyLookupDetails setEstablishmentHouseNr(String value) { this.EstablishmentHouseNr = value; return this; }
public String getEstablishmentHouseNrAddition() { return EstablishmentHouseNrAddition; }
public CompanyLookupDetails setEstablishmentHouseNrAddition(String value) { this.EstablishmentHouseNrAddition = value; return this; }
public String getEstablishmentPostalCode() { return EstablishmentPostalCode; }
public CompanyLookupDetails setEstablishmentPostalCode(String value) { this.EstablishmentPostalCode = value; return this; }
public String getEstablishmentCity() { return EstablishmentCity; }
public CompanyLookupDetails setEstablishmentCity(String value) { this.EstablishmentCity = value; return this; }
public String getEstablishmentCountryTLA() { return EstablishmentCountryTLA; }
public CompanyLookupDetails setEstablishmentCountryTLA(String value) { this.EstablishmentCountryTLA = value; return this; }
public String getCorrespondencePOBox() { return CorrespondencePOBox; }
public CompanyLookupDetails setCorrespondencePOBox(String value) { this.CorrespondencePOBox = value; return this; }
public String getCorrespondencePostalCode() { return CorrespondencePostalCode; }
public CompanyLookupDetails setCorrespondencePostalCode(String value) { this.CorrespondencePostalCode = value; return this; }
public String getCorrespondenceCity() { return CorrespondenceCity; }
public CompanyLookupDetails setCorrespondenceCity(String value) { this.CorrespondenceCity = value; return this; }
public String getCorrespondenceCountryTLA() { return CorrespondenceCountryTLA; }
public CompanyLookupDetails setCorrespondenceCountryTLA(String value) { this.CorrespondenceCountryTLA = value; return this; }
public String getWebsite() { return Website; }
public CompanyLookupDetails setWebsite(String value) { this.Website = value; return this; }
public String getTelephone() { return Telephone; }
public CompanyLookupDetails setTelephone(String value) { this.Telephone = value; return this; }
public String getMobile() { return Mobile; }
public CompanyLookupDetails setMobile(String value) { this.Mobile = value; return this; }
public String getEMail() { return EMail; }
public CompanyLookupDetails setEMail(String value) { this.EMail = value; return this; }
public Boolean isDebtorInPossession() { return DebtorInPossession; }
public CompanyLookupDetails setDebtorInPossession(Boolean value) { this.DebtorInPossession = value; return this; }
public Boolean isBankrupt() { return Bankrupt; }
public CompanyLookupDetails setBankrupt(Boolean value) { this.Bankrupt = value; return this; }
public HashMap<String,Object> getExtraFields() { return ExtraFields; }
public CompanyLookupDetails setExtraFields(HashMap<String,Object> value) { this.ExtraFields = value; return this; }
}
}
Java GetCompanyLookupDetails 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 /api/companies/lookup/{ChamberNr} HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CompanyLookupDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.CompanyLookup.DTO"> <Bankrupt>false</Bankrupt> <ChamberCity>String</ChamberCity> <ChamberEstablishmentNumber>String</ChamberEstablishmentNumber> <ChamberFoundingDate>0001-01-01T00:00:00</ChamberFoundingDate> <ChamberNr>String</ChamberNr> <CompanyLegalName>String</CompanyLegalName> <CompanyTradeName>String</CompanyTradeName> <CorrespondenceCity>String</CorrespondenceCity> <CorrespondenceCountryTLA>String</CorrespondenceCountryTLA> <CorrespondencePOBox>String</CorrespondencePOBox> <CorrespondencePostalCode>String</CorrespondencePostalCode> <DebtorInPossession>false</DebtorInPossession> <EMail>String</EMail> <EstablishmentCity>String</EstablishmentCity> <EstablishmentCountryTLA>String</EstablishmentCountryTLA> <EstablishmentHouseNr>String</EstablishmentHouseNr> <EstablishmentHouseNrAddition>String</EstablishmentHouseNrAddition> <EstablishmentPostalCode>String</EstablishmentPostalCode> <EstablishmentStreet>String</EstablishmentStreet> <ExtraFields xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>String</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </ExtraFields> <Mobile>String</Mobile> <Telephone>String</Telephone> <Website>String</Website> </CompanyLookupDetails>