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
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using BorgunRPGData;

namespace BorgunRPGData
{
    public partial class Borgun3DEnrollmentRequest
    {
        public virtual BorgunPaymentRequestMethod CardDetails { get; set; }
        public virtual int PurchAmount { get; set; }
        public virtual int? Exponent { get; set; }
        public virtual string Currency { get; set; }
        public virtual string TermURL { get; set; }
        public virtual DateTime TransactionDate { get; set; }
        public virtual string MD { get; set; }
        public virtual string Description { get; set; }
    }

    public partial class Borgun3DEnrollmentResponse
    {
        public Borgun3DEnrollmentResponse()
        {
            RedirectToACSDAta = new List<BorgunMPIEnrollmentACSField>{};
        }

        public virtual int ResultStatus { get; set; }
        public virtual string MessageId { get; set; }
        public virtual string EnrollmentStatus { get; set; }
        public virtual string MdErrorMessage { get; set; }
        public virtual string MdStatus { get; set; }
        public virtual string RedirectToACSForm { get; set; }
        public virtual string MD { get; set; }
        public virtual string MpiToken { get; set; }
        public virtual List<BorgunMPIEnrollmentACSField> RedirectToACSDAta { get; set; }
    }

    public partial class BorgunMPIEnrollmentACSField
    {
        public virtual string Name { get; set; }
        public virtual string Values { get; set; }
    }

    public partial class BorgunPaymentRequestMethod
    {
        public virtual BorgunPaymentTypes PaymentType { get; set; }
        public virtual string PAN { get; set; }
        public virtual string ExpYear { get; set; }
        public virtual string ExpMonth { get; set; }
        public virtual string CVC2 { get; set; }
        public virtual string Token { get; set; }
    }

    public enum BorgunPaymentTypes
    {
        Unknown = 1,
        Card = 2,
        TokenSingle = 3,
        TokenMulti = 4,
    }

}

namespace TicketUserServices.ServiceModel
{
    public partial class BorgunTest3DEnrollmentRequest
    {
        public virtual Borgun3DEnrollmentRequest Request { get; set; }
        public virtual string ForcedPath { get; set; }
        public virtual string ForcedJSONRequest { get; set; }
        public virtual bool? SkipBorgunCall { get; set; }
    }

    public partial class BorgunTest3DEnrollmentResponse
    {
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
        public virtual Borgun3DEnrollmentResponse Response { get; set; }
        public virtual string ForcedPath { get; set; }
        public virtual string ForcedJSONRequest { get; set; }
        public virtual string JSONRequest { get; set; }
        public virtual string JSONResponse { get; set; }
        public virtual string RequestPath { get; set; }
        public virtual string RequestSent { get; set; }
        public virtual string RequestReceived { get; set; }
    }

}

C# BorgunTest3DEnrollmentRequest DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
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-01,
		md: String,
		description: String
	},
	forcedPath: String,
	forcedJSONRequest: String,
	skipBorgunCall: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}