Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Enrollment | Test 3D |
---|
namespace TicketUserServices.ServiceModel
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type BorgunMPIEnrollmentACSField() =
member val Name:String = null with get,set
member val Values:String = null with get,set
[<AllowNullLiteral>]
type Borgun3DEnrollmentResponse() =
member val ResultStatus:Int32 = new Int32() with get,set
member val MessageId:String = null with get,set
member val EnrollmentStatus:String = null with get,set
member val MdErrorMessage:String = null with get,set
member val MdStatus:String = null with get,set
member val RedirectToACSForm:String = null with get,set
member val MD:String = null with get,set
member val MpiToken:String = null with get,set
member val RedirectToACSDAta:ResizeArray<BorgunMPIEnrollmentACSField> = new ResizeArray<BorgunMPIEnrollmentACSField>() with get,set
[<AllowNullLiteral>]
type BorgunTest3DEnrollmentResponse() =
member val StatusCode:Int32 = new Int32() with get,set
member val Message:String = null with get,set
member val Response:Borgun3DEnrollmentResponse = null with get,set
member val ForcedPath:String = null with get,set
member val ForcedJSONRequest:String = null with get,set
member val JSONRequest:String = null with get,set
member val JSONResponse:String = null with get,set
member val RequestPath:String = null with get,set
member val RequestSent:String = null with get,set
member val RequestReceived:String = null with get,set
type BorgunPaymentTypes =
| Unknown = 1
| Card = 2
| TokenSingle = 3
| TokenMulti = 4
[<AllowNullLiteral>]
type BorgunPaymentRequestMethod() =
member val PaymentType:BorgunPaymentTypes = new BorgunPaymentTypes() with get,set
member val PAN:String = null with get,set
member val ExpYear:String = null with get,set
member val ExpMonth:String = null with get,set
member val CVC2:String = null with get,set
member val Token:String = null with get,set
[<AllowNullLiteral>]
type Borgun3DEnrollmentRequest() =
member val CardDetails:BorgunPaymentRequestMethod = null with get,set
member val PurchAmount:Int32 = new Int32() with get,set
member val Exponent:Nullable<Int32> = new Nullable<Int32>() with get,set
member val Currency:String = null with get,set
member val TermURL:String = null with get,set
member val TransactionDate:DateTime = new DateTime() with get,set
member val MD:String = null with get,set
member val Description:String = null with get,set
[<AllowNullLiteral>]
type BorgunTest3DEnrollmentRequest() =
member val Request:Borgun3DEnrollmentRequest = null with get,set
member val ForcedPath:String = null with get,set
member val ForcedJSONRequest:String = null with get,set
member val SkipBorgunCall:Nullable<Boolean> = new Nullable<Boolean>() with get,set
F# BorgunTest3DEnrollmentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>