From 1d802194ad0bec701664b13d8d8d54e0c549519a Mon Sep 17 00:00:00 2001 From: gme_2 Date: Thu, 6 Sep 2018 16:25:34 +0900 Subject: [PATCH] bank code mapped and sent to validate account number --- GMERemittance/Model/SendMoneyPaymentModeModel.swift | 2 ++ .../View/SendMoneyPaymentModeViewController.swift | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GMERemittance/Model/SendMoneyPaymentModeModel.swift b/GMERemittance/Model/SendMoneyPaymentModeModel.swift index 2a9dbfad..69e7cc35 100644 --- a/GMERemittance/Model/SendMoneyPaymentModeModel.swift +++ b/GMERemittance/Model/SendMoneyPaymentModeModel.swift @@ -78,6 +78,7 @@ class SendMoneyBank: Mappable { var accountRequired: String? var accountValidationRequired: String? var payCurrency: [String]? + var code: String? required init?(map: Map) { @@ -91,6 +92,7 @@ class SendMoneyBank: Mappable { accountValidationRequired <- map["IsAccountValidation"] payCurrency <- map["PayCurrency"] branches <- map["BranchList"] + code <- map["Code"] } } diff --git a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift index 2a876e4c..1a4fd6a3 100644 --- a/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift +++ b/GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift @@ -173,9 +173,9 @@ class SendMoneyPaymentModeViewController: UIViewController { validationRequest.reciverLastName = self.recipient?.lastName validationRequest.country = self.recipient?.countryId validationRequest.accountType = "1" // saving account, current account type ko - validationRequest.issuerCode = self.selectedBank?.id + validationRequest.issuerCode = self.selectedBank?.code validationRequest.accountNo = self.accountTextField.text! - validationRequest.bankCode = self.selectedBank?.id + validationRequest.bankCode = self.selectedBank?.code validationRequest.payoutPartner = self.selectedPayoutMode?.payoutPartner validationRequest.amount = "0.0" validationRequest.processId = ""