| GET, POST | /fibuscan/Onlinehandel/DateiDictionaryLaden |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class OnlinehandelModel implements IConvertible
{
double? Zahlbetrag;
DateTime? Datum;
String? Treffertyp;
String? OrderID;
List<OnlinehandelModel>? lstTreffer;
String? ID;
String? ID1;
String? Buchungstext;
String? Zahlsystem;
String? Sonstiges;
String? Treffer;
String? ÜbrigeDaten;
bool? hasTreffer;
String? Geparsed_guid;
String? Fileguid;
int? OnlinehandelDateiID;
int? OnlinehandelTalkID;
String? DateiName;
int? ZeilNummer;
String? Dateiname;
String? dateitype;
int? DBDateitype;
int? LetzteDateiId;
int? TrefferStelle;
String? TrefferInfo;
String? Volltext;
OnlinehandelModel({this.Zahlbetrag,this.Datum,this.Treffertyp,this.OrderID,this.lstTreffer,this.ID,this.ID1,this.Buchungstext,this.Zahlsystem,this.Sonstiges,this.Treffer,this.ÜbrigeDaten,this.hasTreffer,this.Geparsed_guid,this.Fileguid,this.OnlinehandelDateiID,this.OnlinehandelTalkID,this.DateiName,this.ZeilNummer,this.Dateiname,this.dateitype,this.DBDateitype,this.LetzteDateiId,this.TrefferStelle,this.TrefferInfo,this.Volltext});
OnlinehandelModel.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Zahlbetrag = JsonConverters.toDouble(json['Zahlbetrag']);
Datum = JsonConverters.fromJson(json['Datum'],'DateTime',context!);
Treffertyp = json['Treffertyp'];
OrderID = json['OrderID'];
lstTreffer = JsonConverters.fromJson(json['lstTreffer'],'List<OnlinehandelModel>',context!);
ID = json['ID'];
ID1 = json['ID1'];
Buchungstext = json['Buchungstext'];
Zahlsystem = json['Zahlsystem'];
Sonstiges = json['Sonstiges'];
Treffer = json['Treffer'];
ÜbrigeDaten = json['ÜbrigeDaten'];
hasTreffer = json['hasTreffer'];
Geparsed_guid = json['Geparsed_guid'];
Fileguid = json['Fileguid'];
OnlinehandelDateiID = json['OnlinehandelDateiID'];
OnlinehandelTalkID = json['OnlinehandelTalkID'];
DateiName = json['DateiName'];
ZeilNummer = json['ZeilNummer'];
Dateiname = json['Dateiname'];
dateitype = json['dateitype'];
DBDateitype = json['DBDateitype'];
LetzteDateiId = json['LetzteDateiId'];
TrefferStelle = json['TrefferStelle'];
TrefferInfo = json['TrefferInfo'];
Volltext = json['Volltext'];
return this;
}
Map<String, dynamic> toJson() => {
'Zahlbetrag': Zahlbetrag,
'Datum': JsonConverters.toJson(Datum,'DateTime',context!),
'Treffertyp': Treffertyp,
'OrderID': OrderID,
'lstTreffer': JsonConverters.toJson(lstTreffer,'List<OnlinehandelModel>',context!),
'ID': ID,
'ID1': ID1,
'Buchungstext': Buchungstext,
'Zahlsystem': Zahlsystem,
'Sonstiges': Sonstiges,
'Treffer': Treffer,
'ÜbrigeDaten': ÜbrigeDaten,
'hasTreffer': hasTreffer,
'Geparsed_guid': Geparsed_guid,
'Fileguid': Fileguid,
'OnlinehandelDateiID': OnlinehandelDateiID,
'OnlinehandelTalkID': OnlinehandelTalkID,
'DateiName': DateiName,
'ZeilNummer': ZeilNummer,
'Dateiname': Dateiname,
'dateitype': dateitype,
'DBDateitype': DBDateitype,
'LetzteDateiId': LetzteDateiId,
'TrefferStelle': TrefferStelle,
'TrefferInfo': TrefferInfo,
'Volltext': Volltext
};
getTypeName() => "OnlinehandelModel";
TypeContext? context = _ctx;
}
class onlinehandel_treffertypen implements IPrimaryKey, IMandnr, IDel, ITableBase, IConvertible
{
int? id;
String? guid;
int? mandant;
int? del;
int? parent_id;
int? soll_parsen;
String? bezeichnung;
DateTime? _erstellt;
DateTime? _aenderung;
int? suchfeld1;
String? suchfeld1_text;
int? suchfeld2;
String? suchfeld2_text;
// @Ignore()
int? PrimaryKey;
onlinehandel_treffertypen({this.id,this.guid,this.mandant,this.del,this.parent_id,this.soll_parsen,this.bezeichnung,this._erstellt,this._aenderung,this.suchfeld1,this.suchfeld1_text,this.suchfeld2,this.suchfeld2_text,this.PrimaryKey});
onlinehandel_treffertypen.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
guid = json['guid'];
mandant = json['mandant'];
del = json['del'];
parent_id = json['parent_id'];
soll_parsen = json['soll_parsen'];
bezeichnung = json['bezeichnung'];
_erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
_aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
suchfeld1 = json['suchfeld1'];
suchfeld1_text = json['suchfeld1_text'];
suchfeld2 = json['suchfeld2'];
suchfeld2_text = json['suchfeld2_text'];
PrimaryKey = json['PrimaryKey'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'guid': guid,
'mandant': mandant,
'del': del,
'parent_id': parent_id,
'soll_parsen': soll_parsen,
'bezeichnung': bezeichnung,
'_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
'_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
'suchfeld1': suchfeld1,
'suchfeld1_text': suchfeld1_text,
'suchfeld2': suchfeld2,
'suchfeld2_text': suchfeld2_text,
'PrimaryKey': PrimaryKey
};
getTypeName() => "onlinehandel_treffertypen";
TypeContext? context = _ctx;
}
class OnlinehandelTreffertypen implements IConvertible
{
onlinehandel_treffertypen? data;
int? anzahl;
bool? isEnum;
double? Quote;
OnlinehandelTreffertypen({this.data,this.anzahl,this.isEnum,this.Quote});
OnlinehandelTreffertypen.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
data = JsonConverters.fromJson(json['data'],'onlinehandel_treffertypen',context!);
anzahl = json['anzahl'];
isEnum = json['isEnum'];
Quote = JsonConverters.toDouble(json['Quote']);
return this;
}
Map<String, dynamic> toJson() => {
'data': JsonConverters.toJson(data,'onlinehandel_treffertypen',context!),
'anzahl': anzahl,
'isEnum': isEnum,
'Quote': Quote
};
getTypeName() => "OnlinehandelTreffertypen";
TypeContext? context = _ctx;
}
class OnlinehandelDateiDictionaryLadenResponse implements IConvertible
{
List<OnlinehandelModel>? onlineHandelModel;
bool? mehrAlsAnzahl;
String? PostionenAnzahl;
List<OnlinehandelTreffertypen>? alleDictionaryitems;
Uint8List? CsvDatei;
Map<String,int?>? Dic_zahlSystem;
OnlinehandelDateiDictionaryLadenResponse({this.onlineHandelModel,this.mehrAlsAnzahl,this.PostionenAnzahl,this.alleDictionaryitems,this.CsvDatei,this.Dic_zahlSystem});
OnlinehandelDateiDictionaryLadenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
onlineHandelModel = JsonConverters.fromJson(json['onlineHandelModel'],'List<OnlinehandelModel>',context!);
mehrAlsAnzahl = json['mehrAlsAnzahl'];
PostionenAnzahl = json['PostionenAnzahl'];
alleDictionaryitems = JsonConverters.fromJson(json['alleDictionaryitems'],'List<OnlinehandelTreffertypen>',context!);
CsvDatei = JsonConverters.fromJson(json['CsvDatei'],'Uint8List',context!);
Dic_zahlSystem = JsonConverters.fromJson(json['Dic_zahlSystem'],'Map<String,int?>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'onlineHandelModel': JsonConverters.toJson(onlineHandelModel,'List<OnlinehandelModel>',context!),
'mehrAlsAnzahl': mehrAlsAnzahl,
'PostionenAnzahl': PostionenAnzahl,
'alleDictionaryitems': JsonConverters.toJson(alleDictionaryitems,'List<OnlinehandelTreffertypen>',context!),
'CsvDatei': JsonConverters.toJson(CsvDatei,'Uint8List',context!),
'Dic_zahlSystem': JsonConverters.toJson(Dic_zahlSystem,'Map<String,int?>',context!)
};
getTypeName() => "OnlinehandelDateiDictionaryLadenResponse";
TypeContext? context = _ctx;
}
class OnlinehandelDateiDictionaryLadenRequest implements IConvertible
{
String? guid;
bool? chkZuordnung;
List<int>? lstFilters;
List<String>? lstZahlSystemFilter;
int? datensaetzeanzahl;
DateTime? VonDatum;
DateTime? BisDatum;
String? volltext;
List<String>? DateiFilter_guid;
List<String>? sonstigesDateien_guid;
bool? isDownload;
String? betragsabweichungStr;
int? zahlsystem_count;
int? treffertyp_count;
int? dateien_count;
List<int>? einschlussZeilenList;
OnlinehandelDateiDictionaryLadenRequest({this.guid,this.chkZuordnung,this.lstFilters,this.lstZahlSystemFilter,this.datensaetzeanzahl,this.VonDatum,this.BisDatum,this.volltext,this.DateiFilter_guid,this.sonstigesDateien_guid,this.isDownload,this.betragsabweichungStr,this.zahlsystem_count,this.treffertyp_count,this.dateien_count,this.einschlussZeilenList});
OnlinehandelDateiDictionaryLadenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
guid = json['guid'];
chkZuordnung = json['chkZuordnung'];
lstFilters = JsonConverters.fromJson(json['lstFilters'],'List<int>',context!);
lstZahlSystemFilter = JsonConverters.fromJson(json['lstZahlSystemFilter'],'List<String>',context!);
datensaetzeanzahl = json['datensaetzeanzahl'];
VonDatum = JsonConverters.fromJson(json['VonDatum'],'DateTime',context!);
BisDatum = JsonConverters.fromJson(json['BisDatum'],'DateTime',context!);
volltext = json['volltext'];
DateiFilter_guid = JsonConverters.fromJson(json['DateiFilter_guid'],'List<String>',context!);
sonstigesDateien_guid = JsonConverters.fromJson(json['sonstigesDateien_guid'],'List<String>',context!);
isDownload = json['isDownload'];
betragsabweichungStr = json['betragsabweichungStr'];
zahlsystem_count = json['zahlsystem_count'];
treffertyp_count = json['treffertyp_count'];
dateien_count = json['dateien_count'];
einschlussZeilenList = JsonConverters.fromJson(json['einschlussZeilenList'],'List<int>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'guid': guid,
'chkZuordnung': chkZuordnung,
'lstFilters': JsonConverters.toJson(lstFilters,'List<int>',context!),
'lstZahlSystemFilter': JsonConverters.toJson(lstZahlSystemFilter,'List<String>',context!),
'datensaetzeanzahl': datensaetzeanzahl,
'VonDatum': JsonConverters.toJson(VonDatum,'DateTime',context!),
'BisDatum': JsonConverters.toJson(BisDatum,'DateTime',context!),
'volltext': volltext,
'DateiFilter_guid': JsonConverters.toJson(DateiFilter_guid,'List<String>',context!),
'sonstigesDateien_guid': JsonConverters.toJson(sonstigesDateien_guid,'List<String>',context!),
'isDownload': isDownload,
'betragsabweichungStr': betragsabweichungStr,
'zahlsystem_count': zahlsystem_count,
'treffertyp_count': treffertyp_count,
'dateien_count': dateien_count,
'einschlussZeilenList': JsonConverters.toJson(einschlussZeilenList,'List<int>',context!)
};
getTypeName() => "OnlinehandelDateiDictionaryLadenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'OnlinehandelModel': TypeInfo(TypeOf.Class, create:() => OnlinehandelModel()),
'List<OnlinehandelModel>': TypeInfo(TypeOf.Class, create:() => <OnlinehandelModel>[]),
'onlinehandel_treffertypen': TypeInfo(TypeOf.Class, create:() => onlinehandel_treffertypen()),
'OnlinehandelTreffertypen': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypen()),
'OnlinehandelDateiDictionaryLadenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelDateiDictionaryLadenResponse()),
'List<OnlinehandelTreffertypen>': TypeInfo(TypeOf.Class, create:() => <OnlinehandelTreffertypen>[]),
'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
'Map<String,int?>': TypeInfo(TypeOf.Class, create:() => Map<String,int?>()),
'OnlinehandelDateiDictionaryLadenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelDateiDictionaryLadenRequest()),
});
Dart OnlinehandelDateiDictionaryLadenRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /fibuscan/Onlinehandel/DateiDictionaryLaden HTTP/1.1
Host: ws4.fibudata.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"guid":"String","chkZuordnung":false,"lstFilters":[0],"lstZahlSystemFilter":["String"],"datensaetzeanzahl":0,"VonDatum":"\/Date(-62135596800000-0000)\/","BisDatum":"\/Date(-62135596800000-0000)\/","volltext":"String","DateiFilter_guid":["String"],"sonstigesDateien_guid":["String"],"isDownload":false,"betragsabweichungStr":"String","zahlsystem_count":0,"treffertyp_count":0,"dateien_count":0,"einschlussZeilenList":[0]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"onlineHandelModel":[{"Zahlbetrag":0,"Datum":"\/Date(-62135596800000-0000)\/","Treffertyp":"String","OrderID":"String","lstTreffer":[{"Zahlbetrag":0,"Datum":"\/Date(-62135596800000-0000)\/","Treffertyp":"String","OrderID":"String","lstTreffer":[{"Zahlbetrag":0,"Datum":"\/Date(-62135596800000-0000)\/","Treffertyp":"String","OrderID":"String","ID":"String","ID1":"String","Buchungstext":"String","Zahlsystem":"String","Sonstiges":"String","Treffer":"String","ÜbrigeDaten":"String","hasTreffer":false,"Geparsed_guid":"String","Fileguid":"String","OnlinehandelDateiID":0,"OnlinehandelTalkID":0,"DateiName":"String","ZeilNummer":0,"Dateiname":"String","dateitype":"String","DBDateitype":0,"LetzteDateiId":0,"TrefferStelle":0,"TrefferInfo":"String","Volltext":"String"}],"ID":"String","ID1":"String","Buchungstext":"String","Zahlsystem":"String","Sonstiges":"String","Treffer":"String","ÜbrigeDaten":"String","hasTreffer":false,"Geparsed_guid":"String","Fileguid":"String","OnlinehandelDateiID":0,"OnlinehandelTalkID":0,"DateiName":"String","ZeilNummer":0,"Dateiname":"String","dateitype":"String","DBDateitype":0,"LetzteDateiId":0,"TrefferStelle":0,"TrefferInfo":"String","Volltext":"String"}],"ID":"String","ID1":"String","Buchungstext":"String","Zahlsystem":"String","Sonstiges":"String","Treffer":"String","ÜbrigeDaten":"String","hasTreffer":false,"Geparsed_guid":"String","Fileguid":"String","OnlinehandelDateiID":0,"OnlinehandelTalkID":0,"DateiName":"String","ZeilNummer":0,"Dateiname":"String","dateitype":"String","DBDateitype":0,"LetzteDateiId":0,"TrefferStelle":0,"TrefferInfo":"String","Volltext":"String"}],"mehrAlsAnzahl":false,"PostionenAnzahl":"String","alleDictionaryitems":[{"data":{"id":0,"guid":"String","mandant":0,"del":0,"parent_id":0,"soll_parsen":0,"bezeichnung":"String","_erstellt":"\/Date(-62135596800000-0000)\/","_aenderung":"\/Date(-62135596800000-0000)\/","suchfeld1":0,"suchfeld1_text":"String","suchfeld2":0,"suchfeld2_text":"String","PrimaryKey":0},"anzahl":0,"isEnum":false,"Quote":0}],"CsvDatei":"AA==","Dic_zahlSystem":{"String":0}}