You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// // SendMoneyCodeInteractor.swift // GME Remit // // Created by gme_2 on 27/02/2019. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. //
import Foundation
class SendMoneyCodeInteractor { // MARK: Properties weak var output: SendMoneyCodeInteractorOutput? private let service: SendMoneyCodeServiceType private var request: SendMoneyRequestModel? // MARK: Initialization init(service: SendMoneyCodeServiceType, request: SendMoneyRequestModel?) { self.service = service self.request = request }
// MARK: Converting entities }
// MARK: SendMoneyCode interactor input interface
extension SendMoneyCodeInteractor: SendMoneyCodeInteractorInput { func viewIsReady() { let customerId = Utility.getMyUserName() let params = [ "amount": request?.exchangeRateDetail?.autodebitSendingAmount ?? "", "kftcId": request?.autoDebitAccount?.kftcLogId ?? "", "userId": Utility.getMyUserName() ] self.service.requestOtp(params: params, customerId: customerId, success: { (message) in self.output?.show(message: message) }) { (error) in self.output?.show(error: error) } } }
|