TicketUserServices

<back to all web services

ReseatWithinEventRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:Tickets.Add
The following routes are available for this service:
POST/EventSeating/ReseatWithinEvent
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ReseatWithinEventRequest
    {
        public Integer eventId = null;
        public ArrayList<ReseatMovePair> moves = null;
        public BigDecimal expectedPriceDifference = null;
        public Boolean skipReconciliation = null;
        public String reason = null;
        public String idempotencyKey = null;
        public Integer userId = null;
        
        public Integer getEventId() { return eventId; }
        public ReseatWithinEventRequest setEventId(Integer value) { this.eventId = value; return this; }
        public ArrayList<ReseatMovePair> getMoves() { return moves; }
        public ReseatWithinEventRequest setMoves(ArrayList<ReseatMovePair> value) { this.moves = value; return this; }
        public BigDecimal getExpectedPriceDifference() { return expectedPriceDifference; }
        public ReseatWithinEventRequest setExpectedPriceDifference(BigDecimal value) { this.expectedPriceDifference = value; return this; }
        public Boolean isSkipReconciliation() { return skipReconciliation; }
        public ReseatWithinEventRequest setSkipReconciliation(Boolean value) { this.skipReconciliation = value; return this; }
        public String getReason() { return reason; }
        public ReseatWithinEventRequest setReason(String value) { this.reason = value; return this; }
        public String getIdempotencyKey() { return idempotencyKey; }
        public ReseatWithinEventRequest setIdempotencyKey(String value) { this.idempotencyKey = value; return this; }
        public Integer getUserId() { return userId; }
        public ReseatWithinEventRequest setUserId(Integer value) { this.userId = value; return this; }
    }

    public static class ReseatMovePair
    {
        public Integer fromSeatId = null;
        public Integer toSeatId = null;
        public Integer toOwnerTicketTypeId = null;
        
        public Integer getFromSeatId() { return fromSeatId; }
        public ReseatMovePair setFromSeatId(Integer value) { this.fromSeatId = value; return this; }
        public Integer getToSeatId() { return toSeatId; }
        public ReseatMovePair setToSeatId(Integer value) { this.toSeatId = value; return this; }
        public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
        public ReseatMovePair setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
    }

    public static class ReseatWithinEventResult
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String message = null;
        public String direction = null;
        public BigDecimal priceDifference = null;
        public Boolean reconciliationSkipped = null;
        public Integer reconciliationLogId = null;
        public BigDecimal refundAmount = null;
        public String refundPaymentReference = null;
        public ArrayList<Integer> movedSeatIds = null;
        public ArrayList<MoveConfirmedSeatFailure> failures = null;
        
        public Boolean isOk() { return ok; }
        public ReseatWithinEventResult setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public ReseatWithinEventResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public ReseatWithinEventResult setMessage(String value) { this.message = value; return this; }
        public String getDirection() { return direction; }
        public ReseatWithinEventResult setDirection(String value) { this.direction = value; return this; }
        public BigDecimal getPriceDifference() { return priceDifference; }
        public ReseatWithinEventResult setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
        public Boolean isReconciliationSkipped() { return reconciliationSkipped; }
        public ReseatWithinEventResult setReconciliationSkipped(Boolean value) { this.reconciliationSkipped = value; return this; }
        public Integer getReconciliationLogId() { return reconciliationLogId; }
        public ReseatWithinEventResult setReconciliationLogId(Integer value) { this.reconciliationLogId = value; return this; }
        public BigDecimal getRefundAmount() { return refundAmount; }
        public ReseatWithinEventResult setRefundAmount(BigDecimal value) { this.refundAmount = value; return this; }
        public String getRefundPaymentReference() { return refundPaymentReference; }
        public ReseatWithinEventResult setRefundPaymentReference(String value) { this.refundPaymentReference = value; return this; }
        public ArrayList<Integer> getMovedSeatIds() { return movedSeatIds; }
        public ReseatWithinEventResult setMovedSeatIds(ArrayList<Integer> value) { this.movedSeatIds = value; return this; }
        public ArrayList<MoveConfirmedSeatFailure> getFailures() { return failures; }
        public ReseatWithinEventResult setFailures(ArrayList<MoveConfirmedSeatFailure> value) { this.failures = value; return this; }
    }

    public static class MoveConfirmedSeatFailure
    {
        public Integer fromSeatId = null;
        public Integer toSeatId = null;
        public String reason = null;
        
        public Integer getFromSeatId() { return fromSeatId; }
        public MoveConfirmedSeatFailure setFromSeatId(Integer value) { this.fromSeatId = value; return this; }
        public Integer getToSeatId() { return toSeatId; }
        public MoveConfirmedSeatFailure setToSeatId(Integer value) { this.toSeatId = value; return this; }
        public String getReason() { return reason; }
        public MoveConfirmedSeatFailure setReason(String value) { this.reason = value; return this; }
    }

}

Java ReseatWithinEventRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /EventSeating/ReseatWithinEvent HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"eventId":0,"moves":[{"fromSeatId":0,"toSeatId":0,"toOwnerTicketTypeId":0}],"expectedPriceDifference":0,"skipReconciliation":false,"reason":"String","idempotencyKey":"String","userId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ok":false,"statusCode":0,"message":"String","direction":"String","priceDifference":0,"reconciliationSkipped":false,"reconciliationLogId":0,"refundAmount":0,"refundPaymentReference":"String","movedSeatIds":[0],"failures":[{"fromSeatId":0,"toSeatId":0,"reason":"String"}]}