TicketUserServices

<back to all web services

TransferTargetTicketTypesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/transferTicket/targetTicketTypesList all ticket types available on the target event with price diff vs source
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class TransferTargetTicketTypesRequest
    {
        public String ticketTokenId = null;
        public Integer toEventId = null;
        public Integer sectionId = null;
        
        public String getTicketTokenId() { return ticketTokenId; }
        public TransferTargetTicketTypesRequest setTicketTokenId(String value) { this.ticketTokenId = value; return this; }
        public Integer getToEventId() { return toEventId; }
        public TransferTargetTicketTypesRequest setToEventId(Integer value) { this.toEventId = value; return this; }
        public Integer getSectionId() { return sectionId; }
        public TransferTargetTicketTypesRequest setSectionId(Integer value) { this.sectionId = value; return this; }
    }

    public static class TransferTargetTicketTypesResult
    {
        public Boolean ok = null;
        public Integer statusCode = null;
        public String code = null;
        public String message = null;
        public BigDecimal sourceTicketPrice = null;
        public String sourceTicketTypeName = null;
        public ArrayList<TransferTargetTicketTypeOption> options = null;
        
        public Boolean isOk() { return ok; }
        public TransferTargetTicketTypesResult setOk(Boolean value) { this.ok = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public TransferTargetTicketTypesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getCode() { return code; }
        public TransferTargetTicketTypesResult setCode(String value) { this.code = value; return this; }
        public String getMessage() { return message; }
        public TransferTargetTicketTypesResult setMessage(String value) { this.message = value; return this; }
        public BigDecimal getSourceTicketPrice() { return sourceTicketPrice; }
        public TransferTargetTicketTypesResult setSourceTicketPrice(BigDecimal value) { this.sourceTicketPrice = value; return this; }
        public String getSourceTicketTypeName() { return sourceTicketTypeName; }
        public TransferTargetTicketTypesResult setSourceTicketTypeName(String value) { this.sourceTicketTypeName = value; return this; }
        public ArrayList<TransferTargetTicketTypeOption> getOptions() { return options; }
        public TransferTargetTicketTypesResult setOptions(ArrayList<TransferTargetTicketTypeOption> value) { this.options = value; return this; }
    }

    public static class TransferTargetTicketTypeOption
    {
        public Integer ownerTicketTypeId = null;
        public Integer seriesTicketTypeId = null;
        public String name = null;
        public BigDecimal price = null;
        public String direction = null;
        public BigDecimal priceDifference = null;
        public Boolean nameMatchesSource = null;
        public Boolean blockTransfer = null;
        public Boolean hidden = null;
        public Integer maxTickets = null;
        public Integer ticketsSold = null;
        public Integer ticketsLeft = null;
        
        public Integer getOwnerTicketTypeId() { return ownerTicketTypeId; }
        public TransferTargetTicketTypeOption setOwnerTicketTypeId(Integer value) { this.ownerTicketTypeId = value; return this; }
        public Integer getSeriesTicketTypeId() { return seriesTicketTypeId; }
        public TransferTargetTicketTypeOption setSeriesTicketTypeId(Integer value) { this.seriesTicketTypeId = value; return this; }
        public String getName() { return name; }
        public TransferTargetTicketTypeOption setName(String value) { this.name = value; return this; }
        public BigDecimal getPrice() { return price; }
        public TransferTargetTicketTypeOption setPrice(BigDecimal value) { this.price = value; return this; }
        public String getDirection() { return direction; }
        public TransferTargetTicketTypeOption setDirection(String value) { this.direction = value; return this; }
        public BigDecimal getPriceDifference() { return priceDifference; }
        public TransferTargetTicketTypeOption setPriceDifference(BigDecimal value) { this.priceDifference = value; return this; }
        public Boolean isNameMatchesSource() { return nameMatchesSource; }
        public TransferTargetTicketTypeOption setNameMatchesSource(Boolean value) { this.nameMatchesSource = value; return this; }
        public Boolean isBlockTransfer() { return blockTransfer; }
        public TransferTargetTicketTypeOption setBlockTransfer(Boolean value) { this.blockTransfer = value; return this; }
        public Boolean isHidden() { return hidden; }
        public TransferTargetTicketTypeOption setHidden(Boolean value) { this.hidden = value; return this; }
        public Integer getMaxTickets() { return maxTickets; }
        public TransferTargetTicketTypeOption setMaxTickets(Integer value) { this.maxTickets = value; return this; }
        public Integer getTicketsSold() { return ticketsSold; }
        public TransferTargetTicketTypeOption setTicketsSold(Integer value) { this.ticketsSold = value; return this; }
        public Integer getTicketsLeft() { return ticketsLeft; }
        public TransferTargetTicketTypeOption setTicketsLeft(Integer value) { this.ticketsLeft = value; return this; }
    }

}

Java TransferTargetTicketTypesRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /transferTicket/targetTicketTypes HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ticketTokenId":"String","toEventId":0,"sectionId":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ok":false,"statusCode":0,"code":"String","message":"String","sourceTicketPrice":0,"sourceTicketTypeName":"String","options":[{"ownerTicketTypeId":0,"seriesTicketTypeId":0,"name":"String","price":0,"direction":"String","priceDifference":0,"nameMatchesSource":false,"blockTransfer":false,"hidden":false,"maxTickets":0,"ticketsSold":0,"ticketsLeft":0}]}