Browse Source

feedbacks

v0.17
Dibya 1 year ago
parent
commit
523d53423d
  1. BIN
      .DS_Store
  2. 6
      GME Remit/APIs/Router/APIRouter.swift
  3. 2
      GME Remit/Modules/Loyality Points/Application Logic/Service/LoyalityPointsService.swift

BIN
.DS_Store

6
GME Remit/APIs/Router/APIRouter.swift

@ -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:

2
GME Remit/Modules/Loyality Points/Application Logic/Service/LoyalityPointsService.swift

@ -12,6 +12,6 @@ class LoyalityPointsService: LoyalityPointsServiceType {
func fetchloyalityPoints(success: @escaping (LoyalityPointsModel) -> Void,
failure: @escaping (Error) -> Void) {
// APIRouter.getLoyalityPoint.json(needsAuthorization: true, success: success, failure: failure)
APIRouter.getLoyalityPoint.json(needsAuthorization: true, success: success, failure: failure)
}
}
Loading…
Cancel
Save