| Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
| POST | /ksiPaymentCards | Get all Credit, Debit and KSI cards. If event id is provided tham KSI cards will be filtered on valid cards for this event | Special for KSI games |
|---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class KsiPaymentCardsRequest
{
var eventId:Int? = null
var phoneVerificationNumber:String? = null
var deviceId:String? = null
var requestUnixUTCTimeStamp:Long? = null
var signature:RequestSignature? = null
}
open class RequestSignature
{
var systemId:String? = null
var systemSecret:String? = null
var signature:String? = null
}
open class KsiPaymentCardsResult
{
var cards:ArrayList<BorgunSavedCards> = ArrayList<BorgunSavedCards>()
var ksiCards:ArrayList<KsiCards> = ArrayList<KsiCards>()
var statusCode:Int? = null
var message:String? = null
}
open class BorgunSavedCards
{
var id:Int? = null
var creationDate:Date? = null
var lastTokenDate:Date? = null
var isDebit:Boolean? = null
var phoneVerificationNumber:String? = null
var deviceId:String? = null
var virtualCardNumber:String? = null
var panLastFour:String? = null
var expYear:String? = null
var expMonth:String? = null
var token:String? = null
var cardType:String? = null
var deletedByUser:Boolean? = null
var deletedFromOrigin:Boolean? = null
var dateDeletedByUser:Date? = null
var dateDeletedFromOrigin:Date? = null
var isDeleted:Boolean? = null
var dateDeletedBySystem:Date? = null
var deletedBySystem:Boolean? = null
}
open class KsiCards
{
var id:Int? = null
var creationDate:Date? = null
var phoneFullVerificationNumber:String? = null
var deviceId:String? = null
var ksiCardTypeId:String? = null
var ksiClubId:String? = null
var holderName:String? = null
var canTransferToPhoneFullNumber:String? = null
var canTransferToNName:String? = null
var expYear:String? = null
var expMonth:String? = null
var isActive:Boolean? = null
var validFromDate:Date? = null
var validToDate:Date? = null
var lastModifiedDate:Date? = null
var revokedDate:Date? = null
var revokedReason:String? = null
}
Kotlin KsiPaymentCardsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<KsiPaymentCardsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<DeviceId>String</DeviceId>
<EventId>0</EventId>
<PhoneVerificationNumber>String</PhoneVerificationNumber>
<RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
<Signature>
<Signature>String</Signature>
<SystemId>String</SystemId>
<SystemSecret>String</SystemSecret>
</Signature>
</KsiPaymentCardsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<KsiPaymentCardsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<Cards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:BorgunSavedCards>
<d2p1:CardType>String</d2p1:CardType>
<d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate>
<d2p1:DateDeletedBySystem>0001-01-01T00:00:00</d2p1:DateDeletedBySystem>
<d2p1:DateDeletedByUser>0001-01-01T00:00:00</d2p1:DateDeletedByUser>
<d2p1:DateDeletedFromOrigin>0001-01-01T00:00:00</d2p1:DateDeletedFromOrigin>
<d2p1:DeletedBySystem>false</d2p1:DeletedBySystem>
<d2p1:DeletedByUser>false</d2p1:DeletedByUser>
<d2p1:DeletedFromOrigin>false</d2p1:DeletedFromOrigin>
<d2p1:DeviceId>String</d2p1:DeviceId>
<d2p1:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:LastTokenDate>0001-01-01T00:00:00</d2p1:LastTokenDate>
<d2p1:PanLastFour>String</d2p1:PanLastFour>
<d2p1:PhoneVerificationNumber>String</d2p1:PhoneVerificationNumber>
<d2p1:Token>String</d2p1:Token>
<d2p1:VirtualCardNumber>String</d2p1:VirtualCardNumber>
<d2p1:isDebit>false</d2p1:isDebit>
</d2p1:BorgunSavedCards>
</Cards>
<KsiCards xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
<d2p1:KsiCards>
<d2p1:CanTransferToNName>String</d2p1:CanTransferToNName>
<d2p1:CanTransferToPhoneFullNumber>String</d2p1:CanTransferToPhoneFullNumber>
<d2p1:CreationDate>0001-01-01T00:00:00</d2p1:CreationDate>
<d2p1:DeviceId>String</d2p1:DeviceId>
<d2p1:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:HolderName>String</d2p1:HolderName>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:KsiCardTypeId>String</d2p1:KsiCardTypeId>
<d2p1:KsiClubId>String</d2p1:KsiClubId>
<d2p1:LastModifiedDate>0001-01-01T00:00:00</d2p1:LastModifiedDate>
<d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
<d2p1:RevokedDate>0001-01-01T00:00:00</d2p1:RevokedDate>
<d2p1:RevokedReason>String</d2p1:RevokedReason>
<d2p1:ValidFromDate>0001-01-01T00:00:00</d2p1:ValidFromDate>
<d2p1:ValidToDate>0001-01-01T00:00:00</d2p1:ValidToDate>
</d2p1:KsiCards>
</KsiCards>
<Message>String</Message>
<StatusCode>0</StatusCode>
</KsiPaymentCardsResult>