InKwon James Kim
5 years ago
28 changed files with 901 additions and 141 deletions
-
BIN.DS_Store
-
28GME Remit.xcodeproj/project.pbxproj
-
9GME Remit/APIs/Router/APIRouter.swift
-
1GME Remit/Modules/Home/User Interface/Wireframe/HomeWireframe.swift
-
5GME Remit/Modules/RegisterModules/Register/User Interface/Wireframe/RegisterWireframe.swift
-
1GME Remit/Modules/RegisterModules/UserAuthentication/NewRegister/User Interface/View/NewRegisterViewController.swift
-
10GME Remit/Modules/RegisterModules/UserAuthentication/NewRegister/User Interface/Wireframe/NewRegisterWireframe.swift
-
16GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Interactor/NewRegisterStep1Interactor.swift
-
5GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Interactor/NewRegisterStep1InteractorIO.swift
-
34GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/KYCInfromation.swift
-
21GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/KeyValue.swift
-
79GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/PersonalInformation.swift
-
23GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/PictureInformation.swift
-
100GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/PrimaryInformation.swift
-
12GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Model/PropertyUtility.swift
-
7GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Service/NewRegisterStep1Service.swift
-
5GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/Application Logic/Service/NewRegisterStep1ServiceType.swift
-
186GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/User Interface/Presenter/NewRegisterStep1Presenter.swift
-
131GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/User Interface/View/NewRegisterStep1.storyboard
-
284GME Remit/Modules/RegisterModules/UserAuthentication/NewRegisterStep1/User Interface/View/NewRegisterStep1ViewController.swift
-
4GME Remit/Modules/RemittanceModules/DomesticModules/DomesticRemit/Application Logic/Model/BalanceModel.swift
-
3GME Remit/Modules/RemittanceModules/DomesticModules/DomesticRemit/User Interface/View/ViewModel/DomesticRemitViewModel.swift
-
1GME Remit/Modules/SplashScreen/User Interface/Wireframe/SplashScreenWireframe.swift
-
2GME Remit/MultiLanguages/ur-PK.lproj/Localizable.strings
-
8GME Remit/Utilities/CustomUI/ValidationTextField.swift
-
37GME Remit/Utilities/HotLine/Application Logic/Service/HotLineService.swift
-
2GME Remit/Utilities/TablePresenter/User Interface/View/TablePresenter.storyboard
-
20GME RemitTests/APITest.swift
@ -0,0 +1,34 @@ |
|||
// |
|||
// KYCInfromation.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 2019/12/10. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct KYCInformation: Mappable { |
|||
var cities: [KeyValue]? |
|||
var banks: [KeyValue]? |
|||
var idTypes: [KeyValue]? |
|||
var branches: [KeyValue]? |
|||
|
|||
var personalInformation: PersonalInformation? |
|||
var primaryInformation: PrimaryInformation? |
|||
var pictures: PictureInformation? |
|||
|
|||
init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
cities <- map["City"] |
|||
banks <- map["Bank"] |
|||
idTypes <- map["IdType"] |
|||
branches <- map["Branch"] |
|||
personalInformation <- map["personalInformation"] |
|||
primaryInformation <- map["primaryInformation"] |
|||
pictures <- map["pictures"] |
|||
} |
|||
} |
@ -0,0 +1,79 @@ |
|||
// |
|||
// PersonalInformation.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 2019/12/10. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct PersonalInformation: Mappable { |
|||
var fullName: String? |
|||
var gender: String? |
|||
var dob: String? |
|||
var email: String? |
|||
var city: String? |
|||
var address: String? |
|||
|
|||
init( |
|||
fullName: String?, |
|||
gender: String?, |
|||
dob: String?, |
|||
email: String?, |
|||
city: String?, |
|||
address: String? |
|||
) { |
|||
self.fullName = fullName |
|||
self.gender = gender |
|||
self.dob = dob |
|||
self.email = email |
|||
self.city = city |
|||
self.address = address |
|||
} |
|||
|
|||
init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
fullName <- map["fullName"] |
|||
gender <- map["gender"] |
|||
dob <- map["dob"] |
|||
email <- map["email"] |
|||
city <- map["city"] |
|||
address <- map["address"] |
|||
} |
|||
} |
|||
|
|||
extension PersonalInformation: Equatable { |
|||
static func == (lhs: Self, rhs: Self) -> Bool { |
|||
return lhs.fullName == rhs.fullName && |
|||
lhs.fullName == rhs.fullName && |
|||
lhs.gender == rhs.gender && |
|||
lhs.dob == rhs.dob && |
|||
lhs.email == rhs.email && |
|||
lhs.city == rhs.city && |
|||
lhs.address == rhs.address |
|||
} |
|||
} |
|||
|
|||
extension PersonalInformation: PropertyUtility { |
|||
func isFilledFully() -> Bool { |
|||
return fullName != nil && |
|||
gender != nil && |
|||
dob != nil && |
|||
email != nil && |
|||
city != nil && |
|||
address != nil |
|||
} |
|||
|
|||
func isNilFully() -> Bool { |
|||
return fullName == nil && |
|||
gender == nil && |
|||
dob == nil && |
|||
email == nil && |
|||
city == nil && |
|||
address == nil |
|||
} |
|||
} |
@ -0,0 +1,23 @@ |
|||
// |
|||
// PictureInformation.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 2019/12/10. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct PictureInformation: Mappable { |
|||
var passportPicture: String? |
|||
var anotherIDPicture: String? |
|||
|
|||
init?(map: Map) { |
|||
|
|||
} |
|||
|
|||
mutating func mapping(map: Map) { |
|||
passportPicture <- map["bankName"] |
|||
anotherIDPicture <- map["bankAccount"] |
|||
} |
|||
} |
@ -0,0 +1,100 @@ |
|||
// |
|||
// PrimaryInformation.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 2019/12/10. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import ObjectMapper |
|||
|
|||
struct PrimaryInformation: Mappable { |
|||
var bankID: String? |
|||
var bankAccount: String? |
|||
var passportNumber: String? |
|||
var passportIssueDate: String? |
|||
var passportExpiryDate: String? |
|||
var anotherIDType: String? |
|||
var anotherIDNumber: String? |
|||
var anotherIDIssueDate: String? |
|||
var anotherIDExpiryDate: String? |
|||
var branchID: String? |
|||
var refferalCode: String? |
|||
|
|||
init( |
|||
bankID: String?, |
|||
bankAccount: String?, |
|||
passportNumber: String?, |
|||
passportIssueDate: String?, |
|||
passportExpiryDate: String?, |
|||
anotherIDType: String?, |
|||
anotherIDNumber: String?, |
|||
anotherIDIssueDate: String?, |
|||
anotherIDExpiryDate: String?, |
|||
branchID: String?, |
|||
refferalCode: String? |
|||
) { |
|||
self.bankID = bankID |
|||
self.bankAccount = bankAccount |
|||
self.passportNumber = passportNumber |
|||
self.passportIssueDate = passportIssueDate |
|||
self.passportExpiryDate = passportExpiryDate |
|||
self.anotherIDType = anotherIDType |
|||
self.anotherIDNumber = anotherIDNumber |
|||
self.branchID = branchID |
|||
self.refferalCode = refferalCode |
|||
} |
|||
|
|||
init?(map: Map) { } |
|||
|
|||
mutating func mapping(map: Map) { |
|||
bankID <- map["bankID"] |
|||
bankAccount <- map["bankAccount"] |
|||
passportNumber <- map["passportNumber"] |
|||
passportIssueDate <- map["passportIssueDate"] |
|||
passportExpiryDate <- map["passportExpiryDate"] |
|||
anotherIDType <- map["anotherIDType"] |
|||
anotherIDNumber <- map["anotherIDNumber"] |
|||
anotherIDIssueDate <- map["anotherIDIssueDate"] |
|||
anotherIDExpiryDate <- map["anotherIDExpiryDate"] |
|||
branchID <- map["branchID"] |
|||
refferalCode <- map["refferalCode"] |
|||
} |
|||
} |
|||
|
|||
extension PrimaryInformation: Equatable { |
|||
static func == (lhs: Self, rhs: Self) -> Bool { |
|||
return lhs.bankID == rhs.bankID && |
|||
lhs.bankAccount == rhs.bankAccount && |
|||
lhs.passportNumber == rhs.passportNumber && |
|||
lhs.passportIssueDate == rhs.passportIssueDate && |
|||
lhs.passportExpiryDate == rhs.passportExpiryDate && |
|||
lhs.anotherIDType == rhs.anotherIDType && |
|||
lhs.anotherIDNumber == rhs.anotherIDNumber && |
|||
lhs.branchID == rhs.branchID && |
|||
lhs.refferalCode == rhs.refferalCode |
|||
} |
|||
} |
|||
|
|||
extension PrimaryInformation: PropertyUtility { |
|||
func isFilledFully() -> Bool { |
|||
return bankID != nil && |
|||
bankAccount != nil && |
|||
passportNumber != nil && |
|||
passportIssueDate != nil && |
|||
passportExpiryDate != nil && |
|||
branchID != nil |
|||
} |
|||
|
|||
func isNilFully() -> Bool { |
|||
return bankID == nil && |
|||
bankAccount == nil && |
|||
passportNumber == nil && |
|||
passportIssueDate == nil && |
|||
passportExpiryDate == nil && |
|||
anotherIDType == nil && |
|||
anotherIDNumber == nil && |
|||
branchID == nil && |
|||
refferalCode == nil |
|||
} |
|||
} |
@ -0,0 +1,12 @@ |
|||
// |
|||
// IsNilProtocol.swift |
|||
// GME Remit |
|||
// |
|||
// Created by InKwon James Kim on 2019/12/11. |
|||
// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
protocol PropertyUtility { |
|||
func isFilledFully() -> Bool |
|||
func isNilFully() -> Bool |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue