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 .other suffix or ?format=other

HTTP + OTHER

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: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"AgentPromotion":[{"AgentPromotionId":0,"AgentId":0,"FirstName":"String","LastName":"String","FullName":"String String","PreviousLevel":0,"PreviousRank":"String","NewLevel":0,"NewRank":"String","CashFlow":0,"AppCount":0,"DateCreated":"0001-01-01T00:00:00.0000000"}]}