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
import java.math.*
import java.util.*
import net.servicestack.client.*


open class BorgunTest3DEnrollmentRequest
{
    var request:Borgun3DEnrollmentRequest? = null
    var forcedPath:String? = null
    var forcedJSONRequest:String? = null
    var skipBorgunCall:Boolean? = null
}

open class Borgun3DEnrollmentRequest
{
    var cardDetails:BorgunPaymentRequestMethod? = null
    var purchAmount:Int? = null
    var exponent:Int? = null
    var currency:String? = null
    var termURL:String? = null
    var transactionDate:Date? = null
    var md:String? = null
    var description:String? = null
}

open class BorgunPaymentRequestMethod
{
    var paymentType:BorgunPaymentTypes? = null
    var pan:String? = null
    var expYear:String? = null
    var expMonth:String? = null
    var cvC2:String? = null
    var token:String? = null
}

enum class BorgunPaymentTypes(val value:Int)
{
    Unknown(1),
    Card(2),
    TokenSingle(3),
    TokenMulti(4),
}

open class BorgunTest3DEnrollmentResponse
{
    var statusCode:Int? = null
    var message:String? = null
    var response:Borgun3DEnrollmentResponse? = null
    var forcedPath:String? = null
    var forcedJSONRequest:String? = null
    var jsonRequest:String? = null
    var jsonResponse:String? = null
    var requestPath:String? = null
    var requestSent:String? = null
    var requestReceived:String? = null
}

open class Borgun3DEnrollmentResponse
{
    var resultStatus:Int? = null
    var messageId:String? = null
    var enrollmentStatus:String? = null
    var mdErrorMessage:String? = null
    var mdStatus:String? = null
    var redirectToACSForm:String? = null
    var md:String? = null
    var mpiToken:String? = null
    var redirectToACSDAta:ArrayList<BorgunMPIEnrollmentACSField> = ArrayList<BorgunMPIEnrollmentACSField>()
}

open class BorgunMPIEnrollmentACSField
{
    var name:String? = null
    var values:String? = null
}

Kotlin 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>