| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| 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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<MoveTicketsToAnotherEventRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<FromEventId>0</FromEventId>
<Reason>String</Reason>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
<Tickets>
<MoveTicketToAnotherEventEntry>
<TicketId>0</TicketId>
<ToOwnerTicketTypeId>0</ToOwnerTicketTypeId>
<ToSeriesTicketTypeId>0</ToSeriesTicketTypeId>
</MoveTicketToAnotherEventEntry>
</Tickets>
<ToEventId>0</ToEventId>
</MoveTicketsToAnotherEventRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MoveTicketsToAnotherEventResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Failures>
<MoveTicketToAnotherEventTicketFailure>
<Reason>String</Reason>
<TicketId>0</TicketId>
</MoveTicketToAnotherEventTicketFailure>
</Failures>
<Message>String</Message>
<MovedTicketIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</MovedTicketIds>
<StatusCode>0</StatusCode>
</MoveTicketsToAnotherEventResult>