Browse Source

api version managed

pull/1/head
gme_2 6 years ago
parent
commit
5b56e6c33b
  1. 4
      GMERemittance/Api/ApiServiceType.swift
  2. 4
      GMERemittance/Api/ExchangeRateApiService.swift
  3. 4
      GMERemittance/Module/AddReciepient/Application Logic/Service/AddReciepientServiceType.swift
  4. 4
      GMERemittance/Module/Auto refund/autoRefundService.swift
  5. 4
      GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift
  6. 2
      GMERemittance/Module/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift
  7. 2
      GMERemittance/Module/Home/Application Logic/Service/HomeServiceType.swift
  8. 2
      GMERemittance/Module/Login/Application Logic/Service/LoginService.swift
  9. 4
      GMERemittance/Module/MessageCompose/Application Logic/Service/MessageComposeServiceType.swift
  10. 2
      GMERemittance/Module/New Group/Kyc/Application Logic/Service/KycServiceType.swift
  11. 2
      GMERemittance/Module/New Group/kycForm1/Application Logic/Service/kycForm1ServiceType.swift
  12. 4
      GMERemittance/Module/PennyTest/Application Logic/Service/PennyTestServiceType.swift
  13. 2
      GMERemittance/Module/Register/Application Logic/Service/RegisterServiceType.swift
  14. 2
      GMERemittance/Module/SendMoney/SendMoneyExchangeRate/Application Logic/Service/SendMoneyExchangeRateServiceType.swift
  15. 6
      GMERemittance/Module/SendMoney/SendMoneyPaymentMode/Application Logic/Service/SendMoneyPaymentModeServiceType.swift
  16. 2
      GMERemittance/Module/SendMoney/SendMoneyReceipt/Application Logic/Service/SendMoneyReceiptServiceType.swift
  17. 2
      GMERemittance/Module/SendMoney/SendMoneyVerification/Application Logic/Service/SendMoneyVerificationServiceType.swift
  18. 13
      GMERemittance/Module/SendMoneyCode/Application Logic/Service/SendMoneyCodeService.swift
  19. 2
      GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCodeViewController.swift
  20. 2
      GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift
  21. 2
      GMERemittance/Module/WalletStatement/Application Logic/Service/WalletStatementServiceType.swift
  22. 2
      GMERemittance/Profile/ProfileChangePasswordViewController.swift
  23. 4
      GMERemittance/Recipient/ReciepientServcie.swift
  24. 19
      GMERemittance/UrlManager.swift

4
GMERemittance/Api/ApiServiceType.swift

@ -10,11 +10,13 @@ import Foundation
protocol ApiServiceType {
var auth: RestApiMananger {get}
var baseUrl: String {get}
var oldBaseUrl: String {get}
var baseUrl: String {get}
}
extension ApiServiceType {
var auth: RestApiMananger {return RestApiMananger.sharedInstance}
var oldBaseUrl: String {return UrlManager.sharedInstance.oldBaseURL}
var baseUrl: String {return UrlManager.sharedInstance.baseURL}
}

4
GMERemittance/Api/ExchangeRateApiService.swift

