| POST | /api/4PSBC/ImportContactpersoon |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Import bedrijf record vanuit 4PS
*/
@Api(Description="Import bedrijf record vanuit 4PS")
public static class IDB_4PSBC_Import_ContactPerson
{
/**
* Message header
*/
@ApiMember(Description="Message header", IsRequired=true)
public Header Header = null;
/**
* Message data
*/
@ApiMember(Description="Message data", IsRequired=true)
public Data_ContactPerson Data = null;
public Header getHeader() { return Header; }
public IDB_4PSBC_Import_ContactPerson setHeader(Header value) { this.Header = value; return this; }
public Data_ContactPerson getData() { return Data; }
public IDB_4PSBC_Import_ContactPerson setData(Data_ContactPerson value) { this.Data = value; return this; }
}
public static class Header
{
/**
* Inhoud van het bericht
*/
@ApiMember(Description="Inhoud van het bericht")
public String Contains = null;
/**
* Datum aanmaak bericht
*/
@ApiMember(Description="Datum aanmaak bericht")
public String Date = null;
/**
* ID voor het bericht
*/
@ApiMember(Description="ID voor het bericht")
public String MessageID = null;
/**
* Verzender van het bericht
*/
@ApiMember(Description="Verzender van het bericht")
public String Sender = null;
public String getContains() { return Contains; }
public Header setContains(String value) { this.Contains = value; return this; }
public String getDate() { return Date; }
public Header setDate(String value) { this.Date = value; return this; }
public String getMessageID() { return MessageID; }
public Header setMessageID(String value) { this.MessageID = value; return this; }
public String getSender() { return Sender; }
public Header setSender(String value) { this.Sender = value; return this; }
}
public static class Data_ContactPerson
{
public UUID systemId = null;
public UUID digiOfficeId = null;
public String companyName4ps = null;
public String no = null;
public UUID crmCompanyId = null;
public UUID crmPersonId = null;
public String jobTitle = null;
public String phoneNo = null;
public String mobilePhoneNo = null;
public String eMail = null;
public UUID companyId = null;
public Boolean blocked = null;
public UUID getSystemId() { return systemId; }
public Data_ContactPerson setSystemId(UUID value) { this.systemId = value; return this; }
public UUID getDigiOfficeId() { return digiOfficeId; }
public Data_ContactPerson setDigiOfficeId(UUID value) { this.digiOfficeId = value; return this; }
public String getCompanyName4ps() { return companyName4ps; }
public Data_ContactPerson setCompanyName4ps(String value) { this.companyName4ps = value; return this; }
public String getNo() { return no; }
public Data_ContactPerson setNo(String value) { this.no = value; return this; }
public UUID getCrmCompanyId() { return crmCompanyId; }
public Data_ContactPerson setCrmCompanyId(UUID value) { this.crmCompanyId = value; return this; }
public UUID getCrmPersonId() { return crmPersonId; }
public Data_ContactPerson setCrmPersonId(UUID value) { this.crmPersonId = value; return this; }
public String getJobTitle() { return jobTitle; }
public Data_ContactPerson setJobTitle(String value) { this.jobTitle = value; return this; }
public String getPhoneNo() { return phoneNo; }
public Data_ContactPerson setPhoneNo(String value) { this.phoneNo = value; return this; }
public String getMobilePhoneNo() { return mobilePhoneNo; }
public Data_ContactPerson setMobilePhoneNo(String value) { this.mobilePhoneNo = value; return this; }
public String getEMail() { return eMail; }
public Data_ContactPerson setEMail(String value) { this.eMail = value; return this; }
public UUID getCompanyId() { return companyId; }
public Data_ContactPerson setCompanyId(UUID value) { this.companyId = value; return this; }
public Boolean isBlocked() { return blocked; }
public Data_ContactPerson setBlocked(Boolean value) { this.blocked = value; return this; }
}
public static class IDB_4PSBC_Response_ContactPerson
{
/**
* Header of the response
*/
@ApiMember(Description="Header of the response", IsRequired=true)
public Header Header = null;
/**
* Response body
*/
@ApiMember(Description="Response body", IsRequired=true)
public Response_ContactPerson Response = null;
public Header getHeader() { return Header; }
public IDB_4PSBC_Response_ContactPerson setHeader(Header value) { this.Header = value; return this; }
public Response_ContactPerson getResponse() { return Response; }
public IDB_4PSBC_Response_ContactPerson setResponse(Response_ContactPerson value) { this.Response = value; return this; }
}
public static class Response_ContactPerson
{
/**
* Reponse status (Ok/Error)
*/
@ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
public String Status = null;
/**
* Errors summary
*/
@ApiMember(Description="Errors summary")
public String Errors = null;
/**
* ID of the contactperson in DigiOffice
*/
@ApiMember(Description="ID of the contactperson in DigiOffice", IsRequired=true)
public String DigiOfficeContactPersonID = null;
/**
* GlobalID (digiOfficeId) of the contactperson in DigiOffice
*/
@ApiMember(Description="GlobalID (digiOfficeId) of the contactperson in DigiOffice", IsRequired=true)
public UUID DigiOfficeGlobalID = null;
public String getStatus() { return Status; }
public Response_ContactPerson setStatus(String value) { this.Status = value; return this; }
public String getErrors() { return Errors; }
public Response_ContactPerson setErrors(String value) { this.Errors = value; return this; }
public String getDigiOfficeContactPersonID() { return DigiOfficeContactPersonID; }
public Response_ContactPerson setDigiOfficeContactPersonID(String value) { this.DigiOfficeContactPersonID = value; return this; }
public UUID getDigiOfficeGlobalID() { return DigiOfficeGlobalID; }
public Response_ContactPerson setDigiOfficeGlobalID(UUID value) { this.DigiOfficeGlobalID = value; return this; }
}
}
Java IDB_4PSBC_Import_ContactPerson 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.
POST /api/4PSBC/ImportContactpersoon HTTP/1.1
Host: dogw.klokgroep.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","companyName4ps":"String","no":"String","crmCompanyId":"00000000-0000-0000-0000-000000000000","crmPersonId":"00000000-0000-0000-0000-000000000000","jobTitle":"String","phoneNo":"String","mobilePhoneNo":"String","eMail":"String","companyId":"00000000-0000-0000-0000-000000000000","blocked":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Response":{"Status":"String","Errors":"String","DigiOfficeContactPersonID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}