Browse Source

OTP protocol removed

pull/1/head
Amrit Giri 4 years ago
parent
commit
508cd103e1
  1. 9
      GME Remit/Modules/PowerCallModules/LocalTopup/PhoneCardRecharge/Application Logic/Model/RechargeModel.swift
  2. 10
      GME Remit/Modules/Profile/ChangePersonalInformation/Application Logic/Model/ChangePersonalInformationModel.swift
  3. 10
      GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift
  4. 4
      GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyVerification/Application Logic/Interactor/SendMoneyVerificationInteractor.swift
  5. 4
      GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyVerification/User Interface/Wireframe/SendMoneyVerificationWireframe.swift
  6. 5
      GME Remit/Modules/RemittanceModules/Shared/BalanceModel.swift

9
GME Remit/Modules/PowerCallModules/LocalTopup/PhoneCardRecharge/Application Logic/Model/RechargeModel.swift

@ -56,12 +56,3 @@ struct RechargeModel {
}
}
extension RechargeModel: OTPProtocol {
var otpAmount: String? {
return productPrice
}
var otpAccountID: String? {
return kftcAccountId
}
}

10
GME Remit/Modules/Profile/ChangePersonalInformation/Application Logic/Model/ChangePersonalInformationModel.swift

@ -34,14 +34,4 @@ extension ChangePersonalInformationModel: Equatable {
}
}
extension ChangePersonalInformationModel: OTPProtocol {
var otpAmount: String? {
return ""
}
var otpAccountID: String? {
return ""
}
}

10
GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyParent/User Interface/View/SendMoneyParentViewController.swift

@ -34,16 +34,6 @@ class SendMoneyRequestModel {
var isUseBiometric: Bool?
}
extension SendMoneyRequestModel: OTPProtocol {
var otpAmount: String? {
return exchangeRateDetail?.autodebitSendingAmount
}
var otpAccountID: String? {
return autoDebitAccount?.kftcAccountId
}
}
class SendMoneyParentViewController: UIViewController {
private enum StateButtons: Int {

4
GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyVerification/Application Logic/Interactor/SendMoneyVerificationInteractor.swift

@ -14,13 +14,11 @@ class SendMoneyVerificationInteractor {
weak var output: SendMoneyVerificationInteractorOutput?
private let service: SendMoneyVerificationServiceType
private var request: OTPProtocol?
// MARK: Initialization
init(service: SendMoneyVerificationServiceType, request: OTPProtocol?) {
init(service: SendMoneyVerificationServiceType) {
self.service = service
self.request = request
}
// MARK: Converting entities

4
GME Remit/Modules/RemittanceModules/OverseasModules/SendMoneyVerification/User Interface/Wireframe/SendMoneyVerificationWireframe.swift

@ -13,8 +13,6 @@ class SendMoneyVerificationWireframe {
var reciepient: Recipient?
var model: SendMoneyRequestModel?
//TODO: otp
var request: OTPProtocol?
private lazy var reciptWireframe = SendMoneyReceiptWireframe()
}
@ -27,7 +25,7 @@ extension SendMoneyVerificationWireframe: SendMoneyVerificationWireframeInput {
let service = SendMoneyVerificationService()
//TODO: otp
let interactor = SendMoneyVerificationInteractor(service: service, request: request)
let interactor = SendMoneyVerificationInteractor(service: service)
let presenter = SendMoneyVerificationPresenter()
let viewController = viewControllerFromStoryboard(of: SendMoneyVerificationViewController.self)
viewController.reciepient = self.reciepient

5
GME Remit/Modules/RemittanceModules/Shared/BalanceModel.swift

@ -59,8 +59,3 @@ struct BalanceModel: Mappable {
productName <- map["product_name"]
}
}
protocol OTPProtocol {
var otpAmount: String? { get }
var otpAccountID: String? { get }
}
Loading…
Cancel
Save