| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /EventSeating/ReseatQuote |
|---|
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 ReseatSeatQuote:
from_seat_id: Optional[int] = None
to_seat_id: Optional[int] = None
ticket_token_id: Optional[str] = None
from_price: Optional[Decimal] = None
to_price: Optional[Decimal] = None
difference: Optional[Decimal] = None
to_section_name: Optional[str] = None
to_seat_name: Optional[str] = None
ok: Optional[bool] = None
message: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatQuoteResult:
ok: Optional[bool] = None
status_code: Optional[int] = None
message: Optional[str] = None
total_from_price: Optional[Decimal] = None
total_to_price: Optional[Decimal] = None
price_difference: Optional[Decimal] = None
direction: Optional[str] = None
refundable_via_borgun: Optional[bool] = None
payment_reference: Optional[str] = None
seats: Optional[List[ReseatSeatQuote]] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatMovePair:
from_seat_id: Optional[int] = None
to_seat_id: Optional[int] = None
to_owner_ticket_type_id: Optional[int] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReseatQuoteRequest:
event_id: Optional[int] = None
moves: Optional[List[ReseatMovePair]] = None
Python ReseatQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /EventSeating/ReseatQuote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
eventId: 0,
moves:
[
{
fromSeatId: 0,
toSeatId: 0,
toOwnerTicketTypeId: 0
}
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ok: False,
statusCode: 0,
message: String,
totalFromPrice: 0,
totalToPrice: 0,
priceDifference: 0,
direction: String,
refundableViaBorgun: False,
paymentReference: String,
seats:
[
{
fromSeatId: 0,
toSeatId: 0,
ticketTokenId: String,
fromPrice: 0,
toPrice: 0,
difference: 0,
toSectionName: String,
toSeatName: String,
ok: False,
message: String
}
]
}