| Requires any of the roles: | Admin, TeamAdmin | Requires the permission: | ReadData |
| POST | /ksiCards/Card/Dates |
|---|
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 KsiCardsUpdateDatesRequest
Public Overridable Property Id As Integer
Public Overridable Property ValidFromDate As Nullable(Of Date)
Public Overridable Property ValidToDate As Nullable(Of Date)
Public Overridable Property RequestUnixUTCTimeStamp As Long
Public Overridable Property Signature As RequestSignature
End Class
Public Partial Class KsiCardsUpdateStatusResult
Public Overridable Property Card As 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 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
Public Overridable Property IsActive As Boolean
Public Overridable Property ValidFromDate As Nullable(Of Date)
Public Overridable Property ValidToDate As Nullable(Of Date)
Public Overridable Property LastModifiedDate As Nullable(Of Date)
Public Overridable Property RevokedDate As Nullable(Of Date)
Public Overridable Property RevokedReason As String
End Class
End Namespace
End Namespace
VB.NET KsiCardsUpdateDatesRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /ksiCards/Card/Dates HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
validFromDate: 0001-01-01,
validToDate: 0001-01-01,
requestUnixUTCTimeStamp: 0,
signature:
{
systemId: String,
systemSecret: String,
signature: String
}
}
HTTP/1.1 200 OK
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,
isActive: False,
validFromDate: 0001-01-01,
validToDate: 0001-01-01,
lastModifiedDate: 0001-01-01,
revokedDate: 0001-01-01,
revokedReason: String
},
statusCode: 0,
message: String
}