Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | Tickets.Add |
POST | /OwnerCards |
---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type OwnerCards() =
member val ID:Int32 = new Int32() with get,set
member val OwnerId:Int32 = new Int32() with get,set
member val OwnerCardTypeId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val PhoneVerificationId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val InitialMaxTickets:Nullable<Int32> = new Nullable<Int32>() with get,set
member val CurrentAvailableTickets:Nullable<Int32> = new Nullable<Int32>() with get,set
member val TimeStampCreatedUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val TimeStampLastChangedUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val TimeStampBoughtUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val TimeStampOrderedUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val CardValidFromUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val CardValidToUTC:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val HasStoreCredit:Boolean = new Boolean() with get,set
member val CardPrice:Decimal = new Decimal() with get,set
member val PricePaid:Decimal = new Decimal() with get,set
member val InitialStoreCredit:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val CurrentStoreCredit:Nullable<Decimal> = new Nullable<Decimal>() with get,set
member val PhoneFullVerificationNumber:String = null with get,set
member val HolderId:String = null with get,set
member val HolderName:String = null with get,set
member val HolderEmail:String = null with get,set
member val CardPriceCurrency:String = null with get,set
member val PricePaidCurrency:String = null with get,set
member val DeviceId:String = null with get,set
member val PaymentMethodId:String = null with get,set
member val PaymentReference:String = null with get,set
member val PhoneVerificationNumber:String = null with get,set
member val PaymentPhoneNumber:String = null with get,set
member val PaymentId:String = null with get,set
member val PaymentStatus:String = null with get,set
member val PaymentTokenId:String = null with get,set
member val MaxTicketsPerEvent:Nullable<Int32> = new Nullable<Int32>() with get,set
member val MultiplePaymentsId:String = null with get,set
member val ImageUrl:String = null with get,set
member val BackgroundImageUrl:String = null with get,set
[<AllowNullLiteral>]
type OwnerCardsResult() =
member val Item:OwnerCards = null with get,set
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
[<AllowNullLiteral>]
type OwnerCardsCreateRequest() =
member val Item:OwnerCards = null with get,set
F# OwnerCardsCreateRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /OwnerCards HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
item:
{
id: 0,
ownerId: 0,
ownerCardTypeId: 0,
phoneVerificationId: 0,
initialMaxTickets: 0,
currentAvailableTickets: 0,
timeStampCreatedUTC: 0001-01-01,
timeStampLastChangedUTC: 0001-01-01,
timeStampBoughtUTC: 0001-01-01,
timeStampOrderedUTC: 0001-01-01,
cardValidFromUTC: 0001-01-01,
cardValidToUTC: 0001-01-01,
hasStoreCredit: False,
cardPrice: 0,
pricePaid: 0,
initialStoreCredit: 0,
currentStoreCredit: 0,
phoneFullVerificationNumber: String,
holderId: String,
holderName: String,
holderEmail: String,
cardPriceCurrency: String,
pricePaidCurrency: String,
deviceId: String,
paymentMethodId: String,
paymentReference: String,
phoneVerificationNumber: String,
paymentPhoneNumber: String,
paymentId: String,
paymentStatus: String,
paymentTokenId: String,
maxTicketsPerEvent: 0,
multiplePaymentsId: String,
imageUrl: String,
backgroundImageUrl: String
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { item: { id: 0, ownerId: 0, ownerCardTypeId: 0, phoneVerificationId: 0, initialMaxTickets: 0, currentAvailableTickets: 0, timeStampCreatedUTC: 0001-01-01, timeStampLastChangedUTC: 0001-01-01, timeStampBoughtUTC: 0001-01-01, timeStampOrderedUTC: 0001-01-01, cardValidFromUTC: 0001-01-01, cardValidToUTC: 0001-01-01, hasStoreCredit: False, cardPrice: 0, pricePaid: 0, initialStoreCredit: 0, currentStoreCredit: 0, phoneFullVerificationNumber: String, holderId: String, holderName: String, holderEmail: String, cardPriceCurrency: String, pricePaidCurrency: String, deviceId: String, paymentMethodId: String, paymentReference: String, phoneVerificationNumber: String, paymentPhoneNumber: String, paymentId: String, paymentStatus: String, paymentTokenId: String, maxTicketsPerEvent: 0, multiplePaymentsId: String, imageUrl: String, backgroundImageUrl: String }, statusCode: 0, message: String }