TicketUserServices

<back to all web services

OwnerCardsUpgradeCandidatesRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/OrderOwnerCards/upgrade/candidatesLive owner cards of a verified phone and the card types each may be upgraded to (rules U1-U10)
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 OwnerCardsUpgradeCandidatesRequest
            Public Overridable Property BuyerPhone As String
            Public Overridable Property SourceOwnerCardId As Nullable(Of Integer)
        End Class

        Public Partial Class OwnerCardsUpgradeCandidatesResult
            Inherits OwnerCardUpgradeResultBase
            Public Sub New()
                Cards = New List(Of OwnerCardUpgradeSource)
            End Sub

            Public Overridable Property Enabled As Boolean
            Public Overridable Property Cards As List(Of OwnerCardUpgradeSource)
        End Class

        Public Partial Class OwnerCardUpgradeResultBase
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property Reason As String
        End Class

        Public Partial Class OwnerCardUpgradeSource
            Public Sub New()
                Candidates = New List(Of OwnerCardUpgradeTarget)
            End Sub

            Public Overridable Property SourceOwnerCardId As Integer
            Public Overridable Property OwnerId As Integer
            Public Overridable Property OwnerCardTypeId As Integer
            Public Overridable Property TypeName As String
            Public Overridable Property PricePaid As Integer
            Public Overridable Property CardPrice As Integer
            Public Overridable Property CardValidFromUTC As Nullable(Of Date)
            Public Overridable Property CardValidToUTC As Nullable(Of Date)
            Public Overridable Property PaymentStatus As String
            Public Overridable Property Eligible As Boolean
            Public Overridable Property ReasonCode As Nullable(Of Integer)
            Public Overridable Property Reason As String
            Public Overridable Property Candidates As List(Of OwnerCardUpgradeTarget)
        End Class

        Public Partial Class OwnerCardUpgradeTarget
            Public Overridable Property OwnerCardTypeId As Integer
            Public Overridable Property Name As String
            Public Overridable Property Description As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property Price As Integer
            Public Overridable Property Delta As Integer
            Public Overridable Property ValidFromUTC As Date
            Public Overridable Property ValidToUTC As Date
        End Class
    End Namespace
End Namespace

VB.NET OwnerCardsUpgradeCandidatesRequest DTOs

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

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /OrderOwnerCards/upgrade/candidates HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	buyerPhone: String,
	sourceOwnerCardId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	enabled: False,
	cards: 
	[
		{
			sourceOwnerCardId: 0,
			ownerId: 0,
			ownerCardTypeId: 0,
			typeName: String,
			pricePaid: 0,
			cardPrice: 0,
			cardValidFromUTC: 0001-01-01,
			cardValidToUTC: 0001-01-01,
			paymentStatus: String,
			eligible: False,
			reasonCode: 0,
			reason: String,
			candidates: 
			[
				{
					ownerCardTypeId: 0,
					name: String,
					description: String,
					imageUrl: String,
					price: 0,
					delta: 0,
					validFromUTC: 0001-01-01,
					validToUTC: 0001-01-01
				}
			]
		}
	],
	statusCode: 0,
	message: String,
	reason: String
}