| Requires any of the roles: | Agent, Administrator |
| GET,OPTIONS | /v1/AgentRecruit |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AgentRecruitRequest
{
public ArrayList<AgentRecruit> AgentRecruit = new ArrayList<AgentRecruit>();
public Date StartDate = null;
public Date EndDate = null;
public ArrayList<AgentRecruit> getAgentRecruit() { return AgentRecruit; }
public AgentRecruitRequest setAgentRecruit(ArrayList<AgentRecruit> value) { this.AgentRecruit = value; return this; }
public Date getStartDate() { return StartDate; }
public AgentRecruitRequest setStartDate(Date value) { this.StartDate = value; return this; }
public Date getEndDate() { return EndDate; }
public AgentRecruitRequest setEndDate(Date value) { this.EndDate = value; return this; }
}
public static class AgentRecruit
{
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 Company = 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 Country = null;
public String Email = null;
public String HomePhone = null;
public String CellPhone = null;
public String WorkPhone = null;
public String AgentNumber = null;
public String PlacementAgentName = null;
public String PlacementAgent = null;
public Date CreatedDate = null;
public String Level = null;
public Date LastLoginDate = null;
public String Package = null;
public BigDecimal AppCount = null;
public BigDecimal Cashflow = null;
public String getRank() { return Rank; }
public AgentRecruit setRank(String value) { this.Rank = value; return this; }
public String getAgentLevel() { return AgentLevel; }
public AgentRecruit setAgentLevel(String value) { this.AgentLevel = value; return this; }
public String getUL1FirstName() { return UL1FirstName; }
public AgentRecruit setUL1FirstName(String value) { this.UL1FirstName = value; return this; }
public String getUL1MiddleName() { return UL1MiddleName; }
public AgentRecruit setUL1MiddleName(String value) { this.UL1MiddleName = value; return this; }
public String getUL1LastName() { return UL1LastName; }
public AgentRecruit setUL1LastName(String value) { this.UL1LastName = value; return this; }
public String getUL2FirstName() { return UL2FirstName; }
public AgentRecruit setUL2FirstName(String value) { this.UL2FirstName = value; return this; }
public String getUL2MiddleName() { return UL2MiddleName; }
public AgentRecruit setUL2MiddleName(String value) { this.UL2MiddleName = value; return this; }
public String getUL2LastName() { return UL2LastName; }
public AgentRecruit setUL2LastName(String value) { this.UL2LastName = value; return this; }
public String getUL3FirstName() { return UL3FirstName; }
public AgentRecruit setUL3FirstName(String value) { this.UL3FirstName = value; return this; }
public String getUL3MiddleName() { return UL3MiddleName; }
public AgentRecruit setUL3MiddleName(String value) { this.UL3MiddleName = value; return this; }
public String getUL3LastName() { return UL3LastName; }
public AgentRecruit setUL3LastName(String value) { this.UL3LastName = value; return this; }
public String getUL4FirstName() { return UL4FirstName; }
public AgentRecruit setUL4FirstName(String value) { this.UL4FirstName = value; return this; }
public String getUL4MiddleName() { return UL4MiddleName; }
public AgentRecruit setUL4MiddleName(String value) { this.UL4MiddleName = value; return this; }
public String getUL4LastName() { return UL4LastName; }
public AgentRecruit setUL4LastName(String value) { this.UL4LastName = value; return this; }
public String getCompany() { return Company; }
public AgentRecruit setCompany(String value) { this.Company = value; return this; }
public String getFirstName() { return FirstName; }
public AgentRecruit setFirstName(String value) { this.FirstName = value; return this; }
public String getLastName() { return LastName; }
public AgentRecruit setLastName(String value) { this.LastName = value; return this; }
public String getMiddleInitial() { return MiddleInitial; }
public AgentRecruit setMiddleInitial(String value) { this.MiddleInitial = value; return this; }
public String getAddress1() { return Address1; }
public AgentRecruit setAddress1(String value) { this.Address1 = value; return this; }
public String getAddress2() { return Address2; }
public AgentRecruit setAddress2(String value) { this.Address2 = value; return this; }
public String getCity() { return City; }
public AgentRecruit setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public AgentRecruit setState(String value) { this.State = value; return this; }
public String getZip() { return Zip; }
public AgentRecruit setZip(String value) { this.Zip = value; return this; }
public String getCountry() { return Country; }
public AgentRecruit setCountry(String value) { this.Country = value; return this; }
public String getEmail() { return Email; }
public AgentRecruit setEmail(String value) { this.Email = value; return this; }
public String getHomePhone() { return HomePhone; }
public AgentRecruit setHomePhone(String value) { this.HomePhone = value; return this; }
public String getCellPhone() { return CellPhone; }
public AgentRecruit setCellPhone(String value) { this.CellPhone = value; return this; }
public String getWorkPhone() { return WorkPhone; }
public AgentRecruit setWorkPhone(String value) { this.WorkPhone = value; return this; }
public String getAgentNumber() { return AgentNumber; }
public AgentRecruit setAgentNumber(String value) { this.AgentNumber = value; return this; }
public String getPlacementAgentName() { return PlacementAgentName; }
public AgentRecruit setPlacementAgentName(String value) { this.PlacementAgentName = value; return this; }
public String getPlacementAgent() { return PlacementAgent; }
public AgentRecruit setPlacementAgent(String value) { this.PlacementAgent = value; return this; }
public Date getCreatedDate() { return CreatedDate; }
public AgentRecruit setCreatedDate(Date value) { this.CreatedDate = value; return this; }
public String getLevel() { return Level; }
public AgentRecruit setLevel(String value) { this.Level = value; return this; }
public Date getLastLoginDate() { return LastLoginDate; }
public AgentRecruit setLastLoginDate(Date value) { this.LastLoginDate = value; return this; }
public String getPackage() { return Package; }
public AgentRecruit setPackage(String value) { this.Package = value; return this; }
public BigDecimal getAppCount() { return AppCount; }
public AgentRecruit setAppCount(BigDecimal value) { this.AppCount = value; return this; }
public BigDecimal getCashflow() { return Cashflow; }
public AgentRecruit setCashflow(BigDecimal value) { this.Cashflow = value; return this; }
}
public static class AgentRecruitResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<AgentRecruit> AgentRecruit = new ArrayList<AgentRecruit>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AgentRecruitResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<AgentRecruit> getAgentRecruit() { return AgentRecruit; }
public AgentRecruitResponse setAgentRecruit(ArrayList<AgentRecruit> value) { this.AgentRecruit = value; return this; }
}
}
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/AgentRecruit HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AgentRecruitResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<AgentRecruit>
<AgentRecruit>
<Address1>String</Address1>
<Address2>String</Address2>
<AgentLevel>String</AgentLevel>
<AgentNumber>String</AgentNumber>
<AppCount>0</AppCount>
<Cashflow>0</Cashflow>
<CellPhone>String</CellPhone>
<City>String</City>
<Company>String</Company>
<Country>String</Country>
<CreatedDate>0001-01-01T00:00:00</CreatedDate>
<Email>String</Email>
<FirstName>String</FirstName>
<HomePhone>String</HomePhone>
<LastLoginDate>0001-01-01T00:00:00</LastLoginDate>
<LastName>String</LastName>
<Level>0</Level>
<MiddleInitial>String</MiddleInitial>
<Package>String</Package>
<PlacementAgent>String</PlacementAgent>
<PlacementAgentName>String</PlacementAgentName>
<Rank>String</Rank>
<State>String</State>
<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>
<WorkPhone>String</WorkPhone>
<Zip>String</Zip>
</AgentRecruit>
</AgentRecruit>
<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>
</AgentRecruitResponse>