TicketUserServices

<back to all web services

BorgunTest3DFinishProcessRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunTest3D/Finish3DProcessTest 3D
import Foundation
import ServiceStack

public class BorgunTest3DFinishProcessRequest : Codable
{
    public var request:Borgun3DFinalRequest?
    public var forcedPath:String?
    public var forcedJSONRequest:String?
    public var skipBorgunCall:Bool?

    required public init(){}
}

public class Borgun3DFinalRequest : Codable
{
    public var transactionType:String?
    public var amount:Int?
    public var currency:String?
    public var transactionDate:Date?
    public var orderId:String?
    public var paymentMethod:Borgun3DFinalPaymentMethodInfo?
    public var threeDSecure:Borgun3DFinal3DSecureInfo?

    required public init(){}
}

public class Borgun3DFinalPaymentMethodInfo : Codable
{
    public var paymentType:String?
    public var token:String?

    required public init(){}
}

public class Borgun3DFinal3DSecureInfo : Codable
{
    public var dataType:String?
    public var mpiToken:String?

    required public init(){}
}

public class BorgunTest3DFinishProcessResponse : Codable
{
    public var response:BorgunFinal3DResponse?
    public var statusCode:Int?
    public var message:String?
    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 BorgunFinal3DResponse : Codable
{
    public var transactionId:String?
    public var transactionType:String?
    public var amount:Int?
    public var currency:String?
    public var transactionDate:Date?
    public var oorderId:String?
    public var authCode:String?
    public var actionCode:String?
    public var transactionStatus:String?
    public var paymentMethod:BorgunPaymentMethodInfo?
    public var threeDSecure:Borgun3DSecureInfo?
    public var lifeCycleId:String?

    required public init(){}
}

public class BorgunPaymentMethodInfo : Codable
{
    public var paymentType:String?
    public var pan:String?
    public var token:String?
    public var cardType:String?
    public var isDebit:String?

    required public init(){}
}

public class Borgun3DSecureInfo : Codable
{
    public var securityLevelInd:String?
    public var xid:String?

    required public init(){}
}


Swift BorgunTest3DFinishProcessRequest 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/Finish3DProcess HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"request":{"transactionType":"String","amount":0,"currency":"String","transactionDate":"0001-01-01T00:00:00.0000000","orderId":"String","paymentMethod":{"paymentType":"String","token":"String"},"threeDSecure":{"dataType":"String","mpiToken":"String"}},"forcedPath":"String","forcedJSONRequest":"String","skipBorgunCall":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"response":{"transactionId":"String","transactionType":"String","amount":0,"currency":"String","transactionDate":"0001-01-01T00:00:00.0000000","oorderId":"String","authCode":"String","actionCode":"String","transactionStatus":"String","paymentMethod":{"paymentType":"String","pan":"String","token":"String","cardType":"String","isDebit":"String"},"threeDSecure":{"securityLevelInd":"String","xid":"String"},"lifeCycleId":"String"},"statusCode":0,"message":"String","forcedPath":"String","forcedJSONRequest":"String","jsonRequest":"String","jsonResponse":"String","requestPath":"String","requestSent":"String","requestReceived":"String"}