| Requires any of the roles: | Agent, Administrator |
| GET | /v1/AutomatedAdjustment/frequency |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class AutomatedAdjustment implements IConvertible
{
int? AutomatedAdustmentId;
String? Name;
int? FromAgentId;
String? ToAgentId;
String? ToAgentName;
String? Description;
int? TypeId;
String? TypeDescription;
int? FrequencyId;
String? FrequencyDescription;
double? Amount;
int? ChargeCount;
double? ChargeSum;
int? Installments;
DateTime? PauseUntil;
DateTime? DateCreated;
String? CreatedBy;
String? ModifiedBy;
bool? FirstCommissionRequired;
AutomatedAdjustment({this.AutomatedAdustmentId,this.Name,this.FromAgentId,this.ToAgentId,this.ToAgentName,this.Description,this.TypeId,this.TypeDescription,this.FrequencyId,this.FrequencyDescription,this.Amount,this.ChargeCount,this.ChargeSum,this.Installments,this.PauseUntil,this.DateCreated,this.CreatedBy,this.ModifiedBy,this.FirstCommissionRequired});
AutomatedAdjustment.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AutomatedAdustmentId = json['AutomatedAdustmentId'];
Name = json['Name'];
FromAgentId = json['FromAgentId'];
ToAgentId = json['ToAgentId'];
ToAgentName = json['ToAgentName'];
Description = json['Description'];
TypeId = json['TypeId'];
TypeDescription = json['TypeDescription'];
FrequencyId = json['FrequencyId'];
FrequencyDescription = json['FrequencyDescription'];
Amount = JsonConverters.toDouble(json['Amount']);
ChargeCount = json['ChargeCount'];
ChargeSum = JsonConverters.toDouble(json['ChargeSum']);
Installments = json['Installments'];
PauseUntil = JsonConverters.fromJson(json['PauseUntil'],'DateTime',context!);
DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!);
CreatedBy = json['CreatedBy'];
ModifiedBy = json['ModifiedBy'];
FirstCommissionRequired = json['FirstCommissionRequired'];
return this;
}
Map<String, dynamic> toJson() => {
'AutomatedAdustmentId': AutomatedAdustmentId,
'Name': Name,
'FromAgentId': FromAgentId,
'ToAgentId': ToAgentId,
'ToAgentName': ToAgentName,
'Description': Description,
'TypeId': TypeId,
'TypeDescription': TypeDescription,
'FrequencyId': FrequencyId,
'FrequencyDescription': FrequencyDescription,
'Amount': Amount,
'ChargeCount': ChargeCount,
'ChargeSum': ChargeSum,
'Installments': Installments,
'PauseUntil': JsonConverters.toJson(PauseUntil,'DateTime',context!),
'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!),
'CreatedBy': CreatedBy,
'ModifiedBy': ModifiedBy,
'FirstCommissionRequired': FirstCommissionRequired
};
getTypeName() => "AutomatedAdjustment";
TypeContext? context = _ctx;
}
class AutomatedAdjustmentType implements IConvertible
{
int? AutomatedAdjustmentTypeId;
String? Description;
AutomatedAdjustmentType({this.AutomatedAdjustmentTypeId,this.Description});
AutomatedAdjustmentType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AutomatedAdjustmentTypeId = json['AutomatedAdjustmentTypeId'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'AutomatedAdjustmentTypeId': AutomatedAdjustmentTypeId,
'Description': Description
};
getTypeName() => "AutomatedAdjustmentType";
TypeContext? context = _ctx;
}
class AutomatedAdjustmentfrequency implements IConvertible
{
int? AutomatedAdjustmentFrequencyId;
String? Description;
AutomatedAdjustmentfrequency({this.AutomatedAdjustmentFrequencyId,this.Description});
AutomatedAdjustmentfrequency.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AutomatedAdjustmentFrequencyId = json['AutomatedAdjustmentFrequencyId'];
Description = json['Description'];
return this;
}
Map<String, dynamic> toJson() => {
'AutomatedAdjustmentFrequencyId': AutomatedAdjustmentFrequencyId,
'Description': Description
};
getTypeName() => "AutomatedAdjustmentfrequency";
TypeContext? context = _ctx;
}
class AutomatedAdjustmentResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
List<AutomatedAdjustment>? AutomatedAdjustments = [];
AutomatedAdjustment? AutomatedAdjustment;
int? AutomatedAdjustmentID;
List<AutomatedAdjustmentType>? AutomatedAdjustmentTypes = [];
List<AutomatedAdjustmentfrequency>? AutomatedAdjustmentFrequencies = [];
AutomatedAdjustmentResponse({this.ResponseStatus,this.AutomatedAdjustments,this.AutomatedAdjustment,this.AutomatedAdjustmentID,this.AutomatedAdjustmentTypes,this.AutomatedAdjustmentFrequencies});
AutomatedAdjustmentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
AutomatedAdjustments = JsonConverters.fromJson(json['AutomatedAdjustments'],'List<AutomatedAdjustment>',context!);
AutomatedAdjustment = JsonConverters.fromJson(json['AutomatedAdjustment'],'AutomatedAdjustment',context!);
AutomatedAdjustmentID = json['AutomatedAdjustmentID'];
AutomatedAdjustmentTypes = JsonConverters.fromJson(json['AutomatedAdjustmentTypes'],'List<AutomatedAdjustmentType>',context!);
AutomatedAdjustmentFrequencies = JsonConverters.fromJson(json['AutomatedAdjustmentFrequencies'],'List<AutomatedAdjustmentfrequency>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'AutomatedAdjustments': JsonConverters.toJson(AutomatedAdjustments,'List<AutomatedAdjustment>',context!),
'AutomatedAdjustment': JsonConverters.toJson(AutomatedAdjustment,'AutomatedAdjustment',context!),
'AutomatedAdjustmentID': AutomatedAdjustmentID,
'AutomatedAdjustmentTypes': JsonConverters.toJson(AutomatedAdjustmentTypes,'List<AutomatedAdjustmentType>',context!),
'AutomatedAdjustmentFrequencies': JsonConverters.toJson(AutomatedAdjustmentFrequencies,'List<AutomatedAdjustmentfrequency>',context!)
};
getTypeName() => "AutomatedAdjustmentResponse";
TypeContext? context = _ctx;
}
class AutomatedAdjustmentFrequencyRequest implements IConvertible
{
AutomatedAdjustmentFrequencyRequest();
AutomatedAdjustmentFrequencyRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "AutomatedAdjustmentFrequencyRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'AutomatedAdjustment': TypeInfo(TypeOf.Class, create:() => AutomatedAdjustment()),
'AutomatedAdjustmentType': TypeInfo(TypeOf.Class, create:() => AutomatedAdjustmentType()),
'AutomatedAdjustmentfrequency': TypeInfo(TypeOf.Class, create:() => AutomatedAdjustmentfrequency()),
'AutomatedAdjustmentResponse': TypeInfo(TypeOf.Class, create:() => AutomatedAdjustmentResponse()),
'List<AutomatedAdjustment>': TypeInfo(TypeOf.Class, create:() => <AutomatedAdjustment>[]),
'List<AutomatedAdjustmentType>': TypeInfo(TypeOf.Class, create:() => <AutomatedAdjustmentType>[]),
'List<AutomatedAdjustmentfrequency>': TypeInfo(TypeOf.Class, create:() => <AutomatedAdjustmentfrequency>[]),
'AutomatedAdjustmentFrequencyRequest': TypeInfo(TypeOf.Class, create:() => AutomatedAdjustmentFrequencyRequest()),
});
Dart AutomatedAdjustmentFrequencyRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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: 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>