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
import java.math.*
import java.util.*
import net.servicestack.client.*


open class OwnerCardsQuoteRequest
{
    var ownerCardTypeIds:ArrayList<Int> = ArrayList<Int>()
    var isSubscription:Boolean? = null
    var discountCode:String? = null
    var tenders:ArrayList<OrderTender> = ArrayList<OrderTender>()
    var donationAmount:Int? = null
    var phoneVerificationNumber:String? = null
}

open class OrderTender
{
    var kind:String? = null
    var code:String? = null
    var amountMinor:Int? = null
    var idempotencyKey:String? = null
    var holdId:Int? = null
    var appliedMinor:Int? = null
}

open class OwnerCardsQuoteResult
{
    var statusCode:Int? = null
    var message:String? = null
    var reason:String? = null
    var isSubscription:Boolean? = null
    var priceTotal:Int? = null
    var discountAmount:Int? = null
    var giftCardAmount:Int? = null
    var donationAmount:Int? = null
    var transactionFee:Int? = null
    var chargedAmount:Int? = null
    var chargedAmountMinor:Int? = null
    var fullyCovered:Boolean? = null
}

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