Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Required permissions: | Tickets.Add, Tickets.Add |
GET PUT POST | /ownerEventTicketPrice | Change Tickets prices for Event | Id only when changing (PUT). isOwnerTicket is false if the Ticket is default ticket for series |
---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type EventTicketPrice() =
member val ID:Int32 = new Int32() with get,set
member val Name:String = null with get,set
member val Price:Decimal = new Decimal() with get,set
member val TicketTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val TicketOwnerTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val EventId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Hidden:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val isActive:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val MaxTickets:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Currency:String = null with get,set
[<AllowNullLiteral>]
type OwnerEventTicketPriceResult() =
member val TicketPrice:EventTicketPrice = null with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type OwnerEventTicketPriceRequest() =
member val Id:Int32 = new Int32() with get,set
member val IsOwnerTicket:Boolean = new Boolean() with get,set
member val EventId:Int32 = new Int32() with get,set
member val TicketId:Int32 = new Int32() with get,set
member val EventOwnerId:Int32 = new Int32() with get,set
member val SeriesId:Int32 = new Int32() with get,set
member val Price:Decimal = new Decimal() with get,set
member val Hide:Boolean = new Boolean() with get,set
member val Active:Boolean = new Boolean() with get,set
member val MaxTickets:Nullable<Int32> = new Nullable<Int32>() with get,set
F# OwnerEventTicketPriceRequest 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 /ownerEventTicketPrice HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerEventTicketPriceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Active>false</Active>
<EventId>0</EventId>
<EventOwnerId>0</EventOwnerId>
<Hide>false</Hide>
<Id>0</Id>
<IsOwnerTicket>false</IsOwnerTicket>
<MaxTickets>0</MaxTickets>
<Price>0</Price>
<SeriesId>0</SeriesId>
<TicketId>0</TicketId>
</OwnerEventTicketPriceRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerEventTicketPriceResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Message>String</Message> <StatusCode>0</StatusCode> <TicketPrice xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types"> <d2p1:Currency>String</d2p1:Currency> <d2p1:EventId>0</d2p1:EventId> <d2p1:Hidden>false</d2p1:Hidden> <d2p1:ID>0</d2p1:ID> <d2p1:MaxTickets>0</d2p1:MaxTickets> <d2p1:Name>String</d2p1:Name> <d2p1:Price>0</d2p1:Price> <d2p1:TicketOwnerTypeId>0</d2p1:TicketOwnerTypeId> <d2p1:TicketTypeId>0</d2p1:TicketTypeId> <d2p1:isActive>false</d2p1:isActive> </TicketPrice> </OwnerEventTicketPriceResult>