@ -17,7 +17,7 @@ protocol FetchCountryCurrencyInformation: ApiServiceType {
extension FetchCountryCurrencyInformation {
func fetchCountryCurrencyInfo(success: @escaping ([ExchangeRateModel]?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/countriesServices"
let url = oldBaseUrl + "mobile/countriesServices"
// let url = "http://www.mocky.io/v2/5b7e22b3300000630084c052"
auth.request(method: .get, url: url , params: nil, success: { (response: ExchangeRateContainer) in
if (response.errorCode ?? "") == "1" {
@ -39,7 +39,7 @@ protocol getExchangeRateInformation: ApiServiceType {
extension getExchangeRateInformation {
func getExchangeRateInformation(params: [String: String], success: @escaping (ExchangeRateDetailModel?) -> (), failure: @escaping (Error) -> () ) {
let url = baseUrl + "mobile/calculateDefExRate"
let url = oldBaseUrl + "mobile/calculateDefExRate"
// http://121.156.120.71:5001/api/v1/mobile/countriesServices
// let url = "http://www.mocky.io/v2/5b7e62d2300000690084c117"

4
GMERemittance/Module/AddReciepient/Application Logic/Service/AddReciepientServiceType.swift

@ -19,7 +19,7 @@ protocol FetchSendMoneyInformation: ApiServiceType {
extension FetchSendMoneyInformation {
func fetch(success: @escaping (SendMoneyModel?) -> (), failure: @escaping (Error) -> () ) {
let url = baseUrl + "mobile/loadform/receiver"
let url = oldBaseUrl + "mobile/loadform/receiver"
auth.request(method: .get, url: url, params: nil, success: { (response: SendMoneyInformationContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])
@ -41,7 +41,7 @@ protocol SaveReciepientService: ApiServiceType {
extension SaveReciepientService {
func save(model:[String: String], username: String, success: @escaping (Recipient?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/receiver/save/" + username
let url = oldBaseUrl + "mobile/receiver/save/" + username
auth.request(method: .post, url: url, params: model, success: { (response: RecipientContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

4
GMERemittance/Module/Auto refund/autoRefundService.swift

@ -19,7 +19,7 @@ protocol FetchAutoRefundInfo: ApiServiceType {
extension FetchAutoRefundInfo {
func fetchAutoRefundInfo(username: String, success: @escaping (AutoRefund) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "refund/\(username)"
let url = oldBaseUrl + "refund/\(username)"
auth.request(method: .get, url: url, params: nil, encoding: URLEncoding.default, success: { (response: AutoRefundContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])
@ -44,7 +44,7 @@ protocol RefundService: ApiServiceType {
extension RefundService {
func refund(amount: String, userName: String, chargeAmount: String, userId: String, success: @escaping (SuccessMessage?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "refund/proceed"
let url = oldBaseUrl + "refund/proceed"
let params = [
"Username": userName,
"Amount": amount,

4
GMERemittance/Module/AutoDebit/Application Logic/Service/AutoDebitService.swift

@ -28,7 +28,7 @@ protocol FetchAccountList: ApiServiceType {
extension FetchAccountList {
func fetchAccountList(username: String, success: @escaping (KFTCModel?) -> (), failure: @escaping (Error) -> ()) {
let url = "http://gmeuat.gmeremit.com:5022/api/v2/" + "kftc/GetKftcParameters/" + username
let url = baseUrl + "v2/" + "kftc/GetKftcParameters/" + username
auth.request(method: .get, url: url, params: nil, encoding: URLEncoding.default, success: { (response: KftcAccountContainer) in
if (response.errorCode ?? "") == "1" {
@ -54,7 +54,7 @@ protocol DeleteAccountService: ApiServiceType {
extension DeleteAccountService {
func deleteAccount(username: String, account: Account, success: @escaping () -> (), failure: @escaping (Error) -> ()) {
let url = "http://gmeuat.gmeremit.com:5022/api/v2/kftc/DeleteAccount/\(username)"
let url = baseUrl + "v2/kftc/DeleteAccount/\(username)"
let params =
[

2
GMERemittance/Module/ForgotPassword/Application Logic/Service/ForgotPasswordServiceType.swift

@ -20,7 +20,7 @@ protocol PasswordResetService: ApiServiceType {
extension PasswordResetService {
func reset(username: String, dob: String, success: @escaping (String) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/passwordReset"
let url = oldBaseUrl + "mobile/passwordReset"
let params = ["username": username,"Dob": dob]
auth.request(method: .post, url: url, params: params, needsAuthorization: false, success: { (response: ResponseMessage) in

2
GMERemittance/Module/Home/Application Logic/Service/HomeServiceType.swift

@ -21,7 +21,7 @@ protocol UserInfoService: ApiServiceType {
extension UserInfoService {
func fetchUserInfo(param: [String: String], success: @escaping (User) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/CustomerProfile"
let url = oldBaseUrl + "mobile/CustomerProfile"
auth.request(method: .post, url: url, params: param, success: { (response: UserContainer ) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: AppConstants.emergencyLogoutErrorCode, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Module/Login/Application Logic/Service/LoginService.swift

@ -25,7 +25,7 @@ protocol LoginApiService: ApiServiceType {
extension LoginApiService {
func _login(userId: String, password: String, success: @escaping (User?) -> (), failure: @escaping (Error) -> ()) {
let params = [ "userId": userId, "password": password ]
let url = baseUrl + "users/access-code"
let url = oldBaseUrl + "users/access-code"
auth.request(method: .post, url: url, params: params,needsAuthorization: false, success: { (response: UserContainer ) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

4
GMERemittance/Module/MessageCompose/Application Logic/Service/MessageComposeServiceType.swift

@ -21,7 +21,7 @@ protocol MessageCancellationRequestApiService: ApiServiceType {
extension MessageCancellationRequestApiService {
func cancelTransactionRequest(param: [String: String], success: @escaping (SuccessMessage) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/canceltransaction"
let url = oldBaseUrl + "mobile/sendmoney/canceltransaction"
self.auth.request(method: .post, url: url, params: param, success: { (response: SuccessMessageContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])
@ -47,7 +47,7 @@ protocol MessageEditRequestApiService: ApiServiceType {
extension MessageEditRequestApiService {
func editTransactionRequest(param: [String: String], success: @escaping (SuccessMessage) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/amendtransaction"
let url = oldBaseUrl + "mobile/sendmoney/amendtransaction"
self.auth.request(method: .post, url: url, params: param, success: { (response: SuccessMessageContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Module/New Group/Kyc/Application Logic/Service/KycServiceType.swift

@ -22,7 +22,7 @@ protocol KYCSubmitApiService: ApiServiceType {
extension KYCSubmitApiService {
func submit(param: [String: String], images: [String: Data], success: @escaping (KYCResponse?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/RegisterKyc"
let url = oldBaseUrl + "mobile/RegisterKyc"
auth.requestMultipart(method: .post, url, parameters: param, images: images, success: { (response: KYCResponseContainer) in
if (response.errorCode ?? "") == "1" {

2
GMERemittance/Module/New Group/kycForm1/Application Logic/Service/kycForm1ServiceType.swift

@ -20,7 +20,7 @@ protocol FetchKycInformation: ApiServiceType {
extension FetchKycInformation {
func fetch(success: @escaping (KycModel?) -> (), failure: @escaping (Error) -> () ) {
let url = baseUrl + "mobile/loadform/kyc"
let url = oldBaseUrl + "mobile/loadform/kyc"
auth.request(method: .get, url: url, params: nil, success: { (response: KycModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

4
GMERemittance/Module/PennyTest/Application Logic/Service/PennyTestServiceType.swift

@ -19,7 +19,7 @@ protocol InitiatePennyTestService: ApiServiceType {
extension InitiatePennyTestService {
func initiate(userId: String, isResendRequest: String?, success: @escaping (SuccessMessage) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/pennytest/start" + "/\(userId)?reSendCode=\(isResendRequest ?? "N")"
let url = oldBaseUrl + "mobile/pennytest/start" + "/\(userId)?reSendCode=\(isResendRequest ?? "N")"
auth.request(method: .post, url: url, params: nil, encoding: URLEncoding.default, success: { (response: SuccessMessageContainer) in
@ -48,7 +48,7 @@ protocol SubmitPennyTestService: ApiServiceType {
extension SubmitPennyTestService {
func submit(params: [String: String], success: @escaping (SuccessMessage) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/pennytest/getcertified"
let url = oldBaseUrl + "mobile/pennytest/getcertified"
auth.request(method: .post, url: url, params: params, success: { (response: SuccessMessageContainer) in
if (response.errorCode ?? "") == "1" {

2
GMERemittance/Module/Register/Application Logic/Service/RegisterServiceType.swift

@ -21,7 +21,7 @@ protocol RegisterUserService: ApiServiceType {
extension RegisterUserService {
func register(params: [String: String], success: @escaping (String?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/customerRegister"
let url = oldBaseUrl + "mobile/customerRegister"
auth.request(method: .post, url: url, params: params, needsAuthorization: false, success: { (response: ResponseMessage) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Module/SendMoney/SendMoneyExchangeRate/Application Logic/Service/SendMoneyExchangeRateServiceType.swift

@ -18,7 +18,7 @@ protocol FetchSendMoneyExchangeRateService: ApiServiceType {
extension FetchSendMoneyExchangeRateService {
func calculate(params: [String: String], success: @escaping (SendMoneyExchangeRateModel?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/calculate"
let url = oldBaseUrl + "mobile/sendmoney/calculate"
auth.request(method: .post, url: url, params: params, success: { (response: SendMoneyExchangeRateModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

6
GMERemittance/Module/SendMoney/SendMoneyPaymentMode/Application Logic/Service/SendMoneyPaymentModeServiceType.swift

@ -20,7 +20,7 @@ protocol FetchSendMoneyPaymentModeService: ApiServiceType {
// fetch paymentModeServcie
extension FetchSendMoneyPaymentModeService {
func fetchInformations(countryCode: String, id: String? , success: @escaping (SendMoneyPaymentModel?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/load/\(countryCode)/?receiver=\(id ?? "")"
let url = oldBaseUrl + "mobile/sendmoney/load/\(countryCode)/?receiver=\(id ?? "")"
auth.request(method: .post, url: url, params: nil, success: { (response: SendMoneyPaymentModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])
@ -43,7 +43,7 @@ protocol FetchBankBranchService: ApiServiceType {
extension FetchBankBranchService {
func fetchBranch(countryCode: String, bankId: String, branchName: String, success: @escaping ([SendMoneyBankBranch]) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/load/branch/" + countryCode + "/" + bankId + "/?search=" + branchName
let url = oldBaseUrl + "mobile/sendmoney/load/branch/" + countryCode + "/" + bankId + "/?search=" + branchName
self.auth.request(method: .post, url: url, params: nil, success: { (response: SendMoneyBankBranchContainer) in
if (response.errorCode ?? "") == "1" {
@ -66,7 +66,7 @@ protocol ValidateAccountNumberService: ApiServiceType {
extension ValidateAccountNumberService {
func validate(params: [String: String], success: @escaping () -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/validation/account"
let url = oldBaseUrl + "mobile/sendmoney/validation/account"
self.auth.request(method: .post, url: url, params: params, success: { (response: SendMoneyBankBranchContainer) in // can use any container. need to map errorcode and message only
if (response.errorCode ?? "") == "1" {

2
GMERemittance/Module/SendMoney/SendMoneyReceipt/Application Logic/Service/SendMoneyReceiptServiceType.swift

@ -20,7 +20,7 @@ protocol FetchSendMoneyRecieptList: ApiServiceType {
extension FetchSendMoneyRecieptList {
func fetch(transactionId: String, success: @escaping (SendMoneyReciept?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/receipt/" + transactionId
let url = oldBaseUrl + "mobile/receipt/" + transactionId
self.auth.request(method: .post, url: url, params: nil, success: { (response: SendMoneyRecieptContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Module/SendMoney/SendMoneyVerification/Application Logic/Service/SendMoneyVerificationServiceType.swift

@ -20,7 +20,7 @@ protocol SendMoneyVerificationSubmitApi: ApiServiceType {
extension SendMoneyVerificationSubmitApi {
func submit(params: [String: String], success: @escaping (SendMoneySubmitModelContainer?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/sendmoney/dotransaction"
let url = oldBaseUrl + "mobile/sendmoney/dotransaction"
self.auth.request(method: .post, url: url, params: params, success: { (response: SendMoneySubmitModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

13
GMERemittance/Module/SendMoneyCode/Application Logic/Service/SendMoneyCodeService.swift

@ -16,3 +16,16 @@ class SendMoneyCodeService: SendMoneyCodeServiceType {
// MARK: Data management
}
protocol OtpCodeRequestApiService: ApiServiceType {
func requestOtp()
}
extension OtpCodeRequestApiService {
func requestOtp() {
let url = "/request/otp"
}
}

2
GMERemittance/Module/SendMoneyCode/User Interface/View/SendMoneyCodeViewController.swift

@ -191,3 +191,5 @@ extension SendMoneyCodeViewController: UITextFieldDelegate {
return false
}
}

2
GMERemittance/Module/TransactionHistory/Application Logic/Service/TransactionHistoryServiceType.swift

@ -19,7 +19,7 @@ protocol FetchTransactionHistoryService: ApiServiceType {
extension FetchTransactionHistoryService {
func fetchTransactionHistories(user: String, param: [String: String]?, success: @escaping (([TransactionModel]) -> ()), failure: @escaping ((Error) -> ())) {
let url = baseUrl + "mobile/tranhistory/" + "\(user)"
let url = oldBaseUrl + "mobile/tranhistory/" + "\(user)"
self.auth.request(method: .post, url: url, params: param, success: { (response: TransactionModelContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Module/WalletStatement/Application Logic/Service/WalletStatementServiceType.swift

@ -19,7 +19,7 @@ protocol FetchWalletStatementService: ApiServiceType {
extension FetchWalletStatementService {
func fetchWalletStatement(user: String, param: [String: String]?, success: @escaping (([WalletStatement]) -> ()), failure: @escaping ((Error) -> ())) {
let url = baseUrl + "mobile/walletstatement/" + "\(user)"
let url = oldBaseUrl + "mobile/walletstatement/" + "\(user)"
self.auth.request(method: .post, url: url, params: param, success: { (response: WalletStatementContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

2
GMERemittance/Profile/ProfileChangePasswordViewController.swift

@ -281,7 +281,7 @@ protocol UpdatePasswordService: ApiServiceType {
extension UpdatePasswordService {
func updatePassword(params: [String: String], success: @escaping (String?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/ChangePassword"
let url = oldBaseUrl + "mobile/ChangePassword"
auth.request(method: .post, url: url, params: params, needsAuthorization: false, success: { (response: SuccessMessageContainer) in
if (response.errorCode ?? "") == "1" {
let error = NSError.init(domain: "Network", code: 0, userInfo: [NSLocalizedDescriptionKey : response.message ?? ""])

4
GMERemittance/Recipient/ReciepientServcie.swift

@ -19,7 +19,7 @@ protocol FetchRecipientList: ApiServiceType {
//http://localhost:9500/api/v1/mobile/sisir@mailinator.com/receivers?search=
extension FetchRecipientList {
func fetchReciepientList(username: String, success: @escaping (RecipientListWrapperContainer?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/" + username + "/receivers"
let url = oldBaseUrl + "mobile/" + username + "/receivers"
let params = ["search": ""]
auth.request(method: .get, url: url, params: params, encoding: URLEncoding.default, success: { (response: RecipientListContainer) in
if (response.errorCode ?? "") == "1" {
@ -45,7 +45,7 @@ protocol DeleteRecipientService: ApiServiceType {
extension DeleteRecipientService {
func deleteRecipient(username: String, reciepient: Recipient, success: @escaping (Recipient?) -> (), failure: @escaping (Error) -> ()) {
let url = baseUrl + "mobile/receiver/remove/" + username + "/?receiverId=\(reciepient.recipientId ?? "")"
let url = oldBaseUrl + "mobile/receiver/remove/" + username + "/?receiverId=\(reciepient.recipientId ?? "")"
auth.request(method: .post, url: url, params: nil, encoding: URLEncoding.default, success: { (response: RecipientContainer) in
if (response.errorCode ?? "") == "1" {

19
GMERemittance/UrlManager.swift

@ -16,22 +16,33 @@ class UrlManager {
static let sharedInstance = UrlManager()
// 121.156.120.71:5001
var oldBaseURL = ""
var baseURL = ""
let baseSocialURL = ""
let staggingServerUrl = "http://gmeuat.gmeremit.com:5022/api/v1/"
let liveServerUrl = "https://mobileapi.gmeremit.com:8002/api/v1/"
let uatServer = "http://gmeuat.gmeremit.com:5012/api/v1/"
// this is old url that mention version in base url itself.
let oldStaggingServerUrl = "http://gmeuat.gmeremit.com:5022/api/v1/"
let oldLiveServerUrl = "https://mobileapi.gmeremit.com:8002/api/v1/"
let oldUatServer = "http://gmeuat.gmeremit.com:5012/api/v1/"
// this is the new url without mentioning of version
let staggingServerUrl = "http://gmeuat.gmeremit.com:5022/api/"
let liveServerUrl = "https://mobileapi.gmeremit.com:8002/api/"
let uatServer = "http://gmeuat.gmeremit.com:5012/api/"
init() {
switch server {
case .uat:
self.oldBaseURL = oldUatServer
self.baseURL = uatServer
case .stagging:
self.oldBaseURL = oldStaggingServerUrl
self.baseURL = staggingServerUrl
case .live:
self.oldBaseURL = oldLiveServerUrl
self.baseURL = liveServerUrl
}
}

Loading…
Cancel
Save