Betting.WebApi

<back to all web services

GetCashbookEntriesReport

The following routes are available for this service:
All Verbs/qry/reports/cashbookEntries
import 'package:servicestack/servicestack.dart';

class GetCashbookEntriesReport implements IConvertible
{
    String? format;
    DateTime? periodFrom;
    DateTime? periodTo;

    GetCashbookEntriesReport({this.format,this.periodFrom,this.periodTo});
    GetCashbookEntriesReport.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        format = json['format'];
        periodFrom = JsonConverters.fromJson(json['periodFrom'],'DateTime',context!);
        periodTo = JsonConverters.fromJson(json['periodTo'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'format': format,
        'periodFrom': JsonConverters.toJson(periodFrom,'DateTime',context!),
        'periodTo': JsonConverters.toJson(periodTo,'DateTime',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
    'GetCashbookEntriesReport': TypeInfo(TypeOf.Class, create:() => GetCashbookEntriesReport()),
});

Dart GetCashbookEntriesReport DTOs

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

HTTP + JSON

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

POST /qry/reports/cashbookEntries HTTP/1.1 
Host: api.sbbet.ath.cx 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"format":"String","periodFrom":"0001-01-01T00:00:00.0000000Z","periodTo":"0001-01-01T00:00:00.0000000Z"}