Add Inquiry Total Payment

This commit is contained in:
aditya.siregar
2024-08-21 22:56:53 +07:00
parent 6063713ad2
commit 5396128818
3 changed files with 12 additions and 0 deletions
@@ -111,6 +111,10 @@ func MapOrderToCreateOrderResponse(orderResponse *entity.OrderResponse) response
CreatedAt: order.CreatedAt,
OrderItems: orderItems,
Token: orderResponse.Token,
Fee: order.Fee,
Total: order.Total,
VisitDate: order.VisitDate.Format("2006-01-02"),
SiteName: order.Site.Name,
}
}
+2
View File
@@ -84,6 +84,8 @@ type OrderBranchRevenue struct {
type CreateOrderResponse struct {
ID int64 `json:"id"`
SiteName string `json:"site_name"`
VisitDate string `json:"visit_date"`
RefID string `json:"ref_id"`
PartnerID int64 `json:"partner_id"`
Status string `json:"status"`