TicketUserServices

<back to all web services

OwnerCardsUpgradeRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequires the permission:ReadData
The following routes are available for this service:
POST/OrderOwnerCards/upgradeCharge the delta, issue the target card (PricePaid = delta), revoke the source card, re-link future tickets — one transaction, idempotent
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports BorgunRPGData
Imports TicketUserServices.ServiceModel.Types

Namespace Global

    Namespace BorgunRPGData

        Public Partial Class Borgun3DFinal3DSecureInfo
            Public Overridable Property DataType As String
            Public Overridable Property MpiToken As String
        End Class

        Public Partial Class Borgun3DFinalPaymentMethodInfo
            Public Overridable Property PaymentType As String
            Public Overridable Property Token As String
            Public Overridable Property VirtualNumber As String
            Public Overridable Property ExpYear As String
            Public Overridable Property ExpMonth As String
            Public Overridable Property PanLastFour As String
        End Class

        Public Partial Class Borgun3DFinalRequest
            Public Overridable Property TransactionType As String
            Public Overridable Property Amount As Integer
            Public Overridable Property Currency As String
            Public Overridable Property TransactionDate As Nullable(Of Date)
            Public Overridable Property OrderId As String
            Public Overridable Property PaymentMethod As Borgun3DFinalPaymentMethodInfo
            Public Overridable Property ThreeDSecure As Borgun3DFinal3DSecureInfo
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel

        Public Partial Class GeneralOrderResponse
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property Success As Boolean
            Public Overridable Property PaymentIsPending As Boolean
            Public Overridable Property OrderTokenId As String
        End Class

        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 OwnerCardsOrderResult
            Inherits GeneralOrderResponse
            Public Sub New()
                Cards = New List(Of OwnerCards)
            End Sub

            Public Overridable Property Cards As List(Of OwnerCards)
            Public Overridable Property OrderReference As String
            Public Overridable Property IsSubscription As Boolean
            Public Overridable Property MonthlyPrice As Nullable(Of Decimal)
            Public Overridable Property TransactionFee As Nullable(Of Decimal)
            Public Overridable Property Months As Nullable(Of Integer)
            Public Overridable Property PaymentTokenId As String
            Public Overridable Property SubscriptionTokenMissing 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 ChargedAmount As Integer
            Public Overridable Property Reason As String
        End Class

        Public Partial Class OwnerCardsUpgradeRequest
            Public Sub New()
                Tenders = New List(Of OrderTender)
            End Sub

            Public Overridable Property BuyerPhone As String
            Public Overridable Property SourceOwnerCardId As Integer
            Public Overridable Property TargetOwnerCardTypeId As Integer
            Public Overridable Property IdempotencyKey As String
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property Borgun3DFinalInfo As Borgun3DFinalRequest
            Public Overridable Property Tenders As List(Of OrderTender)
            Public Overridable Property HolderName As String
            Public Overridable Property HolderEmail As String
            Public Overridable Property DeviceId As String
            Public Overridable Property ReturnCards As Boolean
        End Class

        Public Partial Class OwnerCardsUpgradeResult
            Inherits OwnerCardsOrderResult
            Public Overridable Property SourceOwnerCardId As Integer
            Public Overridable Property SourceOwnerCardTypeId As Integer
            Public Overridable Property SourceTypeName As String
            Public Overridable Property NewOwnerCardId As Integer
            Public Overridable Property TargetOwnerCardTypeId As Integer
            Public Overridable Property TargetTypeName As String
            Public Overridable Property RelinkedTickets As Integer
            Public Overridable Property PaymentReference As String
            Public Overridable Property RefundPending As Boolean
        End Class
    End Namespace

    Namespace TicketUserServices.ServiceModel.Types

        Public Partial Class OwnerCards
            Public Overridable Property ID As Integer
            Public Overridable Property OwnerId As Integer
            Public Overridable Property OwnerCardTypeId As Nullable(Of Integer)
            Public Overridable Property PhoneVerificationId As Nullable(Of Integer)
            Public Overridable Property InitialMaxTickets As Nullable(Of Integer)
            Public Overridable Property CurrentAvailableTickets As Nullable(Of Integer)
            Public Overridable Property TimeStampCreatedUTC As Nullable(Of Date)
            Public Overridable Property TimeStampLastChangedUTC As Nullable(Of Date)
            Public Overridable Property TimeStampBoughtUTC As Nullable(Of Date)
            Public Overridable Property TimeStampOrderedUTC As Nullable(Of Date)
            Public Overridable Property CardValidFromUTC As Nullable(Of Date)
            Public Overridable Property CardValidToUTC As Nullable(Of Date)
            Public Overridable Property HasStoreCredit As Boolean
            Public Overridable Property CardPrice As Decimal
            Public Overridable Property PricePaid As Decimal
            Public Overridable Property InitialStoreCredit As Nullable(Of Decimal)
            Public Overridable Property CurrentStoreCredit As Nullable(Of Decimal)
            Public Overridable Property PhoneFullVerificationNumber As String
            Public Overridable Property HolderId As String
            Public Overridable Property HolderName As String
            Public Overridable Property HolderEmail As String
            Public Overridable Property CardPriceCurrency As String
            Public Overridable Property PricePaidCurrency As String
            Public Overridable Property DeviceId As String
            Public Overridable Property PaymentMethodId As String
            Public Overridable Property PaymentReference As String
            Public Overridable Property PhoneVerificationNumber As String
            Public Overridable Property PaymentPhoneNumber As String
            Public Overridable Property PaymentId As String
            Public Overridable Property PaymentStatus As String
            Public Overridable Property PaymentTokenId As String
            Public Overridable Property MaxTicketsPerEvent As Nullable(Of Integer)
            Public Overridable Property MultiplePaymentsId As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property BackgroundImageUrl As String
            Public Overridable Property OrderReference As String
            Public Overridable Property UpgradedFromOwnerCardId As Nullable(Of Integer)
        End Class
    End Namespace
