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

//
// InternationalTopupService.swift
// GME Remit
//
// Created by InKwon James Kim on 2019/10/30.
//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
//
import Foundation
class InternationalTopupService: InternationalTopupServiceType {
func fetchBalance(
type: String,
fintechUseNumber: String,
success: @escaping (BalanceModel) -> Void,
failure: @escaping (Error) -> Void
) {
APIRouter.fetchBalace(
type: type,
fintechUseNumber: fintechUseNumber
).json(success: success, failure: failure)
}
func fetchAutoDebitInformation(
success: @escaping ([Account]) -> Void,
failure: @escaping (Error) -> Void) {
let service = PhoneCardRechargeService()
service.fetchAutoDebitInformation(
success: success, failure: failure
)
}
func fetchCardList(
type: String,
mobile: String,
success: @escaping (CardList) -> Void,
failure: @escaping (Error) -> Void
) {
let service = PhoneCardRechargeService()
service.fetchCardList(
type: type,
mobile: mobile,
success: success,
failure: failure
)
}
}