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
60 lines
1.3 KiB
//
|
|
// AutoDebitInteractorIO.swift
|
|
// GME Remit
|
|
//
|
|
// Created by Mac on 12/19/18.
|
|
//Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
|
|
//
|
|
|
|
protocol AutoDebitInteractorInput: class {
|
|
|
|
/// Fetch KFTC registerd bank account list
|
|
func fetchKFTCBankAccountList()
|
|
|
|
|
|
/// Delete selected bank account
|
|
///
|
|
/// - Parameters:
|
|
/// - username: customer name
|
|
/// - account: bank account
|
|
func deleteKFTCBankAccount(of username: String, with account: Account)
|
|
|
|
|
|
/// Refresh Token
|
|
///
|
|
/// - Parameter language: selected language
|
|
func refreshToken(language: KftcLanguage?)
|
|
}
|
|
|
|
protocol AutoDebitInteractorOutput: class {
|
|
/// If did success delete KFTC bank account
|
|
func didDeleteAccount()
|
|
|
|
|
|
/// If did fail delete KFTC bank account
|
|
func didFailDeleteAccount(with error: Error)
|
|
|
|
|
|
/// Set KFTCModel
|
|
///
|
|
/// - Parameter model: KFTCModel
|
|
func setModel(with model: KFTCModel?)
|
|
|
|
|
|
/// If did fail fetch KFTC bank account list
|
|
///
|
|
/// - Parameter error: Error
|
|
func didFailSetModel(with error: Error)
|
|
|
|
|
|
/// If did fail refreshToken
|
|
///
|
|
/// - Parameter error: Error
|
|
func refreshTokenError(with error: Error)
|
|
|
|
|
|
/// if Succeess then get url for refresh token
|
|
///
|
|
/// - Parameter url: String
|
|
func refreshTokenSuccess(header: [KftcHeader]?, url: String?)
|
|
}
|