Reapply "feat(loyalty): EnakPoint & EnakCoin" (#32)
This reverts commit 4e24f9bbb0.
This commit is contained in:
@@ -161,6 +161,8 @@ func OrderModelToContract(resp *models.OrderResponse) *contract.OrderResponse {
|
||||
TotalPaid: resp.TotalPaid,
|
||||
PaymentCount: resp.PaymentCount,
|
||||
SplitType: resp.SplitType,
|
||||
PointsEarned: resp.PointsEarned,
|
||||
CoinsEarned: resp.CoinsEarned,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,6 +324,8 @@ func CreatePaymentContractToModel(req *contract.CreatePaymentRequest) *models.Cr
|
||||
return &models.CreatePaymentRequest{
|
||||
OrderID: req.OrderID,
|
||||
PaymentMethodID: req.PaymentMethodID,
|
||||
Points: req.Points,
|
||||
PaymentCode: req.PaymentCode,
|
||||
Amount: req.Amount,
|
||||
TransactionID: req.TransactionID,
|
||||
SplitNumber: req.SplitNumber,
|
||||
@@ -363,6 +367,8 @@ func PaymentModelToContract(resp *models.PaymentResponse) *contract.PaymentRespo
|
||||
SplitType: resp.SplitType,
|
||||
SplitDescription: resp.SplitDescription,
|
||||
RefundAmount: resp.RefundAmount,
|
||||
PointsUsed: resp.PointsUsed,
|
||||
PointValue: resp.PointValue,
|
||||
RefundReason: resp.RefundReason,
|
||||
RefundedAt: resp.RefundedAt,
|
||||
RefundedBy: resp.RefundedBy,
|
||||
|
||||
Reference in New Issue
Block a user