TicketUserServices

<back to all web services

OwnerCardPurchaseQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:ReadData
The following routes are available for this service:
POST/OwnerCards/Purchase/Quote
import java.math.*
import java.util.*
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class OwnerCardPurchaseQuoteRequest
{
    var ownerCardTypeId:Int? = null
    var giftCardCode:String? = null
    var idempotencyKey:String? = null
    var isRecurring:Boolean? = null
}

open class OwnerCardPurchaseQuoteResult
{
    var ownerCardTypeId:Int? = null
    var ownerId:Int? = null
    var currency:String? = null
    var priceMinor:Int? = null
    var giftAppliedMinor:Int? = null
    var remainingMinor:Int? = null
    var giftHoldId:Int? = null
    var fullyCoveredByGiftCard:Boolean? = null
    var requiresCardMandate:Boolean? = null
    var giftRejectedReason:String? = null
    var giftMessage:LocalizedMessage? = null
    var statusCode:Int? = null
    var message:String? = null
}

open class LocalizedMessage
{
    @SerializedName("is") var Is:String? = null
    var en:String? = null
}

Kotlin OwnerCardPurchaseQuoteRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /OwnerCards/Purchase/Quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"ownerCardTypeId":0,"giftCardCode":"String","idempotencyKey":"String","isRecurring":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ownerCardTypeId":0,"ownerId":0,"currency":"String","priceMinor":0,"giftAppliedMinor":0,"remainingMinor":0,"giftHoldId":0,"fullyCoveredByGiftCard":false,"requiresCardMandate":false,"giftRejectedReason":"String","giftMessage":{"is":"String","en":"String"},"statusCode":0,"message":"String"}