Browse Source

bank code mapped and sent to validate account number

pull/1/head
gme_2 6 years ago
parent
commit
1d802194ad
  1. 2
      GMERemittance/Model/SendMoneyPaymentModeModel.swift
  2. 4
      GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

2
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"]
}
}

4
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 = ""

Loading…
Cancel
Save