| 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 .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: 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>