| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
| POST | /OrderOwnerCards/quote |
|---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type OwnerCardsQuoteResult() =
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
member val Reason:String = null with get,set
member val IsSubscription:Boolean = new Boolean() with get,set
member val PriceTotal:Int32 = new Int32() with get,set
member val DiscountAmount:Int32 = new Int32() with get,set
member val GiftCardAmount:Int32 = new Int32() with get,set
member val DonationAmount:Int32 = new Int32() with get,set
member val TransactionFee:Int32 = new Int32() with get,set
member val ChargedAmount:Int32 = new Int32() with get,set
member val ChargedAmountMinor:Int32 = new Int32() with get,set
member val FullyCovered:Boolean = new Boolean() with get,set
[<AllowNullLiteral>]
type OrderTender() =
member val Kind:String = null with get,set
member val Code:String = null with get,set
member val AmountMinor:Nullable<Int32> = new Nullable<Int32>() with get,set
member val IdempotencyKey:String = null with get,set
member val HoldId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val AppliedMinor:Nullable<Int32> = new Nullable<Int32>() with get,set
[<AllowNullLiteral>]
type OwnerCardsQuoteRequest() =
member val OwnerCardTypeIds:ResizeArray<Int32> = new ResizeArray<Int32>() with get,set
member val IsSubscription:Nullable<Boolean> = new Nullable<Boolean>() with get,set
member val DiscountCode:String = null with get,set
member val Tenders:ResizeArray<OrderTender> = new ResizeArray<OrderTender>() with get,set
member val DonationAmount:Nullable<Int32> = new Nullable<Int32>() with get,set
member val PhoneVerificationNumber:String = null with get,set
F# OwnerCardsQuoteRequest 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 /OrderOwnerCards/quote HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OwnerCardsQuoteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<DiscountCode>String</DiscountCode>
<DonationAmount>0</DonationAmount>
<IsSubscription>false</IsSubscription>
<OwnerCardTypeIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</OwnerCardTypeIds>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<Tenders>
<OrderTender>
<AmountMinor>0</AmountMinor>
<AppliedMinor>0</AppliedMinor>
<Code>String</Code>
<HoldId>0</HoldId>
<IdempotencyKey>String</IdempotencyKey>
<Kind>String</Kind>
</OrderTender>
</Tenders>
</OwnerCardsQuoteRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <OwnerCardsQuoteResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <ChargedAmount>0</ChargedAmount> <ChargedAmountMinor>0</ChargedAmountMinor> <DiscountAmount>0</DiscountAmount> <DonationAmount>0</DonationAmount> <FullyCovered>false</FullyCovered> <GiftCardAmount>0</GiftCardAmount> <IsSubscription>false</IsSubscription> <Message>String</Message> <PriceTotal>0</PriceTotal> <Reason>String</Reason> <StatusCode>0</StatusCode> <TransactionFee>0</TransactionFee> </OwnerCardsQuoteResult>