Browse Source

added amount in accountValidation request

pull/1/head
gme_2 6 years ago
parent
commit
b674647cc0
  1. 1
      GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift
  2. 1
      GMERemittance/Module/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift
  3. 3
      GMERemittance/Module/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

1
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?

1
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 ?? ""
]

3
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)

Loading…
Cancel
Save