Add Checkin
This commit is contained in:
@@ -26,18 +26,18 @@ type OrderAmount struct {
|
||||
}
|
||||
|
||||
type HistoryOrder struct {
|
||||
ID int64 `json:"id"`
|
||||
Employee string `json:"employee"`
|
||||
Site string `json:"site"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
BookingTime string `json:"booking_time"`
|
||||
Tickets []string `json:"tickets"`
|
||||
PaymentType string `json:"payment_type"`
|
||||
Status string `json:"status"`
|
||||
Amount float64 `json:"amount"`
|
||||
VisitDate string `json:"visit_date"`
|
||||
TicketStatus string `json:"ticket_status"`
|
||||
Source string `json:"source"`
|
||||
ID int64 `json:"id"`
|
||||
Employee string `json:"employee"`
|
||||
Site string `json:"site"`
|
||||
Timestamp string `json:"timestamp"`
|
||||
BookingTime string `json:"booking_time"`
|
||||
Tickets []string `json:"tickets"`
|
||||
PaymentType string `json:"payment_type"`
|
||||
Status string `json:"status"`
|
||||
Amount float64 `json:"amount"`
|
||||
VisitDate string `json:"visit_date"`
|
||||
TicketStatus string `json:"ticket_status"`
|
||||
Source string `json:"source"`
|
||||
}
|
||||
|
||||
type OrderItem struct {
|
||||
@@ -110,6 +110,24 @@ type ExecuteOrderResponse struct {
|
||||
QRcode string `json:"qr_code"`
|
||||
}
|
||||
|
||||
type ExecuteCheckinResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
RefID string `json:"ref_id"`
|
||||
PartnerID int64 `json:"partner_id"`
|
||||
Status string `json:"status"`
|
||||
Amount float64 `json:"amount"`
|
||||
PaymentType string `json:"payment_type"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
OrderItems []CreateOrderItemResponse `json:"order_items"`
|
||||
PaymentToken string `json:"payment_token"`
|
||||
RedirectURL string `json:"redirect_url"`
|
||||
QRcode string `json:"qr_code"`
|
||||
}
|
||||
|
||||
type CheckingInquiryResponse struct {
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type CreateOrderItemResponse struct {
|
||||
ID int64 `json:"id"`
|
||||
ItemID int64 `json:"item_id"`
|
||||
|
||||
Reference in New Issue
Block a user