|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace DJStarCOM\BookingComSDK\Models; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
class ProcessBooking extends Model |
|
8
|
|
|
{ |
|
9
|
|
|
/** |
|
10
|
|
|
* Prediction of booker's next trips |
|
11
|
|
|
* display conditionnext_trips=3 |
|
12
|
|
|
* @var array of obj |
|
13
|
|
|
*/ |
|
14
|
|
|
protected $next_trips; |
|
15
|
|
|
|
|
16
|
|
|
/** |
|
17
|
|
|
* A four-digit number used in combination with the booking number to give the customer access to view, |
|
18
|
|
|
* modify or cancel their booking. In th test mode, this value will be '0000'. |
|
19
|
|
|
* |
|
20
|
|
|
* @var string |
|
21
|
|
|
*/ |
|
22
|
|
|
protected $pincode; |
|
23
|
|
|
|
|
24
|
|
|
/** |
|
25
|
|
|
* Link to the google maps static map for this hotel's location. |
|
26
|
|
|
* It is only displayed for Windows 8.0 affiliate ids. |
|
27
|
|
|
* display conditionaffiliate_id=000000 |
|
28
|
|
|
* |
|
29
|
|
|
* @var string |
|
30
|
|
|
*/ |
|
31
|
|
|
protected $gmaps_url; |
|
32
|
|
|
|
|
33
|
|
|
/** |
|
34
|
|
|
* A nine or ten digit number that uniquely identifies the booking that was just made. |
|
35
|
|
|
* In the test mode, this value will be '0'. |
|
36
|
|
|
* |
|
37
|
|
|
* @var int |
|
38
|
|
|
*/ |
|
39
|
|
|
protected $reservation_id; |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* display conditionextras=hotel_contact_info |
|
43
|
|
|
* @var object |
|
44
|
|
|
*/ |
|
45
|
|
|
protected $hotel_contact_info; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* @return array of objects |
|
49
|
|
|
*/ |
|
50
|
|
|
public function getNextTrips(): ?array |
|
51
|
|
|
{ |
|
52
|
|
|
return $this->next_trips; |
|
53
|
|
|
} |
|
54
|
|
|
|
|
55
|
|
|
/** |
|
56
|
|
|
* @return string |
|
57
|
|
|
*/ |
|
58
|
|
|
public function getPincode(): string |
|
59
|
|
|
{ |
|
60
|
|
|
return $this->pincode; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* @return string |
|
65
|
|
|
*/ |
|
66
|
|
|
public function getGmapsUrl(): ?string |
|
67
|
|
|
{ |
|
68
|
|
|
return $this->gmaps_url; |
|
69
|
|
|
} |
|
70
|
|
|
|
|
71
|
|
|
/** |
|
72
|
|
|
* @return int |
|
73
|
|
|
*/ |
|
74
|
|
|
public function getReservationId(): int |
|
75
|
|
|
{ |
|
76
|
|
|
return $this->reservation_id; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* @return object |
|
81
|
|
|
*/ |
|
82
|
|
|
public function getHotelContactInfo(): stdClass |
|
83
|
|
|
{ |
|
84
|
|
|
return $this->hotel_contact_info; |
|
85
|
|
|
} |
|
86
|
|
|
|
|
87
|
|
|
/** |
|
88
|
|
|
* @return array |
|
89
|
|
|
*/ |
|
90
|
|
|
protected function getAttributeMap(): array |
|
91
|
|
|
{ |
|
92
|
|
|
return [ |
|
93
|
|
|
'next_trips' => 'array', |
|
94
|
|
|
'pincode' => 'string', |
|
95
|
|
|
'gmaps_url' => 'string', |
|
96
|
|
|
'reservation_id' => 'integer', |
|
97
|
|
|
'hotel_contact_info' => 'object', |
|
98
|
|
|
]; |
|
99
|
|
|
} |
|
100
|
|
|
} |
|
101
|
|
|
|