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 .xml suffix or ?format=xml

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<TransferTargetTicketTypesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <SectionId>0</SectionId>
  <TicketTokenId>String</TicketTokenId>
  <ToEventId>0</ToEventId>
</TransferTargetTicketTypesRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<TransferTargetTicketTypesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Code>String</Code>
  <Message>String</Message>
  <Ok>false</Ok>
  <Options>
    <TransferTargetTicketTypeOption>
      <BlockTransfer>false</BlockTransfer>
      <Direction>String</Direction>
      <Hidden>false</Hidden>
      <MaxTickets>0</MaxTickets>
      <Name>String</Name>
      <NameMatchesSource>false</NameMatchesSource>
      <OwnerTicketTypeId>0</OwnerTicketTypeId>
      <Price>0</Price>
      <PriceDifference>0</PriceDifference>
      <SeriesTicketTypeId>0</SeriesTicketTypeId>
      <TicketsLeft>0</TicketsLeft>
      <TicketsSold>0</TicketsSold>
    </TransferTargetTicketTypeOption>
  </Options>
  <SourceTicketPrice>0</SourceTicketPrice>
  <SourceTicketTypeName>String</SourceTicketTypeName>
  <StatusCode>0</StatusCode>
</TransferTargetTicketTypesResult>