|
|
@ -118,6 +118,7 @@ enum APIRouter { |
|
|
|
|
|
|
|
// MARK: RewardPoint |
|
|
|
case getRewardPoint(receiverID: String, isAccountValidationRequired: Bool, payoutPartner: String) |
|
|
|
case getLoyalityPoint |
|
|
|
} |
|
|
|
|
|
|
|
// MARK: - Request |
|
|
@ -542,6 +543,9 @@ extension APIRouter: ApiServiceType { |
|
|
|
extension APIRouter { |
|
|
|
private var endpoint: String { |
|
|
|
switch self { |
|
|
|
case .getLoyalityPoint: |
|
|
|
let senderId = GMEDB.shared.user.string(.senderId) ?? "" |
|
|
|
return "\(baseUrlWithoutVersion)v3/mobile/\(senderId)/GetFieldsByProduct?type=6" |
|
|
|
case .uploadProfile: |
|
|
|
let userId = GMEDB.shared.user.string(.senderId) ?? "" |
|
|
|
return "\(baseUrlWithoutVersion)v5/mobile/\(userId)/UpdateCustomerProfile" |
|
|
@ -690,6 +694,8 @@ extension APIRouter { |
|
|
|
extension APIRouter { |
|
|
|
private var method: HTTPMethod { |
|
|
|
switch self { |
|
|
|
case .getLoyalityPoint: |
|
|
|
return .get |
|
|
|
case .accesscode: |
|
|
|
return .post |
|
|
|
case .customerProfile: |
|
|
|