From aef8c24e03eb444c61d5188e381e0d8b2bb34e48 Mon Sep 17 00:00:00 2001 From: InKwon James Kim Date: Mon, 7 Oct 2019 18:21:03 +0900 Subject: [PATCH] applied swift_lint --- .DS_Store | Bin 10244 -> 10244 bytes .gitignore | 1 + .swiftlint.yml | 5 +- GME Remit.xcodeproj/project.pbxproj | 574 +----------------- GME Remit/Extensions/UIColor+Ext.swift | 1 - GME Remit/Extensions/UIImageView+Ext.swift | 2 +- .../PaymentModeRecipientViewModel.swift | 31 + GME Remit/Models/Response/NativeCountry.swift | 2 +- GME Remit/Models/Response/ResendDetail.swift | 1 - .../Models/Response/ResendListModel.swift | 1 - .../Response/SendMoneyProvinceViewModel.swift | 1 - .../Response/SendMoneyRelationViewModel.swift | 1 - .../SendMoneyTransFerReasonViewModel.swift | 1 - .../Wireframe/AddAccountWireframe.swift | 4 +- .../Interactor/AutoDebitInteractorIO.swift | 3 - .../Service/AutoDebitServiceType.swift | 2 - .../AutoDebitModuleInterface.swift | 1 - .../Presenter/AutoDebitPresenter.swift | 4 +- .../Wireframe/AutoDebitWireframeInput.swift | 1 - .../BiometricAuthenticationWireframe.swift | 2 +- .../Wireframe/ExchangeRatesWireframe.swift | 2 - .../Service/ForgotPasswordServiceType.swift | 1 - .../View/HomeViewController.swift | 30 +- .../Interactor/MainInteractor.swift | 1 - .../Service/MainService.swift | 1 - .../MainModuleInterface.swift | 4 +- .../View/MainViewController.swift | 2 - .../View/MainViewInterface.swift | 5 +- .../Wireframe/MainWireframeInput.swift | 1 - .../Model/Recipient/Recipient.swift | 2 +- .../User Interface/View/Recipients.storyboard | 20 +- .../Wireframe/SetupRecipientWireframe.swift | 1 - .../View/kycForm1ViewController.swift | 31 +- .../Wireframe/kycForm1Wireframe.swift | 14 +- .../Wireframe/kycForm2Wireframe.swift | 9 +- .../View/kycForm3ViewController.swift | 6 +- .../Wireframe/kycForm3Wireframe.swift | 48 +- .../View/PennyTestViewController.swift | 8 +- .../Service/PennyTestSubmitServiceType.swift | 13 +- .../Service/RegisterServiceType.swift | 54 +- .../Wireframe/RegisterWireframe.swift | 2 +- .../Model/DomesticRemitResponseModel.swift | 1 - .../RecentHistoriesModuleInterface.swift | 2 +- .../Wireframe/RecentHistoriesWireframe.swift | 8 +- .../RecentHistoriesWireframeInputOutput.swift | 2 +- .../PaymentSelectionInteractor.swift | 31 - .../PaymentSelectionInteractorIO.swift | 15 - .../Service/PaymentSelectionService.swift | 19 - .../Service/PaymentSelectionServiceType.swift | 13 - .../PaymentSelectionModuleInterface.swift | 11 - .../Presenter/PaymentSelectionPresenter.swift | 32 - .../Cells/PaymentSelectionTableViewCell.swift | 27 - .../View/PaymentSelection.storyboard | 194 ------ .../View/PaymentSelectionViewController.swift | 95 --- .../View/PaymentSelectionViewInterface.swift | 10 - .../Wireframe/PaymentSelectionWireframe.swift | 43 -- .../PaymentSelectionWireframeInput.swift | 13 - .../Interactor/ResendInteractor.swift | 46 -- .../Interactor/ResendInteractorIO.swift | 16 - .../Service/ResendService.swift | 18 - .../Service/ResendServiceType.swift | 38 -- .../ResendModuleInterface.swift | 13 - .../Presenter/ResendPresenter.swift | 71 --- .../View/Cell/ResendTableViewCell.swift | 50 -- .../User Interface/View/Resend.storyboard | 291 --------- .../View/ResendViewController.swift | 255 -------- .../View/ResendViewInterface.swift | 15 - .../Wireframe/ResendWireframe.swift | 34 -- .../Wireframe/ResendWireframeInput.swift | 13 - .../Interactor/ResendExchangeInteractor.swift | 90 --- .../ResendExchangeInteractorIO.swift | 19 - .../Service/ResendExchangeService.swift | 22 - .../Service/ResendExchangeServiceType.swift | 37 -- .../ResendExchangeModuleInterface.swift | 15 - .../Presenter/ResendExchangePresenter.swift | 57 -- .../View/ResendExchange.storyboard | 546 ----------------- .../View/ResendExchangeViewController.swift | 453 -------------- .../View/ResendExchangeViewInterface.swift | 16 - .../Wireframe/ResendExchangeWireframe.swift | 41 -- .../ResendExchangeWireframeInput.swift | 13 - .../Presenter/SelectCouponPresenter.swift | 2 - .../User Interface/View/Cell/CouponCell.swift | 5 +- .../View/SelectCouponViewController.swift | 3 +- .../Wireframe/SelectCouponWireframe.swift | 9 +- .../Wireframe/SelectPaymentWireframe.swift | 60 +- .../Interactor/SendMoneyCodeInteractor.swift | 60 +- .../Service/SendMoneyCodeService.swift | 1 - .../Service/SendMoneyCodeServiceType.swift | 58 +- .../Presenter/SendMoneyCodePresenter.swift | 7 +- .../View/SendMoneyCode.storyboard | 4 +- .../Application Logic/Model/Coupon.swift | 2 - .../SendMoneyExchangeRateServiceType.swift | 2 +- ...SendMoneyExchangeRateModuleInterface.swift | 16 +- .../Presenter/SendMoneyParentPresenter.swift | 2 - .../View/SendMoneyParentViewController.swift | 5 - ...enMoneyPaymentModeRecipientViewModel.swift | 1 - .../Wireframe/SendMoneyParentWireframe.swift | 53 +- .../SendMoneyPaymentModeInteractor.swift | 59 -- .../SendMoneyPaymentModeInteractorIO.swift | 20 - .../Service/SendMoneyPaymentModeService.swift | 18 - .../SendMoneyPaymentModeServiceType.swift | 82 --- .../SendMoneyPaymentModeModuleInterface.swift | 14 - .../SendMoneyPaymentModePresenter.swift | 93 --- .../BankBranchPicker.storyboard | 237 -------- .../BankBranchPickerCell.swift | 27 - .../BankBranchPickerViewController.swift | 278 --------- ...ndMoenyPaymentModeCollectionViewCell.swift | 45 -- .../View/SendMoneyPaymentMode.storyboard | 275 --------- .../SendMoneyPaymentModeViewController.swift | 520 ---------------- .../SendMoneyPaymentModeViewInterface.swift | 19 - .../BankPicker/BankPicker.storyboard | 245 -------- .../BankPicker/BankPickerCell.swift | 27 - .../BankPicker/BankPickerViewController.swift | 269 -------- .../PaymentModeRecipientViewModel.swift | 32 - .../SendMoneyPaymentModeWireframe.swift | 104 ---- .../SendMoneyPaymentModeWireframeInput.swift | 14 - .../SendMoneyVerificationServiceType.swift | 52 +- .../SendMoneyVerificationPresenter.swift | 57 +- .../SendMoneyVerificationViewController.swift | 19 +- .../Interactor/MessageComposeInteractor.swift | 9 +- .../Presenter/MessageComposePresenter.swift | 1 - .../Wireframe/MessageComposeWireframe.swift | 1 - .../TransactionHistoryGroupPresenter.swift | 1 - .../Presenter/DetailOrderPresenter.swift | 2 +- .../Interactor/OrderHistoryInteractor.swift | 4 +- .../Interactor/OrderHistoryInteractorIO.swift | 1 - .../Service/OrderHistoryService.swift | 2 +- .../OrderHistoryModuleInterface.swift | 7 +- .../Presenter/OrderHistoryPresenter.swift | 4 +- .../User Interface/View/Cell/OrderCell.swift | 2 +- .../View/OrderHistoryViewController.swift | 19 +- .../View/OrderHistoryViewInterface.swift | 2 - .../Wireframe/OrderHistoryWireframe.swift | 8 +- .../OrderHistoryWireframeInput.swift | 3 +- .../Interactor/RedeemInteractor.swift | 31 +- .../Application Logic/Model/Branch.swift | 2 - .../Service/RedeemService.swift | 23 +- .../Service/RedeemServiceType.swift | 4 +- .../Presenter/RedeemPresenter.swift | 4 +- .../Wireframe/RedeemWireframe.swift | 5 +- .../Interactor/RewardInteractor.swift | 8 +- .../Model/RewardProduct.swift | 1 - .../Service/RewardService.swift | 34 +- .../Service/RewardServiceType.swift | 6 +- .../Cell/RewardItemCollectionViewCell.swift | 6 +- .../Wireframe/RewardWireframe.swift | 3 +- .../AutoRefundsViewController.swift | 1 - .../View/WalletStatementViewController.swift | 5 +- GME Remit/Utilities/AppConstants.swift | 2 +- .../ConfirmAlert/ConfirmViewController.swift | 12 +- .../ConfirmAlert/ConfirmViewController.xib | 91 +-- .../TablePresenterInteractorIO.swift | 1 - GME RemitTests/APITest.swift | 2 +- GME RemitTests/DatabaseTest.swift | 5 +- GME RemitUITests/GME RemitUITests.swift | 36 +- 155 files changed, 577 insertions(+), 6145 deletions(-) create mode 100644 GME Remit/Models/Request/PaymentModeRecipientViewModel.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/Application Logic/Interactor/PaymentSelectionInteractor.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/Application Logic/Interactor/PaymentSelectionInteractorIO.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/Application Logic/Service/PaymentSelectionService.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/Application Logic/Service/PaymentSelectionServiceType.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/Module Interface/PaymentSelectionModuleInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/Presenter/PaymentSelectionPresenter.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/View/Cells/PaymentSelectionTableViewCell.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/View/PaymentSelection.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/View/PaymentSelectionViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/View/PaymentSelectionViewInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/Wireframe/PaymentSelectionWireframe.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/PaymentSelection/User Interface/Wireframe/PaymentSelectionWireframeInput.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/Application Logic/Interactor/ResendInteractor.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/Application Logic/Interactor/ResendInteractorIO.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/Application Logic/Service/ResendService.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/Application Logic/Service/ResendServiceType.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/Module Interface/ResendModuleInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/Presenter/ResendPresenter.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/View/Cell/ResendTableViewCell.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/View/Resend.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/View/ResendViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/View/ResendViewInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/Wireframe/ResendWireframe.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/Resend/User Interface/Wireframe/ResendWireframeInput.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/Application Logic/Interactor/ResendExchangeInteractor.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/Application Logic/Interactor/ResendExchangeInteractorIO.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/Application Logic/Service/ResendExchangeService.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/Application Logic/Service/ResendExchangeServiceType.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/Module Interface/ResendExchangeModuleInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/Presenter/ResendExchangePresenter.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/View/ResendExchange.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/View/ResendExchangeViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/View/ResendExchangeViewInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/Wireframe/ResendExchangeWireframe.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/ResendExchange/User Interface/Wireframe/ResendExchangeWireframeInput.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/Application Logic/Interactor/SendMoneyPaymentModeInteractor.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/Application Logic/Interactor/SendMoneyPaymentModeInteractorIO.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/Application Logic/Service/SendMoneyPaymentModeService.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/Application Logic/Service/SendMoneyPaymentModeServiceType.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/Module Interface/SendMoneyPaymentModeModuleInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPicker.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPickerCell.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/BankBranchPicker/BankBranchPickerViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/Cells/SendMoenyPaymentModeCollectionViewCell.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentMode.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewInterface.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/ViewModels/BankPicker/BankPicker.storyboard delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/ViewModels/BankPicker/BankPickerCell.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/ViewModels/BankPicker/BankPickerViewController.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/View/ViewModels/PaymentModeRecipientViewModel.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/Wireframe/SendMoneyPaymentModeWireframe.swift delete mode 100644 GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyPaymentMode/User Interface/Wireframe/SendMoneyPaymentModeWireframeInput.swift diff --git a/.DS_Store b/.DS_Store index 976d6ebdf827536bebbd8675acdfd9f170ce7199..8e2d86e1c6a6b26eba43d8de2d13c1d183e6c6bb 100644 GIT binary patch delta 43 kcmZn(XbIS0EygUE`)iVz-sBuHUPi&qRbmJE(M7r#0Xp~%l>h($ delta 43 kcmZn(XbIS0EygTR%`!<$Z*q Void ) - /// Delete selected row's KFTC bank account /// /// - Parameters: @@ -36,7 +35,6 @@ protocol AutoDebitServiceType: class, ApiServiceType { failure: @escaping (Error) -> Void ) - /// Refresh token /// /// - Parameters: diff --git a/GME Remit/Modules/AutoDebitModules/AutoDebit/Module Interface/AutoDebitModuleInterface.swift b/GME Remit/Modules/AutoDebitModules/AutoDebit/Module Interface/AutoDebitModuleInterface.swift index 2017b1d2..22f90bc7 100644 --- a/GME Remit/Modules/AutoDebitModules/AutoDebit/Module Interface/AutoDebitModuleInterface.swift +++ b/GME Remit/Modules/AutoDebitModules/AutoDebit/Module Interface/AutoDebitModuleInterface.swift @@ -18,7 +18,6 @@ protocol AutoDebitModuleInterface: class { /// - account: bank account for delete func deleteKFTCBankAccount(of username: String, with account: Account) - /// Present AddAccount ViewController in front of these ViewController /// /// - Parameter model: KFTCModel diff --git a/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Presenter/AutoDebitPresenter.swift b/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Presenter/AutoDebitPresenter.swift index 78ac6405..00763e5e 100644 --- a/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Presenter/AutoDebitPresenter.swift +++ b/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Presenter/AutoDebitPresenter.swift @@ -32,7 +32,7 @@ extension AutoDebitPresenter: AutoDebitModuleInterface { interactor?.deleteKFTCBankAccount(of: username, with: account) } - func goAddAccount(model: KFTCModel?){ + func goAddAccount(model: KFTCModel?) { wireframe?.goAddAccountViewController(with: model) } @@ -67,7 +67,7 @@ extension AutoDebitPresenter: AutoDebitInteractorOutput { view?.didDeleteAccount() } - func didFailDeleteAccount(with error: Error){ + func didFailDeleteAccount(with error: Error) { view?.endLoading() view?.didFailDeleteAccount(with: error) } diff --git a/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Wireframe/AutoDebitWireframeInput.swift b/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Wireframe/AutoDebitWireframeInput.swift index bf4e8fdb..beb69923 100644 --- a/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Wireframe/AutoDebitWireframeInput.swift +++ b/GME Remit/Modules/AutoDebitModules/AutoDebit/User Interface/Wireframe/AutoDebitWireframeInput.swift @@ -13,7 +13,6 @@ protocol AutoDebitWireframeInput: WireframeInput { /// - Parameter model: KFTCModel func goAddAccountViewController(with model: KFTCModel?) - /// Present Refresh Token /// /// - Parameters: diff --git a/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift b/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift index 46428029..9ec4a89c 100644 --- a/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift +++ b/GME Remit/Modules/BiometricAuthModules/BiometricAuthentication/User Interface/Wireframe/BiometricAuthenticationWireframe.swift @@ -42,7 +42,7 @@ extension BiometricAuthenticationWireframe: BiometricAuthenticationWireframeInpu let vc = self.view as? BiometricAuthenticationViewController ?? BiometricAuthenticationViewController() - if let bioPolicy = delegate?.doSelectLocalAuthenticationPolicy(vc){ + if let bioPolicy = delegate?.doSelectLocalAuthenticationPolicy(vc) { switch bioPolicy { case .deviceOwnerAuthentication: self.policy = .deviceOwnerAuthentication diff --git a/GME Remit/Modules/ExchangeRates/User Interface/Wireframe/ExchangeRatesWireframe.swift b/GME Remit/Modules/ExchangeRates/User Interface/Wireframe/ExchangeRatesWireframe.swift index 2448f6e2..38329c5a 100644 --- a/GME Remit/Modules/ExchangeRates/User Interface/Wireframe/ExchangeRatesWireframe.swift +++ b/GME Remit/Modules/ExchangeRates/User Interface/Wireframe/ExchangeRatesWireframe.swift @@ -30,6 +30,4 @@ extension ExchangeRatesWireframe: ExchangeRatesWireframeInput { self.view = viewController return viewController } - - } diff --git a/GME Remit/Modules/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift b/GME Remit/Modules/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift index 21f8db1f..5026cf6c 100644 --- a/GME Remit/Modules/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift +++ b/GME Remit/Modules/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift @@ -8,7 +8,6 @@ import Foundation - protocol ForgotPasswordServiceType: class, PasswordResetService { } diff --git a/GME Remit/Modules/Home/User Interface/View/HomeViewController.swift b/GME Remit/Modules/Home/User Interface/View/HomeViewController.swift index 904cf489..f7e77d6a 100644 --- a/GME Remit/Modules/Home/User Interface/View/HomeViewController.swift +++ b/GME Remit/Modules/Home/User Interface/View/HomeViewController.swift @@ -431,21 +431,21 @@ class HomeViewController: UIViewController { } @objc private func showResendMoney() { - let kycSubmited = user?.kyc ?? false - let pennyTestComplete = Utility.pennyTestVerified() - - if kycSubmited == true && pennyTestComplete == false { - self.show(error: StringConstants().pennyTestPrimaryBankText) - return - } - if isUserVerified() { - if let navigation = self.navigationController { - let wireframe = ResendWireframe() - wireframe.pushMainView(in: navigation) - } - } else { - self.showUnVerifiedMessage() - } +// let kycSubmited = user?.kyc ?? false +// let pennyTestComplete = Utility.pennyTestVerified() +// +// if kycSubmited == true && pennyTestComplete == false { +// self.show(error: StringConstants().pennyTestPrimaryBankText) +// return +// } +// if isUserVerified() { +// if let navigation = self.navigationController { +// let wireframe = ResendWireframe() +// wireframe.pushMainView(in: navigation) +// } +// } else { +// self.showUnVerifiedMessage() +// } } @objc private func showMobileRecharge() { diff --git a/GME Remit/Modules/Main/Application Logic/Interactor/MainInteractor.swift b/GME Remit/Modules/Main/Application Logic/Interactor/MainInteractor.swift index 83d9cf62..3e011a34 100644 --- a/GME Remit/Modules/Main/Application Logic/Interactor/MainInteractor.swift +++ b/GME Remit/Modules/Main/Application Logic/Interactor/MainInteractor.swift @@ -5,7 +5,6 @@ // Created by shishir sapkota // - import Foundation class MainInteractor: MainInteractorInput { diff --git a/GME Remit/Modules/Main/Application Logic/Service/MainService.swift b/GME Remit/Modules/Main/Application Logic/Service/MainService.swift index 9de94ee4..2b446494 100644 --- a/GME Remit/Modules/Main/Application Logic/Service/MainService.swift +++ b/GME Remit/Modules/Main/Application Logic/Service/MainService.swift @@ -5,7 +5,6 @@ // Created by shishir sapkota // - import Foundation class MainService: MainServiceType { diff --git a/GME Remit/Modules/Main/Module Interface/MainModuleInterface.swift b/GME Remit/Modules/Main/Module Interface/MainModuleInterface.swift index bf70d0d9..ab7de8d5 100644 --- a/GME Remit/Modules/Main/Module Interface/MainModuleInterface.swift +++ b/GME Remit/Modules/Main/Module Interface/MainModuleInterface.swift @@ -5,6 +5,4 @@ // Created by shishir sapkota // - -protocol MainModuleInterface: class { -} +protocol MainModuleInterface: class {} diff --git a/GME Remit/Modules/Main/User Interface/View/MainViewController.swift b/GME Remit/Modules/Main/User Interface/View/MainViewController.swift index 69bf9dd7..358ba522 100644 --- a/GME Remit/Modules/Main/User Interface/View/MainViewController.swift +++ b/GME Remit/Modules/Main/User Interface/View/MainViewController.swift @@ -5,14 +5,12 @@ // Created by shishir sapkota // - import Foundation import UIKit class MainViewController: UITabBarController { // MARK: Properties - // MARK: ENUMS: private enum Items: Int { case home = 0 diff --git a/GME Remit/Modules/Main/User Interface/View/MainViewInterface.swift b/GME Remit/Modules/Main/User Interface/View/MainViewInterface.swift index 5967def4..c042b14e 100644 --- a/GME Remit/Modules/Main/User Interface/View/MainViewInterface.swift +++ b/GME Remit/Modules/Main/User Interface/View/MainViewInterface.swift @@ -5,7 +5,4 @@ // Created by shishir sapkota // - -protocol MainViewInterface: class { - -} +protocol MainViewInterface: class {} diff --git a/GME Remit/Modules/Main/User Interface/Wireframe/MainWireframeInput.swift b/GME Remit/Modules/Main/User Interface/Wireframe/MainWireframeInput.swift index d1fd0bfd..d8e3faca 100644 --- a/GME Remit/Modules/Main/User Interface/Wireframe/MainWireframeInput.swift +++ b/GME Remit/Modules/Main/User Interface/Wireframe/MainWireframeInput.swift @@ -5,7 +5,6 @@ // Created by shishir sapkota // - import Foundation protocol MainWireframeInput: WireframeInput { diff --git a/GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/Recipient.swift b/GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/Recipient.swift index e96d14e7..7be468b6 100644 --- a/GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/Recipient.swift +++ b/GME Remit/Modules/RecipientModules/Recipients/Application Logic/Model/Recipient/Recipient.swift @@ -168,7 +168,7 @@ struct Recipient: Mappable { "countryId": countryID ?? "", "relationshipId": relationshipID ?? "", "districtId": districtID ?? "", - "purposeOfRemitId": purposeOfRemitID ?? "", + "purposeOfRemitId": purposeOfRemitID ?? "" ] } } diff --git a/GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard b/GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard index ffbdc38b..00d801ce 100644 --- a/GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard +++ b/GME Remit/Modules/RecipientModules/Recipients/User Interface/View/Recipients.storyboard @@ -126,32 +126,32 @@ -