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.
 
 
 
 

37 lines
936 B

//
// OrderHistoryModuleInterface.swift
// GME Remit
//
// Created by InKwon Devik Kim on 14/05/2019.
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
protocol OrderHistoryModuleInterface: class {
/// request to presenter about fetch order history
///
/// - Parameters:
/// - startData: Inquiry start date
/// - endDate: Inquiry end date
func fetchOrders(from startDate: String, to endDate: String)
/// Fetch orders history as filterd from searchText
///
/// - Parameter searchText: search text
func fetchFilteredOrders(by searchText: String)
/// move DetailOrderViewController
///
/// - Parameter order: selected order
func pushDetailOrder(with order: Order?)
/// present DataPicker ViewController
///
/// - Parameter completion: selected dates handle closure
func presentDatePicker(completion: ((_ from: String?, _ to: String?) -> ())?)
}