|
@ -76,45 +76,45 @@ class KycInteractor { |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
if let value = model?.firstName, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.firstName, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.firstName] = StringConstants().firstNameError |
|
|
errorsDick[KycForm1FieldKeys.firstName] = StringConstants().firstNameError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let value = model?.gender, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.gender, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.gender] = StringConstants().genderError |
|
|
errorsDick[KycForm1FieldKeys.gender] = StringConstants().genderError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let value = model?.nativeCountry, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.nativeCountry, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.nativeCountry] = StringConstants().nativeCountryError |
|
|
errorsDick[KycForm1FieldKeys.nativeCountry] = StringConstants().nativeCountryError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let value = model?.country, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.country, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.country] = StringConstants().addressError |
|
|
errorsDick[KycForm1FieldKeys.country] = StringConstants().addressError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let value = model?.occupation, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.occupation, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.occupation] = StringConstants().occupationError |
|
|
errorsDick[KycForm1FieldKeys.occupation] = StringConstants().occupationError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let value = model?.province, value != "" { |
|
|
|
|
|
|
|
|
if let value = model?.province, value.isEmpty { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.province] = StringConstants().provinceError |
|
|
errorsDick[KycForm1FieldKeys.province] = StringConstants().provinceError |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if let email = model?.email, email != "" { |
|
|
|
|
|
|
|
|
if let email = model?.email, email.isEmpty { |
|
|
if !Utility.isValidEmail(email: email){ |
|
|
if !Utility.isValidEmail(email: email){ |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.email] = StringConstants().emailError |
|
|
errorsDick[KycForm1FieldKeys.email] = StringConstants().emailError |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if let mobileNo = model?.mobile, mobileNo != "", mobileNo.count != AppConstants.maxKoreanMobileNoLength { |
|
|
|
|
|
|
|
|
if let mobileNo = model?.mobile, mobileNo.isEmpty , mobileNo.count != AppConstants.maxKoreanMobileNoLength { |
|
|
sucks = false |
|
|
sucks = false |
|
|
errorsDick[KycForm1FieldKeys.mobileNumber] = StringConstants().mobileNumberError |
|
|
errorsDick[KycForm1FieldKeys.mobileNumber] = StringConstants().mobileNumberError |
|
|
} |
|
|
} |
|
|