| All Verbs | /Recon |
|---|
import 'package:servicestack/servicestack.dart';
class ReconSummary implements IConvertible
{
DateTime bizDate = DateTime(0);
String? computerName;
String? serialNumber;
String? transactionType;
double amount = 0;
double debit = 0;
double amex = 0;
double noAmex = 0;
double debitCount = 0;
double amexCount = 0;
double noAmexCount = 0;
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 = DateTime(0);
double subTotal = 0;
double debitTotal = 0;
double amexTotal = 0;
double noAmexTotal = 0;
int debitCount = 0;
int amexCount = 0;
int noAmexCount = 0;
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_dev.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 .other suffix or ?format=other
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-dev.chargeitpro.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"lid":"String","locationName":"String"}