|
|
@ -15,39 +15,6 @@ class PhoneCardRechargeService: PhoneCardRechargeServiceType { |
|
|
|
success: @escaping (BalanceModel) -> Void, |
|
|
|
failure: @escaping (Error) -> Void |
|
|
|
) { |
|
|
|
// let testString = |
|
|
|
// """ |
|
|
|
// { |
|
|
|
// "ErrorCode": "0", |
|
|
|
// "Msg": "SUCCESS", |
|
|
|
// "Id": "", |
|
|
|
// "Extra": "", |
|
|
|
// "Extra2": "", |
|
|
|
// "Data": |
|
|
|
// { |
|
|
|
// "product_name" : "알뜰자유적립", |
|
|
|
// "fintech_use_num" : "199159136057870196816404", |
|
|
|
// "available_amt" : "40000", |
|
|
|
// "account_type" : "1", |
|
|
|
// "rsp_message" : "", |
|
|
|
// "rsp_code" : "A0000", |
|
|
|
// "bank_tran_date" : "20161001", |
|
|
|
// "api_tran_id" : "3dab9712-2c9e-455b-9277-22b943bd3087", |
|
|
|
// "bank_code_tran" : "097", |
|
|
|
// "balance_amt" : "40000", |
|
|
|
// "api_tran_dtm" : "20200305163430079", |
|
|
|
// "bank_rsp_code" : "000", |
|
|
|
// "bank_tran_id" : "T991591360U163429234", |
|
|
|
// "bank_rsp_message" : "" |
|
|
|
// } |
|
|
|
// } |
|
|
|
// """ |
|
|
|
// |
|
|
|
// let json = ResponseContainerObject<BalanceModel>(JSONString: testString) |
|
|
|
// guard let test = json?.data else { return } |
|
|
|
// success(test) |
|
|
|
// |
|
|
|
|
|
|
|
|
|
|
|
APIRouter.fetchBalace( |
|
|
|
type: type, |
|
|
@ -60,97 +27,6 @@ class PhoneCardRechargeService: PhoneCardRechargeServiceType { |
|
|
|
failure: @escaping (Error) -> Void |
|
|
|
) { |
|
|
|
|
|
|
|
// let testString = |
|
|
|
// """ |
|
|
|
// { |
|
|
|
// "ErrorCode": "0", |
|
|
|
// "Msg": "SUCCESS", |
|
|
|
// "Id": "", |
|
|
|
// "Extra": "", |
|
|
|
// "Extra2": "", |
|
|
|
// "Data": [ |
|
|
|
// { |
|
|
|
// "BankCode" : null, |
|
|
|
// "UserCi" : null, |
|
|
|
// "AccountNum" : null, |
|
|
|
// "BankName" : "GME Wallet", |
|
|
|
// "WalletName" : "GME Wallet", |
|
|
|
// "AutoDebit" : null, |
|
|
|
// "Type" : "wallet", |
|
|
|
// "FintechUseNo" : "", |
|
|
|
// "AccountNumMasked" : null, |
|
|
|
// "FullAccountName" : null, |
|
|
|
// "IsApproved" : null, |
|
|
|
// "AccHolderInfoType" : null, |
|
|
|
// "Scope" : null, |
|
|
|
// "UserSeqNo" : null, |
|
|
|
// "KftcAccountId" : "MxE2I+Cv0cnjlwN4gZsGvw==", |
|
|
|
// "CustomerId" : null, |
|
|
|
// "BankCodeStd" : null, |
|
|
|
// "IsShowRefresh" : null, |
|
|
|
// "AccessToken" : null, |
|
|
|
// "AccHolderInfo" : null, |
|
|
|
// "AccountName" : null, |
|
|
|
// "IsInboundPennyTestRequested" : false, |
|
|
|
// "TokenType" : null |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "BankCode" : null, |
|
|
|
// "UserCi" : null, |
|
|
|
// "AccountNum" : null, |
|
|
|
// "BankName" : "광주은행", |
|
|
|
// "WalletName" : "광주은행", |
|
|
|
// "AutoDebit" : null, |
|
|
|
// "Type" : "autodebit", |
|
|
|
// "FintechUseNo" : "101055699969776524821097", |
|
|
|
// "AccountNumMasked" : "123123123***", |
|
|
|
// "FullAccountName" : null, |
|
|
|
// "IsApproved" : null, |
|
|
|
// "AccHolderInfoType" : null, |
|
|
|
// "Scope" : null, |
|
|
|
// "UserSeqNo" : null, |
|
|
|
// "KftcAccountId" : null, |
|
|
|
// "CustomerId" : null, |
|
|
|
// "BankCodeStd" : null, |
|
|
|
// "IsShowRefresh" : null, |
|
|
|
// "AccessToken" : null, |
|
|
|
// "AccHolderInfo" : null, |
|
|
|
// "AccountName" : null, |
|
|
|
// "IsInboundPennyTestRequested" : false, |
|
|
|
// "TokenType" : null |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "BankCode" : null, |
|
|
|
// "UserCi" : null, |
|
|
|
// "AccountNum" : null, |
|
|
|
// "BankName" : "KDB산업은행", |
|
|
|
// "WalletName" : "KDB산업은행", |
|
|
|
// "AutoDebit" : null, |
|
|
|
// "Type" : "autodebit", |
|
|
|
// "FintechUseNo" : "199159136057870196816404", |
|
|
|
// "AccountNumMasked" : "123123456***", |
|
|
|
// "FullAccountName" : null, |
|
|
|
// "IsApproved" : null, |
|
|
|
// "AccHolderInfoType" : null, |
|
|
|
// "Scope" : null, |
|
|
|
// "UserSeqNo" : null, |
|
|
|
// "KftcAccountId" : "jP87rJdoN8ACNMVlSXmBzg==", |
|
|
|
// "CustomerId" : null, |
|
|
|
// "BankCodeStd" : null, |
|
|
|
// "IsShowRefresh" : null, |
|
|
|
// "AccessToken" : null, |
|
|
|
// "AccHolderInfo" : null, |
|
|
|
// "AccountName" : null, |
|
|
|
// "IsInboundPennyTestRequested" : false, |
|
|
|
// "TokenType" : null |
|
|
|
// } |
|
|
|
// ] |
|
|
|
// } |
|
|
|
// """ |
|
|
|
// |
|
|
|
// let json = ResponseContainerArray<Account>(JSONString: testString) |
|
|
|
// success(json?.data ?? []) |
|
|
|
|
|
|
|
APIRouter.fetchBankListForPowerCall.json(success: success, failure: failure) |
|
|
|
} |
|
|
|
|
|
|
@ -160,45 +36,6 @@ class PhoneCardRechargeService: PhoneCardRechargeServiceType { |
|
|
|
success: @escaping (CardList) -> Void, |
|
|
|
failure: @escaping (Error) -> Void |
|
|
|
) { |
|
|
|
// let testString = |
|
|
|
// """ |
|
|
|
// { |
|
|
|
// "Id" : "", |
|
|
|
// "Extra" : "", |
|
|
|
// "Extra2" : "", |
|
|
|
// "Data" : { |
|
|
|
// "CardListType" : "1", |
|
|
|
// "CountryPriceCode" : null, |
|
|
|
// "CardInfo" : null, |
|
|
|
// "ButtonsGrid" : [ |
|
|
|
// { |
|
|
|
// "Price" : "10000" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "Price" : "20000" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "Price" : "30000" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "Price" : "40000" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "Price" : "50000" |
|
|
|
// }, |
|
|
|
// { |
|
|
|
// "Price" : "100000" |
|
|
|
// } |
|
|
|
// ] |
|
|
|
// }, |
|
|
|
// "ErrorCode" : "0", |
|
|
|
// "Msg" : "Success" |
|
|
|
// } |
|
|
|
//""" |
|
|
|
// let json = ResponseContainerObject<CardList>(JSONString: testString) |
|
|
|
// guard let test = json?.data else { return } |
|
|
|
// success(test) |
|
|
|
|
|
|
|
|
|
|
|
APIRouter.fetchCardList(type: type, mobile: mobile) |
|
|
|
.json(success: success, failure: failure) |
|
|
|