TicketUserServices

<back to all web services

KsiCardsDeleteCardRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
All Verbs/ksiCards/Card/Delete
All Verbs/ksiCards/Card/Delete/{Id}
import Foundation
import ServiceStack

public class KsiCardsDeleteCardRequest : Codable
{
    public var id:Int?
    public var requestUnixUTCTimeStamp:Int?
    public var signature:RequestSignature?

    required public init(){}
}

public class RequestSignature : Codable
{
    public var systemId:String?
    public var systemSecret:String?
    public var signature:String?

    required public init(){}
}

public class KsiPaymentCardsResult : Codable
{
    public var cards:[BorgunSavedCards] = []
    public var ksiCards:[KsiCards] = []
    public var statusCode:Int?
    public var message:String?

    required public init(){}
}

public class BorgunSavedCards : Codable
{
    public var id:Int?
    public var creationDate:Date?
    public var lastTokenDate:Date?
    public var isDebit:Bool?
    public var phoneVerificationNumber:String?
    public var deviceId:String?
    public var virtualCardNumber:String?
    public var panLastFour:String?
    public var expYear:String?
    public var expMonth:String?
    public var token:String?
    public var cardType:String?
    public var deletedByUser:Bool?
    public var deletedFromOrigin:Bool?
    public var dateDeletedByUser:Date?
    public var dateDeletedFromOrigin:Date?
    public var isDeleted:Bool?
    public var dateDeletedBySystem:Date?
    public var deletedBySystem:Bool?

    required public init(){}
}

public class KsiCards : Codable
{
    public var id:Int?
    public var creationDate:Date?
    public var phoneFullVerificationNumber:String?
    public var deviceId:String?
    public var ksiCardTypeId:String?
    public var ksiClubId:String?
    public var holderName:String?
    public var canTransferToPhoneFullNumber:String?
    public var canTransferToNName:String?
    public var expYear:String?
    public var expMonth:String?

    required public init(){}
}


Swift KsiCardsDeleteCardRequest 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/Delete HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<KsiCardsDeleteCardRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Id>0</Id>
  <RequestUnixUTCTimeStamp>0</RequestUnixUTCTimeStamp>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
</KsiCardsDeleteCardRequest>
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>