All Verbs | /Recon |
---|
import 'package:servicestack/servicestack.dart';
class ReconSummary implements IConvertible
{
DateTime? BizDate;
String? ComputerName;
String? SerialNumber;
String? TransactionType;
double? Amount;
double? Debit;
double? Amex;
double? NoAmex;
double? DebitCount;
double? AmexCount;
double? NoAmexCount;
String? LocationId;
String? LocationName;
double? ReconAmt;
String? Notes;
String? _id;
bool? inMongo;
String? Route;
int? UniqueTransID;
bool? MissingTransaction;
int? TotalCount;
int? MaxUniqueTransID;
DateTime? ComputerDateTime;
DateTime? TerminalDateTime;
int? CompTermMinDiff;
DateTime? DepDate;
String? CipServerTrans;
ReconSummary({this.BizDate,this.ComputerName,this.SerialNumber,this.TransactionType,this.Amount,this.Debit,this.Amex,this.NoAmex,this.DebitCount,this.AmexCount,this.NoAmexCount,this.LocationId,this.LocationName,this.ReconAmt,this.Notes,this._id,this.inMongo,this.Route,this.UniqueTransID,this.MissingTransaction,this.TotalCount,this.MaxUniqueTransID,this.ComputerDateTime,this.TerminalDateTime,this.CompTermMinDiff,this.DepDate,this.CipServerTrans});
ReconSummary.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BizDate = JsonConverters.fromJson(json['BizDate'],'DateTime',context!);
ComputerName = json['ComputerName'];
SerialNumber = json['SerialNumber'];
TransactionType = json['TransactionType'];
Amount = JsonConverters.toDouble(json['Amount']);
Debit = JsonConverters.toDouble(json['Debit']);
Amex = JsonConverters.toDouble(json['Amex']);
NoAmex = JsonConverters.toDouble(json['NoAmex']);
DebitCount = JsonConverters.toDouble(json['DebitCount']);
AmexCount = JsonConverters.toDouble(json['AmexCount']);
NoAmexCount = JsonConverters.toDouble(json['NoAmexCount']);
LocationId = json['LocationId'];
LocationName = json['LocationName'];
ReconAmt = JsonConverters.toDouble(json['ReconAmt']);
Notes = json['Notes'];
_id = json['_id'];
inMongo = json['inMongo'];
Route = json['Route'];
UniqueTransID = json['UniqueTransID'];
MissingTransaction = json['MissingTransaction'];
TotalCount = json['TotalCount'];
MaxUniqueTransID = json['MaxUniqueTransID'];
ComputerDateTime = JsonConverters.fromJson(json['ComputerDateTime'],'DateTime',context!);
TerminalDateTime = JsonConverters.fromJson(json['TerminalDateTime'],'DateTime',context!);
CompTermMinDiff = json['CompTermMinDiff'];
DepDate = JsonConverters.fromJson(json['DepDate'],'DateTime',context!);
CipServerTrans = json['CipServerTrans'];
return this;
}
Map<String, dynamic> toJson() => {
'BizDate': JsonConverters.toJson(BizDate,'DateTime',context!),
'ComputerName': ComputerName,
'SerialNumber': SerialNumber,
'TransactionType': TransactionType,
'Amount': Amount,
'Debit': Debit,
'Amex': Amex,
'NoAmex': NoAmex,
'DebitCount': DebitCount,
'AmexCount': AmexCount,
'NoAmexCount': NoAmexCount,
'LocationId': LocationId,
'LocationName': LocationName,
'ReconAmt': ReconAmt,
'Notes': Notes,
'_id': _id,
'inMongo': inMongo,
'Route': Route,
'UniqueTransID': UniqueTransID,
'MissingTransaction': MissingTransaction,
'TotalCount': TotalCount,
'MaxUniqueTransID': MaxUniqueTransID,
'ComputerDateTime': JsonConverters.toJson(ComputerDateTime,'DateTime',context!),
'TerminalDateTime': JsonConverters.toJson(TerminalDateTime,'DateTime',context!),
'CompTermMinDiff': CompTermMinDiff,
'DepDate': JsonConverters.toJson(DepDate,'DateTime',context!),
'CipServerTrans': CipServerTrans
};
getTypeName() => "ReconSummary";
TypeContext? context = _ctx;
}
class ReconSummaryDate implements IConvertible
{
DateTime? BizDate;
double? SubTotal;
double? DebitTotal;
double? AmexTotal;
double? NoAmexTotal;
int? DebitCount;
int? AmexCount;
int? NoAmexCount;
List<ReconSummary>? ReconSummary;
DateTime? DepDate;
ReconSummaryDate({this.BizDate,this.SubTotal,this.DebitTotal,this.AmexTotal,this.NoAmexTotal,this.DebitCount,this.AmexCount,this.NoAmexCount,this.ReconSummary,this.DepDate});
ReconSummaryDate.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
BizDate = JsonConverters.fromJson(json['BizDate'],'DateTime',context!);
SubTotal = JsonConverters.toDouble(json['SubTotal']);
DebitTotal = JsonConverters.toDouble(json['DebitTotal']);
AmexTotal = JsonConverters.toDouble(json['AmexTotal']);
NoAmexTotal = JsonConverters.toDouble(json['NoAmexTotal']);
DebitCount = json['DebitCount'];
AmexCount = json['AmexCount'];
NoAmexCount = json['NoAmexCount'];
ReconSummary = JsonConverters.fromJson(json['ReconSummary'],'List<ReconSummary>',context!);
DepDate = JsonConverters.fromJson(json['DepDate'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'BizDate': JsonConverters.toJson(BizDate,'DateTime',context!),
'SubTotal': SubTotal,
'DebitTotal': DebitTotal,
'AmexTotal': AmexTotal,
'NoAmexTotal': NoAmexTotal,
'DebitCount': DebitCount,
'AmexCount': AmexCount,
'NoAmexCount': NoAmexCount,
'ReconSummary': JsonConverters.toJson(ReconSummary,'List<ReconSummary>',context!),
'DepDate': JsonConverters.toJson(DepDate,'DateTime',context!)
};
getTypeName() => "ReconSummaryDate";
TypeContext? context = _ctx;
}
class ReconTotalSummary implements IConvertible
{
List<ReconSummaryDate>? ReconSummaryDate;
String? Lid;
String? LocationName;
ReconTotalSummary({this.ReconSummaryDate,this.Lid,this.LocationName});
ReconTotalSummary.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ReconSummaryDate = JsonConverters.fromJson(json['ReconSummaryDate'],'List<ReconSummaryDate>',context!);
Lid = json['Lid'];
LocationName = json['LocationName'];
return this;
}
Map<String, dynamic> toJson() => {
'ReconSummaryDate': JsonConverters.toJson(ReconSummaryDate,'List<ReconSummaryDate>',context!),
'Lid': Lid,
'LocationName': LocationName
};
getTypeName() => "ReconTotalSummary";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'cip_reporting_preview.chargeitpro.com', types: <String, TypeInfo> {
'ReconSummary': TypeInfo(TypeOf.Class, create:() => ReconSummary()),
'ReconSummaryDate': TypeInfo(TypeOf.Class, create:() => ReconSummaryDate()),
'List<ReconSummary>': TypeInfo(TypeOf.Class, create:() => <ReconSummary>[]),
'ReconTotalSummary': TypeInfo(TypeOf.Class, create:() => ReconTotalSummary()),
'List<ReconSummaryDate>': TypeInfo(TypeOf.Class, create:() => <ReconSummaryDate>[]),
});
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.
POST /Recon HTTP/1.1
Host: cip-reporting-preview.chargeitpro.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Lid":"String","LocationName":"String"}