Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Enrollment | Test 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 .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>