End Namespace

VB.NET OwnerCardsUpgradeRequest 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 /OrderOwnerCards/upgrade HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<OwnerCardsUpgradeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Borgun3DFinalInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
    <d2p1:Amount>0</d2p1:Amount>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:OrderId>String</d2p1:OrderId>
    <d2p1:PaymentMethod>
      <d2p1:ExpMonth>String</d2p1:ExpMonth>
      <d2p1:ExpYear>String</d2p1:ExpYear>
      <d2p1:PanLastFour>String</d2p1:PanLastFour>
      <d2p1:PaymentType>String</d2p1:PaymentType>
      <d2p1:Token>String</d2p1:Token>
      <d2p1:VirtualNumber>String</d2p1:VirtualNumber>
    </d2p1:PaymentMethod>
    <d2p1:ThreeDSecure>
      <d2p1:DataType>String</d2p1:DataType>
      <d2p1:MpiToken>String</d2p1:MpiToken>
    </d2p1:ThreeDSecure>
    <d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
    <d2p1:TransactionType>String</d2p1:TransactionType>
  </Borgun3DFinalInfo>
  <BuyerPhone>String</BuyerPhone>
  <DeviceId>String</DeviceId>
  <HolderEmail>String</HolderEmail>
  <HolderName>String</HolderName>
  <IdempotencyKey>String</IdempotencyKey>
  <PaymentMethodId>String</PaymentMethodId>
  <ReturnCards>false</ReturnCards>
  <SourceOwnerCardId>0</SourceOwnerCardId>
  <TargetOwnerCardTypeId>0</TargetOwnerCardTypeId>
  <Tenders>
    <OrderTender>
      <AmountMinor>0</AmountMinor>
      <AppliedMinor>0</AppliedMinor>
      <Code>String</Code>
      <HoldId>0</HoldId>
      <IdempotencyKey>String</IdempotencyKey>
      <Kind>String</Kind>
    </OrderTender>
  </Tenders>
</OwnerCardsUpgradeRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<OwnerCardsUpgradeResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <OrderTokenId>String</OrderTokenId>
  <PaymentIsPending>false</PaymentIsPending>
  <StatusCode>0</StatusCode>
  <Success>false</Success>
  <Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:OwnerCards>
      <d2p1:BackgroundImageUrl>String</d2p1:BackgroundImageUrl>
      <d2p1:CardPrice>0</d2p1:CardPrice>
      <d2p1:CardPriceCurrency>String</d2p1:CardPriceCurrency>
      <d2p1:CardValidFromUTC>0001-01-01T00:00:00</d2p1:CardValidFromUTC>
      <d2p1:CardValidToUTC>0001-01-01T00:00:00</d2p1:CardValidToUTC>
      <d2p1:CurrentAvailableTickets>0</d2p1:CurrentAvailableTickets>
      <d2p1:CurrentStoreCredit>0</d2p1:CurrentStoreCredit>
      <d2p1:DeviceId>String</d2p1:DeviceId>
      <d2p1:HasStoreCredit>false</d2p1:HasStoreCredit>
      <d2p1:HolderEmail>String</d2p1:HolderEmail>
      <d2p1:HolderId>String</d2p1:HolderId>
      <d2p1:HolderName>String</d2p1:HolderName>
      <d2p1:ID>0</d2p1:ID>
      <d2p1:ImageUrl>String</d2p1:ImageUrl>
      <d2p1:InitialMaxTickets>0</d2p1:InitialMaxTickets>
      <d2p1:InitialStoreCredit>0</d2p1:InitialStoreCredit>
      <d2p1:MaxTicketsPerEvent>0</d2p1:MaxTicketsPerEvent>
      <d2p1:MultiplePaymentsId>String</d2p1:MultiplePaymentsId>
      <d2p1:OrderReference>String</d2p1:OrderReference>
      <d2p1:OwnerCardTypeId>0</d2p1:OwnerCardTypeId>
      <d2p1:OwnerId>0</d2p1:OwnerId>
      <d2p1:PaymentId>String</d2p1:PaymentId>
      <d2p1:PaymentMethodId>String</d2p1:PaymentMethodId>
      <d2p1:PaymentPhoneNumber>String</d2p1:PaymentPhoneNumber>
      <d2p1:PaymentReference>String</d2p1:PaymentReference>
      <d2p1:PaymentStatus>String</d2p1:PaymentStatus>
      <d2p1:PaymentTokenId>String</d2p1:PaymentTokenId>
      <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
      <d2p1:PhoneVerificationId>0</d2p1:PhoneVerificationId>
      <d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber>
      <d2p1:PricePaid>0</d2p1:PricePaid>
      <d2p1:PricePaidCurrency>String</d2p1:PricePaidCurrency>
      <d2p1:TimeStampBoughtUTC>0001-01-01T00:00:00</d2p1:TimeStampBoughtUTC>
      <d2p1:TimeStampCreatedUTC>0001-01-01T00:00:00</d2p1:TimeStampCreatedUTC>
      <d2p1:TimeStampLastChangedUTC>0001-01-01T00:00:00</d2p1:TimeStampLastChangedUTC>
      <d2p1:TimeStampOrderedUTC>0001-01-01T00:00:00</d2p1:TimeStampOrderedUTC>
      <d2p1:UpgradedFromOwnerCardId>0</d2p1:UpgradedFromOwnerCardId>
    </d2p1:OwnerCards>
  </Cards>
  <ChargedAmount>0</ChargedAmount>
  <DiscountAmount>0</DiscountAmount>
  <DonationAmount>0</DonationAmount>
  <GiftCardAmount>0</GiftCardAmount>
  <IsSubscription>false</IsSubscription>
  <MonthlyPrice>0</MonthlyPrice>
  <Months>0</Months>
  <OrderReference>String</OrderReference>
  <PaymentTokenId>String</PaymentTokenId>
  <PriceTotal>0</PriceTotal>
  <Reason>String</Reason>
  <SubscriptionTokenMissing>false</SubscriptionTokenMissing>
  <TransactionFee>0</TransactionFee>
  <NewOwnerCardId>0</NewOwnerCardId>
  <PaymentReference>String</PaymentReference>
  <RefundPending>false</RefundPending>
  <RelinkedTickets>0</RelinkedTickets>
  <SourceOwnerCardId>0</SourceOwnerCardId>
  <SourceOwnerCardTypeId>0</SourceOwnerCardTypeId>
  <SourceTypeName>String</SourceTypeName>
  <TargetOwnerCardTypeId>0</TargetOwnerCardTypeId>
  <TargetTypeName>String</TargetTypeName>
</OwnerCardsUpgradeResult>