|
|
@ -63,7 +63,7 @@ enum APIRouter { |
|
|
|
case validateReferralCode(code: String) |
|
|
|
|
|
|
|
// MARK: - Receiver |
|
|
|
case fetchRecipients(senderID: String) |
|
|
|
case fetchRecipients(senderID: String, fromDate: String, toDate: String, countryCode: String, pageCount: String) |
|
|
|
case dynamicReceiver(username: String, countryID: String, serviceTypeID: String) |
|
|
|
case fetchCountriesAndServiceTypes(username: String) |
|
|
|
case addRecipient(senderID: String, recipient: Recipient) |
|
|
@ -572,8 +572,8 @@ extension APIRouter { |
|
|
|
case .dynamicReceiver(let username, let countryID, let serviceType): |
|
|
|
let path = "\(username)/dynamicField?countryId=\(countryID)&serviceType=\(serviceType)" |
|
|
|
return "\(baseUrlWithoutVersion)v3/mobile/receiver/\(path)" |
|
|
|
case .fetchRecipients(let senderID): |
|
|
|
return "\(baseUrlWithoutVersion)v5/mobile/\(senderID)/receiverinfo/151" |
|
|
|
case .fetchRecipients(let senderID,_,_, let countryCode,_): |
|
|
|
return "\(baseUrlWithoutVersion)v5/mobile/\(senderID)/receiverinfo/\(countryCode)" |
|
|
|
case .fetchCountriesAndServiceTypes(let username): |
|
|
|
return "\(baseUrlWithoutVersion)v3/mobile/\(username)/FetchCountriesAndServiceTypes" |
|
|
|
case .addRecipient(let senderID, _): |
|
|
@ -827,11 +827,11 @@ extension APIRouter { |
|
|
|
case .post: |
|
|
|
switch self { |
|
|
|
|
|
|
|
case .fetchRecipients: |
|
|
|
case .fetchRecipients(_, let fromDate, let toDate,_, let pageCount): |
|
|
|
return [ |
|
|
|
"fromDate": "", |
|
|
|
"toDate": "", |
|
|
|
"Page": "" |
|
|
|
"fromDate": fromDate, |
|
|
|
"toDate": toDate, |
|
|
|
"Page": pageCount |
|
|
|
] |
|
|
|
|
|
|
|
case .uploadProfile: |
|
|
|