TicketUserServices

<back to all web services

KsiPaymentCardsRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/ksiPaymentCardsGet all Credit, Debit and KSI cards. If event id is provided tham KSI cards will be filtered on valid cards for this eventSpecial for KSI games
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class KsiPaymentCardsRequest
    {
        public Integer eventId = null;
        public String phoneVerificationNumber = null;
        public String deviceId = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public Integer getEventId() { return eventId; }
        public KsiPaymentCardsRequest setEventId(Integer value) { this.eventId = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public KsiPaymentCardsRequest setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public KsiPaymentCardsRequest setDeviceId(String value) { this.deviceId = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public KsiPaymentCardsRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public KsiPaymentCardsRequest setSignature(RequestSignature value) { this.signature = value; return this; }
    }

    public static class RequestSignature
    {
        public String systemId = null;
        public String systemSecret = null;
        public String signature = null;
        
        public String getSystemId() { return systemId; }
        public RequestSignature setSystemId(String value) { this.systemId = value; return this; }
        public String getSystemSecret() { return systemSecret; }
        public RequestSignature setSystemSecret(String value) { this.systemSecret = value; return this; }
        public String getSignature() { return signature; }
        public RequestSignature setSignature(String value) { this.signature = value; return this; }
    }

    public static class KsiPaymentCardsResult
    {
        public ArrayList<BorgunSavedCards> cards = null;
        public ArrayList<KsiCards> ksiCards = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<BorgunSavedCards> getCards() { return cards; }
        public KsiPaymentCardsResult setCards(ArrayList<BorgunSavedCards> value) { this.cards = value; return this; }
        public ArrayList<KsiCards> getKsiCards() { return ksiCards; }
        public KsiPaymentCardsResult setKsiCards(ArrayList<KsiCards> value) { this.ksiCards = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public KsiPaymentCardsResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public KsiPaymentCardsResult setMessage(String value) { this.message = value; return this; }
    }

    public static class BorgunSavedCards
    {
        public Integer id = null;
        public Date creationDate = null;
        public Date lastTokenDate = null;
        public Boolean isDebit = null;
        public String phoneVerificationNumber = null;
        public String deviceId = null;
        public String virtualCardNumber = null;
        public String panLastFour = null;
        public String expYear = null;
        public String expMonth = null;
        public String token = null;
        public String cardType = null;
        public Boolean deletedByUser = null;
        public Boolean deletedFromOrigin = null;
        public Date dateDeletedByUser = null;
        public Date dateDeletedFromOrigin = null;
        public Boolean isDeleted = null;
        public Date dateDeletedBySystem = null;
        public Boolean deletedBySystem = null;
        
        public Integer getId() { return id; }
        public BorgunSavedCards setId(Integer value) { this.id = value; return this; }
        public Date getCreationDate() { return creationDate; }
        public BorgunSavedCards setCreationDate(Date value) { this.creationDate = value; return this; }
        public Date getLastTokenDate() { return lastTokenDate; }
        public BorgunSavedCards setLastTokenDate(Date value) { this.lastTokenDate = value; return this; }
        public Boolean getIsDebit() { return isDebit; }
        public BorgunSavedCards setIsDebit(Boolean value) { this.isDebit = value; return this; }
        public String getPhoneVerificationNumber() { return phoneVerificationNumber; }
        public BorgunSavedCards setPhoneVerificationNumber(String value) { this.phoneVerificationNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public BorgunSavedCards setDeviceId(String value) { this.deviceId = value; return this; }
        public String getVirtualCardNumber() { return virtualCardNumber; }
        public BorgunSavedCards setVirtualCardNumber(String value) { this.virtualCardNumber = value; return this; }
        public String getPanLastFour() { return panLastFour; }
        public BorgunSavedCards setPanLastFour(String value) { this.panLastFour = value; return this; }
        public String getExpYear() { return expYear; }
        public BorgunSavedCards setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public BorgunSavedCards setExpMonth(String value) { this.expMonth = value; return this; }
        public String getToken() { return token; }
        public BorgunSavedCards setToken(String value) { this.token = value; return this; }
        public String getCardType() { return cardType; }
        public BorgunSavedCards setCardType(String value) { this.cardType = value; return this; }
        public Boolean isDeletedByUser() { return deletedByUser; }
        public BorgunSavedCards setDeletedByUser(Boolean value) { this.deletedByUser = value; return this; }
        public Boolean isDeletedFromOrigin() { return deletedFromOrigin; }
        public BorgunSavedCards setDeletedFromOrigin(Boolean value) { this.deletedFromOrigin = value; return this; }
        public Date getDateDeletedByUser() { return dateDeletedByUser; }
        public BorgunSavedCards setDateDeletedByUser(Date value) { this.dateDeletedByUser = value; return this; }
        public Date getDateDeletedFromOrigin() { return dateDeletedFromOrigin; }
        public BorgunSavedCards setDateDeletedFromOrigin(Date value) { this.dateDeletedFromOrigin = value; return this; }
        public Boolean getIsDeleted() { return isDeleted; }
        public BorgunSavedCards setIsDeleted(Boolean value) { this.isDeleted = value; return this; }
        public Date getDateDeletedBySystem() { return dateDeletedBySystem; }
        public BorgunSavedCards setDateDeletedBySystem(Date value) { this.dateDeletedBySystem = value; return this; }
        public Boolean isDeletedBySystem() { return deletedBySystem; }
        public BorgunSavedCards setDeletedBySystem(Boolean value) { this.deletedBySystem = value; return this; }
    }

    public static class KsiCards
    {
        public Integer id = null;
        public Date creationDate = null;
        public String phoneFullVerificationNumber = null;
        public String deviceId = null;
        public String ksiCardTypeId = null;
        public String ksiClubId = null;
        public String holderName = null;
        public String canTransferToPhoneFullNumber = null;
        public String canTransferToNName = null;
        public String expYear = null;
        public String expMonth = null;
        
        public Integer getId() { return id; }
        public KsiCards setId(Integer value) { this.id = value; return this; }
        public Date getCreationDate() { return creationDate; }
        public KsiCards setCreationDate(Date value) { this.creationDate = value; return this; }
        public String getPhoneFullVerificationNumber() { return phoneFullVerificationNumber; }
        public KsiCards setPhoneFullVerificationNumber(String value) { this.phoneFullVerificationNumber = value; return this; }
        public String getDeviceId() { return deviceId; }
        public KsiCards setDeviceId(String value) { this.deviceId = value; return this; }
        public String getKsiCardTypeId() { return ksiCardTypeId; }
        public KsiCards setKsiCardTypeId(String value) { this.ksiCardTypeId = value; return this; }
        public String getKsiClubId() { return ksiClubId; }
        public KsiCards setKsiClubId(String value) { this.ksiClubId = value; return this; }
        public String getHolderName() { return holderName; }
        public KsiCards setHolderName(String value) { this.holderName = value; return this; }
        public String getCanTransferToPhoneFullNumber() { return canTransferToPhoneFullNumber; }
        public KsiCards setCanTransferToPhoneFullNumber(String value) { this.canTransferToPhoneFullNumber = value; return this; }
        public String getCanTransferToNName() { return canTransferToNName; }
        public KsiCards setCanTransferToNName(String value) { this.canTransferToNName = value; return this; }
        public String getExpYear() { return expYear; }
        public KsiCards setExpYear(String value) { this.expYear = value; return this; }
        public String getExpMonth() { return expMonth; }
        public KsiCards setExpMonth(String value) { this.expMonth = value; return this; }
    }

}

Java KsiPaymentCardsRequest 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 /ksiPaymentCards HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	eventId: 0,
	phoneVerificationNumber: String,
	deviceId: String,
	requestUnixUTCTimeStamp: 0,
	signature: 
	{
		systemId: String,
		systemSecret: String,
		signature: String
	}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	cards: 
	[
		{
			id: 0,
			creationDate: 0001-01-01,
			lastTokenDate: 0001-01-01,
			isDebit: False,
			phoneVerificationNumber: String,
			deviceId: String,
			virtualCardNumber: String,
			panLastFour: String,
			expYear: String,
			expMonth: String,
			token: String,
			cardType: String,
			deletedByUser: False,
			deletedFromOrigin: False,
			dateDeletedByUser: 0001-01-01,
			dateDeletedFromOrigin: 0001-01-01,
			isDeleted: False,
			dateDeletedBySystem: 0001-01-01,
			deletedBySystem: False
		}
	],
	ksiCards: 
	[
		{
			id: 0,
			creationDate: 0001-01-01,
			phoneFullVerificationNumber: String,
			deviceId: String,
			ksiCardTypeId: String,
			ksiClubId: String,
			holderName: String,
			canTransferToPhoneFullNumber: String,
			canTransferToNName: String,
			expYear: String,
			expMonth: String
		}
	],
	statusCode: 0,
	message: String
}