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 .xml suffix or ?format=xml
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: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunServices3DFinishProcessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Request xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
<d2p1:Amount>0</d2p1:Amount>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:OrderId>String</d2p1:OrderId>
<d2p1:PaymentMethod>
<d2p1:PaymentType>String</d2p1:PaymentType>
<d2p1:Token>String</d2p1:Token>
</d2p1:PaymentMethod>
<d2p1:ThreeDSecure>
<d2p1:DataType>String</d2p1:DataType>
<d2p1:MpiToken>String</d2p1:MpiToken>
</d2p1:ThreeDSecure>
<d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
<d2p1:TransactionType>String</d2p1:TransactionType>
</Request>
</BorgunServices3DFinishProcessRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunServices3DFinishProcessResponse 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:ActionCode>String</d2p1:ActionCode> <d2p1:Amount>0</d2p1:Amount> <d2p1:AuthCode>String</d2p1:AuthCode> <d2p1:Currency>String</d2p1:Currency> <d2p1:LifeCycleId>String</d2p1:LifeCycleId> <d2p1:OorderId>String</d2p1:OorderId> <d2p1:PaymentMethod> <d2p1:CardType>String</d2p1:CardType> <d2p1:IsDebit>String</d2p1:IsDebit> <d2p1:PAN>String</d2p1:PAN> <d2p1:PaymentType>String</d2p1:PaymentType> <d2p1:Token>String</d2p1:Token> </d2p1:PaymentMethod> <d2p1:ThreeDSecure> <d2p1:SecurityLevelInd>String</d2p1:SecurityLevelInd> <d2p1:Xid>String</d2p1:Xid> </d2p1:ThreeDSecure> <d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate> <d2p1:TransactionId>String</d2p1:TransactionId> <d2p1:TransactionStatus>String</d2p1:TransactionStatus> <d2p1:TransactionType>String</d2p1:TransactionType> </Response> <Success>false</Success> </BorgunServices3DFinishProcessResponse>