TicketUserServices

<back to all web services

BorgunTest3DEnrollmentRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunTest3D/EnrollmentTest 3D
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports BorgunRPGData

Namespace Global

    Namespace BorgunRPGData

        Public Partial Class Borgun3DEnrollmentRequest
            Public Overridable Property CardDetails As BorgunPaymentRequestMethod
            Public Overridable Property PurchAmount As Integer
            Public Overridable Property Exponent As Nullable(Of Integer)
            Public Overridable Property Currency As String
            Public Overridable Property TermURL As String
            Public Overridable Property TransactionDate As Date
            Public Overridable Property MD As String
            Public Overridable Property Description As String
        End Class

        Public Partial Class Borgun3DEnrollmentResponse
            Public Sub New()
                RedirectToACSDAta = New List(Of BorgunMPIEnrollmentACSField)
            End Sub

            Public Overridable Property ResultStatus As Integer
            Public Overridable Property MessageId As String
            Public Overridable Property EnrollmentStatus As String
            Public Overridable Property MdErrorMessage As String
            Public Overridable Property MdStatus As String
            Public Overridable Property RedirectToACSForm As String
            Public Overridable Property MD As String
            Public Overridable Property MpiToken As String
            Public Overridable Property RedirectToACSDAta As List(Of BorgunMPIEnrollmentACSField)
        End Class

        Public Partial Class BorgunMPIEnrollmentACSField
            Public Overridable Property Name As String
            Public Overridable Property Values As String
        End Class

        Public Partial Class BorgunPaymentRequestMethod
            Public Overridable Property PaymentType As BorgunPaymentTypes
            Public Overridable Property PAN As String
            Public Overridable Property ExpYear As String
            Public Overridable Property ExpMonth As String
            Public Overridable Property CVC2 As String
            Public Overridable Property Token As String
        End Class

        Public Enum BorgunPaymentTypes
            Unknown = 1
            Card = 2
            TokenSingle = 3
            TokenMulti = 4
        End Enum
    End Namespace

    Namespace TicketUserServices.ServiceModel

        Public Partial Class BorgunTest3DEnrollmentRequest
            Public Overridable Property Request As Borgun3DEnrollmentRequest
            Public Overridable Property ForcedPath As String
            Public Overridable Property ForcedJSONRequest As String
            Public Overridable Property SkipBorgunCall As Nullable(Of Boolean)
        End Class

        Public Partial Class BorgunTest3DEnrollmentResponse
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
            Public Overridable Property Response As Borgun3DEnrollmentResponse
            Public Overridable Property ForcedPath As String
            Public Overridable Property ForcedJSONRequest As String
            Public Overridable Property JSONRequest As String
            Public Overridable Property JSONResponse As String
            Public Overridable Property RequestPath As String
            Public Overridable Property RequestSent As String
            Public Overridable Property RequestReceived As String
        End Class
    End Namespace
End Namespace

VB.NET BorgunTest3DEnrollmentRequest 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 /borgunTest3D/Enrollment HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BorgunTest3DEnrollmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ForcedJSONRequest>String</ForcedJSONRequest>
  <ForcedPath>String</ForcedPath>
  <Request xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
    <d2p1:CardDetails>
      <d2p1:CVC2>String</d2p1:CVC2>
      <d2p1:ExpMonth>String</d2p1:ExpMonth>
      <d2p1:ExpYear>String</d2p1:ExpYear>
      <d2p1:PAN>String</d2p1:PAN>
      <d2p1:PaymentType>Unknown</d2p1:PaymentType>
      <d2p1:Token>String</d2p1:Token>
    </d2p1:CardDetails>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:Description>String</d2p1:Description>
    <d2p1:Exponent>0</d2p1:Exponent>
    <d2p1:MD>String</d2p1:MD>
    <d2p1:PurchAmount>0</d2p1:PurchAmount>
    <d2p1:TermURL>String</d2p1:TermURL>
    <d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
  </Request>
  <SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DEnrollmentRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BorgunTest3DEnrollmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ForcedJSONRequest>String</ForcedJSONRequest>
  <ForcedPath>String</ForcedPath>
  <JSONRequest>String</JSONRequest>
  <JSONResponse>String</JSONResponse>
  <Message>String</Message>
  <RequestPath>String</RequestPath>
  <RequestReceived>String</RequestReceived>
  <RequestSent>String</RequestSent>
  <Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
    <d2p1:EnrollmentStatus>String</d2p1:EnrollmentStatus>
    <d2p1:MD>String</d2p1:MD>
    <d2p1:MdErrorMessage>String</d2p1:MdErrorMessage>
    <d2p1:MdStatus>String</d2p1:MdStatus>
    <d2p1:MessageId>String</d2p1:MessageId>
    <d2p1:MpiToken>String</d2p1:MpiToken>
    <d2p1:RedirectToACSDAta>
      <d2p1:BorgunMPIEnrollmentACSField>
        <d2p1:Name>String</d2p1:Name>
        <d2p1:Values>String</d2p1:Values>
      </d2p1:BorgunMPIEnrollmentACSField>
    </d2p1:RedirectToACSDAta>
    <d2p1:RedirectToACSForm>String</d2p1:RedirectToACSForm>
    <d2p1:ResultStatus>0</d2p1:ResultStatus>
  </Response>
  <StatusCode>0</StatusCode>
</BorgunTest3DEnrollmentResponse>