TicketUserServices

<back to all web services

KsiCardsSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
All Verbs/ksiCards/Search
All Verbs/ksiCards/Search/{Id}
All Verbs/ksiCards/Search/Club/{KsiClubId}/{ExpiryYear}
All Verbs/ksiCards/Search/Club/CardType/{KsiClubId}/{KsiCardType}/{ExpiryYear}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class KsiCardsSearchRequest
    {
        public Integer id = null;
        public String ksiClubId = null;
        public String expiryYear = null;
        public String ksiCardType = null;
        public String fullPhoneNumber = null;
        public Integer onlyValidForEventId = null;
        public Long requestUnixUTCTimeStamp = null;
        public RequestSignature signature = null;
        
        public Integer getId() { return id; }
        public KsiCardsSearchRequest setId(Integer value) { this.id = value; return this; }
        public String getKsiClubId() { return ksiClubId; }
        public KsiCardsSearchRequest setKsiClubId(String value) { this.ksiClubId = value; return this; }
        public String getExpiryYear() { return expiryYear; }
        public KsiCardsSearchRequest setExpiryYear(String value) { this.expiryYear = value; return this; }
        public String getKsiCardType() { return ksiCardType; }
        public KsiCardsSearchRequest setKsiCardType(String value) { this.ksiCardType = value; return this; }
        public String getFullPhoneNumber() { return fullPhoneNumber; }
        public KsiCardsSearchRequest setFullPhoneNumber(String value) { this.fullPhoneNumber = value; return this; }
        public Integer getOnlyValidForEventId() { return onlyValidForEventId; }
        public KsiCardsSearchRequest setOnlyValidForEventId(Integer value) { this.onlyValidForEventId = value; return this; }
        public Long getRequestUnixUTCTimeStamp() { return requestUnixUTCTimeStamp; }
        public KsiCardsSearchRequest setRequestUnixUTCTimeStamp(Long value) { this.requestUnixUTCTimeStamp = value; return this; }
        public RequestSignature getSignature() { return signature; }
        public KsiCardsSearchRequest 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 KsiCardsSearchResult
    {
        public ArrayList<KsiCards> cards = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<KsiCards> getCards() { return cards; }
        public KsiCardsSearchResult setCards(ArrayList<KsiCards> value) { this.cards = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public KsiCardsSearchResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public KsiCardsSearchResult setMessage(String value) { this.message = 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 KsiCardsSearchRequest 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 /ksiCards/Search HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	id: 0,
	ksiClubId: String,
	expiryYear: String,
	ksiCardType: String,
	fullPhoneNumber: String,
	onlyValidForEventId: 0,
	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,
			phoneFullVerificationNumber: String,
			deviceId: String,
			ksiCardTypeId: String,
			ksiClubId: String,
			holderName: String,
			canTransferToPhoneFullNumber: String,
			canTransferToNName: String,
			expYear: String,
			expMonth: String
		}
	],
	statusCode: 0,
	message: String
}