Trendsic Platform Service

<back to all web services

AgentPromotionRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,OPTIONS/v1/AgentPromotion/{StartDate}
GET,OPTIONS/v1/AgentPromotion/{StartDate}/{EndDate}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AgentPromotionRequest
    {
        public Date StartDate = null;
        public Date EndDate = null;
        
        public Date getStartDate() { return StartDate; }
        public AgentPromotionRequest setStartDate(Date value) { this.StartDate = value; return this; }
        public Date getEndDate() { return EndDate; }
        public AgentPromotionRequest setEndDate(Date value) { this.EndDate = value; return this; }
    }

    public static class AgentPromotionResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<AgentPromotion> AgentPromotion = new ArrayList<AgentPromotion>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AgentPromotionResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<AgentPromotion> getAgentPromotion() { return AgentPromotion; }
        public AgentPromotionResponse setAgentPromotion(ArrayList<AgentPromotion> value) { this.AgentPromotion = value; return this; }
    }

    public static class AgentPromotion
    {
        public Integer AgentPromotionId = null;
        public Integer AgentId = null;
        public String FirstName = null;
        public String LastName = null;
        public String FullName = null;
        public BigDecimal PreviousLevel = null;
        public String PreviousRank = null;
        public BigDecimal NewLevel = null;
        public String NewRank = null;
        public BigDecimal CashFlow = null;
        public Integer AppCount = null;
        public Date DateCreated = null;
        
        public Integer getAgentPromotionId() { return AgentPromotionId; }
        public AgentPromotion setAgentPromotionId(Integer value) { this.AgentPromotionId = value; return this; }
        public Integer getAgentId() { return AgentId; }
        public AgentPromotion setAgentId(Integer value) { this.AgentId = value; return this; }
        public String getFirstName() { return FirstName; }
        public AgentPromotion setFirstName(String value) { this.FirstName = value; return this; }
        public String getLastName() { return LastName; }
        public AgentPromotion setLastName(String value) { this.LastName = value; return this; }
        public String getFullName() { return FullName; }
        public AgentPromotion setFullName(String value) { this.FullName = value; return this; }
        public BigDecimal getPreviousLevel() { return PreviousLevel; }
        public AgentPromotion setPreviousLevel(BigDecimal value) { this.PreviousLevel = value; return this; }
        public String getPreviousRank() { return PreviousRank; }
        public AgentPromotion setPreviousRank(String value) { this.PreviousRank = value; return this; }
        public BigDecimal getNewLevel() { return NewLevel; }
        public AgentPromotion setNewLevel(BigDecimal value) { this.NewLevel = value; return this; }
        public String getNewRank() { return NewRank; }
        public AgentPromotion setNewRank(String value) { this.NewRank = value; return this; }
        public BigDecimal getCashFlow() { return CashFlow; }
        public AgentPromotion setCashFlow(BigDecimal value) { this.CashFlow = value; return this; }
        public Integer getAppCount() { return AppCount; }
        public AgentPromotion setAppCount(Integer value) { this.AppCount = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public AgentPromotion setDateCreated(Date value) { this.DateCreated = value; return this; }
    }

}

Java AgentPromotionRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/AgentPromotion/{StartDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AgentPromotionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AgentPromotion>
    <AgentPromotion>
      <AgentId>0</AgentId>
      <AgentPromotionId>0</AgentPromotionId>
      <AppCount>0</AppCount>
      <CashFlow>0</CashFlow>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <FirstName>String</FirstName>
      <LastName>String</LastName>
      <NewLevel>0</NewLevel>
      <NewRank>String</NewRank>
      <PreviousLevel>0</PreviousLevel>
      <PreviousRank>String</PreviousRank>
    </AgentPromotion>
  </AgentPromotion>
  <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>
</AgentPromotionResponse>