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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;

namespace TicketUserServices.ServiceModel
{
    public partial class OrderTender
    {
        public virtual string Kind { get; set; }
        public virtual string Code { get; set; }
        public virtual int? AmountMinor { get; set; }
        public virtual string IdempotencyKey { get; set; }
        public virtual int? HoldId { get; set; }
        public virtual int? AppliedMinor { get; set; }
    }

    public partial class OwnerCardsQuoteRequest
    {
        public OwnerCardsQuoteRequest()
        {
            OwnerCardTypeIds = new List<int>{};
            Tenders = new List<OrderTender>{};
        }

        public virtual List<int> OwnerCardTypeIds { get; set; }
        public virtual bool? IsSubscription { get; set; }
        public virtual string DiscountCode { get; set; }
        public virtual List<OrderTender> Tenders { get; set; }
        public virtual int? DonationAmount { get; set; }
        public virtual string PhoneVerificationNumber { get; set; }
    }

    public partial class OwnerCardsQuoteResult
    {
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
        public virtual string Reason { get; set; }
        public virtual bool IsSubscription { get; set; }
        public virtual int PriceTotal { get; set; }
        public virtual int DiscountAmount { get; set; }
        public virtual int GiftCardAmount { get; set; }
        public virtual int DonationAmount { get; set; }
        public virtual int TransactionFee { get; set; }
        public virtual int ChargedAmount { get; set; }
        public virtual int ChargedAmountMinor { get; set; }
        public virtual bool FullyCovered { get; set; }
    }

}

C# 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
}