PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

ClientTokenizeCardRequest

The following routes are available for this service:
POST/ClientTokenizeCard
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @DataContract
    public static class ClientTokenizeCardRequest
    {
        @DataMember
        public String Version = null;

        @DataMember
        public String SessionId = null;

        @DataMember
        public String CardNumber = null;

        @DataMember
        public String Expiration = null;

        @DataMember
        public String CVN = null;

        @DataMember
        public Avs AVS = null;
        
        public String getVersion() { return Version; }
        public ClientTokenizeCardRequest setVersion(String value) { this.Version = value; return this; }
        public String getSessionId() { return SessionId; }
        public ClientTokenizeCardRequest setSessionId(String value) { this.SessionId = value; return this; }
        public String getCardNumber() { return CardNumber; }
        public ClientTokenizeCardRequest setCardNumber(String value) { this.CardNumber = value; return this; }
        public String getExpiration() { return Expiration; }
        public ClientTokenizeCardRequest setExpiration(String value) { this.Expiration = value; return this; }
        public String getCvn() { return CVN; }
        public ClientTokenizeCardRequest setCvn(String value) { this.CVN = value; return this; }
        public Avs getAvs() { return AVS; }
        public ClientTokenizeCardRequest setAvs(Avs value) { this.AVS = value; return this; }
    }

    public static class Avs
    {
        public String Address = null;
        public String City = null;
        public String State = null;
        public String Zip = null;
        public String Country = null;
        public String Email = null;
        public String IPAddress = null;
        public String TelephoneNumber = null;
        public TelephoneType TelephoneType = null;
        public Integer DeliveryMethod = null;
        public String FirstName = null;
        public String MiddleName = null;
        public String LastName = null;
        
        public String getAddress() { return Address; }
        public Avs setAddress(String value) { this.Address = value; return this; }
        public String getCity() { return City; }
        public Avs setCity(String value) { this.City = value; return this; }
        public String getState() { return State; }
        public Avs setState(String value) { this.State = value; return this; }
        public String getZip() { return Zip; }
        public Avs setZip(String value) { this.Zip = value; return this; }
        public String getCountry() { return Country; }
        public Avs setCountry(String value) { this.Country = value; return this; }
        public String getEmail() { return Email; }
        public Avs setEmail(String value) { this.Email = value; return this; }
        public String getIpAddress() { return IPAddress; }
        public Avs setIpAddress(String value) { this.IPAddress = value; return this; }
        public String getTelephoneNumber() { return TelephoneNumber; }
        public Avs setTelephoneNumber(String value) { this.TelephoneNumber = value; return this; }
        public TelephoneType getTelephoneType() { return TelephoneType; }
        public Avs setTelephoneType(TelephoneType value) { this.TelephoneType = value; return this; }
        public Integer getDeliveryMethod() { return DeliveryMethod; }
        public Avs setDeliveryMethod(Integer value) { this.DeliveryMethod = value; return this; }
        public String getFirstName() { return FirstName; }
        public Avs setFirstName(String value) { this.FirstName = value; return this; }
        public String getMiddleName() { return MiddleName; }
        public Avs setMiddleName(String value) { this.MiddleName = value; return this; }
        public String getLastName() { return LastName; }
        public Avs setLastName(String value) { this.LastName = value; return this; }
    }

    public static enum TelephoneType
    {
        D,
        H,
        N,
        W;
    }

    @DataContract
    public static class ClientTokenizeCard extends PaysecureResponseInternal
    {
        @DataMember
        public String ErrorMessage = null;

        @DataMember
        public String ErrorCode = null;
        
        public String getErrorMessage() { return ErrorMessage; }
        public ClientTokenizeCard setErrorMessage(String value) { this.ErrorMessage = value; return this; }
        public String getErrorCode() { return ErrorCode; }
        public ClientTokenizeCard setErrorCode(String value) { this.ErrorCode = value; return this; }
    }

    @DataContract
    public static class PaysecureResponseInternal
    {
        @DataMember(EmitDefaultValue=false)
        public RequestTimestamps Timestamps = null;
        
        public RequestTimestamps getTimestamps() { return Timestamps; }
        public PaysecureResponseInternal setTimestamps(RequestTimestamps value) { this.Timestamps = value; return this; }
    }

    @DataContract
    public static class RequestTimestamps
    {
        @DataMember(EmitDefaultValue=false)
        public InOutTimes AppLayer = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes ParentLookup = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes RetryLookup = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes GetCardData = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes CardTokenize = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes CardEncrypt = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes DBInsert = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes BackendProcess = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes DBUpdate = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes ParentUpdate = null;

        @DataMember(EmitDefaultValue=false)
        public InOutTimes Network = null;
        
        public InOutTimes getAppLayer() { return AppLayer; }
        public RequestTimestamps setAppLayer(InOutTimes value) { this.AppLayer = value; return this; }
        public InOutTimes getParentLookup() { return ParentLookup; }
        public RequestTimestamps setParentLookup(InOutTimes value) { this.ParentLookup = value; return this; }
        public InOutTimes getRetryLookup() { return RetryLookup; }
        public RequestTimestamps setRetryLookup(InOutTimes value) { this.RetryLookup = value; return this; }
        public InOutTimes getGetCardData() { return GetCardData; }
        public RequestTimestamps setGetCardData(InOutTimes value) { this.GetCardData = value; return this; }
        public InOutTimes getCardTokenize() { return CardTokenize; }
        public RequestTimestamps setCardTokenize(InOutTimes value) { this.CardTokenize = value; return this; }
        public InOutTimes getCardEncrypt() { return CardEncrypt; }
        public RequestTimestamps setCardEncrypt(InOutTimes value) { this.CardEncrypt = value; return this; }
        public InOutTimes getDbInsert() { return DBInsert; }
        public RequestTimestamps setDbInsert(InOutTimes value) { this.DBInsert = value; return this; }
        public InOutTimes getBackendProcess() { return BackendProcess; }
        public RequestTimestamps setBackendProcess(InOutTimes value) { this.BackendProcess = value; return this; }
        public InOutTimes getDbUpdate() { return DBUpdate; }
        public RequestTimestamps setDbUpdate(InOutTimes value) { this.DBUpdate = value; return this; }
        public InOutTimes getParentUpdate() { return ParentUpdate; }
        public RequestTimestamps setParentUpdate(InOutTimes value) { this.ParentUpdate = value; return this; }
        public InOutTimes getNetwork() { return Network; }
        public RequestTimestamps setNetwork(InOutTimes value) { this.Network = value; return this; }
    }

    @DataContract
    public static class InOutTimes
    {
        
    }

}

Java ClientTokenizeCardRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /ClientTokenizeCard HTTP/1.1 
Host: api.paysecure.acculynk.net 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	Version: String,
	SessionId: String,
	CardNumber: String,
	Expiration: String,
	CVN: String,
	AVS: 
	{
		Address: String,
		City: String,
		State: String,
		Zip: String,
		Country: String,
		Email: String,
		IPAddress: String,
		TelephoneNumber: String,
		TelephoneType: D,
		DeliveryMethod: 0,
		FirstName: String,
		MiddleName: String,
		LastName: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	ErrorMessage: String,
	ErrorCode: String,
	Timestamps: 
	{
		AppLayer: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		RetryLookup: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		GetCardData: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardTokenize: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		CardEncrypt: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBInsert: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		BackendProcess: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		DBUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		ParentUpdate: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		},
		Network: 
		{
			InTime: 0001-01-01,
			OutTime: 0001-01-01
		}
	}
}