Trendsic Platform Service

<back to all web services

AutomatedAdjustmentRequest

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


open class AutomatedAdjustmentRequest
{
    open var AutomatedAdjustments:ArrayList<AutomatedAdjustment> = ArrayList<AutomatedAdjustment>()
    open var AutomatedAdjustment:AutomatedAdjustment? = null
    open var AutomatedAdjustmentID:Int? = null
}

open class AutomatedAdjustment
{
    open var AutomatedAdustmentId:Int? = null
    open var Name:String? = null
    open var FromAgentId:Int? = null
    open var ToAgentId:String? = null
    open var ToAgentName:String? = null
    open var Description:String? = null
    open var TypeId:Int? = null
    open var TypeDescription:String? = null
    open var FrequencyId:Int? = null
    open var FrequencyDescription:String? = null
    open var Amount:BigDecimal? = null
    open var ChargeCount:Int? = null
    open var ChargeSum:BigDecimal? = null
    open var Installments:Int? = null
    open var PauseUntil:Date? = null
    open var DateCreated:Date? = null
    open var CreatedBy:String? = null
    open var ModifiedBy:String? = null
    open var FirstCommissionRequired:Boolean? = null
}

open class AutomatedAdjustmentResponse
{
    open var ResponseStatus:ResponseStatus? = null
    open var AutomatedAdjustments:ArrayList<AutomatedAdjustment> = ArrayList<AutomatedAdjustment>()
    open var AutomatedAdjustment:AutomatedAdjustment? = null
    open var AutomatedAdjustmentID:Int? = null
    open var AutomatedAdjustmentTypes:ArrayList<AutomatedAdjustmentType> = ArrayList<AutomatedAdjustmentType>()
    open var AutomatedAdjustmentFrequencies:ArrayList<AutomatedAdjustmentfrequency> = ArrayList<AutomatedAdjustmentfrequency>()
}

open class AutomatedAdjustmentType
{
    open var AutomatedAdjustmentTypeId:Int? = null
    open var Description:String? = null
}

open class AutomatedAdjustmentfrequency
{
    open var AutomatedAdjustmentFrequencyId:Int? = null
    open var Description:String? = null
}

Kotlin AutomatedAdjustmentRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /v1/AutomatedAdjustment HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"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-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","CreatedBy":"String","ModifiedBy":"String","FirstCommissionRequired":false},"AutomatedAdjustmentID":0}
HTTP/1.1 200 OK
Content-Type: application/json
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-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","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-01T00:00:00.0000000","DateCreated":"0001-01-01T00:00:00.0000000","CreatedBy":"String","ModifiedBy":"String","FirstCommissionRequired":false},"AutomatedAdjustmentID":0,"AutomatedAdjustmentTypes":[{"AutomatedAdjustmentTypeId":0,"Description":"String"}],"AutomatedAdjustmentFrequencies":[{"AutomatedAdjustmentFrequencyId":0,"Description":"String"}]}