Browse Source

bank name and account number from user default for now

pull/1/head
Amrit Giri 4 years ago
parent
commit
53c4588f65
  1. 10
      GME Remit/Modules/Withdraw/WithdrawFromWallet/Application Logic/Service/WithdrawFromWalletService.swift

10
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)
}
}
},

Loading…
Cancel
Save