TicketUserServices

<back to all web services

BorgunTest3DGetSingleTokenRequest

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

public class dtos
{

    public static class BorgunTest3DGetSingleTokenRequest
    {
        public BorgunTokenSingleRequest request = null;
        public String forcedPath = null;
        public String forcedJSONRequest = null;
        public Boolean skipBorgunCall = null;
        
        public BorgunTokenSingleRequest getRequest() { return request; }
        public BorgunTest3DGetSingleTokenRequest setRequest(BorgunTokenSingleRequest value) { this.request = value; return this; }
        public String getForcedPath() { return forcedPath; }
        public BorgunTest3DGetSingleTokenRequest setForcedPath(String value) { this.forcedPath = value; return this; }
        public String getForcedJSONRequest() { return forcedJSONRequest; }
        public BorgunTest3DGetSingleTokenRequest setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
        public Boolean isSkipBorgunCall() { return skipBorgunCall; }
        public BorgunTest3DGetSingleTokenRequest setSkipBorgunCall(Boolean value) { this.skipBorgunCall = value; return this; }
    }

    public static class BorgunTokenSingleRequest
    {
        public String pan = null;
        public String expMonth = null;
        public String expYear = null;
        public Integer tokenLifetime = null;
        public BorgunVerifyCardRequest verifyCard = null;
        public BorgunMetadata metadata = null;
        
