| Requires any of the roles: | Admin, TeamAdmin |
| GET | /eventowner/{EventOwnerId}/payoutPolicy |
|---|
import 'package:servicestack/servicestack.dart';
class EventOwnerPayoutPolicy implements IConvertible
{
int? id;
// @References(typeof(EventOwner))
int? eventOwnerId;
int? defaultEligibilityDays;
double? fastSettlementFeePercent;
bool? autoApprove;
DateTime? createdAt;
DateTime? updatedAt;
EventOwnerPayoutPolicy({this.id,this.eventOwnerId,this.defaultEligibilityDays,this.fastSettlementFeePercent,this.autoApprove,this.createdAt,this.updatedAt});
EventOwnerPayoutPolicy.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
eventOwnerId = json['eventOwnerId'];
defaultEligibilityDays = json['defaultEligibilityDays'];
fastSettlementFeePercent = JsonConverters.toDouble(json['fastSettlementFeePercent']);
autoApprove = json['autoApprove'];
createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
updatedAt = JsonConverters.fromJson(json['updatedAt'],'DateTime',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'eventOwnerId': eventOwnerId,
'defaultEligibilityDays': defaultEligibilityDays,
'fastSettlementFeePercent': fastSettlementFeePercent,
'autoApprove': autoApprove,
'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
'updatedAt': JsonConverters.toJson(updatedAt,'DateTime',context!)
};
getTypeName() => "EventOwnerPayoutPolicy";
TypeContext? context = _ctx;
}
class EventOwnerPayoutPolicyResult implements IConvertible
{
EventOwnerPayoutPolicy? item;
int? statusCode;
String? message;
EventOwnerPayoutPolicyResult({this.item,this.statusCode,this.message});
EventOwnerPayoutPolicyResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
item = JsonConverters.fromJson(json['item'],'EventOwnerPayoutPolicy',context!);
statusCode = json['statusCode'];
message = json['message'];
return this;
}
Map<String, dynamic> toJson() => {
'item': JsonConverters.toJson(item,'EventOwnerPayoutPolicy',context!),
'statusCode': statusCode,
'message': message
};
getTypeName() => "EventOwnerPayoutPolicyResult";
TypeContext? context = _ctx;
}
class EventOwnerPayoutPolicyGetRequest implements IConvertible
{
int? eventOwnerId;
EventOwnerPayoutPolicyGetRequest({this.eventOwnerId});
EventOwnerPayoutPolicyGetRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
eventOwnerId = json['eventOwnerId'];
return this;
}
Map<String, dynamic> toJson() => {
'eventOwnerId': eventOwnerId
};
getTypeName() => "EventOwnerPayoutPolicyGetRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
'EventOwnerPayoutPolicy': TypeInfo(TypeOf.Class, create:() => EventOwnerPayoutPolicy()),
'EventOwnerPayoutPolicyResult': TypeInfo(TypeOf.Class, create:() => EventOwnerPayoutPolicyResult()),
'EventOwnerPayoutPolicyGetRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerPayoutPolicyGetRequest()),
});
Dart EventOwnerPayoutPolicyGetRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eventowner/{EventOwnerId}/payoutPolicy HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"item":{"id":0,"eventOwnerId":0,"defaultEligibilityDays":0,"fastSettlementFeePercent":0,"autoApprove":false,"createdAt":"0001-01-01T00:00:00.0000000","updatedAt":"0001-01-01T00:00:00.0000000"},"statusCode":0,"message":"String"}