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

export class BorgunSavedCards
{
    public id?: number;
    public creationDate?: string;
    public lastTokenDate?: string;
    public isDebit?: boolean;
    public phoneVerificationNumber?: string;
    public deviceId?: string;
    public virtualCardNumber?: string;
    public panLastFour?: string;
    public expYear?: string;
    public expMonth?: string;
    public token?: string;
    public cardType?: string;
    public deletedByUser?: boolean;
    public deletedFromOrigin?: boolean;
    public dateDeletedByUser?: string;
    public dateDeletedFromOrigin?: string;
    public isDeleted?: boolean;
    public dateDeletedBySystem?: string;
    public deletedBySystem?: boolean;

    public constructor(init?: Partial<BorgunSavedCards>) { (Object as any).assign(this, init); }
}

export class KsiCards
{
    public id?: number;
    public creationDate?: string;
    public phoneFullVerificationNumber?: string;
    public deviceId?: string;
    public ksiCardTypeId?: string;
    public ksiClubId?: string;
    public holderName?: string;
    public canTransferToPhoneFullNumber?: string;
    public canTransferToNName?: string;
    public expYear?: string;
    public expMonth?: string;

    public constructor(init?: Partial<KsiCards>) { (Object as any).assign(this, init); }
}

export class KsiPaymentCardsResult
{
    public cards?: BorgunSavedCards[];
    public ksiCards?: KsiCards[];
    public statusCode?: number;
    public message?: string;

    public constructor(init?: Partial<KsiPaymentCardsResult>) { (Object as any).assign(this, init); }
}

export class RequestSignature
{
    public systemId?: string;
    public systemSecret?: string;
    public signature?: string;

    public constructor(init?: Partial<RequestSignature>) { (Object as any).assign(this, init); }
}

export class KsiPaymentCardsRequest
{
    public eventId?: number;
    public phoneVerificationNumber?: string;
    public deviceId?: string;
    public requestUnixUTCTimeStamp?: number;
    public signature?: RequestSignature;

    public constructor(init?: Partial<KsiPaymentCardsRequest>) { (Object as any).assign(this, init); }
}

TypeScript 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
}