-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrequestStructures.go
79 lines (71 loc) · 2.31 KB
/
requestStructures.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package aandaSdk
type Auth struct {
BuyerId string
UserId string
Password string
Language string
}
type HotelSearchRequest struct {
Auth
City string `json:"City"`
Lat string `json:"Lat"`
Lng string `json:"Lng"`
Radius string `json:"Radius"`
ArrivalDate string `json:"ArrivalDate"`
DepartureDate string `json:"DepartureDate"`
PriceFrom string `json:"PriceFrom"`
PriceTo string `json:"PriceTo"`
NumberOfGuests string `json:"NumberOfGuests"`
}
type HotelPricingRequest struct {
Auth
Hotel string `json:"Hotel"`
ProductCode string `json:"ProductCode"`
Currency string `json:"Currency"`
WhereToPay string `json:"WhereToPay"`
ArrivalDate string `json:"ArrivalDate"`
DepartureDate string `json:"DepartureDate"`
ArrivalTime string `json:"ArrivalTime"`
DepartureTime string `json:"DepartureTime"`
NumberOfGuests string `json:"NumberOfGuests"`
}
type OrderRequest struct {
Auth
OrderId string `json:"order_id"`
ArrivalDate string `json:"arrival_date"`
DepartureDate string `json:"departure_date"`
AddInfo string `json:"add_info"`
ChangeCode string `json:"change_code"`
CancelCode string `json:"cancel_code"`
HotelCode string `json:"hotel_code"`
RoomCode string `json:"room_code"`
Meal string `json:"Meal"`
ArrivalTime string `json:"arrival_time"`
DepartureTime string `json:"departure_time"`
NumberOfGuests string `json:"NumberOfGuests"`
Person []Person `json:"Person"`
}
type Person struct {
FirstName string `json:"FirstName"`
LastName string `json:"LastName"`
}
type OrderInfoRequest struct {
Auth
Id string `json:"order_id"`
}
type SendOrderMessageRequest struct {
OrderId string
Message string
}
type OrderListRequest struct {
Auth
LastName string `json:"LastName"` //Доп параметры
ArrivalDateFrom string `json:"ArrivalDateFrom"`
ArrivalDateTo string `json:"ArrivalDateTo"`
DepartureDateFrom string `json:"DepartureDateFrom"`
DepartureDateTo string `json:"DepartureDateTo"`
RegistrationDateFrom string `json:"RegistrationDateFrom"`
RegistrationDateTo string `json:"RegistrationDateTo"`
ChangeDateFrom string `json:"ChangeDateFrom"`
ChangeDateTo string `json:"ChangeDateTo"`
}