| GET | /api/companies/lookup |
|---|
"use strict";
export class CompanyLookupEntry {
/** @param {{ChamberNr?:string,ChamberEstablishmentNumber?:string,LegalName?:string,TradeName?:string,MatchType?:string,EstablishmentCity?:string,EstablishmentStreet?:string,CorrespondenceCity?:string,CorrespondenceStreet?:string,IndicationMainEstablishment?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ChamberNr;
/** @type {string} */
ChamberEstablishmentNumber;
/** @type {string} */
LegalName;
/** @type {string} */
TradeName;
/** @type {string} */
MatchType;
/** @type {string} */
EstablishmentCity;
/** @type {string} */
EstablishmentStreet;
/** @type {string} */
CorrespondenceCity;
/** @type {string} */
CorrespondenceStreet;
/** @type {?boolean} */
IndicationMainEstablishment;
}
export class PagingResultsInfo {
/** @param {{CurrentPage?:number,MaxResultsPerPage?:number,NumberOfPages?:number,NumberOfResults?:number,MaximumResults?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
CurrentPage;
/** @type {number} */
MaxResultsPerPage;
/** @type {number} */
NumberOfPages;
/** @type {number} */
NumberOfResults;
/** @type {number} */
MaximumResults;
}
export class CompanyLookupSearchResults {
/** @param {{Results?:CompanyLookupEntry[],PagingResultsInfo?:PagingResultsInfo}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {CompanyLookupEntry[]} */
Results;
/** @type {PagingResultsInfo} */
PagingResultsInfo;
}
export class GetCompaniesLookup {
/** @param {{ChamberNr?:string,TradeName?:string,City?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
ChamberNr;
/** @type {string} */
TradeName;
/** @type {string} */
City;
}
JavaScript GetCompaniesLookup DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/companies/lookup HTTP/1.1 Host: test-dogw.klokgroep.nl Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Results":[],"PagingResultsInfo":{"CurrentPage":0,"MaxResultsPerPage":0,"NumberOfPages":0,"NumberOfResults":0,"MaximumResults":0}}