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
import java.math.*
import java.util.*
import net.servicestack.client.*


open class KsiCardsSingleCardRequest
{
    var card:KsiCards? = null
    var requestUnixUTCTimeStamp:Long? = null
    var signature:RequestSignature? = 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
}

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
}

Kotlin KsiCardsSingleCardRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<KsiCardsSingleCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Card xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <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:KsiCardTypeId>String</d2p1:KsiCardTypeId>
    <d2p1:KsiClubId>String</d2p1:KsiClubId>
    <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
  </Card>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
</KsiCardsSingleCardRequest>
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:KsiCardTypeId>String</d2p1:KsiCardTypeId>
      <d2p1:KsiClubId>String</d2p1:KsiClubId>
      <d2p1:PhoneFullVerificationNumber>String</d2p1:PhoneFullVerificationNumber>
    </d2p1:KsiCards>
  </KsiCards>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</KsiPaymentCardsResult>