Trendsic Platform Service

<back to all web services

AdjustmentRequest

Requires Authentication
Requires any of the roles:Agent, Administrator
The following routes are available for this service:
GET,POST,PUT,DELETE,OPTIONS/v1/Adjustment/{ID}
GET,POST,PUT,DELETE,OPTIONS/v1/Adjustment
GET,POST,PUT,DELETE,OPTIONS/v1/Adjustment/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID}
GET,POST,PUT,DELETE,OPTIONS/v1/Adjustment/DateRange/{ParamStartDate}/{ParamEndDate}
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class AdjustmentRequest
    {
        public ArrayList<Adjustment> Adjustment = new ArrayList<Adjustment>();
        public Integer AgentID = null;
        public Date ParamStartDate = null;
        public Date ParamEndDate = null;
        
        public ArrayList<Adjustment> getAdjustment() { return Adjustment; }
        public AdjustmentRequest setAdjustment(ArrayList<Adjustment> value) { this.Adjustment = value; return this; }
        public Integer getAgentID() { return AgentID; }
        public AdjustmentRequest setAgentID(Integer value) { this.AgentID = value; return this; }
        public Date getParamStartDate() { return ParamStartDate; }
        public AdjustmentRequest setParamStartDate(Date value) { this.ParamStartDate = value; return this; }
        public Date getParamEndDate() { return ParamEndDate; }
        public AdjustmentRequest setParamEndDate(Date value) { this.ParamEndDate = 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; }
    }

    public static class AdjustmentResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<Adjustment> Adjustment = new ArrayList<Adjustment>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AdjustmentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<Adjustment> getAdjustment() { return Adjustment; }
        public AdjustmentResponse setAdjustment(ArrayList<Adjustment> value) { this.Adjustment = value; return this; }
    }

}

Java AdjustmentRequest 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.

POST /v1/Adjustment/{ID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"Adjustment":[{"ID":0,"AdjustmentDate":"0001-01-01T00:00:00.0000000","Agent":"String","Reason":"String","Amount":0,"Approved":"String","AdjType":"String","Income":"String","Paid":"String","BalanceForward":"String","BalanceDate":"String"}],"AgentID":0,"ParamStartDate":"0001-01-01T00:00:00.0000000","ParamEndDate":"0001-01-01T00:00:00.0000000"}
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"}},"Adjustment":[{"ID":0,"AdjustmentDate":"0001-01-01T00:00:00.0000000","Agent":"String","Reason":"String","Amount":0,"Approved":"String","AdjType":"String","Income":"String","Paid":"String","BalanceForward":"String","BalanceDate":"String"}]}