| POST | /api/4PSBC/ImportContactpersoon |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class Header implements IConvertible
{
/**
* Inhoud van het bericht
*/
// @ApiMember(Description="Inhoud van het bericht")
String? Contains;
/**
* Datum aanmaak bericht
*/
// @ApiMember(Description="Datum aanmaak bericht")
String? Date;
/**
* ID voor het bericht
*/
// @ApiMember(Description="ID voor het bericht")
String? MessageID;
/**
* Verzender van het bericht
*/
// @ApiMember(Description="Verzender van het bericht")
String? Sender;
Header({this.Contains,this.Date,this.MessageID,this.Sender});
Header.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Contains = json['Contains'];
Date = json['Date'];
MessageID = json['MessageID'];
Sender = json['Sender'];
return this;
}
Map<String, dynamic> toJson() => {
'Contains': Contains,
'Date': Date,
'MessageID': MessageID,
'Sender': Sender
};
getTypeName() => "Header";
TypeContext? context = _ctx;
}
class Response_ContactPerson implements IConvertible
{
/**
* Reponse status (Ok/Error)
*/
// @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
String? Status;
/**
* Errors summary
*/
// @ApiMember(Description="Errors summary")
String? Errors;
/**
* ID of the contactperson in DigiOffice
*/
// @ApiMember(Description="ID of the contactperson in DigiOffice", IsRequired=true)
String? DigiOfficeContactPersonID;
/**
* GlobalID (digiOfficeId) of the contactperson in DigiOffice
*/
// @ApiMember(Description="GlobalID (digiOfficeId) of the contactperson in DigiOffice", IsRequired=true)
String? DigiOfficeGlobalID;
Response_ContactPerson({this.Status,this.Errors,this.DigiOfficeContactPersonID,this.DigiOfficeGlobalID});
Response_ContactPerson.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Status = json['Status'];
Errors = json['Errors'];
DigiOfficeContactPersonID = json['DigiOfficeContactPersonID'];
DigiOfficeGlobalID = json['DigiOfficeGlobalID'];
return this;
}
Map<String, dynamic> toJson() => {
'Status': Status,
'Errors': Errors,
'DigiOfficeContactPersonID': DigiOfficeContactPersonID,
'DigiOfficeGlobalID': DigiOfficeGlobalID
};
getTypeName() => "Response_ContactPerson";
TypeContext? context = _ctx;
}
class IDB_4PSBC_Response_ContactPerson implements IConvertible
{
/**
* Header of the response
*/
// @ApiMember(Description="Header of the response", IsRequired=true)
Header? Header;
/**
* Response body
*/
// @ApiMember(Description="Response body", IsRequired=true)
Response_ContactPerson? Response;
IDB_4PSBC_Response_ContactPerson({this.Header,this.Response});
IDB_4PSBC_Response_ContactPerson.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Header = JsonConverters.fromJson(json['Header'],'Header',context!);
Response = JsonConverters.fromJson(json['Response'],'Response_ContactPerson',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Header': JsonConverters.toJson(Header,'Header',context!),
'Response': JsonConverters.toJson(Response,'Response_ContactPerson',context!)
};
getTypeName() => "IDB_4PSBC_Response_ContactPerson";
TypeContext? context = _ctx;
}
class Data_ContactPerson implements IConvertible
{
String? systemId;
String? digiOfficeId;
String? companyName4ps;
String? no;
String? crmCompanyId;
String? crmPersonId;
String? jobTitle;
String? phoneNo;
String? mobilePhoneNo;
String? eMail;
String? companyId;
bool? blocked;
Data_ContactPerson({this.systemId,this.digiOfficeId,this.companyName4ps,this.no,this.crmCompanyId,this.crmPersonId,this.jobTitle,this.phoneNo,this.mobilePhoneNo,this.eMail,this.companyId,this.blocked});
Data_ContactPerson.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
systemId = json['systemId'];
digiOfficeId = json['digiOfficeId'];
companyName4ps = json['companyName4ps'];
no = json['no'];
crmCompanyId = json['crmCompanyId'];
crmPersonId = json['crmPersonId'];
jobTitle = json['jobTitle'];
phoneNo = json['phoneNo'];
mobilePhoneNo = json['mobilePhoneNo'];
eMail = json['eMail'];
companyId = json['companyId'];
blocked = json['blocked'];
return this;
}
Map<String, dynamic> toJson() => {
'systemId': systemId,
'digiOfficeId': digiOfficeId,
'companyName4ps': companyName4ps,
'no': no,
'crmCompanyId': crmCompanyId,
'crmPersonId': crmPersonId,
'jobTitle': jobTitle,
'phoneNo': phoneNo,
'mobilePhoneNo': mobilePhoneNo,
'eMail': eMail,
'companyId': companyId,
'blocked': blocked
};
getTypeName() => "Data_ContactPerson";
TypeContext? context = _ctx;
}
/**
* Import bedrijf record vanuit 4PS
*/
// @Api(Description="Import bedrijf record vanuit 4PS")
class IDB_4PSBC_Import_ContactPerson implements IConvertible
{
/**
* Message header
*/
// @ApiMember(Description="Message header", IsRequired=true)
Header? Header;
/**
* Message data
*/
// @ApiMember(Description="Message data", IsRequired=true)
Data_ContactPerson? Data;
IDB_4PSBC_Import_ContactPerson({this.Header,this.Data});
IDB_4PSBC_Import_ContactPerson.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Header = JsonConverters.fromJson(json['Header'],'Header',context!);
Data = JsonConverters.fromJson(json['Data'],'Data_ContactPerson',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Header': JsonConverters.toJson(Header,'Header',context!),
'Data': JsonConverters.toJson(Data,'Data_ContactPerson',context!)
};
getTypeName() => "IDB_4PSBC_Import_ContactPerson";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test_dogw.klokgroep.nl', types: <String, TypeInfo> {
'Header': TypeInfo(TypeOf.Class, create:() => Header()),
'Response_ContactPerson': TypeInfo(TypeOf.Class, create:() => Response_ContactPerson()),
'IDB_4PSBC_Response_ContactPerson': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Response_ContactPerson()),
'Data_ContactPerson': TypeInfo(TypeOf.Class, create:() => Data_ContactPerson()),
'IDB_4PSBC_Import_ContactPerson': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Import_ContactPerson()),
});
Dart IDB_4PSBC_Import_ContactPerson 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.
POST /api/4PSBC/ImportContactpersoon HTTP/1.1
Host: test-dogw.klokgroep.nl
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<IDB_4PSBC_Import_ContactPerson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Synchronization.IDB_4PSBC.DTO">
<Data>
<blocked>false</blocked>
<companyId>00000000-0000-0000-0000-000000000000</companyId>
<companyName4ps>String</companyName4ps>
<crmCompanyId>00000000-0000-0000-0000-000000000000</crmCompanyId>
<crmPersonId>00000000-0000-0000-0000-000000000000</crmPersonId>
<digiOfficeId>00000000-0000-0000-0000-000000000000</digiOfficeId>
<eMail>String</eMail>
<jobTitle>String</jobTitle>
<mobilePhoneNo>String</mobilePhoneNo>
<no>String</no>
<phoneNo>String</phoneNo>
<systemId>00000000-0000-0000-0000-000000000000</systemId>
</Data>
<Header>
<Contains>String</Contains>
<Date>String</Date>
<MessageID>String</MessageID>
<Sender>String</Sender>
</Header>
</IDB_4PSBC_Import_ContactPerson>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<IDB_4PSBC_Response_ContactPerson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Synchronization.IDB_4PSBC.DTO">
<Header>
<Contains>String</Contains>
<Date>String</Date>
<MessageID>String</MessageID>
<Sender>String</Sender>
</Header>
<Response>
<DigiOfficeContactPersonID>String</DigiOfficeContactPersonID>
<DigiOfficeGlobalID>00000000-0000-0000-0000-000000000000</DigiOfficeGlobalID>
<Errors>String</Errors>
<Status>String</Status>
</Response>
</IDB_4PSBC_Response_ContactPerson>