Reapply "feat(loyalty): EnakPoint & EnakCoin" (#32)
This reverts commit 4e24f9bbb0.
This commit is contained in:
@@ -60,6 +60,8 @@ func PaymentMethodAnalyticsModelToContract(resp *models.PaymentMethodAnalyticsRe
|
||||
OrderCount: item.OrderCount,
|
||||
PaymentCount: item.PaymentCount,
|
||||
Percentage: item.Percentage,
|
||||
PointsUsed: item.PointsUsed,
|
||||
CountsAsCashIn: item.CountsAsCashIn,
|
||||
})
|
||||
}
|
||||
|
||||
@@ -72,6 +74,9 @@ func PaymentMethodAnalyticsModelToContract(resp *models.PaymentMethodAnalyticsRe
|
||||
GroupBy: resp.GroupBy,
|
||||
Summary: contract.PaymentMethodSummary{
|
||||
TotalAmount: resp.Summary.TotalAmount,
|
||||
PointAmount: resp.Summary.PointAmount,
|
||||
PointsUsed: resp.Summary.PointsUsed,
|
||||
TotalWithPoints: resp.Summary.TotalWithPoints,
|
||||
TotalOrders: resp.Summary.TotalOrders,
|
||||
TotalPayments: resp.Summary.TotalPayments,
|
||||
AverageOrderValue: resp.Summary.AverageOrderValue,
|
||||
@@ -617,6 +622,8 @@ func DashboardAnalyticsModelToContract(resp *models.DashboardAnalyticsResponse)
|
||||
OrderCount: item.OrderCount,
|
||||
PaymentCount: item.PaymentCount,
|
||||
Percentage: item.Percentage,
|
||||
PointsUsed: item.PointsUsed,
|
||||
CountsAsCashIn: item.CountsAsCashIn,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user