|
@ -58,7 +58,7 @@ extension ResendExchangeInteractor: ResendExchangeInteractorInput { |
|
|
func calculate(senderAmt: String, senderCurrency: String, recieverAmt: String, recieverCurrency: String, recieverCountryName: String, recieverCountryId: String, paymentMethod: String, paymentMethodId: String, calcBy: String, senderCountryId: String, payoutPartner: String, userId: String, bankId: String) { |
|
|
func calculate(senderAmt: String, senderCurrency: String, recieverAmt: String, recieverCurrency: String, recieverCountryName: String, recieverCountryId: String, paymentMethod: String, paymentMethodId: String, calcBy: String, senderCountryId: String, payoutPartner: String, userId: String, bankId: String) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let param: [String: String] = |
|
|
|
|
|
|
|
|
var param: [String: String] = |
|
|
[ |
|
|
[ |
|
|
ApiConstants.senderAmount : senderAmt, |
|
|
ApiConstants.senderAmount : senderAmt, |
|
|
ApiConstants.senderCurrency : senderCurrency, |
|
|
ApiConstants.senderCurrency : senderCurrency, |
|
@ -70,11 +70,15 @@ extension ResendExchangeInteractor: ResendExchangeInteractorInput { |
|
|
ApiConstants.paymentMethodId: paymentMethodId, |
|
|
ApiConstants.paymentMethodId: paymentMethodId, |
|
|
ApiConstants.calcBy : calcBy, |
|
|
ApiConstants.calcBy : calcBy, |
|
|
ApiConstants.senderCountryId : senderCountryId, |
|
|
ApiConstants.senderCountryId : senderCountryId, |
|
|
ApiConstants.payOutPartner : payoutPartner, |
|
|
|
|
|
|
|
|
// ApiConstants.payOutPartner : payoutPartner, |
|
|
ApiConstants.userId : userId, |
|
|
ApiConstants.userId : userId, |
|
|
ApiConstants.bankId : bankId |
|
|
ApiConstants.bankId : bankId |
|
|
] |
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
if !payoutPartner.isEmpty { |
|
|
|
|
|
param[ApiConstants.payOutPartner] = payoutPartner |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
self.service.calculate(params: param, success: { (model) in |
|
|
self.service.calculate(params: param, success: { (model) in |
|
|
guard let model = model else {return} |
|
|
guard let model = model else {return} |
|
|
self.output?.show(model: model) |
|
|
self.output?.show(model: model) |
|
|