Trendsic Platform Service

<back to all web services

AutomatedAdjustmentFrequencyRequest

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

public class dtos
{

    public static class AutomatedAdjustmentFrequencyRequest
    {
        
    }

    public static class AutomatedAdjustmentResponse
    {
        public ResponseStatus ResponseStatus = null;
        public ArrayList<AutomatedAdjustment> AutomatedAdjustments = new ArrayList<AutomatedAdjustment>();
        public AutomatedAdjustment AutomatedAdjustment = null;
        public Integer AutomatedAdjustmentID = null;
        public ArrayList<AutomatedAdjustmentType> AutomatedAdjustmentTypes = new ArrayList<AutomatedAdjustmentType>();
        public ArrayList<AutomatedAdjustmentfrequency> AutomatedAdjustmentFrequencies = new ArrayList<AutomatedAdjustmentfrequency>();
        
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public AutomatedAdjustmentResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
        public ArrayList<AutomatedAdjustment> getAutomatedAdjustments() { return AutomatedAdjustments; }
        public AutomatedAdjustmentResponse setAutomatedAdjustments(ArrayList<AutomatedAdjustment> value) { this.AutomatedAdjustments = value; return this; }
        public AutomatedAdjustment getAutomatedAdjustment() { return AutomatedAdjustment; }
        public AutomatedAdjustmentResponse setAutomatedAdjustment(AutomatedAdjustment value) { this.AutomatedAdjustment = value; return this; }
        public Integer getAutomatedAdjustmentID() { return AutomatedAdjustmentID; }
        public AutomatedAdjustmentResponse setAutomatedAdjustmentID(Integer value) { this.AutomatedAdjustmentID = value; return this; }
        public ArrayList<AutomatedAdjustmentType> getAutomatedAdjustmentTypes() { return AutomatedAdjustmentTypes; }
        public AutomatedAdjustmentResponse setAutomatedAdjustmentTypes(ArrayList<AutomatedAdjustmentType> value) { this.AutomatedAdjustmentTypes = value; return this; }
        public ArrayList<AutomatedAdjustmentfrequency> getAutomatedAdjustmentFrequencies() { return AutomatedAdjustmentFrequencies; }
        public AutomatedAdjustmentResponse setAutomatedAdjustmentFrequencies(ArrayList<AutomatedAdjustmentfrequency> value) { this.AutomatedAdjustmentFrequencies = value; return this; }
    }

    public static class AutomatedAdjustment
    {
        public Integer AutomatedAdustmentId = null;
        public String Name = null;
        public Integer FromAgentId = null;
        public String ToAgentId = null;
        public String ToAgentName = null;
        public String Description = null;
        public Integer TypeId = null;
        public String TypeDescription = null;
        public Integer FrequencyId = null;
        public String FrequencyDescription = null;
        public BigDecimal Amount = null;
        public Integer ChargeCount = null;
        public BigDecimal ChargeSum = null;
        public Integer Installments = null;
        public Date PauseUntil = null;
        public Date DateCreated = null;
        public String CreatedBy = null;
        public String ModifiedBy = null;
        public Boolean FirstCommissionRequired = null;
        
