You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.6 KiB
84 lines
1.6 KiB
//
|
|
// KycModel.swift
|
|
// GMERemittance
|
|
//
|
|
// Created by gme_2 on 14/09/2018.
|
|
// Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import ObjectMapper
|
|
|
|
|
|
class KycModelContainer: Mappable {
|
|
var errorCode: String?
|
|
var message: String?
|
|
var id: String?
|
|
var data: KycModel?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
errorCode <- map["ErrorCode"]
|
|
message <- map["Msg"]
|
|
id <- map["Id"]
|
|
data <- map["Data"]
|
|
}
|
|
}
|
|
|
|
class KycModel: Mappable {
|
|
var nativeCountry: [KeyValueModel]?
|
|
var city: [KeyValueModel]?
|
|
var occupations: [KeyValueModel]?
|
|
var bank: [KeyValueModel]?
|
|
var idType: [VerificationIdType]?
|
|
var sourceOfFund: [KeyValueModel]?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
nativeCountry <- map["NativeCountry"]
|
|
city <- map["City"]
|
|
occupations <- map["Occupation"]
|
|
bank <- map["Bank"]
|
|
idType <- map["IdType"]
|
|
sourceOfFund <- map["SourceOfFund"]
|
|
}
|
|
}
|
|
|
|
|
|
class VerificationIdType: Mappable {
|
|
var id: String?
|
|
var text: String?
|
|
var dependent: [String]?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
id <- map["id"]
|
|
text <- map["text"]
|
|
dependent <- map["dependent"]
|
|
}
|
|
}
|
|
|
|
class KeyValueModel: Mappable {
|
|
var id: String?
|
|
var text: String?
|
|
var code: String?
|
|
|
|
required init?(map: Map) {
|
|
|
|
}
|
|
|
|
func mapping(map: Map) {
|
|
id <- map["id"]
|
|
text <- map["text"]
|
|
code <- map["code"]
|
|
}
|
|
}
|