FIBUdataServiceStack

<back to all web services

OnlinehandelUploadRequest

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

class OnlinehandelKonfig implements IConvertible
{
    bool? summenkonfiguration;
    int? spaltenkonfiguration;

    OnlinehandelKonfig({this.summenkonfiguration,this.spaltenkonfiguration});
    OnlinehandelKonfig.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class OnlinehandelUploadResponse implements IConvertible
{
    List<List<String>>? Liste;
    int? colsCount;
    String? guid;
    String? kopf_hash;
    List<OnlinehandelKonfig>? KopfOptionen;

    OnlinehandelUploadResponse({this.Liste,this.colsCount,this.guid,this.kopf_hash,this.KopfOptionen});
    OnlinehandelUploadResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Liste': JsonConverters.toJson(Liste,'List<List<String>>',context!),
        'colsCount': colsCount,
        'guid': guid,
        'kopf_hash': kopf_hash,
        'KopfOptionen': JsonConverters.toJson(KopfOptionen,'List<OnlinehandelKonfig>',context!)
    };

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

enum Oem
{
    fibudata,
    spectrum,
}

class OnlinehandelUploadRequest implements IConvertible
{
    Oem? oem;
    String? fileName;
    int? Dateityp;
    String? Dateiname;
    int? Textcodierung;
    String? Trennzeichen;
    int? Datumskonvertierung;
    int? Betragskonvertierung;
    String? kopf_faengt_mit;
    String? standard_waehrung;

    OnlinehandelUploadRequest({this.oem,this.fileName,this.Dateityp,this.Dateiname,this.Textcodierung,this.Trennzeichen,this.Datumskonvertierung,this.Betragskonvertierung,this.kopf_faengt_mit,this.standard_waehrung});
    OnlinehandelUploadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        oem = JsonConverters.fromJson(json['oem'],'Oem',context!);
        fileName = json['fileName'];
        Dateityp = json['Dateityp'];
        Dateiname = json['Dateiname'];
        Textcodierung = json['Textcodierung'];
        Trennzeichen = json['Trennzeichen'];
        Datumskonvertierung = json['Datumskonvertierung'];
        Betragskonvertierung = json['Betragskonvertierung'];
        kopf_faengt_mit = json['kopf_faengt_mit'];
        standard_waehrung = json['standard_waehrung'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'oem': JsonConverters.toJson(oem,'Oem',context!),
        'fileName': fileName,
        'Dateityp': Dateityp,
        'Dateiname': Dateiname,
        'Textcodierung': Textcodierung,
        'Trennzeichen': Trennzeichen,
        'Datumskonvertierung': Datumskonvertierung,
        'Betragskonvertierung': Betragskonvertierung,
        'kopf_faengt_mit': kopf_faengt_mit,
        'standard_waehrung': standard_waehrung
    };

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

TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
    'OnlinehandelKonfig': TypeInfo(TypeOf.Class, create:() => OnlinehandelKonfig()),
    'OnlinehandelUploadResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelUploadResponse()),
    'List<List<String>>': TypeInfo(TypeOf.Class, create:() => <List<String>>[]),
    'List<OnlinehandelKonfig>': TypeInfo(TypeOf.Class, create:() => <OnlinehandelKonfig>[]),
    'Oem': TypeInfo(TypeOf.Enum, enumValues:Oem.values),
    'OnlinehandelUploadRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelUploadRequest()),
});

Dart OnlinehandelUploadRequest 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/Upload HTTP/1.1 
Host: ws4.fibudata.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"oem":"fibudata","fileName":"String","Dateityp":0,"Dateiname":"String","Textcodierung":0,"Trennzeichen":"String","Datumskonvertierung":0,"Betragskonvertierung":0,"kopf_faengt_mit":"String","standard_waehrung":"String"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Liste":[["String"]],"colsCount":0,"guid":"String","kopf_hash":"String","KopfOptionen":[{"summenkonfiguration":false,"spaltenkonfiguration":0}]}