        public Integer getAutomatedAdustmentId() { return AutomatedAdustmentId; }
        public AutomatedAdjustment setAutomatedAdustmentId(Integer value) { this.AutomatedAdustmentId = value; return this; }
        public String getName() { return Name; }
        public AutomatedAdjustment setName(String value) { this.Name = value; return this; }
        public Integer getFromAgentId() { return FromAgentId; }
        public AutomatedAdjustment setFromAgentId(Integer value) { this.FromAgentId = value; return this; }
        public String getToAgentId() { return ToAgentId; }
        public AutomatedAdjustment setToAgentId(String value) { this.ToAgentId = value; return this; }
        public String getToAgentName() { return ToAgentName; }
        public AutomatedAdjustment setToAgentName(String value) { this.ToAgentName = value; return this; }
        public String getDescription() { return Description; }
        public AutomatedAdjustment setDescription(String value) { this.Description = value; return this; }
        public Integer getTypeId() { return TypeId; }
        public AutomatedAdjustment setTypeId(Integer value) { this.TypeId = value; return this; }
        public String getTypeDescription() { return TypeDescription; }
        public AutomatedAdjustment setTypeDescription(String value) { this.TypeDescription = value; return this; }
        public Integer getFrequencyId() { return FrequencyId; }
        public AutomatedAdjustment setFrequencyId(Integer value) { this.FrequencyId = value; return this; }
        public String getFrequencyDescription() { return FrequencyDescription; }
        public AutomatedAdjustment setFrequencyDescription(String value) { this.FrequencyDescription = value; return this; }
        public BigDecimal getAmount() { return Amount; }
        public AutomatedAdjustment setAmount(BigDecimal value) { this.Amount = value; return this; }
        public Integer getChargeCount() { return ChargeCount; }
        public AutomatedAdjustment setChargeCount(Integer value) { this.ChargeCount = value; return this; }
        public BigDecimal getChargeSum() { return ChargeSum; }
        public AutomatedAdjustment setChargeSum(BigDecimal value) { this.ChargeSum = value; return this; }
        public Integer getInstallments() { return Installments; }
        public AutomatedAdjustment setInstallments(Integer value) { this.Installments = value; return this; }
        public Date getPauseUntil() { return PauseUntil; }
        public AutomatedAdjustment setPauseUntil(Date value) { this.PauseUntil = value; return this; }
        public Date getDateCreated() { return DateCreated; }
        public AutomatedAdjustment setDateCreated(Date value) { this.DateCreated = value; return this; }
        public String getCreatedBy() { return CreatedBy; }
        public AutomatedAdjustment setCreatedBy(String value) { this.CreatedBy = value; return this; }
        public String getModifiedBy() { return ModifiedBy; }
        public AutomatedAdjustment setModifiedBy(String value) { this.ModifiedBy = value; return this; }
        public Boolean isFirstCommissionRequired() { return FirstCommissionRequired; }
        public AutomatedAdjustment setFirstCommissionRequired(Boolean value) { this.FirstCommissionRequired = value; return this; }
    }

    public static class AutomatedAdjustmentType
    {
        public Integer AutomatedAdjustmentTypeId = null;
        public String Description = null;
        
        public Integer getAutomatedAdjustmentTypeId() { return AutomatedAdjustmentTypeId; }
        public AutomatedAdjustmentType setAutomatedAdjustmentTypeId(Integer value) { this.AutomatedAdjustmentTypeId = value; return this; }
        public String getDescription() { return Description; }
        public AutomatedAdjustmentType setDescription(String value) { this.Description = value; return this; }
    }

    public static class AutomatedAdjustmentfrequency
    {
        public Integer AutomatedAdjustmentFrequencyId = null;
        public String Description = null;
        
        public Integer getAutomatedAdjustmentFrequencyId() { return AutomatedAdjustmentFrequencyId; }
        public AutomatedAdjustmentfrequency setAutomatedAdjustmentFrequencyId(Integer value) { this.AutomatedAdjustmentFrequencyId = value; return this; }
        public String getDescription() { return Description; }
        public AutomatedAdjustmentfrequency setDescription(String value) { this.Description = value; return this; }
    }

}

Java AutomatedAdjustmentFrequencyRequest 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/AutomatedAdjustment/frequency 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
		}
	},
	AutomatedAdjustments: 
	[
		{
			AutomatedAdustmentId: 0,
			Name: String,
			FromAgentId: 0,
			ToAgentId: 0,
			ToAgentName: String,
			Description: String,
			TypeId: 0,
			TypeDescription: String,
			FrequencyId: 0,
			FrequencyDescription: String,
			Amount: 0,
			ChargeCount: 0,
			ChargeSum: 0,
			Installments: 0,
			PauseUntil: 0001-01-01,
			DateCreated: 0001-01-01,
			CreatedBy: String,
			ModifiedBy: String,
			FirstCommissionRequired: False
		}
	],
	AutomatedAdjustment: 
	{
		AutomatedAdustmentId: 0,
		Name: String,
		FromAgentId: 0,
		ToAgentId: 0,
		ToAgentName: String,
		Description: String,
		TypeId: 0,
		TypeDescription: String,
		FrequencyId: 0,
		FrequencyDescription: String,
		Amount: 0,
		ChargeCount: 0,
		ChargeSum: 0,
		Installments: 0,
		PauseUntil: 0001-01-01,
		DateCreated: 0001-01-01,
		CreatedBy: String,
		ModifiedBy: String,
		FirstCommissionRequired: False
	},
	AutomatedAdjustmentID: 0,
	AutomatedAdjustmentTypes: 
	[
		{
			AutomatedAdjustmentTypeId: 0,
			Description: String
		}
	],
	AutomatedAdjustmentFrequencies: 
	[
		{
			AutomatedAdjustmentFrequencyId: 0,
			Description: String
		}
	]
}