Browse Source

add deliveryMethodId field at SendMoneyAccountValidationRequestModel

pull/1/head
james 5 years ago
parent
commit
cea4d0e324
  1. 2
      GMERemittance/AppDelegate.swift
  2. 1
      GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift
  3. 4
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift
  4. 2
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

2
GMERemittance/AppDelegate.swift

@ -20,7 +20,7 @@ import IQKeyboardManagerSwift
import LGSideMenuController import LGSideMenuController
import Localize_Swift import Localize_Swift
let server: Server = .uat
let server: Server = .uat2
var overlayView: UIView? var overlayView: UIView?
@UIApplicationMain @UIApplicationMain

1
GMERemittance/Model/SendMoneyAccountValidationRequestModel.swift

@ -39,4 +39,5 @@ class SendMoneyAccountValidationRequestModel {
var processId: String? var processId: String?
var BankId: String? var BankId: String?
var ReceiverCountryId: String? var ReceiverCountryId: String?
var deliveryMethodId: String?
} }

4
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/Presenter/SendMoneyPaymentModePresenter.swift

@ -47,7 +47,8 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeModuleInterface {
"PayoutPartner": model.payoutPartner ?? "", "PayoutPartner": model.payoutPartner ?? "",
"ProcessId": model.processId ?? "", "ProcessId": model.processId ?? "",
"BankId": model.BankId ?? "", "BankId": model.BankId ?? "",
"ReceiverCountryId": model.ReceiverCountryId ?? ""
"ReceiverCountryId": model.ReceiverCountryId ?? "",
"deliveryMethodId": model.deliveryMethodId ?? ""
] ]
self.interactor?.validateAccountNumber(params: params) self.interactor?.validateAccountNumber(params: params)
@ -69,6 +70,7 @@ extension SendMoneyPaymentModePresenter: SendMoneyPaymentModeInteractorOutput {
} }
func success() { func success() {
self.view?.hideLoading()
self.view?.success() self.view?.success()
} }
} }

2
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/User Interface/View/SendMoneyPaymentModeViewController.swift

@ -221,6 +221,8 @@ class SendMoneyPaymentModeViewController: UIViewController {
validationRequest.processId = "" validationRequest.processId = ""
validationRequest.BankId = self.selectedBank?.id validationRequest.BankId = self.selectedBank?.id
validationRequest.ReceiverCountryId = self.recipient?.countryId validationRequest.ReceiverCountryId = self.recipient?.countryId
validationRequest.deliveryMethodId = self.selectedPayoutMode?.id
//TODO
callingApi = true callingApi = true
self.presenter?.validate(model: validationRequest) self.presenter?.validate(model: validationRequest)

Loading…
Cancel
Save