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

  1. //
  2. // OrderHistoryModuleInterface.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon Devik Kim on 14/05/2019.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. protocol OrderHistoryModuleInterface: class {
  9. /// request to presenter about fetch order history
  10. ///
  11. /// - Parameters:
  12. /// - startData: Inquiry start date
  13. /// - endDate: Inquiry end date
  14. func fetchOrders(from startDate: String, to endDate: String)
  15. /// Fetch orders history as filterd from searchText
  16. ///
  17. /// - Parameter searchText: search text
  18. func fetchFilteredOrders(by searchText: String)
  19. /// move DetailOrderViewController
  20. ///
  21. /// - Parameter order: selected order
  22. func pushDetailOrder(with order: Order?)
  23. /// present DataPicker ViewController
  24. ///
  25. /// - Parameter completion: selected dates handle closure
  26. func presentDatePicker(completion: ((_ from: String?, _ to: String?) -> ())?)
  27. }