stepie.ub
1 year ago
12 changed files with 331 additions and 0 deletions
-
34GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Interactor/ChooseKycDocumentTypeInteractor.swift
-
15GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Interactor/ChooseKycDocumentTypeInteractorIO.swift
-
18GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Service/ChooseKycDocumentTypeService.swift
-
13GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Service/ChooseKycDocumentTypeServiceType.swift
-
18GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/ChooseDocTableViewCell.swift
-
31GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/ChooseKycDocumentType.storyboard
-
42GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/ChooseKycDocumentTypeViewController.swift
-
11GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/ChooseKycDocumentTypeViewInterface.swift
-
3GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/Model/ChooseDocumentRequestModel.swift
-
100GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/View/Model/RegistrationDocumentTypeResponseModel.swift
-
33GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Wireframe/ChooseKycDocumentTypeWireframe.swift
-
13GME Remit/Modules/RegisterModules/UserAuthentication/ChooseKycDocumentType/Wireframe/ChooseKycDocumentTypeWireframeInput.swift
@ -0,0 +1,34 @@ |
|||
// |
|||
// ChooseKycDocumentTypeInteractor.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import Foundation |
|||
|
|||
class ChooseKycDocumentTypeInteractor { |
|||
|
|||
// MARK: Properties |
|||
|
|||
weak var output: ChooseKycDocumentTypeInteractorOutput? |
|||
private let service: ChooseKycDocumentTypeServiceType |
|||
weak var view: ChooseKycDocumentTypeViewInterface? |
|||
var wireframe: ChooseKycDocumentTypeWireframeInput? |
|||
|
|||
// MARK: Initialization |
|||
|
|||
init(service: ChooseKycDocumentTypeServiceType) { |
|||
self.service = service |
|||
} |
|||
|
|||
// MARK: Converting entities |
|||
} |
|||
|
|||
// MARK: ChooseKycDocumentType interactor input interface |
|||
|
|||
extension ChooseKycDocumentTypeInteractor: ChooseKycDocumentTypeInteractorInput { |
|||
|
|||
} |
|||
|
@ -0,0 +1,15 @@ |
|||
// |
|||
// ChooseKycDocumentTypeInteractorIO.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
protocol ChooseKycDocumentTypeInteractorInput: class { |
|||
|
|||
} |
|||
|
|||
protocol ChooseKycDocumentTypeInteractorOutput: class { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
// |
|||
// ChooseKycDocumentTypeService.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import Foundation |
|||
|
|||
class ChooseKycDocumentTypeService: ChooseKycDocumentTypeServiceType { |
|||
|
|||
// MARK: Properties |
|||
|
|||
// MARK: Initialization |
|||
|
|||
// MARK: Data management |
|||
} |
@ -0,0 +1,13 @@ |
|||
// |
|||
// ChooseKycDocumentTypeServiceType.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import Foundation |
|||
|
|||
protocol ChooseKycDocumentTypeServiceType: class { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class ChooseDocTableViewCell: UITableViewCell { |
|||
|
|||
override func awakeFromNib() { |
|||
super.awakeFromNib() |
|||
// Initialization code |
|||
} |
|||
|
|||
override func setSelected(_ selected: Bool, animated: Bool) { |
|||
super.setSelected(selected, animated: animated) |
|||
|
|||
// Configure the view for the selected state |
|||
} |
|||
|
|||
} |
@ -0,0 +1,31 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13196" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="HSb-ou-7T5"> |
|||
<device id="retina4_7" orientation="portrait"> |
|||
<adaptation id="fullscreen"/> |
|||
</device> |
|||
<dependencies> |
|||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13173"/> |
|||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> |
|||
</dependencies> |
|||
<scenes> |
|||
<!--ChooseKycDocumentType--> |
|||
<scene sceneID="R60-Pu-Hpy"> |
|||
<objects> |
|||
<viewController storyboardIdentifier="ChooseKycDocumentTypeViewController" title="ChooseKycDocumentType" id="HSb-ou-7T5" customClass="ChooseKycDocumentTypeViewController" sceneMemberID="viewController"> |
|||
<layoutGuides> |
|||
<viewControllerLayoutGuide type="top" id="y1H-iV-BwG"/> |
|||
<viewControllerLayoutGuide type="bottom" id="PYB-Kq-ghm"/> |
|||
</layoutGuides> |
|||
<view key="view" contentMode="scaleToFill" id="9Uc-9s-KgO"> |
|||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> |
|||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> |
|||
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/> |
|||
</view> |
|||
</viewController> |
|||
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/> |
|||
</objects> |
|||
<point key="canvasLocation" x="-91" y="233"/> |
|||
</scene> |
|||
</scenes> |
|||
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> |
|||
</document> |
@ -0,0 +1,42 @@ |
|||
// |
|||
// ChooseKycDocumentTypeViewController.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class ChooseKycDocumentTypeViewController: UIViewController { |
|||
|
|||
// MARK: Properties |
|||
|
|||
var interactor: ChooseKycDocumentTypeInteractorInput? |
|||
|
|||
// MARK: IBOutlets |
|||
|
|||
// MARK: VC's Life cycle |
|||
|
|||
override func viewDidLoad() { |
|||
super.viewDidLoad() |
|||
self.setup() |
|||
} |
|||
|
|||
// MARK: IBActions |
|||
|
|||
// MARK: Other Functions |
|||
|
|||
private func setup() { |
|||
// all setup should be done here |
|||
} |
|||
} |
|||
|
|||
// MARK: ChooseKycDocumentTypeViewInterface |
|||
extension ChooseKycDocumentTypeViewController: ChooseKycDocumentTypeViewInterface { |
|||
|
|||
} |
|||
|
|||
extension ChooseKycDocumentTypeViewController: ChooseKycDocumentTypeInteractorOutput { |
|||
|
|||
} |
@ -0,0 +1,11 @@ |
|||
// |
|||
// ChooseKycDocumentTypeViewInterface.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
protocol ChooseKycDocumentTypeViewInterface: class { |
|||
|
|||
} |
@ -0,0 +1,3 @@ |
|||
// |
|||
|
|||
import Foundation |
@ -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"] |
|||
|
|||
} |
|||
} |
@ -0,0 +1,33 @@ |
|||
// |
|||
// ChooseKycDocumentTypeWireframe.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import UIKit |
|||
|
|||
class ChooseKycDocumentTypeWireframe { |
|||
weak var view: UIViewController! |
|||
} |
|||
|
|||
extension ChooseKycDocumentTypeWireframe: ChooseKycDocumentTypeWireframeInput { |
|||
|
|||
var storyboardName: String {return "ChooseKycDocumentType"} |
|||
|
|||
func getMainView() -> UIViewController { |
|||
let service = ChooseKycDocumentTypeService() |
|||
let interactor = ChooseKycDocumentTypeInteractor(service: service) |
|||
let viewController = viewControllerFromStoryboard(of: ChooseKycDocumentTypeViewController.self) |
|||
|
|||
viewController.interactor = interactor |
|||
interactor.output = viewController |
|||
|
|||
interactor.wireframe = self |
|||
interactor.view = viewController |
|||
|
|||
self.view = viewController |
|||
return viewController |
|||
} |
|||
} |
@ -0,0 +1,13 @@ |
|||
// |
|||
// ChooseKycDocumentTypeWireframeInput.swift |
|||
// GME Remit |
|||
// |
|||
// Created by Yuvraj Bashyal on 05/07/2023. |
|||
//Copyright © 2023 Gobal Money Express Co. Ltd. All rights reserved. |
|||
// |
|||
|
|||
import Foundation |
|||
|
|||
protocol ChooseKycDocumentTypeWireframeInput: WireframeInput { |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue