You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.3 KiB

  1. //
  2. // AutoDebitInteractorIO.swift
  3. // GME Remit
  4. //
  5. // Created by Mac on 12/19/18.
  6. //Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. protocol AutoDebitInteractorInput: class {
  9. /// Fetch KFTC registerd bank account list
  10. func fetchKFTCBankAccountList()
  11. /// Delete selected bank account
  12. ///
  13. /// - Parameters:
  14. /// - username: customer name
  15. /// - account: bank account
  16. func deleteKFTCBankAccount(of username: String, with account: Account)
  17. /// Refresh Token
  18. ///
  19. /// - Parameter language: selected language
  20. func refreshToken(language: KftcLanguage?)
  21. }
  22. protocol AutoDebitInteractorOutput: class {
  23. /// If did success delete KFTC bank account
  24. func didDeleteAccount()
  25. /// If did fail delete KFTC bank account
  26. func didFailDeleteAccount(with error: Error)
  27. /// Set KFTCModel
  28. ///
  29. /// - Parameter model: KFTCModel
  30. func setModel(with model: KFTCModel?)
  31. /// If did fail fetch KFTC bank account list
  32. ///
  33. /// - Parameter error: Error
  34. func didFailSetModel(with error: Error)
  35. /// If did fail refreshToken
  36. ///
  37. /// - Parameter error: Error
  38. func refreshTokenError(with error: Error)
  39. /// if Succeess then get url for refresh token
  40. ///
  41. /// - Parameter url: String
  42. func refreshTokenSuccess(header: [KftcHeader]?, url: String?)
  43. }