|
|
@ -14,6 +14,8 @@ class SetupRecipientWireframe { |
|
|
|
private var recipient: Recipient? |
|
|
|
var sendReciptent: ((Recipient?) -> Void)? |
|
|
|
private weak var delegate: SetupRecipientDelegate? |
|
|
|
var presenter: RecipientsPresenter? |
|
|
|
var viewModel: RecipientsViewModel? |
|
|
|
var parentType: RecipientParentType = .sendmoney |
|
|
|
} |
|
|
|
|
|
|
@ -175,4 +177,24 @@ extension SetupRecipientWireframe: TablePresenterDelegate { |
|
|
|
|
|
|
|
output?.setSelectedData(with: model, type: type) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func gotoSendMoney(_ reciptent: Recipient?, |
|
|
|
_ paymentMethod: PaymentMethodModel?) { |
|
|
|
|
|
|
|
guard let navigationVC = view.navigationController else { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
guard let recipientData = reciptent else { |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
let wireframe = SendMoneyParentWireframe() |
|
|
|
wireframe.output = self.presenter |
|
|
|
wireframe.viewModel = self.viewModel |
|
|
|
wireframe.paymentMethod = paymentMethod |
|
|
|
wireframe.open(for: recipientData, in: navigationVC) |
|
|
|
|
|
|
|
} |
|
|
|
} |