From b674647cc0c4cafec49656cbc2cfb140f0ea48d2 Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 6 Sep 2018 16:02:47 +0900 Subject: [PATCH] added amount in accountValidation request --- .../Model/SendMoneyAccountValidationRequestModel.swift | 1 + .../Presenter/SendMoneyPaymentModePresenter.swift | 1 + .../View/SendMoneyPaymentModeViewController.swift | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift b/GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift index bfabe9dd..087644a0 100644 --- a/GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift +++ b/GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift @@ -25,6 +25,7 @@ import Foundation class SendMoneyAccountValidationRequestModel { var idType: String? var idNumber: String? + var amount: String? var customerFirstName: String? var customerLastName: String? var reciverFirstName: String? diff --git a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift index 74c84f2f..97e1b5a9 100644 --- a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift +++ b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift @@ -43,6 +43,7 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeModuleInterface { "IssuerCode": model.issuerCode ?? "", "AccountNo": model.accountNo ?? "", "BankCode": model.bankCode ?? "", + "Amount": model.amount ?? "", "PayoutPartner": model.payoutPartner ?? "", "ProcessId": model.processId ?? "" ] diff --git a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift index 2b8294c6..2a876e4c 100644 --- a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift +++ b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift @@ -172,11 +172,12 @@ class SendMoneyPaymentModeViewController: UIViewController { validationRequest.reciverFirstName = self.recipient?.firstName validationRequest.reciverLastName = self.recipient?.lastName validationRequest.country = self.recipient?.countryId - validationRequest.accountType = "i" // saving account, current account type ko + validationRequest.accountType = "1" // saving account, current account type ko validationRequest.issuerCode = self.selectedBank?.id validationRequest.accountNo = self.accountTextField.text! validationRequest.bankCode = self.selectedBank?.id validationRequest.payoutPartner = self.selectedPayoutMode?.payoutPartner + validationRequest.amount = "0.0" validationRequest.processId = "" callingApi = true self.presenter?.validate(model: validationRequest)