From 53c4588f65e7c8f96e970a41b0a0beaa418ceac0 Mon Sep 17 00:00:00 2001 From: Amrit Giri Date: Mon, 6 Jul 2020 20:58:42 +0545 Subject: [PATCH] bank name and account number from user default for now --- .../Service/WithdrawFromWalletService.swift | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/GME Remit/Modules/Withdraw/WithdrawFromWallet/Application Logic/Service/WithdrawFromWalletService.swift b/GME Remit/Modules/Withdraw/WithdrawFromWallet/Application Logic/Service/WithdrawFromWalletService.swift index 25d091eb..40ca4176 100644 --- a/GME Remit/Modules/Withdraw/WithdrawFromWallet/Application Logic/Service/WithdrawFromWalletService.swift +++ b/GME Remit/Modules/Withdraw/WithdrawFromWallet/Application Logic/Service/WithdrawFromWalletService.swift @@ -24,10 +24,12 @@ class WithdrawFromWalletService: WithdrawFromWalletServiceType { failure(error) } else { if let model = response.data{ - var neModel = WithdrawInformation() - neModel = model - neModel.amount = amount - success(neModel) + var newModel = WithdrawInformation() + newModel = model + newModel.amount = amount + newModel.bankName = GMEDB.shared.user.string(.primaryBankName) + newModel.accountNo = GMEDB.shared.user.string(.primaryAccountNumber) + success(newModel) } } },