        public String getPan() { return pan; }
        public BorgunTokenSingleRequest setPan(String value) { this.pan = value; return this; }
        public String getExpMonth() { return expMonth; }
        public BorgunTokenSingleRequest setExpMonth(String value) { this.expMonth = value; return this; }
        public String getExpYear() { return expYear; }
        public BorgunTokenSingleRequest setExpYear(String value) { this.expYear = value; return this; }
        public Integer getTokenLifetime() { return tokenLifetime; }
        public BorgunTokenSingleRequest setTokenLifetime(Integer value) { this.tokenLifetime = value; return this; }
        public BorgunVerifyCardRequest getVerifyCard() { return verifyCard; }
        public BorgunTokenSingleRequest setVerifyCard(BorgunVerifyCardRequest value) { this.verifyCard = value; return this; }
        public BorgunMetadata getMetadata() { return metadata; }
        public BorgunTokenSingleRequest 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 BorgunTest3DGetSingleTokenResponse
    {
        public BorgunTokenSingleResponse 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 BorgunTokenSingleResponse getResponse() { return response; }
        public BorgunTest3DGetSingleTokenResponse setResponse(BorgunTokenSingleResponse value) { this.response = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public BorgunTest3DGetSingleTokenResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public BorgunTest3DGetSingleTokenResponse setMessage(String value) { this.message = value; return this; }
        public String getForcedPath() { return forcedPath; }
        public BorgunTest3DGetSingleTokenResponse setForcedPath(String value) { this.forcedPath = value; return this; }
        public String getForcedJSONRequest() { return forcedJSONRequest; }
        public BorgunTest3DGetSingleTokenResponse setForcedJSONRequest(String value) { this.forcedJSONRequest = value; return this; }
        public String getJsonRequest() { return jsonRequest; }
        public BorgunTest3DGetSingleTokenResponse setJsonRequest(String value) { this.jsonRequest = value; return this; }
        public String getJsonResponse() { return jsonResponse; }
        public BorgunTest3DGetSingleTokenResponse setJsonResponse(String value) { this.jsonResponse = value; return this; }
        public String getRequestPath() { return requestPath; }
        public BorgunTest3DGetSingleTokenResponse setRequestPath(String value) { this.requestPath = value; return this; }
        public String getRequestSent() { return requestSent; }
        public BorgunTest3DGetSingleTokenResponse setRequestSent(String value) { this.requestSent = value; return this; }
        public String getRequestReceived() { return requestReceived; }
        public BorgunTest3DGetSingleTokenResponse setRequestReceived(String value) { this.requestReceived = value; return this; }
    }

    public static class BorgunTokenSingleResponse
    {
        public Integer statusCode = null;
        public BorgunTokenSingleInfo token = null;
        public String uri = null;
        public String message = null;
        
        public Integer getStatusCode() { return statusCode; }
        public BorgunTokenSingleResponse setStatusCode(Integer value) { this.statusCode = value; return this; }
        public BorgunTokenSingleInfo getToken() { return token; }
        public BorgunTokenSingleResponse setToken(BorgunTokenSingleInfo value) { this.token = value; return this; }
        public String getUri() { return uri; }
        public BorgunTokenSingleResponse setUri(String value) { this.uri = value; return this; }
        public String getMessage() { return message; }
        public BorgunTokenSingleResponse setMessage(String value) { this.message = value; return this; }
    }

    public static class BorgunTokenSingleInfo
    {
        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 BorgunTokenSingleInfo setVirtualNumber(String value) { this.virtualNumber = value; return this; }
        public String getToken() { return token; }
        public BorgunTokenSingleInfo setToken(String value) { this.token = value; return this; }
        public String getPan() { return pan; }
        public BorgunTokenSingleInfo setPan(String value) { this.pan = value; return this; }
        public String getExpYear() { return expYear; }
        public BorgunTokenSingleInfo setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public BorgunTokenSingleInfo setExpMonth(String value) { this.expMonth = value; return this; }
        public Boolean isEnabled() { return enabled; }
        public BorgunTokenSingleInfo setEnabled(Boolean value) { this.enabled = value; return this; }
        public BorgunVerifyCardResult getVerifyCardResult() { return verifyCardResult; }
        public BorgunTokenSingleInfo setVerifyCardResult(BorgunVerifyCardResult value) { this.verifyCardResult = value; return this; }
        public BorgunMetadata getMetadata() { return metadata; }
        public BorgunTokenSingleInfo 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 BorgunTest3DGetSingleTokenRequest 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 /borgunTest3D/Token/Single HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BorgunTest3DGetSingleTokenRequest 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:ExpMonth>String</d2p1:ExpMonth>
    <d2p1:ExpYear>String</d2p1:ExpYear>
    <d2p1:Metadata>
      <d2p1:Payload>String</d2p1:Payload>
    </d2p1:Metadata>
    <d2p1:PAN>String</d2p1:PAN>
    <d2p1:TokenLifetime>0</d2p1:TokenLifetime>
    <d2p1:VerifyCard>
      <d2p1:CVC>String</d2p1:CVC>
      <d2p1:CheckAmount>0</d2p1:CheckAmount>
      <d2p1:Currency>String</d2p1:Currency>
    </d2p1:VerifyCard>
  </Request>
  <SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DGetSingleTokenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BorgunTest3DGetSingleTokenResponse 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:Message>String</d2p1:Message>
    <d2p1:StatusCode>0</d2p1:StatusCode>
    <d2p1:Token>
      <d2p1:Enabled>false</d2p1:Enabled>
      <d2p1:ExpMonth>String</d2p1:ExpMonth>
      <d2p1:ExpYear>String</d2p1:ExpYear>
      <d2p1:Metadata>
        <d2p1:Payload>String</d2p1:Payload>
      </d2p1:Metadata>
      <d2p1:PAN>String</d2p1:PAN>
      <d2p1:Token>String</d2p1:Token>
      <d2p1:VerifyCardResult>
        <d2p1:ActionCode>String</d2p1:ActionCode>
        <d2p1:TransactionId>String</d2p1:TransactionId>
      </d2p1:VerifyCardResult>
      <d2p1:VirtualNumber>String</d2p1:VirtualNumber>
    </d2p1:Token>
    <d2p1:Uri>String</d2p1:Uri>
  </Response>
  <StatusCode>0</StatusCode>
</BorgunTest3DGetSingleTokenResponse>