TicketUserServices

<back to all web services

OwnerCardsQuoteRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, ReadData
The following routes are available for this service:
POST/OrderOwnerCards/quote
namespace TicketUserServices.ServiceModel

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

    [<AllowNullLiteral>]
    type OwnerCardsQuoteResult() = 
        member val StatusCode:Int32 = new Int32() with get,set
        member val Message:String = null with get,set
        member val Reason:String = null with get,set
        member val IsSubscription:Boolean = new Boolean() with get,set
        member val PriceTotal:Int32 = new Int32() with get,set
        member val DiscountAmount:Int32 = new Int32() with get,set
        member val GiftCardAmount:Int32 = new Int32() with get,set
        member val DonationAmount:Int32 = new Int32() with get,set
        member val TransactionFee:Int32 = new Int32() with get,set
        member val ChargedAmount:Int32 = new Int32() with get,set
        member val ChargedAmountMinor:Int32 = new Int32() with get,set
        member val FullyCovered:Boolean = new Boolean() with get,set

    [<AllowNullLiteral>]
    type OrderTender() = 
        member val Kind:String = null with get,set
        member val Code:String = null with get,set
        member val AmountMinor:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val IdempotencyKey:String = null with get,set
        member val HoldId:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val AppliedMinor:Nullable<Int32> = new Nullable<Int32>() with get,set

    [<AllowNullLiteral>]
    type OwnerCardsQuoteRequest() = 
        member val OwnerCardTypeIds:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set
        member val IsSubscription:Nullable<Boolean> = new Nullable<Boolean>() with get,set
        member val DiscountCode:String = null with get,set
        member val Tenders:ResizeArray<OrderTender> = new ResizeArray<OrderTender>() with get,set
        member val DonationAmount:Nullable<Int32> = new Nullable<Int32>() with get,set
        member val PhoneVerificationNumber:String = null with get,set

F# OwnerCardsQuoteRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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

POST /OrderOwnerCards/quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	ownerCardTypeIds: 
	[
		0
	],
	isSubscription: False,
	discountCode: String,
	tenders: 
	[
		{
			kind: String,
			code: String,
			amountMinor: 0,
			idempotencyKey: String,
			holdId: 0,
			appliedMinor: 0
		}
	],
	donationAmount: 0,
	phoneVerificationNumber: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	statusCode: 0,
	message: String,
	reason: String,
	isSubscription: False,
	priceTotal: 0,
	discountAmount: 0,
	giftCardAmount: 0,
	donationAmount: 0,
	transactionFee: 0,
	chargedAmount: 0,
	chargedAmountMinor: 0,
	fullyCovered: False
}