| Requires any of the roles: | Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileApp | Requires any of the permissions: | ReadData, ReadData |
| POST | /OrderOwnerCards/quote |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class OrderTender
Public Overridable Property Kind As String
Public Overridable Property Code As String
Public Overridable Property AmountMinor As Nullable(Of Integer)
Public Overridable Property IdempotencyKey As String
Public Overridable Property HoldId As Nullable(Of Integer)
Public Overridable Property AppliedMinor As Nullable(Of Integer)
End Class
Public Partial Class OwnerCardsQuoteRequest
Public Sub New()
OwnerCardTypeIds = New List(Of Integer)
Tenders = New List(Of OrderTender)
End Sub
Public Overridable Property OwnerCardTypeIds As List(Of Integer)
Public Overridable Property IsSubscription As Nullable(Of Boolean)
Public Overridable Property DiscountCode As String
Public Overridable Property Tenders As List(Of OrderTender)
Public Overridable Property DonationAmount As Nullable(Of Integer)
Public Overridable Property PhoneVerificationNumber As String
End Class
Public Partial Class OwnerCardsQuoteResult
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
Public Overridable Property Reason As String
Public Overridable Property IsSubscription As Boolean
Public Overridable Property PriceTotal As Integer
Public Overridable Property DiscountAmount As Integer
Public Overridable Property GiftCardAmount As Integer
Public Overridable Property DonationAmount As Integer
Public Overridable Property TransactionFee As Integer
Public Overridable Property ChargedAmount As Integer
Public Overridable Property ChargedAmountMinor As Integer
Public Overridable Property FullyCovered As Boolean
End Class
End Namespace
End Namespace
VB.NET OwnerCardsQuoteRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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/csv
Content-Type: text/csv
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/csv
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}