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.

49 lines
1.1 KiB

  1. //
  2. // InternationalTopupService.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 2019/10/30.
  6. //Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. class InternationalTopupService: InternationalTopupServiceType {
  10. func fetchBalance(
  11. type: String,
  12. fintechUseNumber: String,
  13. success: @escaping (BalanceModel) -> Void,
  14. failure: @escaping (Error) -> Void
  15. ) {
  16. APIRouter.fetchBalace(
  17. type: type,
  18. fintechUseNumber: fintechUseNumber
  19. ).json(success: success, failure: failure)
  20. }
  21. func fetchAutoDebitInformation(
  22. success: @escaping ([Account]) -> Void,
  23. failure: @escaping (Error) -> Void) {
  24. let service = PhoneCardRechargeService()
  25. service.fetchAutoDebitInformation(
  26. success: success, failure: failure
  27. )
  28. }
  29. func fetchCardList(
  30. type: String,
  31. mobile: String,
  32. success: @escaping (CardList) -> Void,
  33. failure: @escaping (Error) -> Void
  34. ) {
  35. let service = PhoneCardRechargeService()
  36. service.fetchCardList(
  37. type: type,
  38. mobile: mobile,
  39. success: success,
  40. failure: failure
  41. )
  42. }
  43. }