| Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
| GET | /licenseChangesLog | Get log of license changes | Query return changes which were made in voss subscription. |
|---|
import Foundation
import ServiceStack
// @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401)
public class GetLicenseChangesLog : QueryDb2<LicenseChangesLog, LicenseChangesLogQueryResponse>
{
public var id:Int?
public var vossSubscriptionId:String?
public var checkedAt:Date?
public var checkStatus:String
public var checkNote:String
public var createdDate:Date?
public var companyId:String?
required public init(){ super.init() }
private enum CodingKeys : String, CodingKey {
case id
case vossSubscriptionId
case checkedAt
case checkStatus
case checkNote
case createdDate
case companyId
}
required public init(from decoder: Decoder) throws {
try super.init(from: decoder)
let container = try decoder.container(keyedBy: CodingKeys.self)
id = try container.decodeIfPresent(Int.self, forKey: .id)
vossSubscriptionId = try container.decodeIfPresent(String.self, forKey: .vossSubscriptionId)
checkedAt = try container.decodeIfPresent(Date.self, forKey: .checkedAt)
checkStatus = try container.decodeIfPresent(String.self, forKey: .checkStatus)
checkNote = try container.decodeIfPresent(String.self, forKey: .checkNote)
createdDate = try container.decodeIfPresent(Date.self, forKey: .createdDate)
companyId = try container.decodeIfPresent(String.self, forKey: .companyId)
}
public override func encode(to encoder: Encoder) throws {
try super.encode(to: encoder)
var container = encoder.container(keyedBy: CodingKeys.self)
if id != nil { try container.encode(id, forKey: .id) }
if vossSubscriptionId != nil { try container.encode(vossSubscriptionId, forKey: .vossSubscriptionId) }
if checkedAt != nil { try container.encode(checkedAt, forKey: .checkedAt) }
if checkStatus != nil { try container.encode(checkStatus, forKey: .checkStatus) }
if checkNote != nil { try container.encode(checkNote, forKey: .checkNote) }
if createdDate != nil { try container.encode(createdDate, forKey: .createdDate) }
if companyId != nil { try container.encode(companyId, forKey: .companyId) }
}
}
public class LicenseChangesLog : Codable
{
public var metaData:String
public var id:Int
public var vossSubscriptionId:String
public var checkedAt:Date?
public var checkStatus:String
public var checkNote:String
// @Required()
public var createdDate:Date?
public var companyId:String?
required public init(){}
}
public class LicenseChangesLogQueryResponse : Codable
{
public var metaData:String
public var id:Int
public var vossSubscriptionId:String
public var checkedAt:Date?
public var checkStatus:String
public var checkNote:String
public var createdDate:Date
public var companyId:String?
required public init(){}
}
public class AccessKeyTypeResponse : Codable
{
public var id:Int
public var keyType:String
public var Description:String
required public init(){}
}
Swift GetLicenseChangesLog DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /licenseChangesLog HTTP/1.1 Host: testapi.bokamera.se Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Offset":0,"Total":0,"Results":[{"MetaData":"String","Id":0,"CheckedAt":"0001-01-01T00:00:00","CheckStatus":"String","CheckNote":"String","CompanyId":"00000000-0000-0000-0000-000000000000"}],"Meta":{"String":"String"},"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}