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.*;

public class dtos
{

    public static class BorgunTest3DEnrollmentRequest
    {
        public Borgun3DEnrollmentRequest request = null;
        public String forcedPath = null;
        public String forcedJSONRequest = null;
        public Boolean skipBorgunCall = null;
        
        public Borgun3DEnrollmentRequest getRequest() { return request; }
        public BorgunTest3DEnrollmentRequest setRequest(Borgun3DEnrollmentRequest value) { this.request = value; return this; }
        public String getForcedPath() { return forcedPath; }
        public BorgunTest3DEnrollmentRequest setForcedPath(String value) { this.forcedPath = value; return this; }
        public String getForcedJSONRequest() { return forcedJSONRequest; }
        public BorgunTest3DEnrollmentRequest setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
        public Boolean isSkipBorgunCall() { return skipBorgunCall; }
        public BorgunTest3DEnrollmentRequest setSkipBorgunCall(Boolean value) { this.skipBorgunCall = value; return this; }
    }

    public static class Borgun3DEnrollmentRequest
    {
        public BorgunPaymentRequestMethod cardDetails = null;
        public Integer purchAmount = null;
        public Integer exponent = null;
        public String currency = null;
        public String termURL = null;
        public Date transactionDate = null;
        public String md = null;
        public String description = null;
        
        public BorgunPaymentRequestMethod getCardDetails() { return cardDetails; }
        public Borgun3DEnrollmentRequest setCardDetails(BorgunPaymentRequestMethod value) { this.cardDetails = value; return this; }
        public Integer getPurchAmount() { return purchAmount; }
        public Borgun3DEnrollmentRequest setPurchAmount(Integer value) { this.purchAmount = value; return this; }
        public Integer getExponent() { return exponent; }
        public Borgun3DEnrollmentRequest setExponent(Integer value) { this.exponent = value; return this; }
        public String getCurrency() { return currency; }
        public Borgun3DEnrollmentRequest setCurrency(String value) { this.currency = value; return this; }
        public String getTermURL() { return termURL; }
        public Borgun3DEnrollmentRequest setTermURL(String value) { this.termURL = value; return this; }
        public Date getTransactionDate() { return transactionDate; }
        public Borgun3DEnrollmentRequest setTransactionDate(Date value) { this.transactionDate = value; return this; }
        public String getMd() { return md; }
        public Borgun3DEnrollmentRequest setMd(String value) { this.md = value; return this; }
        public String getDescription() { return description; }
        public Borgun3DEnrollmentRequest setDescription(String value) { this.description = value; return this; }
    }

    public static class BorgunPaymentRequestMethod
    {
        public BorgunPaymentTypes paymentType = null;
        public String pan = null;
        public String expYear = null;
        public String expMonth = null;
        public String cvC2 = null;
        public String token = null;
        
        public BorgunPaymentTypes getPaymentType() { return paymentType; }
        public BorgunPaymentRequestMethod setPaymentType(BorgunPaymentTypes value) { this.paymentType = value; return this; }
        public String getPan() { return pan; }
        public BorgunPaymentRequestMethod setPan(String value) { this.pan = value; return this; }
        public String getExpYear() { return expYear; }
        public BorgunPaymentRequestMethod setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public BorgunPaymentRequestMethod setExpMonth(String value) { this.expMonth = value; return this; }
        public String getCvC2() { return cvC2; }
        public BorgunPaymentRequestMethod setCvC2(String value) { this.cvC2 = value; return this; }
        public String getToken() { return token; }
        public BorgunPaymentRequestMethod setToken(String value) { this.token = value; return this; }
    }

    public static enum BorgunPaymentTypes
    {
        Unknown(1),
        Card(2),
        TokenSingle(3),
        TokenMulti(4);

        private final int value;
        BorgunPaymentTypes(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

    public static class BorgunTest3DEnrollmentResponse
    {
        public Integer statusCode = null;
        public String message = null;
        public Borgun3DEnrollmentResponse response = null;
        public String forcedPath = null;
        public String forcedJSONRequest = null;
        public String jsonRequest = null;
        public String jsonResponse = null;
        public String requestPath = null;
        public String requestSent = null;
        public String requestReceived = null;
        
        public Integer getStatusCode() { return statusCode; }
        public BorgunTest3DEnrollmentResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public BorgunTest3DEnrollmentResponse setMessage(String value) { this.message = value; return this; }
        public Borgun3DEnrollmentResponse getResponse() { return response; }
        public BorgunTest3DEnrollmentResponse setResponse(Borgun3DEnrollmentResponse value) { this.response = value; return this; }
        public String getForcedPath() { return forcedPath; }
        public BorgunTest3DEnrollmentResponse setForcedPath(String value) { this.forcedPath = value; return this; }
        public String getForcedJSONRequest() { return forcedJSONRequest; }
        public BorgunTest3DEnrollmentResponse setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
        public String getJsonRequest() { return jsonRequest; }
        public BorgunTest3DEnrollmentResponse setJsonRequest(String value) { this.jsonRequest = value; return this; }
        public String getJsonResponse() { return jsonResponse; }
        public BorgunTest3DEnrollmentResponse setJsonResponse(String value) { this.jsonResponse = value; return this; }
        public String getRequestPath() { return requestPath; }
        public BorgunTest3DEnrollmentResponse setRequestPath(String value) { this.requestPath = value; return this; }
        public String getRequestSent() { return requestSent; }
        public BorgunTest3DEnrollmentResponse setRequestSent(String value) { this.requestSent = value; return this; }
        public String getRequestReceived() { return requestReceived; }
        public BorgunTest3DEnrollmentResponse setRequestReceived(String value) { this.requestReceived = value; return this; }
    }

    public static class Borgun3DEnrollmentResponse
    {
        public Integer resultStatus = null;
        public String messageId = null;
        public String enrollmentStatus = null;
        public String mdErrorMessage = null;
        public String mdStatus = null;
        public String redirectToACSForm = null;
        public String md = null;
        public String mpiToken = null;
        public ArrayList<BorgunMPIEnrollmentACSField> redirectToACSDAta = null;
        
        public Integer getResultStatus() { return resultStatus; }
        public Borgun3DEnrollmentResponse setResultStatus(Integer value) { this.resultStatus = value; return this; }
        public String getMessageId() { return messageId; }
        public Borgun3DEnrollmentResponse setMessageId(String value) { this.messageId = value; return this; }
        public String getEnrollmentStatus() { return enrollmentStatus; }
        public Borgun3DEnrollmentResponse setEnrollmentStatus(String value) { this.enrollmentStatus = value; return this; }
        public String getMdErrorMessage() { return mdErrorMessage; }
        public Borgun3DEnrollmentResponse setMdErrorMessage(String value) { this.mdErrorMessage = value; return this; }
        public String getMdStatus() { return mdStatus; }
        public Borgun3DEnrollmentResponse setMdStatus(String value) { this.mdStatus = value; return this; }
        public String getRedirectToACSForm() { return redirectToACSForm; }
        public Borgun3DEnrollmentResponse setRedirectToACSForm(String value) { this.redirectToACSForm = value; return this; }
        public String getMd() { return md; }
        public Borgun3DEnrollmentResponse setMd(String value) { this.md = value; return this; }
        public String getMpiToken() { return mpiToken; }
        public Borgun3DEnrollmentResponse setMpiToken(String value) { this.mpiToken = value; return this; }
        public ArrayList<BorgunMPIEnrollmentACSField> getRedirectToACSDAta() { return redirectToACSDAta; }
        public Borgun3DEnrollmentResponse setRedirectToACSDAta(ArrayList<BorgunMPIEnrollmentACSField> value) { this.redirectToACSDAta = value; return this; }
    }

    public static class BorgunMPIEnrollmentACSField
    {
        public String name = null;
        public String values = null;
        
        public String getName() { return name; }
        public BorgunMPIEnrollmentACSField setName(String value) { this.name = value; return this; }
        public String getValues() { return values; }
        public BorgunMPIEnrollmentACSField setValues(String value) { this.values = value; return this; }
    }

}

Java BorgunTest3DEnrollmentRequest DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
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: text/csv
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"}