TicketUserServices

<back to all web services

EventOwnerPayoutPolicyGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin
The following routes are available for this service:
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 .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 /eventowner/{EventOwnerId}/payoutPolicy HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventOwnerPayoutPolicyResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types.Payouts">
    <d2p1:AutoApprove>false</d2p1:AutoApprove>
    <d2p1:CreatedAt>0001-01-01T00:00:00</d2p1:CreatedAt>
    <d2p1:DefaultEligibilityDays>0</d2p1:DefaultEligibilityDays>
    <d2p1:EventOwnerId>0</d2p1:EventOwnerId>
    <d2p1:FastSettlementFeePercent>0</d2p1:FastSettlementFeePercent>
    <d2p1:Id>0</d2p1:Id>
    <d2p1:UpdatedAt>0001-01-01T00:00:00</d2p1:UpdatedAt>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventOwnerPayoutPolicyResult>