|
@ -0,0 +1,100 @@ |
|
|
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
import Foundation |
|
|
|
|
|
import ObjectMapper |
|
|
|
|
|
|
|
|
|
|
|
class RegistrationDocumentTypeResponse: Mappable { |
|
|
|
|
|
|
|
|
|
|
|
var config: RegistrationConfig? |
|
|
|
|
|
var options: [DocumentOptions] = [] |
|
|
|
|
|
|
|
|
|
|
|
init() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
required init?(map: Map) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func mapping(map: Map) { |
|
|
|
|
|
config <- map["Config"] |
|
|
|
|
|
options <- map["Options"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class RegistrationDocumentTypeResponseContainer: Mappable { |
|
|
|
|
|
var errorCode: String? |
|
|
|
|
|
var message: String? |
|
|
|
|
|
var id: String? |
|
|
|
|
|
var data: RegistrationDocumentTypeResponse? |
|
|
|
|
|
|
|
|
|
|
|
required init?(map: Map) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func mapping(map: Map) { |
|
|
|
|
|
errorCode <- map["ErrorCode"] |
|
|
|
|
|
id <- map["Id"] |
|
|
|
|
|
message <- map["Msg"] |
|
|
|
|
|
data <- map["Data"] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class RegistrationConfig: Mappable { |
|
|
|
|
|
|
|
|
|
|
|
var url: String? |
|
|
|
|
|
var authorization_key: String? |
|
|
|
|
|
var sdk_Token: String? |
|
|
|
|
|
var mavenURL: String? |
|
|
|
|
|
var sdk_downloadUser: String? |
|
|
|
|
|
var sdk_downloadPass: String? |
|
|
|
|
|
|
|
|
|
|
|
init() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
required init?(map: Map) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func mapping(map: Map) { |
|
|
|
|
|
url <- map["URL"] |
|
|
|
|
|
authorization_key <- map["Authorization_Key"] |
|
|
|
|
|
sdk_Token <- map["Sdk_Token"] |
|
|
|
|
|
mavenURL <- map["MavenURL"] |
|
|
|
|
|
sdk_downloadUser <- map["Sdk_DownloadUser"] |
|
|
|
|
|
sdk_downloadPass <- map["Sdk_DownloadPass"] |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
class DocumentOptions: Mappable { |
|
|
|
|
|
|
|
|
|
|
|
var code: String? |
|
|
|
|
|
var name: String? |
|
|
|
|
|
var doc_description: String? |
|
|
|
|
|
var planId: String? |
|
|
|
|
|
var selfieRequired: String? |
|
|
|
|
|
var selfie_PlanId: String? |
|
|
|
|
|
var doc_type: String? |
|
|
|
|
|
|
|
|
|
|
|
init() { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
required init?(map: Map) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func mapping(map: Map) { |
|
|
|
|
|
code <- map["Code"] |
|
|
|
|
|
name <- map["Name"] |
|
|
|
|
|
doc_description <- map["Description"] |
|
|
|
|
|
planId <- map["PlanId"] |
|
|
|
|
|
selfieRequired <- map["SelfieRequired"] |
|
|
|
|
|
selfie_PlanId <- map["Selfie_PlanId"] |
|
|
|
|
|
doc_type <- map["Type"] |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |