| Requires the role: | Admin |
| POST | /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 EventOwnerOutstandingResult:
item: Optional[EventOwnerOutstanding] = None
status_code: Optional[int] = None
message: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class EventOwnerOutstandingCreateRequest:
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
Python EventOwnerOutstandingCreateRequest 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.
POST /eventowner/{EventOwnerId}/outstanding HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"eventOwnerId":0,"amount":0,"reason":"String","relatedEventId":0,"relatedTicketId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"item":{"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"}