| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Required permission: | ReadData |
| POST | /OwnerCards/Purchase/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 LocalizedMessage
{
public virtual string Is { get; set; }
public virtual string En { get; set; }
}
public partial class OwnerCardPurchaseQuoteRequest
{
public virtual int OwnerCardTypeId { get; set; }
public virtual string GiftCardCode { get; set; }
public virtual string IdempotencyKey { get; set; }
public virtual bool IsRecurring { get; set; }
}
public partial class OwnerCardPurchaseQuoteResult
{
public virtual int OwnerCardTypeId { get; set; }
public virtual int OwnerId { get; set; }
public virtual string Currency { get; set; }
public virtual int PriceMinor { get; set; }
public virtual int GiftAppliedMinor { get; set; }
public virtual int RemainingMinor { get; set; }
public virtual int? GiftHoldId { get; set; }
public virtual bool FullyCoveredByGiftCard { get; set; }
public virtual bool RequiresCardMandate { get; set; }
public virtual string GiftRejectedReason { get; set; }
public virtual LocalizedMessage GiftMessage { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
}
}
C# OwnerCardPurchaseQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>