Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Token/Single | Test 3D |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class BorgunTest3DGetMultiTokenRequest
{
public BorgunTokenMultiRequest request = null;
public String forcedPath = null;
public String forcedJSONRequest = null;
public Boolean skipBorgunCall = null;
public BorgunTokenMultiRequest getRequest() { return request; }
public BorgunTest3DGetMultiTokenRequest setRequest(BorgunTokenMultiRequest value) { this.request = value; return this; }
public String getForcedPath() { return forcedPath; }
public BorgunTest3DGetMultiTokenRequest setForcedPath(String value) { this.forcedPath = value; return this; }
public String getForcedJSONRequest() { return forcedJSONRequest; }
public BorgunTest3DGetMultiTokenRequest setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
public Boolean isSkipBorgunCall() { return skipBorgunCall; }
public BorgunTest3DGetMultiTokenRequest setSkipBorgunCall(Boolean value) { this.skipBorgunCall = value; return this; }
}
public static class BorgunTokenMultiRequest
{
public String pan = null;
public String expMonth = null;
public String expYear = null;
public BorgunVerifyCardRequest verifyCard = null;
public BorgunMetadata metadata = null;
public String getPan() { return pan; }
public BorgunTokenMultiRequest setPan(String value) { this.pan = value; return this; }
public String getExpMonth() { return expMonth; }
public BorgunTokenMultiRequest setExpMonth(String value) { this.expMonth = value; return this; }
public String getExpYear() { return expYear; }
public BorgunTokenMultiRequest setExpYear(String value) { this.expYear = value; return this; }
public BorgunVerifyCardRequest getVerifyCard() { return verifyCard; }
public BorgunTokenMultiRequest setVerifyCard(BorgunVerifyCardRequest value) { this.verifyCard = value; return this; }
public BorgunMetadata getMetadata() { return metadata; }
public BorgunTokenMultiRequest setMetadata(BorgunMetadata value) { this.metadata = value; return this; }
}
public static class BorgunVerifyCardRequest
{
public Integer checkAmount = null;
public String currency = null;
public String cvc = null;
public Integer getCheckAmount() { return checkAmount; }
public BorgunVerifyCardRequest setCheckAmount(Integer value) { this.checkAmount = value; return this; }
public String getCurrency() { return currency; }
public BorgunVerifyCardRequest setCurrency(String value) { this.currency = value; return this; }
public String getCvc() { return cvc; }
public BorgunVerifyCardRequest setCvc(String value) { this.cvc = value; return this; }
}
public static class BorgunMetadata
{
public String payload = null;
public String getPayload() { return payload; }
public BorgunMetadata setPayload(String value) { this.payload = value; return this; }
}
public static class BorgunTest3DGetMultiTokenResponse
{
public BorgunTokenMultiResponse response = null;
public Integer statusCode = null;
public String message = 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 BorgunTokenMultiResponse getResponse() { return response; }
public BorgunTest3DGetMultiTokenResponse setResponse(BorgunTokenMultiResponse value) { this.response = value; return this; }
public Integer getStatusCode() { return statusCode; }
public BorgunTest3DGetMultiTokenResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public BorgunTest3DGetMultiTokenResponse setMessage(String value) { this.message = value; return this; }
public String getForcedPath() { return forcedPath; }
public BorgunTest3DGetMultiTokenResponse setForcedPath(String value) { this.forcedPath = value; return this; }
public String getForcedJSONRequest() { return forcedJSONRequest; }
public BorgunTest3DGetMultiTokenResponse setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
public String getJsonRequest() { return jsonRequest; }
public BorgunTest3DGetMultiTokenResponse setJsonRequest(String value) { this.jsonRequest = value; return this; }
public String getJsonResponse() { return jsonResponse; }
public BorgunTest3DGetMultiTokenResponse setJsonResponse(String value) { this.jsonResponse = value; return this; }
public String getRequestPath() { return requestPath; }
public BorgunTest3DGetMultiTokenResponse setRequestPath(String value) { this.requestPath = value; return this; }
public String getRequestSent() { return requestSent; }
public BorgunTest3DGetMultiTokenResponse setRequestSent(String value) { this.requestSent = value; return this; }
public String getRequestReceived() { return requestReceived; }
public BorgunTest3DGetMultiTokenResponse setRequestReceived(String value) { this.requestReceived = value; return this; }
}
public static class BorgunTokenMultiResponse
{
public Integer statusCode = null;
public BorgunTokenMultiInfo token = null;
public String uri = null;
public String message = null;
public Integer getStatusCode() { return statusCode; }
public BorgunTokenMultiResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
public BorgunTokenMultiInfo getToken() { return token; }
public BorgunTokenMultiResponse setToken(BorgunTokenMultiInfo value) { this.token = value; return this; }
public String getUri() { return uri; }
public BorgunTokenMultiResponse setUri(String value) { this.uri = value; return this; }
public String getMessage() { return message; }
public BorgunTokenMultiResponse setMessage(String value) { this.message = value; return this; }
}
public static class BorgunTokenMultiInfo
{
public String virtualNumber = null;
public String token = null;
public String pan = null;
public String expYear = null;
public String expMonth = null;
public Boolean enabled = null;
public BorgunVerifyCardResult verifyCardResult = null;
public BorgunMetadata metadata = null;
public String getVirtualNumber() { return virtualNumber; }
public BorgunTokenMultiInfo setVirtualNumber(String value) { this.virtualNumber = value; return this; }
public String getToken() { return token; }
public BorgunTokenMultiInfo setToken(String value) { this.token = value; return this; }
public String getPan() { return pan; }
public BorgunTokenMultiInfo setPan(String value) { this.pan = value; return this; }
public String getExpYear() { return expYear; }
public BorgunTokenMultiInfo setExpYear(String value) { this.expYear = value; return this; }
public String getExpMonth() { return expMonth; }
public BorgunTokenMultiInfo setExpMonth(String value) { this.expMonth = value; return this; }
public Boolean isEnabled() { return enabled; }
public BorgunTokenMultiInfo setEnabled(Boolean value) { this.enabled = value; return this; }
public BorgunVerifyCardResult getVerifyCardResult() { return verifyCardResult; }
public BorgunTokenMultiInfo setVerifyCardResult(BorgunVerifyCardResult value) { this.verifyCardResult = value; return this; }
public BorgunMetadata getMetadata() { return metadata; }
public BorgunTokenMultiInfo setMetadata(BorgunMetadata value) { this.metadata = value; return this; }
}
public static class BorgunVerifyCardResult
{
public String transactionId = null;
public String actionCode = null;
public String getTransactionId() { return transactionId; }
public BorgunVerifyCardResult setTransactionId(String value) { this.transactionId = value; return this; }
public String getActionCode() { return actionCode; }
public BorgunVerifyCardResult setActionCode(String value) { this.actionCode = value; return this; }
}
}
Java BorgunTest3DGetMultiTokenRequest 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 /borgunTest3D/Token/Single HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
request:
{
pan: String,
expMonth: String,
expYear: String,
verifyCard:
{
checkAmount: 0,
currency: String,
cvc: String
},
metadata:
{
payload: String
}
},
forcedPath: String,
forcedJSONRequest: String,
skipBorgunCall: False
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { response: { statusCode: 0, token: { virtualNumber: String, token: String, pan: String, expYear: String, expMonth: String, enabled: False, verifyCardResult: { transactionId: String, actionCode: String }, metadata: { payload: String } }, uri: String, message: String }, statusCode: 0, message: String, forcedPath: String, forcedJSONRequest: String, jsonRequest: String, jsonResponse: String, requestPath: String, requestSent: String, requestReceived: String }