Add Checkin
This commit is contained in:
@@ -61,6 +61,8 @@ type SearchSiteByIDResponse struct {
|
||||
TnC string `json:"tn_c"`
|
||||
AdditionalInfo string `json:"additional_info"`
|
||||
Status string `json:"status"`
|
||||
Region string `json:"region"`
|
||||
Regency string `json:"regency"`
|
||||
}
|
||||
|
||||
type SearchProductSiteByIDResponse struct {
|
||||
|
||||
@@ -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"`
|
||||
|
||||
@@ -1,23 +1,24 @@
|
||||
package response
|
||||
|
||||
type Site struct {
|
||||
ID *int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PartnerID int64 `json:"partner_id"`
|
||||
Image string `json:"image"`
|
||||
Address string `json:"address"`
|
||||
LocationLink string `json:"location_link"`
|
||||
Description string `json:"description"`
|
||||
Highlight string `json:"highlight"`
|
||||
ContactPerson string `json:"contact_person"`
|
||||
TnC string `json:"tnc"`
|
||||
AdditionalInfo string `json:"additional_info"`
|
||||
Status string `json:"status"`
|
||||
IsSeasonTicket bool `json:"is_season_ticket"`
|
||||
IsDiscountActive bool `json:"is_discount_active"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
ID *int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
PartnerID int64 `json:"partner_id"`
|
||||
Image string `json:"image"`
|
||||
Address string `json:"address"`
|
||||
LocationLink string `json:"location_link"`
|
||||
Description string `json:"description"`
|
||||
Highlight string `json:"highlight"`
|
||||
ContactPerson string `json:"contact_person"`
|
||||
TnC string `json:"tnc"`
|
||||
AdditionalInfo string `json:"additional_info"`
|
||||
Status string `json:"status"`
|
||||
IsSeasonTicket bool `json:"is_season_ticket"`
|
||||
IsDiscountActive bool `json:"is_discount_active"`
|
||||
CreatedAt string `json:"created_at"`
|
||||
UpdatedAt string `json:"updated_at"`
|
||||
Products []Product `json:"products"`
|
||||
LatLong string `json:"lat_long"`
|
||||
}
|
||||
|
||||
type SiteName struct {
|
||||
|
||||
Reference in New Issue
Block a user