GET | /api/companies/lookup/{ChamberNr} |
---|
import 'package:servicestack/servicestack.dart';
class CompanyLookupDetails implements IConvertible
{
String? ChamberNr;
String? ChamberEstablishmentNumber;
String? CompanyLegalName;
String? CompanyTradeName;
String? ChamberCity;
DateTime? ChamberFoundingDate;
String? EstablishmentStreet;
String? EstablishmentHouseNr;
String? EstablishmentHouseNrAddition;
String? EstablishmentPostalCode;
String? EstablishmentCity;
String? EstablishmentCountryTLA;
String? CorrespondencePOBox;
String? CorrespondencePostalCode;
String? CorrespondenceCity;
String? CorrespondenceCountryTLA;
String? Website;
String? Telephone;
String? Mobile;
String? EMail;
bool? DebtorInPossession;
bool? Bankrupt;
Map<String,dynamic?>? ExtraFields;
CompanyLookupDetails({this.ChamberNr,this.ChamberEstablishmentNumber,this.CompanyLegalName,this.CompanyTradeName,this.ChamberCity,this.ChamberFoundingDate,this.EstablishmentStreet,this.EstablishmentHouseNr,this.EstablishmentHouseNrAddition,this.EstablishmentPostalCode,this.EstablishmentCity,this.EstablishmentCountryTLA,this.CorrespondencePOBox,this.CorrespondencePostalCode,this.CorrespondenceCity,this.CorrespondenceCountryTLA,this.Website,this.Telephone,this.Mobile,this.EMail,this.DebtorInPossession,this.Bankrupt,this.ExtraFields});
CompanyLookupDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ChamberNr = json['ChamberNr'];
ChamberEstablishmentNumber = json['ChamberEstablishmentNumber'];
CompanyLegalName = json['CompanyLegalName'];
CompanyTradeName = json['CompanyTradeName'];
ChamberCity = json['ChamberCity'];
ChamberFoundingDate = JsonConverters.fromJson(json['ChamberFoundingDate'],'DateTime',context!);
EstablishmentStreet = json['EstablishmentStreet'];
EstablishmentHouseNr = json['EstablishmentHouseNr'];
EstablishmentHouseNrAddition = json['EstablishmentHouseNrAddition'];
EstablishmentPostalCode = json['EstablishmentPostalCode'];
EstablishmentCity = json['EstablishmentCity'];
EstablishmentCountryTLA = json['EstablishmentCountryTLA'];
CorrespondencePOBox = json['CorrespondencePOBox'];
CorrespondencePostalCode = json['CorrespondencePostalCode'];
CorrespondenceCity = json['CorrespondenceCity'];
CorrespondenceCountryTLA = json['CorrespondenceCountryTLA'];
Website = json['Website'];
Telephone = json['Telephone'];
Mobile = json['Mobile'];
EMail = json['EMail'];
DebtorInPossession = json['DebtorInPossession'];
Bankrupt = json['Bankrupt'];
ExtraFields = JsonConverters.fromJson(json['ExtraFields'],'Map<String,dynamic?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ChamberNr': ChamberNr,
'ChamberEstablishmentNumber': ChamberEstablishmentNumber,
'CompanyLegalName': CompanyLegalName,
'CompanyTradeName': CompanyTradeName,
'ChamberCity': ChamberCity,
'ChamberFoundingDate': JsonConverters.toJson(ChamberFoundingDate,'DateTime',context!),
'EstablishmentStreet': EstablishmentStreet,
'EstablishmentHouseNr': EstablishmentHouseNr,
'EstablishmentHouseNrAddition': EstablishmentHouseNrAddition,
'EstablishmentPostalCode': EstablishmentPostalCode,
'EstablishmentCity': EstablishmentCity,
'EstablishmentCountryTLA': EstablishmentCountryTLA,
'CorrespondencePOBox': CorrespondencePOBox,
'CorrespondencePostalCode': CorrespondencePostalCode,
'CorrespondenceCity': CorrespondenceCity,
'CorrespondenceCountryTLA': CorrespondenceCountryTLA,
'Website': Website,
'Telephone': Telephone,
'Mobile': Mobile,
'EMail': EMail,
'DebtorInPossession': DebtorInPossession,
'Bankrupt': Bankrupt,
'ExtraFields': JsonConverters.toJson(ExtraFields,'Map<String,dynamic?>',context!)
};
getTypeName() => "CompanyLookupDetails";
TypeContext? context = _ctx;
}
class GetCompanyLookupDetails implements IConvertible
{
String? ChamberNr;
String? ChamberEstablishmentNumber;
GetCompanyLookupDetails({this.ChamberNr,this.ChamberEstablishmentNumber});
GetCompanyLookupDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ChamberNr = json['ChamberNr'];
ChamberEstablishmentNumber = json['ChamberEstablishmentNumber'];
return this;
}
Map<String, dynamic> toJson() => {
'ChamberNr': ChamberNr,
'ChamberEstablishmentNumber': ChamberEstablishmentNumber
};
getTypeName() => "GetCompanyLookupDetails";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
'CompanyLookupDetails': TypeInfo(TypeOf.Class, create:() => CompanyLookupDetails()),
'Map<String,dynamic?>': TypeInfo(TypeOf.Class, create:() => Map<String,dynamic?>()),
'GetCompanyLookupDetails': TypeInfo(TypeOf.Class, create:() => GetCompanyLookupDetails()),
});
Dart GetCompanyLookupDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"ChamberNr":"String","ChamberEstablishmentNumber":"String","CompanyLegalName":"String","CompanyTradeName":"String","ChamberCity":"String","ChamberFoundingDate":"0001-01-01T00:00:00.0000000","EstablishmentStreet":"String","EstablishmentHouseNr":"String","EstablishmentHouseNrAddition":"String","EstablishmentPostalCode":"String","EstablishmentCity":"String","EstablishmentCountryTLA":"String","CorrespondencePOBox":"String","CorrespondencePostalCode":"String","CorrespondenceCity":"String","CorrespondenceCountryTLA":"String","Website":"String","Telephone":"String","Mobile":"String","EMail":"String","DebtorInPossession":false,"Bankrupt":false,"ExtraFields":{"String":{}}}