| Requires any of the roles: | Admin, TeamAdmin |
| GET | /eventowner/{EventOwnerId}/outstanding |
|---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EventOwnerOutstanding:
id: Optional[int] = None
# @References(typeof(EventOwner))
event_owner_id: Optional[int] = None
amount: Optional[int] = None
reason: Optional[str] = None
related_event_id: Optional[int] = None
related_ticket_id: Optional[int] = None
# @References(typeof(EventPayout))
applied_to_event_payout_id: Optional[int] = None
created_at: Optional[datetime.datetime] = None
applied_at: Optional[datetime.datetime] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EventOwnerOutstandingListResult:
event_owner_id: Optional[int] = None
unapplied_balance: Optional[int] = None
items: Optional[List[EventOwnerOutstanding]] = None
status_code: Optional[int] = None
message: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EventOwnerOutstandingListRequest:
event_owner_id: Optional[int] = None
include_applied: Optional[bool] = None
Python EventOwnerOutstandingListRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /eventowner/{EventOwnerId}/outstanding HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"eventOwnerId":0,"unappliedBalance":0,"items":[{"id":0,"eventOwnerId":0,"amount":0,"reason":"String","relatedEventId":0,"relatedTicketId":0,"appliedToEventPayoutId":0,"createdAt":"0001-01-01T00:00:00.0000000","appliedAt":"0001-01-01T00:00:00.0000000"}],"statusCode":0,"message":"String"}