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

export class OwnerCardsQuoteResult
{
    public statusCode?: number;
    public message?: string;
    public reason?: string;
    public isSubscription?: boolean;
    public priceTotal?: number;
    public discountAmount?: number;
    public giftCardAmount?: number;
    public donationAmount?: number;
    public transactionFee?: number;
    public chargedAmount?: number;
    public chargedAmountMinor?: number;
    public fullyCovered?: boolean;

    public constructor(init?: Partial<OwnerCardsQuoteResult>) { (Object as any).assign(this, init); }
}

export class OrderTender
{
    public kind?: string;
    public code?: string;
    public amountMinor?: number;
    public idempotencyKey?: string;
    public holdId?: number;
    public appliedMinor?: number;

    public constructor(init?: Partial<OrderTender>) { (Object as any).assign(this, init); }
}

export class OwnerCardsQuoteRequest
{
    public ownerCardTypeIds?: number[];
    public isSubscription?: boolean;
    public discountCode?: string;
    public tenders?: OrderTender[];
    public donationAmount?: number;
    public phoneVerificationNumber?: string;

    public constructor(init?: Partial<OwnerCardsQuoteRequest>) { (Object as any).assign(this, init); }
}

TypeScript OwnerCardsQuoteRequest 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 /OrderOwnerCards/quote HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
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: application/json
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}