FBiHBetting.Aggregator.WebApi

<back to all web services

GetReportParameters

The following routes are available for this service:
GET/reportParameters
import 'package:servicestack/servicestack.dart';

class ReportOperation
{
    static const ReportOperation Prijava_od_strane_poreznog_obveznika = const ReportOperation._(0);
    static const ReportOperation Prijava_u_ime_poreznog_obveznika = const ReportOperation._(1);
    static const ReportOperation Izmjena = const ReportOperation._(2);
    static const ReportOperation Izmjena_prijava_poreske_uprave = const ReportOperation._(3);

    final int _value;
    const ReportOperation._(this._value);
    int get value => _value;
    static List<ReportOperation> get values => const [Prijava_od_strane_poreznog_obveznika,Prijava_u_ime_poreznog_obveznika,Izmjena,Izmjena_prijava_poreske_uprave];
}

class ReportParameters implements IConvertible
{
    String? id;
    int? documentOrdinal;
    String? official;
    ReportOperation? operation;
    DateTime? dateOfReceipt;
    String? authorizedPersonJMBG;
    String? authorizedPersonFullName;
    String? authorizedPersonLocation;
    DateTime? authorizedPersonStatementDate;

    ReportParameters({this.id,this.documentOrdinal,this.official,this.operation,this.dateOfReceipt,this.authorizedPersonJMBG,this.authorizedPersonFullName,this.authorizedPersonLocation,this.authorizedPersonStatementDate});
    ReportParameters.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        documentOrdinal = json['documentOrdinal'];
        official = json['official'];
        operation = JsonConverters.fromJson(json['operation'],'ReportOperation',context!);
        dateOfReceipt = JsonConverters.fromJson(json['dateOfReceipt'],'DateTime',context!);
        authorizedPersonJMBG = json['authorizedPersonJMBG'];
        authorizedPersonFullName = json['authorizedPersonFullName'];
        authorizedPersonLocation = json['authorizedPersonLocation'];
        authorizedPersonStatementDate = JsonConverters.fromJson(json['authorizedPersonStatementDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'documentOrdinal': documentOrdinal,
        'official': official,
        'operation': JsonConverters.toJson(operation,'ReportOperation',context!),
        'dateOfReceipt': JsonConverters.toJson(dateOfReceipt,'DateTime',context!),
        'authorizedPersonJMBG': authorizedPersonJMBG,
        'authorizedPersonFullName': authorizedPersonFullName,
        'authorizedPersonLocation': authorizedPersonLocation,
        'authorizedPersonStatementDate': JsonConverters.toJson(authorizedPersonStatementDate,'DateTime',context!)
    };

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

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

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

TypeContext _ctx = TypeContext(library: 'fbihtaapi.bettor.webhop.biz', types: <String, TypeInfo> {
    'ReportOperation': TypeInfo(TypeOf.Enum, enumValues:ReportOperation.values),
    'ReportParameters': TypeInfo(TypeOf.Class, create:() => ReportParameters()),
    'GetReportParameters': TypeInfo(TypeOf.Class, create:() => GetReportParameters()),
});

Dart GetReportParameters DTOs

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

HTTP + XML

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

GET /reportParameters HTTP/1.1 
Host: fbihtaapi.bettor.webhop.biz 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ReportParameters xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FBiHBetting.Aggregator.ReadModel">
  <AuthorizedPersonFullName>String</AuthorizedPersonFullName>
  <AuthorizedPersonJMBG>String</AuthorizedPersonJMBG>
  <AuthorizedPersonLocation>String</AuthorizedPersonLocation>
  <AuthorizedPersonStatementDate>0001-01-01T00:00:00</AuthorizedPersonStatementDate>
  <DateOfReceipt>0001-01-01T00:00:00</DateOfReceipt>
  <DocumentOrdinal>0</DocumentOrdinal>
  <Id>String</Id>
  <Official>String</Official>
  <Operation>Prijava_od_strane_poreznog_obveznika</Operation>
</ReportParameters>