FIBUdataServiceStack

<back to all web services

BankRequest

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

class bank implements IPrimaryKey, IMandnr, IDel, ITableBaseErstelltAenderung, INutzerid, IConvertible
{
    int? BankID;
    DateTime? _erstellt;
    DateTime? _aenderung;
    DateTime? Anlagedatum;
    int? ktotyp;
    int? max_banktext;
    int? abruf;
    int? isRev;
    int? isSepa;
    int? buchungsdatum_isErfasst;
    int? del;
    int? id_lokal;
    int? mandant;
    int? Art;
    int? FibuKonto;
    String? Bezeichnung;
    String? bic;
    String? BLZ;
    String? GUID;
    String? iban;
    String? Konto;
    String? pw;
    String? userBLZ;
    String? userKto;
    String? wkz;
    String? universal;
    int? nutzerid;
    // @Ignore()
    int? PrimaryKey;

    bank({this.BankID,this._erstellt,this._aenderung,this.Anlagedatum,this.ktotyp,this.max_banktext,this.abruf,this.isRev,this.isSepa,this.buchungsdatum_isErfasst,this.del,this.id_lokal,this.mandant,this.Art,this.FibuKonto,this.Bezeichnung,this.bic,this.BLZ,this.GUID,this.iban,this.Konto,this.pw,this.userBLZ,this.userKto,this.wkz,this.universal,this.nutzerid,this.PrimaryKey});
    bank.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        BankID = json['BankID'];
        _erstellt = JsonConverters.fromJson(json['_erstellt'],'DateTime',context!);
        _aenderung = JsonConverters.fromJson(json['_aenderung'],'DateTime',context!);
        Anlagedatum = JsonConverters.fromJson(json['Anlagedatum'],'DateTime',context!);
        ktotyp = json['ktotyp'];
        max_banktext = json['max_banktext'];
        abruf = json['abruf'];
        isRev = json['isRev'];
        isSepa = json['isSepa'];
        buchungsdatum_isErfasst = json['buchungsdatum_isErfasst'];
        del = json['del'];
        id_lokal = json['id_lokal'];
        mandant = json['mandant'];
        Art = json['Art'];
        FibuKonto = json['FibuKonto'];
        Bezeichnung = json['Bezeichnung'];
        bic = json['bic'];
        BLZ = json['BLZ'];
        GUID = json['GUID'];
        iban = json['iban'];
        Konto = json['Konto'];
        pw = json['pw'];
        userBLZ = json['userBLZ'];
        userKto = json['userKto'];
        wkz = json['wkz'];
        universal = json['universal'];
        nutzerid = json['nutzerid'];
        PrimaryKey = json['PrimaryKey'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'BankID': BankID,
        '_erstellt': JsonConverters.toJson(_erstellt,'DateTime',context!),
        '_aenderung': JsonConverters.toJson(_aenderung,'DateTime',context!),
        'Anlagedatum': JsonConverters.toJson(Anlagedatum,'DateTime',context!),
        'ktotyp': ktotyp,
        'max_banktext': max_banktext,
        'abruf': abruf,
        'isRev': isRev,
        'isSepa': isSepa,
        'buchungsdatum_isErfasst': buchungsdatum_isErfasst,
        'del': del,
        'id_lokal': id_lokal,
        'mandant': mandant,
        'Art': Art,
        'FibuKonto': FibuKonto,
        'Bezeichnung': Bezeichnung,
        'bic': bic,
        'BLZ': BLZ,
        'GUID': GUID,
        'iban': iban,
        'Konto': Konto,
        'pw': pw,
        'userBLZ': userBLZ,
        'userKto': userKto,
        'wkz': wkz,
        'universal': universal,
        'nutzerid': nutzerid,
        'PrimaryKey': PrimaryKey
    };

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

class BankResponse implements IConvertible
{
    List<bank>? Liste;

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

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

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

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

class BankRequest implements IConvertible
{
    bool? notCaching;

    BankRequest({this.notCaching});
    BankRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        notCaching = json['notCaching'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'notCaching': notCaching
    };

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'bank': TypeInfo(TypeOf.Class, create:() => bank()),
    'BankResponse': TypeInfo(TypeOf.Class, create:() => BankResponse()),
    'List<bank>': TypeInfo(TypeOf.Class, create:() => <bank>[]),
    'BankRequest': TypeInfo(TypeOf.Class, create:() => BankRequest()),
});

Dart BankRequest DTOs

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

HTTP + CSV

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

POST /fibuscan/Bank HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"notCaching":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Liste":[{"BankID":0,"_erstellt":"\/Date(-62135596800000-0000)\/","_aenderung":"\/Date(-62135596800000-0000)\/","Anlagedatum":"\/Date(-62135596800000-0000)\/","ktotyp":0,"max_banktext":0,"abruf":0,"isRev":0,"isSepa":0,"buchungsdatum_isErfasst":0,"del":0,"id_lokal":0,"mandant":0,"Art":0,"FibuKonto":0,"Bezeichnung":"String","bic":"String","BLZ":"String","GUID":"String","iban":"String","Konto":"String","pw":"String","userBLZ":"String","userKto":"String","wkz":"String","universal":"String","nutzerid":0,"PrimaryKey":0}]}