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 Foundation
import ServiceStack

public class BorgunTest3DEnrollmentRequest : Codable
{
    public var request:Borgun3DEnrollmentRequest?
    public var forcedPath:String?
    public var forcedJSONRequest:String?
    public var skipBorgunCall:Bool?

    required public init(){}
}

public class Borgun3DEnrollmentRequest : Codable
{
    public var cardDetails:BorgunPaymentRequestMethod?
    public var purchAmount:Int?
    public var exponent:Int?
    public var currency:String?
    public var termURL:String?
    public var transactionDate:Date?
    public var md:String?
    public var Description:String?

    required public init(){}
}

public class BorgunPaymentRequestMethod : Codable
{
    public var paymentType:BorgunPaymentTypes?
    public var pan:String?
    public var expYear:String?
    public var expMonth:String?
    public var cvC2:String?
    public var token:String?

    required public init(){}
}

public enum BorgunPaymentTypes : Int, Codable
{
    case Unknown = 1
    case Card = 2
    case TokenSingle = 3
    case TokenMulti = 4
}

public class BorgunTest3DEnrollmentResponse : Codable
{
    public var statusCode:Int?
    public var message:String?
    public var response:Borgun3DEnrollmentResponse?
    public var forcedPath:String?
    public var forcedJSONRequest:String?
    public var jsonRequest:String?
    public var jsonResponse:String?
    public var requestPath:String?
    public var requestSent:String?
    public var requestReceived:String?

    required public init(){}
}

public class Borgun3DEnrollmentResponse : Codable
{
    public var resultStatus:Int?
    public var messageId:String?
    public var enrollmentStatus:String?
    public var mdErrorMessage:String?
    public var mdStatus:String?
    public var redirectToACSForm:String?
    public var md:String?
    public var mpiToken:String?
    public var redirectToACSDAta:[BorgunMPIEnrollmentACSField] = []

    required public init(){}
}

public class BorgunMPIEnrollmentACSField : Codable
{
    public var name:String?
    public var values:String?

    required public init(){}
}


Swift BorgunTest3DEnrollmentRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"request":{"cardDetails":{"paymentType":"Unknown","pan":"String","expYear":"String","expMonth":"String","cvC2":"String","token":"String"},"purchAmount":0,"exponent":0,"currency":"String","termURL":"String","transactionDate":"0001-01-01T00:00:00.0000000","md":"String","description":"String"},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"statusCode":0,"message":"String","response":{"resultStatus":0,"messageId":"String","enrollmentStatus":"String","mdErrorMessage":"String","mdStatus":"String","redirectToACSForm":"String","md":"String","mpiToken":"String","redirectToACSDAta":[{"name":"String","values":"String"}]},"forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}