//
//  YHMainInformationModel.swift
//  galaxy
//
//  Created by EDY on 2024/1/31.
//  Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//

import Foundation
import SmartCodable

struct YHMainInformationModel: SmartCodable {
    var id: Int?
    var order_id: String?
    var nationality: String?
    var is_handled: Int?
    var username: String?
    var used_name: String?
    var birthday: String?
    var age: String?
    var birth_place_aboard: Int?
    var sex: String?
    var married: String?
    var mobile: String?
    var email: String?
    var address_aboard: Int?
    var has_hk_id: Int?
    var hk_id_number: String?
    var step: Int?
    var surname: String?
    var is_live_oversea_year: Int?
    var username_pinyin: YHUserNameModel?
    var birth_place: YHAddressModel?
    var address: YHAddressModel?
    var certificates: YHCertificatesModels?
}

struct YHUserNameModel: SmartCodable {
    var family_name: String?
    var given_name: String?
}

struct YHAddressModel: SmartCodable {
    var area: [String]?
    var country: String?
    var details: String?
    var foreign: String?
}

struct YHCertificatesModels: SmartCodable {
    var hk_macao_pass: YHCertificatesModel?
    var passport: YHCertificatesModel?
    var cn_identity_card: YHCertificatesModel?
}

struct YHCertificatesModel: SmartCodable {
    var number: String?
    var issue_at: String?
    var issue_date_start_at: String?
    var issue_date_end_at: String?
    var img_front: String?
    var img_back: String?
    var passport_type: String?
}
