Browse Source

remove selfi in KYC 3 step

pull/1/head
InKwon James Kim 5 years ago
parent
commit
70611950e1
  1. 2
      GMERemittance/AppDelegate.swift
  2. 10
      GMERemittance/Module/RegisterModules/KYC/Kyc/Application Logic/Interactor/KycInteractor.swift
  3. 28
      GMERemittance/Module/RegisterModules/KYC/kycForm3/User Interface/View/kycForm3.storyboard

2
GMERemittance/AppDelegate.swift

@ -20,7 +20,7 @@ import IQKeyboardManagerSwift
import LGSideMenuController
import Localize_Swift
let server: Server = .live
let server: Server = .stagging
var overlayView: UIView?
@UIApplicationMain

10
GMERemittance/Module/RegisterModules/KYC/Kyc/Application Logic/Interactor/KycInteractor.swift

@ -218,10 +218,10 @@ class KycInteractor {
var sucks = true // isValid = true
let formDick =
[
KycForm3FieldKeys.selfieImage: model?.selfieImage,
// KycForm3FieldKeys.selfieImage: model?.selfieImage,
// KycForm3FieldKeys.passbookImage: model?.passbookImage
KycForm3FieldKeys.frontImage: model?.frontImage,
KycForm3FieldKeys.backImage: model?.backImage,
KycForm3FieldKeys.passbookImage: model?.passbookImage
KycForm3FieldKeys.backImage: model?.backImage
]
formDick.forEach({
@ -348,10 +348,6 @@ extension KycInteractor: KycInteractorInput {
let params = self.getParams(model: model)
let images = self.getImageParams(model: model)
self.service.submit(param: params, images: images, success: { (response) in
// print(response?.firstName)
// Todo: After success what?
// show message from api
let userId = Utility.getMyUserName()
var param = ["userId" : userId]

28
GMERemittance/Module/RegisterModules/KYC/kycForm3/User Interface/View/kycForm3.storyboard

@ -27,7 +27,7 @@
<rect key="frame" x="0.0" y="0.0" width="375" height="615"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rUB-Um-w1X">
<rect key="frame" x="0.0" y="0.0" width="375" height="594"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="447"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Upload your documents" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mVf-MD-cFF">
<rect key="frame" x="10" y="0.0" width="355" height="50"/>
@ -40,16 +40,16 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Note: Verification Id can be your National ID or Alien Reg ID or Passport Front selected on Security Screen" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tXr-oG-t5s">
<rect key="frame" x="24" y="58" width="327" height="29"/>
<rect key="frame" x="24" y="70" width="327" height="29"/>
<fontDescription key="fontDescription" name="SanFranciscoDisplay-Regular" family="San Francisco Display" pointSize="12"/>
<color key="textColor" red="0.29019607843137252" green="0.29019607843137252" blue="0.29019607843137252" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VoJ-vJ-v30">
<rect key="frame" x="24" y="98" width="327" height="406"/>
<rect key="frame" x="24" y="129" width="327" height="218"/>
<subviews>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="10" translatesAutoresizingMaskIntoConstraints="NO" id="dk7-gc-v1u">
<rect key="frame" x="0.0" y="0.0" width="327" height="406"/>
<stackView opaque="NO" contentMode="scaleToFill" axis="vertical" distribution="fillEqually" spacing="30" translatesAutoresizingMaskIntoConstraints="NO" id="dk7-gc-v1u">
<rect key="frame" x="0.0" y="0.0" width="327" height="218"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sSt-BJ-VAQ" userLabel="ViewFront">
<rect key="frame" x="0.0" y="0.0" width="327" height="94"/>
@ -125,7 +125,7 @@
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qgv-aT-tmu" userLabel="ViewBack">
<rect key="frame" x="0.0" y="104" width="327" height="94"/>
<rect key="frame" x="0.0" y="124" width="327" height="94"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CfX-c7-LZV">
<rect key="frame" x="2" y="2" width="98" height="90"/>
@ -197,8 +197,8 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oMK-PG-o8t" userLabel="selfie">
<rect key="frame" x="0.0" y="208" width="327" height="94"/>
<view hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oMK-PG-o8t" userLabel="selfie">
<rect key="frame" x="0.0" y="218" width="327" height="94"/>
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="31r-ka-1Yr">
<rect key="frame" x="2" y="2" width="98" height="90"/>
@ -273,8 +273,8 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Q5-WL-G5r" userLabel="ViewPassbook">
<rect key="frame" x="0.0" y="312" width="327" height="94"/>
<view hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1Q5-WL-G5r" userLabel="ViewPassbook">
<rect key="frame" x="0.0" y="218" width="327" height="94"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wpy-Ta-HFS">
<rect key="frame" x="2" y="2" width="98" height="90"/>
@ -367,7 +367,7 @@
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w8k-2p-JDg">
<rect key="frame" x="87.5" y="524" width="200" height="50"/>
<rect key="frame" x="87.5" y="377" width="200" height="50"/>
<color key="backgroundColor" red="0.92941176469999998" green="0.10980392160000001" blue="0.14117647059999999" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="50" id="H19-mH-yjS"/>
@ -389,18 +389,18 @@
</subviews>
<color key="backgroundColor" red="0.90588235289999997" green="0.92941176469999998" blue="0.94901960780000005" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="top" secondItem="tXr-oG-t5s" secondAttribute="bottom" constant="11" id="0Mz-nZ-8nH"/>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="top" secondItem="tXr-oG-t5s" secondAttribute="bottom" constant="30" id="0Mz-nZ-8nH"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="trailing" secondItem="VoJ-vJ-v30" secondAttribute="trailing" id="1Zk-In-WlX"/>
<constraint firstItem="mVf-MD-cFF" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" constant="10" id="30G-SY-zgD"/>
<constraint firstAttribute="trailing" secondItem="VoJ-vJ-v30" secondAttribute="trailing" constant="24" id="8Fb-xQ-vRq"/>
<constraint firstItem="mVf-MD-cFF" firstAttribute="top" secondItem="rUB-Um-w1X" secondAttribute="top" id="PPi-3p-7Wv"/>
<constraint firstItem="w8k-2p-JDg" firstAttribute="centerX" secondItem="rUB-Um-w1X" secondAttribute="centerX" id="VZv-i1-dRJ"/>
<constraint firstAttribute="bottom" secondItem="w8k-2p-JDg" secondAttribute="bottom" constant="20" id="Vgn-Rq-JGc"/>
<constraint firstItem="w8k-2p-JDg" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="bottom" constant="20" id="WMA-05-lHV"/>
<constraint firstItem="w8k-2p-JDg" firstAttribute="top" secondItem="VoJ-vJ-v30" secondAttribute="bottom" constant="30" id="WMA-05-lHV"/>
<constraint firstAttribute="trailing" secondItem="mVf-MD-cFF" secondAttribute="trailing" constant="10" id="fOW-mV-Cdl"/>
<constraint firstItem="VoJ-vJ-v30" firstAttribute="leading" secondItem="rUB-Um-w1X" secondAttribute="leading" constant="24" id="fY8-5r-ydu"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="leading" secondItem="VoJ-vJ-v30" secondAttribute="leading" id="iiQ-Md-eSB"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="top" secondItem="mVf-MD-cFF" secondAttribute="bottom" constant="8" id="qiH-tU-an9"/>
<constraint firstItem="tXr-oG-t5s" firstAttribute="top" secondItem="mVf-MD-cFF" secondAttribute="bottom" constant="20" id="qiH-tU-an9"/>
</constraints>
</view>
</subviews>

Loading…
Cancel
Save