TicketUserServices

<back to all web services

BorgunServices3DEnrollmentRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunServices/3DEnrollment3DEnrollment
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class BorgunServices3DEnrollmentRequest
    {
        public Borgun3DEnrollmentRequest request = null;
        public Integer statusCode = null;
        public String message = null;
        
        public Borgun3DEnrollmentRequest getRequest() { return request; }
        public BorgunServices3DEnrollmentRequest setRequest(Borgun3DEnrollmentRequest value) { this.request = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public BorgunServices3DEnrollmentRequest setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public BorgunServices3DEnrollmentRequest setMessage(String value) { this.message = 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 BorgunServices3DEnrollmentResponse
    {
        public Borgun3DEnrollmentResponse response = null;
        public Boolean success = null;
        public Integer httpStatusCode = null;
        public String message = null;
        
        public Borgun3DEnrollmentResponse getResponse() { return response; }
        public BorgunServices3DEnrollmentResponse setResponse(Borgun3DEnrollmentResponse value) { this.response = value; return this; }
        public Boolean isSuccess() { return success; }
        public BorgunServices3DEnrollmentResponse setSuccess(Boolean value) { this.success = value; return this; }
        public Integer getHttpStatusCode() { return httpStatusCode; }
        public BorgunServices3DEnrollmentResponse setHttpStatusCode(Integer value) { this.httpStatusCode = value; return this; }
        public String getMessage() { return message; }
        public BorgunServices3DEnrollmentResponse setMessage(String value) { this.message = 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 BorgunServices3DEnrollmentRequest DTOs

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

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /borgunServices/3DEnrollment HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BorgunServices3DEnrollmentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <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>
  <StatusCode>0</StatusCode>
</BorgunServices3DEnrollmentRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BorgunServices3DEnrollmentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <HttpStatusCode>0</HttpStatusCode>
  <Message>String</Message>
  <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>
  <Success>false</Success>
</BorgunServices3DEnrollmentResponse>