| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
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"}]}