| Requires any of the roles: | Agent, Administrator |
| GET | /v1/AdjustmentReport/{ParamStartDate}/{ParamEndDate} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class AdjustmentReportRequest
{
public Date ParamStartDate = null;
public Date ParamEndDate = null;
public Date getParamStartDate() { return ParamStartDate; }
public AdjustmentReportRequest setParamStartDate(Date value) { this.ParamStartDate = value; return this; }
public Date getParamEndDate() { return ParamEndDate; }
public AdjustmentReportRequest setParamEndDate(Date value) { this.ParamEndDate = value; return this; }
}
public static class AdjustmentReportResponse
{
public ResponseStatus ResponseStatus = null;
public ArrayList<Adjustment> ReportData = new ArrayList<Adjustment>();
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public AdjustmentReportResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
public ArrayList<Adjustment> getReportData() { return ReportData; }
public AdjustmentReportResponse setReportData(ArrayList<Adjustment> value) { this.ReportData = value; return this; }
}
public static class Adjustment
{
public Integer ID = null;
public Date AdjustmentDate = null;
public String Agent = null;
public String Reason = null;
public BigDecimal Amount = null;
public String Approved = null;
public String AdjType = null;
public String Income = null;
public String Paid = null;
public String BalanceForward = null;
public String BalanceDate = null;
public Integer getId() { return ID; }
public Adjustment setId(Integer value) { this.ID = value; return this; }
public Date getAdjustmentDate() { return AdjustmentDate; }
public Adjustment setAdjustmentDate(Date value) { this.AdjustmentDate = value; return this; }
public String getAgent() { return Agent; }
public Adjustment setAgent(String value) { this.Agent = value; return this; }
public String getReason() { return Reason; }
public Adjustment setReason(String value) { this.Reason = value; return this; }
public BigDecimal getAmount() { return Amount; }
public Adjustment setAmount(BigDecimal value) { this.Amount = value; return this; }
public String getApproved() { return Approved; }
public Adjustment setApproved(String value) { this.Approved = value; return this; }
public String getAdjType() { return AdjType; }
public Adjustment setAdjType(String value) { this.AdjType = value; return this; }
public String getIncome() { return Income; }
public Adjustment setIncome(String value) { this.Income = value; return this; }
public String getPaid() { return Paid; }
public Adjustment setPaid(String value) { this.Paid = value; return this; }
public String getBalanceForward() { return BalanceForward; }
public Adjustment setBalanceForward(String value) { this.BalanceForward = value; return this; }
public String getBalanceDate() { return BalanceDate; }
public Adjustment setBalanceDate(String value) { this.BalanceDate = value; return this; }
}
}
Java AdjustmentReportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/AdjustmentReport/{ParamStartDate}/{ParamEndDate} 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
}
},
ReportData:
[
{
ID: 0,
AdjustmentDate: 0001-01-01,
Agent: String,
Reason: String,
Amount: 0,
Approved: String,
AdjType: String,
Income: String,
Paid: String,
BalanceForward: String,
BalanceDate: String
}
]
}