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.

26 lines
693 B

5 years ago
5 years ago
5 years ago
5 years ago
  1. //
  2. // InboundAccountsService.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 2019/11/12.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class InboundAccountsService: InboundAccountsServiceType {
  10. func fetchAccounts(
  11. success: @escaping ([InboundAccount]) -> Void,
  12. failure: @escaping (Error) -> Void
  13. ) {
  14. APIRouter.fetchInboundAccounts.json(success: success, failure: failure)
  15. }
  16. func delete(
  17. with account: InboundAccount,
  18. success: @escaping (DeleteInbound) -> Void,
  19. failure: @escaping (Error) -> Void
  20. ) {
  21. APIRouter.deleteInboundAccount(model: account).json(success: success, failure: failure)
  22. }
  23. }