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
import Foundation
import ServiceStack

public class OwnerCardPurchaseQuoteRequest : Codable
{
    public var ownerCardTypeId:Int?
    public var giftCardCode:String?
    public var idempotencyKey:String?
    public var isRecurring:Bool?

    required public init(){}
}

public class OwnerCardPurchaseQuoteResult : Codable
{
    public var ownerCardTypeId:Int?
    public var ownerId:Int?
    public var currency:String?
    public var priceMinor:Int?
    public var giftAppliedMinor:Int?
    public var remainingMinor:Int?
    public var giftHoldId:Int?
    public var fullyCoveredByGiftCard:Bool?
    public var requiresCardMandate:Bool?
    public var giftRejectedReason:String?
    public var giftMessage:LocalizedMessage?
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class LocalizedMessage : Codable
{
    public var `is`:String?
    public var en:String?

    required public init(){}
}


Swift OwnerCardPurchaseQuoteRequest DTOs

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

HTTP + XML

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/xml
Content-Type: application/xml
Content-Length: length

<OwnerCardPurchaseQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <GiftCardCode>String</GiftCardCode>
  <IdempotencyKey>String</IdempotencyKey>
  <IsRecurring>false</IsRecurring>
  <OwnerCardTypeId>0</OwnerCardTypeId>
</OwnerCardPurchaseQuoteRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OwnerCardPurchaseQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Currency>String</Currency>
  <FullyCoveredByGiftCard>false</FullyCoveredByGiftCard>
  <GiftAppliedMinor>0</GiftAppliedMinor>
  <GiftHoldId>0</GiftHoldId>
  <GiftMessage>
    <En>String</En>
    <Is>String</Is>
  </GiftMessage>
  <GiftRejectedReason>String</GiftRejectedReason>
  <Message>String</Message>
  <OwnerCardTypeId>0</OwnerCardTypeId>
  <OwnerId>0</OwnerId>
  <PriceMinor>0</PriceMinor>
  <RemainingMinor>0</RemainingMinor>
  <RequiresCardMandate>false</RequiresCardMandate>
  <StatusCode>0</StatusCode>
</OwnerCardPurchaseQuoteResult>