Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunServices/Finish3DProcess | Test 3D |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BorgunServices3DFinishProcessRequest
{
public Borgun3DFinalRequest request = null;
public Borgun3DFinalRequest getRequest() { return request; }
public BorgunServices3DFinishProcessRequest setRequest(Borgun3DFinalRequest value) { this.request = value; return this; }
}
public static class Borgun3DFinalRequest
{
public String transactionType = null;
public Integer amount = null;
public String currency = null;
public Date transactionDate = null;
public String orderId = null;
public Borgun3DFinalPaymentMethodInfo paymentMethod = null;
public Borgun3DFinal3DSecureInfo threeDSecure = null;
public String getTransactionType() { return transactionType; }
public Borgun3DFinalRequest setTransactionType(String value) { this.transactionType = value; return this; }
public Integer getAmount() { return amount; }
public Borgun3DFinalRequest setAmount(Integer value) { this.amount = value; return this; }
public String getCurrency() { return currency; }
public Borgun3DFinalRequest setCurrency(String value) { this.currency = value; return this; }
public Date getTransactionDate() { return transactionDate; }
public Borgun3DFinalRequest setTransactionDate(Date value) { this.transactionDate = value; return this; }
public String getOrderId() { return orderId; }
public Borgun3DFinalRequest setOrderId(String value) { this.orderId = value; return this; }
public Borgun3DFinalPaymentMethodInfo getPaymentMethod() { return paymentMethod; }
public Borgun3DFinalRequest setPaymentMethod(Borgun3DFinalPaymentMethodInfo value) { this.paymentMethod = value; return this; }
public Borgun3DFinal3DSecureInfo getThreeDSecure() { return threeDSecure; }
public Borgun3DFinalRequest setThreeDSecure(Borgun3DFinal3DSecureInfo value) { this.threeDSecure = value; return this; }
}
public static class Borgun3DFinalPaymentMethodInfo
{
public String paymentType = null;
public String token = null;
public String getPaymentType() { return paymentType; }
public Borgun3DFinalPaymentMethodInfo setPaymentType(String value) { this.paymentType = value; return this; }
public String getToken() { return token; }
public Borgun3DFinalPaymentMethodInfo setToken(String value) { this.token = value; return this; }
}
public static class Borgun3DFinal3DSecureInfo
{
public String dataType = null;
public String mpiToken = null;
public String getDataType() { return dataType; }
public Borgun3DFinal3DSecureInfo setDataType(String value) { this.dataType = value; return this; }
public String getMpiToken() { return mpiToken; }
public Borgun3DFinal3DSecureInfo setMpiToken(String value) { this.mpiToken = value; return this; }
}
public static class BorgunServices3DFinishProcessResponse
{
public BorgunFinal3DResponse response = null;
public Boolean success = null;
public Integer httpStatusCode = null;
public String message = null;
public BorgunFinal3DResponse getResponse() { return response; }
public BorgunServices3DFinishProcessResponse setResponse(BorgunFinal3DResponse value) { this.response = value; return this; }
public Boolean isSuccess() { return success; }
public BorgunServices3DFinishProcessResponse setSuccess(Boolean value) { this.success = value; return this; }
public Integer getHttpStatusCode() { return httpStatusCode; }
public BorgunServices3DFinishProcessResponse setHttpStatusCode(Integer value) { this.httpStatusCode = value; return this; }
public String getMessage() { return message; }
public BorgunServices3DFinishProcessResponse setMessage(String value) { this.message = value; return this; }
}
public static class BorgunFinal3DResponse
{
public String transactionId = null;
public String transactionType = null;
public Integer amount = null;
public String currency = null;
public Date transactionDate = null;
public String oorderId = null;
public String authCode = null;
public String actionCode = null;
public String transactionStatus = null;
public BorgunPaymentMethodInfo paymentMethod = null;
public Borgun3DSecureInfo threeDSecure = null;
public String lifeCycleId = null;
public String getTransactionId() { return transactionId; }
public BorgunFinal3DResponse setTransactionId(String value) { this.transactionId = value; return this; }
public String getTransactionType() { return transactionType; }
public BorgunFinal3DResponse setTransactionType(String value) { this.transactionType = value; return this; }
public Integer getAmount() { return amount; }
public BorgunFinal3DResponse setAmount(Integer value) { this.amount = value; return this; }
public String getCurrency() { return currency; }
public BorgunFinal3DResponse setCurrency(String value) { this.currency = value; return this; }
public Date getTransactionDate() { return transactionDate; }
public BorgunFinal3DResponse setTransactionDate(Date value) { this.transactionDate = value; return this; }
public String getOorderId() { return oorderId; }
public BorgunFinal3DResponse setOorderId(String value) { this.oorderId = value; return this; }
public String getAuthCode() { return authCode; }
public BorgunFinal3DResponse setAuthCode(String value) { this.authCode = value; return this; }
public String getActionCode() { return actionCode; }
public BorgunFinal3DResponse setActionCode(String value) { this.actionCode = value; return this; }
public String getTransactionStatus() { return transactionStatus; }
public BorgunFinal3DResponse setTransactionStatus(String value) { this.transactionStatus = value; return this; }
public BorgunPaymentMethodInfo getPaymentMethod() { return paymentMethod; }
public BorgunFinal3DResponse setPaymentMethod(BorgunPaymentMethodInfo value) { this.paymentMethod = value; return this; }
public Borgun3DSecureInfo getThreeDSecure() { return threeDSecure; }
public BorgunFinal3DResponse setThreeDSecure(Borgun3DSecureInfo value) { this.threeDSecure = value; return this; }
public String getLifeCycleId() { return lifeCycleId; }
public BorgunFinal3DResponse setLifeCycleId(String value) { this.lifeCycleId = value; return this; }
}
public static class BorgunPaymentMethodInfo
{
public String paymentType = null;
public String pan = null;
public String token = null;
public String cardType = null;
public String isDebit = null;
public String getPaymentType() { return paymentType; }
public BorgunPaymentMethodInfo setPaymentType(String value) { this.paymentType = value; return this; }
public String getPan() { return pan; }
public BorgunPaymentMethodInfo setPan(String value) { this.pan = value; return this; }
public String getToken() { return token; }
public BorgunPaymentMethodInfo setToken(String value) { this.token = value; return this; }
public String getCardType() { return cardType; }
public BorgunPaymentMethodInfo setCardType(String value) { this.cardType = value; return this; }
public String getIsDebit() { return isDebit; }
public BorgunPaymentMethodInfo setIsDebit(String value) { this.isDebit = value; return this; }
}
public static class Borgun3DSecureInfo
{
public String securityLevelInd = null;
public String xid = null;
public String getSecurityLevelInd() { return securityLevelInd; }
public Borgun3DSecureInfo setSecurityLevelInd(String value) { this.securityLevelInd = value; return this; }
public String getXid() { return xid; }
public Borgun3DSecureInfo setXid(String value) { this.xid = value; return this; }
}
}
Java BorgunServices3DFinishProcessRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /borgunServices/Finish3DProcess HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
request:
{
transactionType: String,
amount: 0,
currency: String,
transactionDate: 0001-01-01,
orderId: String,
paymentMethod:
{
paymentType: String,
token: String
},
threeDSecure:
{
dataType: String,
mpiToken: String
}
}
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { response: { transactionId: String, transactionType: String, amount: 0, currency: String, transactionDate: 0001-01-01, oorderId: String, authCode: String, actionCode: String, transactionStatus: String, paymentMethod: { paymentType: String, pan: String, token: String, cardType: String, isDebit: String }, threeDSecure: { securityLevelInd: String, xid: String }, lifeCycleId: String }, success: False, httpStatusCode: 0, message: String }