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
namespace TicketUserServices.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type LocalizedMessage() = 
        member val Is:String = null with get,set
        member val En:String = null with get,set

    [<AllowNullLiteral>]
    type OwnerCardPurchaseQuoteResult() = 
        member val OwnerCardTypeId:Int32 = new Int32() with get,set
        member val OwnerId:Int32 = new Int32() with get,set
        member val Currency:String = null with get,set
        member val PriceMinor:Int32 = new Int32() with get,set
        member val GiftAppliedMinor:Int32 = new Int32() with get,set
        member val RemainingMinor:Int32 = new Int32() with get,set
        member val GiftHoldId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val FullyCoveredByGiftCard:Boolean = new Boolean() with get,set
        member val RequiresCardMandate:Boolean = new Boolean() with get,set
        member val GiftRejectedReason:String = null with get,set
        member val GiftMessage:LocalizedMessage = null with get,set
        member val StatusCode:Int32 = new Int32() with get,set
        member val Message:String = null with get,set

    [<AllowNullLiteral>]
    type OwnerCardPurchaseQuoteRequest() = 
        member val OwnerCardTypeId:Int32 = new Int32() with get,set
        member val GiftCardCode:String = null with get,set
        member val IdempotencyKey:String = null with get,set
        member val IsRecurring:Boolean = new Boolean() with get,set

F# 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"}