| Requires any of the roles: | Worker, Agent, Administrator |
| GET,OPTIONS | /v1/AgentCrmRecruit/{AgentId} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentCrmRecruitRequest
{
public Integer AgentID = null;
public ArrayList<AgentCrmRecruit> AgentCrmRecruit = new ArrayList<AgentCrmRecruit>();
public Date StartDate = null;
public Date EndDate = null;
public Integer getAgentID() { return AgentID; }
public AgentCrmRecruitRequest setAgentID(Integer value) { this.AgentID = value; return this; }
public ArrayList<AgentCrmRecruit> getAgentCrmRecruit() { return AgentCrmRecruit; }
public AgentCrmRecruitRequest setAgentCrmRecruit(ArrayList<AgentCrmRecruit> value) { this.AgentCrmRecruit = value; return this; }
public Date getStartDate() { return StartDate; }
public AgentCrmRecruitRequest setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public AgentCrmRecruitRequest setEndDate(Date value) { this.EndDate = value; return this; }
}
public static class AgentCrmRecruit
{
public String Rank = null;
public String AgentLevel = null;
public String UL1FirstName = null;
public String UL1MiddleName = null;
public String UL1LastName = null;
public String UL2FirstName = null;
public String UL2MiddleName = null;
public String UL2LastName = null;
public String UL3FirstName = null;
public String UL3MiddleName = null;
public String UL3LastName = null;
public String UL4FirstName = null;
public String UL4MiddleName = null;
public String UL4LastName = null;
public String firstMVP = null;
public String lastMVP = null;
public String firstAVP = null;
public String lastAVP = null;
public String firstRVP = null;
public String lastRVP = null;
public String ResidentLicenseState = null;
public String ResidentLicenseExpirationDate = null;
public Integer AgentId = null;
public String AgentStatus = null;
public String Office = null;
public BigDecimal Upline1Percent = null;
public BigDecimal Upline2Percent = null;
public BigDecimal Upline3Percent = null;
public BigDecimal Upline4Percent = null;
public String FirstName = null;
public String LastName = null;
public String MiddleInitial = null;
public String Address1 = null;
public String Address2 = null;
public String City = null;
public String State = null;
public String Zip = null;
public String Email = null;
public String BusinessEmail = null;
public String HomePhone = null;
public String CellPhone = null;
public String WorkPhone = null;
public String Fax = null;
public String AgentNumber = null;
public String PlacementAgent = null;
public Date CreatedDate = null;
public String Level = null;
public String Package = null;
public BigDecimal AppCount = null;
public BigDecimal Cashflow = null;
public String TimeZone = null;
public String Tags = null;
public BigDecimal Longitude = null;
public BigDecimal Latitude = null;
public String getRank() { return Rank; }
public AgentCrmRecruit setRank(String value) { this.Rank = value; return this; }
public String getAgentLevel() { return AgentLevel; }
public AgentCrmRecruit setAgentLevel(String value) { this.AgentLevel = value; return this; }
public String getUL1FirstName() { return UL1FirstName; }
public AgentCrmRecruit setUL1FirstName(String value) { this.UL1FirstName = value; return this; }
public String getUL1MiddleName() { return UL1MiddleName; }
public AgentCrmRecruit setUL1MiddleName(String value) { this.UL1MiddleName = value; return this; }
public String getUL1LastName() { return UL1LastName; }
public AgentCrmRecruit setUL1LastName(String value) { this.UL1LastName = value; return this; }
public String getUL2FirstName() { return UL2FirstName; }
public AgentCrmRecruit setUL2FirstName(String value) { this.UL2FirstName = value; return this; }
public String getUL2MiddleName() { return UL2MiddleName; }
public AgentCrmRecruit setUL2MiddleName(String value) { this.UL2MiddleName = value; return this; }
public String getUL2LastName() { return UL2LastName; }
public AgentCrmRecruit setUL2LastName(String value) { this.UL2LastName = value; return this; }
public String getUL3FirstName() { return UL3FirstName; }
public AgentCrmRecruit setUL3FirstName(String value) { this.UL3FirstName = value; return this; }
public String getUL3MiddleName() { return UL3MiddleName; }
public AgentCrmRecruit setUL3MiddleName(String value) { this.UL3MiddleName = value; return this; }
public String getUL3LastName() { return UL3LastName; }
public AgentCrmRecruit setUL3LastName(String value) { this.UL3LastName = value; return this; }
public String getUL4FirstName() { return UL4FirstName; }
public AgentCrmRecruit setUL4FirstName(String value) { this.UL4FirstName = value; return this; }
public String getUL4MiddleName() { return UL4MiddleName; }
public AgentCrmRecruit setUL4MiddleName(String value) { this.UL4MiddleName = value; return this; }
public String getUL4LastName() { return UL4LastName; }
public AgentCrmRecruit setUL4LastName(String value) { this.UL4LastName = value; return this; }
public String getFirstMVP() { return firstMVP; }
public AgentCrmRecruit setFirstMVP(String value) { this.firstMVP = value; return this; }
public String getLastMVP() { return lastMVP; }
public AgentCrmRecruit setLastMVP(String value) { this.lastMVP = value; return this; }
public String getFirstAVP() { return firstAVP; }
public AgentCrmRecruit setFirstAVP(String value) { this.firstAVP = value; return this; }
public String getLastAVP() { return lastAVP; }
public AgentCrmRecruit setLastAVP(String value) { this.lastAVP = value; return this; }
public String getFirstRVP() { return firstRVP; }
public AgentCrmRecruit setFirstRVP(String value) { this.firstRVP = value; return this; }
public String getLastRVP() { return lastRVP; }
public AgentCrmRecruit setLastRVP(String value) { this.lastRVP = value; return this; }
public String getResidentLicenseState() { return ResidentLicenseState; }
public AgentCrmRecruit setResidentLicenseState(String value) { this.ResidentLicenseState = value; return this; }
public String getResidentLicenseExpirationDate() { return ResidentLicenseExpirationDate; }
public AgentCrmRecruit setResidentLicenseExpirationDate(String value) { this.ResidentLicenseExpirationDate = value; return this; }
public Integer getAgentId() { return AgentId; }
public AgentCrmRecruit setAgentId(Integer value) { this.AgentId = value; return this; }
public String getAgentStatus() { return AgentStatus; }
public AgentCrmRecruit setAgentStatus(String value) { this.AgentStatus = value; return this; }
public String getOffice() { return Office; }
public AgentCrmRecruit setOffice(String value) { this.Office = value; return this; }
public BigDecimal getUpline1Percent() { return Upline1Percent; }
public AgentCrmRecruit setUpline1Percent(BigDecimal value) { this.Upline1Percent = value; return this; }
public BigDecimal getUpline2Percent() { return Upline2Percent; }
public AgentCrmRecruit setUpline2Percent(BigDecimal value) { this.Upline2Percent = value; return this; }
public BigDecimal getUpline3Percent() { return Upline3Percent; }
public AgentCrmRecruit setUpline3Percent(BigDecimal value) { this.Upline3Percent = value; return this; }
public BigDecimal getUpline4Percent() { return Upline4Percent; }
public AgentCrmRecruit setUpline4Percent(BigDecimal value) { this.Upline4Percent = value; return this; }
public String getFirstName() { return FirstName; }
public AgentCrmRecruit setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public AgentCrmRecruit setLastName(String value) { this.LastName = value; return this; }
public String getMiddleInitial() { return MiddleInitial; }
public AgentCrmRecruit setMiddleInitial(String value) { this.MiddleInitial = value; return this; }
public String getAddress1() { return Address1; }
public AgentCrmRecruit setAddress1(String value) { this.Address1 = value; return this; }
public String getAddress2() { return Address2; }
public AgentCrmRecruit setAddress2(String value) { this.Address2 = value; return this; }
public String getCity() { return City; }
public AgentCrmRecruit setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public AgentCrmRecruit setState(String value) { this.State = value; return this; }
public String getZip() { return Zip; }
public AgentCrmRecruit setZip(String value) { this.Zip = value; return this; }
public String getEmail() { return Email; }
public AgentCrmRecruit setEmail(String value) { this.Email = value; return this; }
public String getBusinessEmail() { return BusinessEmail; }
public AgentCrmRecruit setBusinessEmail(String value) { this.BusinessEmail = value; return this; }
public String getHomePhone() { return HomePhone; }
public AgentCrmRecruit setHomePhone(String value) { this.HomePhone = value; return this; }
public String getCellPhone() { return CellPhone; }
public AgentCrmRecruit setCellPhone(String value) { this.CellPhone = value; return this; }
public String getWorkPhone() { return WorkPhone; }
public AgentCrmRecruit setWorkPhone(String value) { this.WorkPhone = value; return this; }
public String getFax() { return Fax; }
public AgentCrmRecruit setFax(String value) { this.Fax = value; return this; }
public String getAgentNumber() { return AgentNumber; }
public AgentCrmRecruit setAgentNumber(String value) { this.AgentNumber = value; return this; }
public String getPlacementAgent() { return PlacementAgent; }
public AgentCrmRecruit setPlacementAgent(String value) { this.PlacementAgent = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public AgentCrmRecruit setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public String getLevel() { return Level; }
public AgentCrmRecruit setLevel(String value) { this.Level = value; return this; }
public String getPackage() { return Package; }
public AgentCrmRecruit setPackage(String value) { this.Package = value; return this; }
public BigDecimal getAppCount() { return AppCount; }
public AgentCrmRecruit setAppCount(BigDecimal value) { this.AppCount = value; return this; }
public BigDecimal getCashflow() { return Cashflow; }
public AgentCrmRecruit setCashflow(BigDecimal value) { this.Cashflow = value; return this; }
public String getTimeZone() { return TimeZone; }
public AgentCrmRecruit setTimeZone(String value) { this.TimeZone = value; return this; }
public String getTags() { return Tags; }
public AgentCrmRecruit setTags(String value) { this.Tags = value; return this; }
public BigDecimal getLongitude() { return Longitude; }
public AgentCrmRecruit setLongitude(BigDecimal value) { this.Longitude = value; return this; }
public BigDecimal getLatitude() { return Latitude; }
public AgentCrmRecruit setLatitude(BigDecimal value) { this.Latitude = value; return this; }
}
public static class AgentCrmRecruitResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentCrmRecruit> AgentCrmRecruit = new ArrayList<AgentCrmRecruit>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentCrmRecruitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentCrmRecruit> getAgentCrmRecruit() { return AgentCrmRecruit; }
public AgentCrmRecruitResponse setAgentCrmRecruit(ArrayList<AgentCrmRecruit> value) { this.AgentCrmRecruit = value; return this; }
}
}
Java AgentCrmRecruitRequest 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.
GET /v1/AgentCrmRecruit/{AgentId} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentCrmRecruitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgentCrmRecruit>
<AgentCrmRecruit>
<Address1>String</Address1>
<Address2>String</Address2>
<AgentId>0</AgentId>
<AgentLevel>String</AgentLevel>
<AgentNumber>String</AgentNumber>
<AgentStatus>String</AgentStatus>
<AppCount>0</AppCount>
<BusinessEmail>String</BusinessEmail>
<Cashflow>0</Cashflow>
<CellPhone>String</CellPhone>
<City>String</City>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<Email>String</Email>
<Fax>String</Fax>
<FirstName>String</FirstName>
<HomePhone>String</HomePhone>
<LastName>String</LastName>
<Latitude>0</Latitude>
<Level>String</Level>
<Longitude>0</Longitude>
<MiddleInitial>String</MiddleInitial>
<Office>String</Office>
<Package>String</Package>
<PlacementAgent>String</PlacementAgent>
<Rank>String</Rank>
<ResidentLicenseExpirationDate>String</ResidentLicenseExpirationDate>
<ResidentLicenseState>String</ResidentLicenseState>
<State>String</State>
<Tags>String</Tags>
<TimeZone>String</TimeZone>
<UL1FirstName>String</UL1FirstName>
<UL1LastName>String</UL1LastName>
<UL1MiddleName>String</UL1MiddleName>
<UL2FirstName>String</UL2FirstName>
<UL2LastName>String</UL2LastName>
<UL2MiddleName>String</UL2MiddleName>
<UL3FirstName>String</UL3FirstName>
<UL3LastName>String</UL3LastName>
<UL3MiddleName>String</UL3MiddleName>
<UL4FirstName>String</UL4FirstName>
<UL4LastName>String</UL4LastName>
<UL4MiddleName>String</UL4MiddleName>
<Upline1Percent>0</Upline1Percent>
<Upline2Percent>0</Upline2Percent>
<Upline3Percent>0</Upline3Percent>
<Upline4Percent>0</Upline4Percent>
<WorkPhone>String</WorkPhone>
<Zip>String</Zip>
<firstAVP>String</firstAVP>
<firstMVP>String</firstMVP>
<firstRVP>String</firstRVP>
<lastAVP>String</lastAVP>
<lastMVP>String</lastMVP>
<lastRVP>String</lastRVP>
</AgentCrmRecruit>
</AgentCrmRecruit>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
</AgentCrmRecruitResponse>