| 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String","documentOrdinal":0,"official":"String","operation":0,"dateOfReceipt":"0001-01-01T00:00:00.0000000Z","authorizedPersonJMBG":"String","authorizedPersonFullName":"String","authorizedPersonLocation":"String","authorizedPersonStatementDate":"0001-01-01T00:00:00.0000000Z"}