Trendsic Platform Service

<back to all web services

AutomatedAdjustmentTypeRequest

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

public class dtos
{

    public static class AutomatedAdjustmentTypeRequest
    {
        
    }

    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 AutomatedAdjustmentTypeRequest DTOs

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

HTTP + XML

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

GET /v1/AutomatedAdjustment/type HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<AutomatedAdjustmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <AutomatedAdjustment>
    <Amount>0</Amount>
    <AutomatedAdustmentId>0</AutomatedAdustmentId>
    <ChargeCount>0</ChargeCount>
    <ChargeSum>0</ChargeSum>
    <CreatedBy>String</CreatedBy>
    <DateCreated>0001-01-01T00:00:00</DateCreated>
    <Description>String</Description>
    <FirstCommissionRequired>false</FirstCommissionRequired>
    <FrequencyDescription>String</FrequencyDescription>
    <FrequencyId>0</FrequencyId>
    <FromAgentId>0</FromAgentId>
    <Installments>0</Installments>
    <ModifiedBy>String</ModifiedBy>
    <Name>String</Name>
    <PauseUntil>0001-01-01T00:00:00</PauseUntil>
    <ToAgentId>0</ToAgentId>
    <ToAgentName>String</ToAgentName>
    <TypeDescription>String</TypeDescription>
    <TypeId>0</TypeId>
  </AutomatedAdjustment>
  <AutomatedAdjustmentFrequencies>
    <AutomatedAdjustmentfrequency>
      <AutomatedAdjustmentFrequencyId>0</AutomatedAdjustmentFrequencyId>
      <Description>String</Description>
    </AutomatedAdjustmentfrequency>
  </AutomatedAdjustmentFrequencies>
  <AutomatedAdjustmentID>0</AutomatedAdjustmentID>
  <AutomatedAdjustmentTypes>
    <AutomatedAdjustmentType>
      <AutomatedAdjustmentTypeId>0</AutomatedAdjustmentTypeId>
      <Description>String</Description>
    </AutomatedAdjustmentType>
  </AutomatedAdjustmentTypes>
  <AutomatedAdjustments>
    <AutomatedAdjustment>
      <Amount>0</Amount>
      <AutomatedAdustmentId>0</AutomatedAdustmentId>
      <ChargeCount>0</ChargeCount>
      <ChargeSum>0</ChargeSum>
      <CreatedBy>String</CreatedBy>
      <DateCreated>0001-01-01T00:00:00</DateCreated>
      <Description>String</Description>
      <FirstCommissionRequired>false</FirstCommissionRequired>
      <FrequencyDescription>String</FrequencyDescription>
      <FrequencyId>0</FrequencyId>
      <FromAgentId>0</FromAgentId>
      <Installments>0</Installments>
      <ModifiedBy>String</ModifiedBy>
      <Name>String</Name>
      <PauseUntil>0001-01-01T00:00:00</PauseUntil>
      <ToAgentId>0</ToAgentId>
      <ToAgentName>String</ToAgentName>
      <TypeDescription>String</TypeDescription>
      <TypeId>0</TypeId>
    </AutomatedAdjustment>
  </AutomatedAdjustments>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
</AutomatedAdjustmentResponse>