TicketUserServices

<back to all web services

MoveTicketsToAnotherEventRequest

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

public class dtos
{

    public static class MoveTicketsToAnotherEventRequest
    {
        public Integer fromEventId = null;
        public Integer toEventId = null;
        public ArrayList<MoveTicketToAnotherEventEntry> tickets = null;
        public String reason = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public Integer getFromEventId() { return fromEventId; }
        public MoveTicketsToAnotherEventRequest setFromEventId(Integer value) { this.fromEventId = value; return this; }
        public Integer getToEventId() { return toEventId; }
        public MoveTicketsToAnotherEventRequest setToEventId(Integer value) { this.toEventId = value; return this; }
        public ArrayList<MoveTicketToAnotherEventEntry> getTickets() { return tickets; }
        public MoveTicketsToAnotherEventRequest setTickets(ArrayList<MoveTicketToAnotherEventEntry> value) { this.tickets = value; return this; }
        public String getReason() { return reason; }
        public MoveTicketsToAnotherEventRequest setReason(String value) { this.reason = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public MoveTicketsToAnotherEventRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public MoveTicketsToAnotherEventRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class MoveTicketToAnotherEventEntry
    {
        public Integer ticketId = null;
        public Integer toOwnerTicketTypeId = null;
        public Integer toSeriesTicketTypeId = null;
        
        public Integer getTicketId() { return ticketId; }
        public MoveTicketToAnotherEventEntry setTicketId(Integer value) { this.ticketId = value; return this; }
        public Integer getToOwnerTicketTypeId() { return toOwnerTicketTypeId; }
        public MoveTicketToAnotherEventEntry setToOwnerTicketTypeId(Integer value) { this.toOwnerTicketTypeId = value; return this; }
        public Integer getToSeriesTicketTypeId() { return toSeriesTicketTypeId; }
        public MoveTicketToAnotherEventEntry setToSeriesTicketTypeId(Integer value) { this.toSeriesTicketTypeId = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class MoveTicketsToAnotherEventResult
    {
        public Integer statusCode = null;
        public String message = null;
        public ArrayList<Integer> movedTicketIds = null;
        public ArrayList<MoveTicketToAnotherEventTicketFailure> failures = null;
        
        public Integer getStatusCode() { return statusCode; }
        public MoveTicketsToAnotherEventResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public MoveTicketsToAnotherEventResult setMessage(String value) { this.message = value; return this; }
        public ArrayList<Integer> getMovedTicketIds() { return movedTicketIds; }
        public MoveTicketsToAnotherEventResult setMovedTicketIds(ArrayList<Integer> value) { this.movedTicketIds = value; return this; }
        public ArrayList<MoveTicketToAnotherEventTicketFailure> getFailures() { return failures; }
        public MoveTicketsToAnotherEventResult setFailures(ArrayList<MoveTicketToAnotherEventTicketFailure> value) { this.failures = value; return this; }
    }

    public static class MoveTicketToAnotherEventTicketFailure
    {
        public Integer ticketId = null;
        public String reason = null;
        
        public Integer getTicketId() { return ticketId; }
        public MoveTicketToAnotherEventTicketFailure setTicketId(Integer value) { this.ticketId = value; return this; }
        public String getReason() { return reason; }
        public MoveTicketToAnotherEventTicketFailure setReason(String value) { this.reason = value; return this; }
    }

}

Java MoveTicketsToAnotherEventRequest 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 /MoveTicketsToAnotherEventInSeries HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"fromEventId":0,"toEventId":0,"tickets":[{"ticketId":0,"toOwnerTicketTypeId":0,"toSeriesTicketTypeId":0}],"reason":"String","requestUnixUTCTimeStamp":0,"signature":{"systemId":"String","systemSecret":"String","signature":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"statusCode":0,"message":"String","movedTicketIds":[0],"failures":[{"ticketId":0,"reason":"String"}]}