Requires any of the roles: | Admin, TeamAdmin | Required permission: | Tickets.Add |
GET PUT POST | /eventOwnerGiveAwayCards |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class EventOwnerGiveAwayCardsRequest
{
var phoneNumber:String? = null
var ownerId:Int? = null
var ownerCardTypeId:Int? = null
var holderId:String? = null
var holderName:String? = null
var holderEmail:String? = null
}
open class EventOwnerGiveAwayCardsResult
{
var card:OwnerCards? = null
var statusCode:Int? = null
var message:String? = null
}
open class OwnerCards
{
var id:Int? = null
var ownerId:Int? = null
var ownerCardTypeId:Int? = null
var phoneVerificationId:Int? = null
var initialMaxTickets:Int? = null
var currentAvailableTickets:Int? = null
var timeStampCreatedUTC:Date? = null
var timeStampLastChangedUTC:Date? = null
var timeStampBoughtUTC:Date? = null
var timeStampOrderedUTC:Date? = null
var cardValidFromUTC:Date? = null
var cardValidToUTC:Date? = null
var hasStoreCredit:Boolean? = null
var cardPrice:BigDecimal? = null
var pricePaid:BigDecimal? = null
var initialStoreCredit:BigDecimal? = null
var currentStoreCredit:BigDecimal? = null
var phoneFullVerificationNumber:String? = null
var holderId:String? = null
var holderName:String? = null
var holderEmail:String? = null
var cardPriceCurrency:String? = null
var pricePaidCurrency:String? = null
var deviceId:String? = null
var paymentMethodId:String? = null
var paymentReference:String? = null
var phoneVerificationNumber:String? = null
var paymentPhoneNumber:String? = null
var paymentId:String? = null
var paymentStatus:String? = null
var paymentTokenId:String? = null
var maxTicketsPerEvent:Int? = null
var multiplePaymentsId:String? = null
var imageUrl:String? = null
var backgroundImageUrl:String? = null
}
Kotlin EventOwnerGiveAwayCardsRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /eventOwnerGiveAwayCards HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"phoneNumber":"String","ownerId":0,"ownerCardTypeId":0,"holderId":"String","holderName":"String","holderEmail":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"card":{"id":0,"ownerId":0,"ownerCardTypeId":0,"phoneVerificationId":0,"initialMaxTickets":0,"currentAvailableTickets":0,"timeStampCreatedUTC":"0001-01-01T00:00:00.0000000","timeStampLastChangedUTC":"0001-01-01T00:00:00.0000000","timeStampBoughtUTC":"0001-01-01T00:00:00.0000000","timeStampOrderedUTC":"0001-01-01T00:00:00.0000000","cardValidFromUTC":"0001-01-01T00:00:00.0000000","cardValidToUTC":"0001-01-01T00:00:00.0000000","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"}