| GET, POST | /fibuscan/Onlinehandel/SupportfallErstellen |
|---|
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 SupportfallErstellenResponse implements IConvertible
{
List<OnlinehandelModel>? onlineHandelModel;
bool? result;
String? errors;
SupportfallErstellenResponse({this.onlineHandelModel,this.result,this.errors});
SupportfallErstellenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
onlineHandelModel = JsonConverters.fromJson(json['onlineHandelModel'],'List<OnlinehandelModel>',context!);
result = json['result'];
errors = json['errors'];
return this;
}
Map<String, dynamic> toJson() => {
'onlineHandelModel': JsonConverters.toJson(onlineHandelModel,'List<OnlinehandelModel>',context!),
'result': result,
'errors': errors
};
getTypeName() => "SupportfallErstellenResponse";
TypeContext? context = _ctx;
}
class SupportfallErstellenRequest implements IConvertible
{
String? guid;
List<int>? ZeileIndexes;
List<String>? FileGuids;
int? SelectedTreffertyp;
SupportfallErstellenRequest({this.guid,this.ZeileIndexes,this.FileGuids,this.SelectedTreffertyp});
SupportfallErstellenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
guid = json['guid'];
ZeileIndexes = JsonConverters.fromJson(json['ZeileIndexes'],'List<int>',context!);
FileGuids = JsonConverters.fromJson(json['FileGuids'],'List<String>',context!);
SelectedTreffertyp = json['SelectedTreffertyp'];
return this;
}
Map<String, dynamic> toJson() => {
'guid': guid,
'ZeileIndexes': JsonConverters.toJson(ZeileIndexes,'List<int>',context!),
'FileGuids': JsonConverters.toJson(FileGuids,'List<String>',context!),
'SelectedTreffertyp': SelectedTreffertyp
};
getTypeName() => "SupportfallErstellenRequest";
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>[]),
'SupportfallErstellenResponse': TypeInfo(TypeOf.Class, create:() => SupportfallErstellenResponse()),
'SupportfallErstellenRequest': TypeInfo(TypeOf.Class, create:() => SupportfallErstellenRequest()),
});
Dart SupportfallErstellenRequest 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/SupportfallErstellen HTTP/1.1
Host: ws4.fibudata.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"guid":"String","ZeileIndexes":[0],"FileGuids":["String"],"SelectedTreffertyp":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"}],"result":false,"errors":"String"}