TicketUserServices

<back to all web services

KsiCardsSingleCardRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileApp, Admin, TeamAdmin, MobileAppRequires any of the permissions:ReadData, ReadData
The following routes are available for this service:
All Verbs/ksiCards/Card
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using TicketUserServices.ServiceModel.Types;

namespace TicketUserServices.ServiceModel
{
    public partial class KsiCardsSingleCardRequest
    {
        public virtual KsiCards Card { get; set; }
        public virtual long RequestUnixUTCTimeStamp { get; set; }
        public virtual RequestSignature Signature { get; set; }
    }

    public partial class KsiPaymentCardsResult
    {
        public KsiPaymentCardsResult()
        {
            Cards = new List<BorgunSavedCards>{};
            KsiCards = new List<KsiCards>{};
        }

        public virtual List<BorgunSavedCards> Cards { get; set; }
        public virtual List<KsiCards> KsiCards { get; set; }
        public virtual int StatusCode { get; set; }
        public virtual string Message { get; set; }
    }

    public partial class RequestSignature
    {
        public virtual string SystemId { get; set; }
        public virtual string SystemSecret { get; set; }
        public virtual string Signature { get; set; }
    }

}

namespace TicketUserServices.ServiceModel.Types
{
    public partial class BorgunSavedCards
    {
        public virtual int Id { get; set; }
        public virtual DateTime? CreationDate { get; set; }
        public virtual DateTime? LastTokenDate { get; set; }
        public virtual bool? isDebit { get; set; }
        public virtual string PhoneVerificationNumber { get; set; }
        public virtual string DeviceId { get; set; }
        public virtual string VirtualCardNumber { get; set; }
        public virtual string PanLastFour { get; set; }
        public virtual string ExpYear { get; set; }
        public virtual string ExpMonth { get; set; }
        public virtual string Token { get; set; }
        public virtual string CardType { get; set; }
        public virtual bool? DeletedByUser { get; set; }
        public virtual bool? DeletedFromOrigin { get; set; }
        public virtual DateTime? DateDeletedByUser { get; set; }
        public virtual DateTime? DateDeletedFromOrigin { get; set; }
        public virtual bool? IsDeleted { get; set; }
        public virtual DateTime? DateDeletedBySystem { get; set; }
        public virtual bool? DeletedBySystem { get; set; }
    }

    public partial class KsiCards
    {
        public virtual int Id { get; set; }
        public virtual DateTime? CreationDate { get; set; }
        public virtual string PhoneFullVerificationNumber { get; set; }
        public virtual string DeviceId { get; set; }
        public virtual string KsiCardTypeId { get; set; }
        public virtual string KsiClubId { get; set; }
        public virtual string HolderName { get; set; }
        public virtual string CanTransferToPhoneFullNumber { get; set; }
        public virtual string CanTransferToNName { get; set; }
        public virtual string ExpYear { get; set; }
        public virtual string ExpMonth { get; set; }
    }

}

C# KsiCardsSingleCardRequest 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/Card HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	card: 
	{
		id: 0,
		creationDate: 0001-01-01,
		phoneFullVerificationNumber: String,
		deviceId: String,
		ksiCardTypeId: String,
		ksiClubId: String,
		holderName: String,
		canTransferToPhoneFullNumber: String,
		canTransferToNName: String,
		expYear: String,
		expMonth: 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
}