|
|
@ -8,17 +8,17 @@ |
|
|
|
|
|
|
|
import Foundation |
|
|
|
|
|
|
|
protocol SendMoneyReceiptServiceType: class, FetchRecieptList { |
|
|
|
protocol SendMoneyReceiptServiceType: class, FetchSendMoneyRecieptList { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protocol FetchRecieptList: ApiServiceType { |
|
|
|
protocol FetchSendMoneyRecieptList: ApiServiceType { |
|
|
|
func fetch(transactionId: String, success: @escaping (SendMoneyReciept?) -> (), failure: @escaping (Error) -> ()) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
extension FetchRecieptList { |
|
|
|
extension FetchSendMoneyRecieptList { |
|
|
|
func fetch(transactionId: String, success: @escaping (SendMoneyReciept?) -> (), failure: @escaping (Error) -> ()) { |
|
|
|
let url = baseUrl + "mobile/receipt/" + transactionId |
|
|
|
self.auth.request(method: .get, url: url, params: nil, success: { (response: SendMoneyRecieptContainer) in |
|
|
|