Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
All Verbs | /ksiCards/Card/Delete | ||
---|---|---|---|
All Verbs | /ksiCards/Card/Delete/{Id} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports TicketUserServices.ServiceModel.Types
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class KsiCardsDeleteCardRequest
Public Overridable Property Id As Integer
Public Overridable Property RequestUnixUTCTimeStamp As Long
Public Overridable Property Signature As RequestSignature
End Class
Public Partial Class KsiPaymentCardsResult
Public Sub New()
Cards = New List(Of BorgunSavedCards)
KsiCards = New List(Of KsiCards)
End Sub
Public Overridable Property Cards As List(Of BorgunSavedCards)
Public Overridable Property KsiCards As List(Of KsiCards)
Public Overridable Property StatusCode As Integer
Public Overridable Property Message As String
End Class
Public Partial Class RequestSignature
Public Overridable Property SystemId As String
Public Overridable Property SystemSecret As String
Public Overridable Property Signature As String
End Class
End Namespace
Namespace TicketUserServices.ServiceModel.Types
Public Partial Class BorgunSavedCards
Public Overridable Property Id As Integer
Public Overridable Property CreationDate As Nullable(Of Date)
Public Overridable Property LastTokenDate As Nullable(Of Date)
Public Overridable Property isDebit As Nullable(Of Boolean)
Public Overridable Property PhoneVerificationNumber As String
Public Overridable Property DeviceId As String
Public Overridable Property VirtualCardNumber As String
Public Overridable Property PanLastFour As String
Public Overridable Property ExpYear As String
Public Overridable Property ExpMonth As String
Public Overridable Property Token As String
Public Overridable Property CardType As String
Public Overridable Property DeletedByUser As Nullable(Of Boolean)
Public Overridable Property DeletedFromOrigin As Nullable(Of Boolean)
Public Overridable Property DateDeletedByUser As Nullable(Of Date)
Public Overridable Property DateDeletedFromOrigin As Nullable(Of Date)
Public Overridable Property IsDeleted As Nullable(Of Boolean)
Public Overridable Property DateDeletedBySystem As Nullable(Of Date)
Public Overridable Property DeletedBySystem As Nullable(Of Boolean)
End Class
Public Partial Class KsiCards
Public Overridable Property Id As Integer
Public Overridable Property CreationDate As Nullable(Of Date)
Public Overridable Property PhoneFullVerificationNumber As String
Public Overridable Property DeviceId As String
Public Overridable Property KsiCardTypeId As String
Public Overridable Property KsiClubId As String
Public Overridable Property HolderName As String
Public Overridable Property CanTransferToPhoneFullNumber As String
Public Overridable Property CanTransferToNName As String
Public Overridable Property ExpYear As String
Public Overridable Property ExpMonth As String
End Class
End Namespace
End Namespace
VB.NET KsiCardsDeleteCardRequest 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 /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>