Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
All Verbs | /TicketsForSaleAtEvent/Update |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class TicketsForSaleAtEventUpdateRequest
{
public TicketsForSaleAtEvent ticket = null;
public Long requestUnixUTCTimeStamp = null;
public RequestSignature signature = null;
public TicketsForSaleAtEvent getTicket() { return ticket; }
public TicketsForSaleAtEventUpdateRequest setTicket(TicketsForSaleAtEvent value) { this.ticket = value; return this; }
public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
public TicketsForSaleAtEventUpdateRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
public RequestSignature getSignature() { return signature; }
public TicketsForSaleAtEventUpdateRequest setSignature(RequestSignature value) { this.signature = value; return this; }
}
public static class TicketsForSaleAtEvent
{
public Integer id = null;
public Integer eventId = null;
public Integer ticketType = null;
public Integer maxTickets = null;
public Integer displayOrderValue = null;
public Integer getId() { return id; }
public TicketsForSaleAtEvent setId(Integer value) { this.id = value; return this; }
public Integer getEventId() { return eventId; }
public TicketsForSaleAtEvent setEventId(Integer value) { this.eventId = value; return this; }
public Integer getTicketType() { return ticketType; }
public TicketsForSaleAtEvent setTicketType(Integer value) { this.ticketType = value; return this; }
public Integer getMaxTickets() { return maxTickets; }
public TicketsForSaleAtEvent setMaxTickets(Integer value) { this.maxTickets = value; return this; }
public Integer getDisplayOrderValue() { return displayOrderValue; }
public TicketsForSaleAtEvent setDisplayOrderValue(Integer value) { this.displayOrderValue = 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 TicketsForSaleAtEventSingleResult
{
public TicketsForSaleAtEvent ticket = null;
public Integer statusCode = null;
public String message = null;
public TicketsForSaleAtEvent getTicket() { return ticket; }
public TicketsForSaleAtEventSingleResult setTicket(TicketsForSaleAtEvent value) { this.ticket = value; return this; }
public Integer getStatusCode() { return statusCode; }
public TicketsForSaleAtEventSingleResult setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public TicketsForSaleAtEventSingleResult setMessage(String value) { this.message = value; return this; }
}
}
Java TicketsForSaleAtEventUpdateRequest 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 /TicketsForSaleAtEvent/Update HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<TicketsForSaleAtEventUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
<Ticket xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:DisplayOrderValue>0</d2p1:DisplayOrderValue>
<d2p1:EventId>0</d2p1:EventId>
<d2p1:ID>0</d2p1:ID>
<d2p1:MaxTickets>0</d2p1:MaxTickets>
<d2p1:TicketType>0</d2p1:TicketType>
</Ticket>
</TicketsForSaleAtEventUpdateRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <TicketsForSaleAtEventSingleResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> <Ticket xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:DisplayOrderValue>0</d2p1:DisplayOrderValue> <d2p1:EventId>0</d2p1:EventId> <d2p1:ID>0</d2p1:ID> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:TicketType>0</d2p1:TicketType> </Ticket> </TicketsForSaleAtEventSingleResult>