Trendsic Platform Service

<back to all web services

CashFlowRequest

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

public class dtos
{

    public static class CashFlowRequest
    {
        public Date FromDate = null;
        public Date ToDate = null;
        
        public Date getFromDate() { return FromDate; }
        public CashFlowRequest setFromDate(Date value) { this.FromDate = value; return this; }
        public Date getToDate() { return ToDate; }
        public CashFlowRequest setToDate(Date value) { this.ToDate = value; return this; }
    }

    public static class CashFlowResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<CashFlow> CashFlow = new ArrayList<CashFlow>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public CashFlowResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<CashFlow> getCashFlow() { return CashFlow; }
        public CashFlowResponse setCashFlow(ArrayList<CashFlow> value) { this.CashFlow = value; return this; }
    }

    public static class CashFlow
    {
        public Integer AgentID = null;
        public String AgentName = null;
        public BigDecimal PersonalCashFlow = null;
        public BigDecimal DownlineCashFlow = null;
        
        public Integer getAgentID() { return AgentID; }
        public CashFlow setAgentID(Integer value) { this.AgentID = value; return this; }
        public String getAgentName() { return AgentName; }
        public CashFlow setAgentName(String value) { this.AgentName = value; return this; }
        public BigDecimal getPersonalCashFlow() { return PersonalCashFlow; }
        public CashFlow setPersonalCashFlow(BigDecimal value) { this.PersonalCashFlow = value; return this; }
        public BigDecimal getDownlineCashFlow() { return DownlineCashFlow; }
        public CashFlow setDownlineCashFlow(BigDecimal value) { this.DownlineCashFlow = value; return this; }
    }

}

Java CashFlowRequest DTOs

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

HTTP + JSV

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

GET /v1/CashFlowReport/{FromDate}/{ToDate} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	CashFlow: 
	[
		{
			AgentID: 0,
			AgentName: String,
			PersonalCashFlow: 0,
			DownlineCashFlow: 0
		}
	]
}