TicketUserServices

<back to all web services

MinimumFeeListRequest

Requires Authentication
The following routes are available for this service:
GET/MinimumFee/List
import 'package:servicestack/servicestack.dart';

class MinimumFee implements IConvertible
{
    int? id;
    // @References(typeof(EventOwner))
    int? eventOwnerId;

    int? amount;
    DateTime? createdAt;
    DateTime? validTo;

    MinimumFee({this.id,this.eventOwnerId,this.amount,this.createdAt,this.validTo});
    MinimumFee.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        eventOwnerId = json['eventOwnerId'];
        amount = json['amount'];
        createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
        validTo = JsonConverters.fromJson(json['validTo'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'eventOwnerId': eventOwnerId,
        'amount': amount,
        'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
        'validTo': JsonConverters.toJson(validTo,'DateTime',context!)
    };

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

class MinimumFeeListResult implements IConvertible
{
    List<MinimumFee>? items;
    int? statusCode;
    String? message;

    MinimumFeeListResult({this.items,this.statusCode,this.message});
    MinimumFeeListResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'items': JsonConverters.toJson(items,'List<MinimumFee>',context!),
        'statusCode': statusCode,
        'message': message
    };

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

class MinimumFeeListRequest implements IConvertible
{
    int? eventOwnerId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'MinimumFee': TypeInfo(TypeOf.Class, create:() => MinimumFee()),
    'MinimumFeeListResult': TypeInfo(TypeOf.Class, create:() => MinimumFeeListResult()),
    'List<MinimumFee>': TypeInfo(TypeOf.Class, create:() => <MinimumFee>[]),
    'MinimumFeeListRequest': TypeInfo(TypeOf.Class, create:() => MinimumFeeListRequest()),
});

Dart MinimumFeeListRequest DTOs

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

HTTP + JSV

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

GET /MinimumFee/List HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			id: 0,
			eventOwnerId: 0,
			amount: 0,
			createdAt: 0001-01-01,
			validTo: 0001-01-01
		}
	],
	statusCode: 0,
	message: String
}