FIBUdataServiceStack

<back to all web services

OnlinehandelTreffertypenLadenRequest

The following routes are available for this service:
GET, POST/fibuscan/Onlinehandel/TreffertypenLaden
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

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;
}

enum Onlinehandel_Enum_Bearbeitungstyp
{
    None,
    Exact_ID,
    Contains_ID1,
    StartLose,
    EndLose,
    Lerneintrag,
    Betragtreffer_ZA_AR,
    Stornotreffer,
    Ueberhang,
    Gutschrift,
    Manuell,
    Eingangsrechnung,
    Sonstige_Klaerung,
    Bankausgleich,
    FehlendeAR,
    FehlendeGS,
    NichtBuchen,
    Abw_kd_zhlg,
    Bar,
    Vormonat,
    Waehrungsabweichung,
    Betragsabweichung_kl_RD,
    OrderId,
    Betragtreffer_ZA_ZA,
    Betragsabweichung_gr_RD,
    Storno_ID,
    Storno_Contains_ID,
    Abschoepfung,
    Volltext,
    Volltext_kl_Rd,
    Volltext_gr_Rd,
    Sonstiges,
}

class TreffertypParent implements IConvertible
{
    int? Id;
    String? Title;
    Onlinehandel_Enum_Bearbeitungstyp? bearbeitungstyp;

    TreffertypParent({this.Id,this.Title,this.bearbeitungstyp});
    TreffertypParent.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Id = json['Id'];
        Title = json['Title'];
        bearbeitungstyp = JsonConverters.fromJson(json['bearbeitungstyp'],'Onlinehandel_Enum_Bearbeitungstyp',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Id': Id,
        'Title': Title,
        'bearbeitungstyp': JsonConverters.toJson(bearbeitungstyp,'Onlinehandel_Enum_Bearbeitungstyp',context!)
    };

    getTypeName() => "TreffertypParent";
    TypeContext? context = _ctx;
}

class OnlinehandelTreffertypenLadenResponse implements IConvertible
{
    List<onlinehandel_treffertypen>? Liste;
    List<TreffertypParent>? ParentsListe;

    OnlinehandelTreffertypenLadenResponse({this.Liste,this.ParentsListe});
    OnlinehandelTreffertypenLadenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Liste = JsonConverters.fromJson(json['Liste'],'List<onlinehandel_treffertypen>',context!);
        ParentsListe = JsonConverters.fromJson(json['ParentsListe'],'List<TreffertypParent>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Liste': JsonConverters.toJson(Liste,'List<onlinehandel_treffertypen>',context!),
        'ParentsListe': JsonConverters.toJson(ParentsListe,'List<TreffertypParent>',context!)
    };

    getTypeName() => "OnlinehandelTreffertypenLadenResponse";
    TypeContext? context = _ctx;
}

class OnlinehandelTreffertypenLadenRequest implements IConvertible
{
    OnlinehandelTreffertypenLadenRequest();
    OnlinehandelTreffertypenLadenRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "OnlinehandelTreffertypenLadenRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'onlinehandel_treffertypen': TypeInfo(TypeOf.Class, create:() => onlinehandel_treffertypen()),
    'Onlinehandel_Enum_Bearbeitungstyp': TypeInfo(TypeOf.Enum, enumValues:Onlinehandel_Enum_Bearbeitungstyp.values),
    'TreffertypParent': TypeInfo(TypeOf.Class, create:() => TreffertypParent()),
    'OnlinehandelTreffertypenLadenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenLadenResponse()),
    'List<onlinehandel_treffertypen>': TypeInfo(TypeOf.Class, create:() => <onlinehandel_treffertypen>[]),
    'List<TreffertypParent>': TypeInfo(TypeOf.Class, create:() => <TreffertypParent>[]),
    'OnlinehandelTreffertypenLadenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelTreffertypenLadenRequest()),
});

Dart OnlinehandelTreffertypenLadenRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /fibuscan/Onlinehandel/TreffertypenLaden HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Liste":[{"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}],"ParentsListe":[{"Id":0,"Title":"String","bearbeitungstyp":"None"}]}