1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* amadeus-ws-client |
4
|
|
|
* |
5
|
|
|
* Copyright 2015 Amadeus Benelux NV |
6
|
|
|
* |
7
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
8
|
|
|
* you may not use this file except in compliance with the License. |
9
|
|
|
* You may obtain a copy of the License at |
10
|
|
|
* |
11
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0 |
12
|
|
|
* |
13
|
|
|
* Unless required by applicable law or agreed to in writing, software |
14
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, |
15
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
16
|
|
|
* See the License for the specific language governing permissions and |
17
|
|
|
* limitations under the License. |
18
|
|
|
* |
19
|
|
|
* @package Amadeus |
20
|
|
|
* @license https://opensource.org/licenses/Apache-2.0 Apache 2.0 |
21
|
|
|
*/ |
22
|
|
|
|
23
|
|
|
namespace Amadeus\Client\Struct\SalesReports; |
24
|
|
|
|
25
|
|
|
use Amadeus\Client\RequestOptions\SalesReportsDisplayQueryReportOptions; |
26
|
|
|
use Amadeus\Client\Struct\BaseWsMessage; |
27
|
|
|
use Amadeus\Client\Struct\SalesReports\DisplayQueryReport\RequestOption; |
28
|
|
|
|
29
|
|
|
/** |
30
|
|
|
* DisplayQueryReport |
31
|
|
|
* |
32
|
|
|
* @package Amadeus\Client\Struct\SalesReports |
33
|
|
|
* @author Dieter Devlieghere <[email protected]> |
34
|
|
|
*/ |
35
|
|
|
class DisplayQueryReport extends BaseWsMessage |
36
|
|
|
{ |
37
|
|
|
/** |
38
|
|
|
* @var DisplayQueryReport\ActionDetails |
39
|
|
|
*/ |
40
|
|
|
public $actionDetails; |
41
|
|
|
|
42
|
|
|
/** |
43
|
|
|
* @var DisplayQueryReport\AgentUserDetails |
44
|
|
|
*/ |
45
|
|
|
public $agentUserDetails; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @var DisplayQueryReport\DateDetails |
49
|
|
|
*/ |
50
|
|
|
public $dateDetails; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* @var DisplayQueryReport\CurrencyInfo |
54
|
|
|
*/ |
55
|
|
|
public $currencyInfo; |
56
|
|
|
|
57
|
|
|
/** |
58
|
|
|
* @var DisplayQueryReport\AgencyDetails |
59
|
|
|
*/ |
60
|
|
|
public $agencyDetails; |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* @var DisplayQueryReport\SalesPeriodDetails |
64
|
|
|
*/ |
65
|
|
|
public $salesPeriodDetails; |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* @var DisplayQueryReport\TransactionData[] |
69
|
|
|
*/ |
70
|
|
|
public $transactionData = []; |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* @var DisplayQueryReport\FormOfPaymentDetails |
74
|
|
|
*/ |
75
|
|
|
public $formOfPaymentDetails; |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* @var DisplayQueryReport\ValidatingCarrierDetails |
79
|
|
|
*/ |
80
|
|
|
public $validatingCarrierDetails; |
81
|
|
|
|
82
|
|
|
/** |
83
|
|
|
* @var DisplayQueryReport\RequestOption |
84
|
|
|
*/ |
85
|
|
|
public $requestOption; |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @var DisplayQueryReport\SalesIndicator |
89
|
|
|
*/ |
90
|
|
|
public $salesIndicator; |
91
|
|
|
|
92
|
|
|
/** |
93
|
|
|
* @var DisplayQueryReport\FromSequenceDocumentNumber |
94
|
|
|
*/ |
95
|
|
|
public $fromSequenceDocumentNumber; |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @var DisplayQueryReport\AttributeInfo |
99
|
|
|
*/ |
100
|
|
|
public $attributeInfo; |
101
|
|
|
|
102
|
|
|
/** |
103
|
|
|
* DisplayQueryReport constructor. |
104
|
|
|
* |
105
|
|
|
* @param SalesReportsDisplayQueryReportOptions $options |
106
|
|
|
*/ |
107
|
|
|
public function __construct(SalesReportsDisplayQueryReportOptions $options) |
108
|
|
|
{ |
109
|
|
|
$this->loadRequestOptions($options->requestOptions); |
110
|
|
|
|
111
|
|
|
$this->loadAgencySource($options->agencySourceType, $options->agencyIataNumber, $options->agencyOfficeId); |
112
|
|
|
|
113
|
|
|
$this->loadAgent($options->agentCode); |
114
|
|
|
|
115
|
|
|
$this->loadTransaction( |
116
|
|
|
$options->transactionCode, |
117
|
|
|
$options->transactionType, |
118
|
|
|
$options->transactionIssueIndicator |
119
|
|
|
); |
120
|
|
|
|
121
|
|
|
$this->loadValidatingCarrier($options->validatingCarrier); |
122
|
|
|
|
123
|
|
|
$this->loadDateRange($options->startDate, $options->endDate); |
124
|
|
|
|
125
|
|
|
$this->loadDate($options->specificDateType, $options->specificDate); |
126
|
|
|
|
127
|
|
|
$this->loadCurrency($options->currencyType, $options->currency); |
128
|
|
|
|
129
|
|
|
$this->loadFormOfPayment($options->fopType, $options->fopVendor); |
130
|
|
|
|
131
|
|
|
$this->loadSalesIndicator($options->salesIndicator); |
132
|
|
|
|
133
|
|
|
$this->loadScrolling($options->scrollingCount, $options->scrollingFromItem); |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
/** |
137
|
|
|
* @param array|null $requestOptions |
138
|
|
|
*/ |
139
|
|
|
protected function loadRequestOptions($requestOptions) |
140
|
|
|
{ |
141
|
|
|
if (!empty($requestOptions)) { |
142
|
|
|
$this->requestOption = new RequestOption($requestOptions); |
143
|
|
|
} |
144
|
|
|
} |
145
|
|
|
|
146
|
|
|
/** |
147
|
|
|
* @param string|null $agencySourceType |
148
|
|
|
* @param string|null $iataNumber |
149
|
|
|
* @param string|null $officeId |
150
|
|
|
*/ |
151
|
|
|
protected function loadAgencySource($agencySourceType, $iataNumber, $officeId) |
|
|
|
|
152
|
|
|
{ |
153
|
|
|
|
154
|
|
|
} |
155
|
|
|
|
156
|
|
|
/** |
157
|
|
|
* @param string|null $agentCode |
158
|
|
|
*/ |
159
|
|
|
protected function loadAgent($agentCode) |
|
|
|
|
160
|
|
|
{ |
161
|
|
|
|
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
/** |
165
|
|
|
* @param string|null $type |
166
|
|
|
* @param string|null $code |
167
|
|
|
* @param string|null $issueIndicator |
168
|
|
|
*/ |
169
|
|
|
protected function loadTransaction($type, $code, $issueIndicator) |
|
|
|
|
170
|
|
|
{ |
171
|
|
|
|
172
|
|
|
} |
173
|
|
|
|
174
|
|
|
/** |
175
|
|
|
* @param string|null $validatingCarrier |
176
|
|
|
*/ |
177
|
|
|
protected function loadValidatingCarrier($validatingCarrier) |
|
|
|
|
178
|
|
|
{ |
179
|
|
|
|
180
|
|
|
} |
181
|
|
|
|
182
|
|
|
/** |
183
|
|
|
* @param \DateTime|null $startDate |
184
|
|
|
* @param \DateTime|null $endDate |
185
|
|
|
*/ |
186
|
|
|
protected function loadDateRange($startDate, $endDate) |
|
|
|
|
187
|
|
|
{ |
188
|
|
|
|
189
|
|
|
} |
190
|
|
|
|
191
|
|
|
/** |
192
|
|
|
* @param string|null $type |
193
|
|
|
* @param \DateTime|null $date |
194
|
|
|
*/ |
195
|
|
|
protected function loadDate($type, $date) |
|
|
|
|
196
|
|
|
{ |
197
|
|
|
|
198
|
|
|
} |
199
|
|
|
|
200
|
|
|
/** |
201
|
|
|
* @param string $type |
202
|
|
|
* @param string $currency |
203
|
|
|
*/ |
204
|
|
|
protected function loadCurrency($type, $currency) |
|
|
|
|
205
|
|
|
{ |
206
|
|
|
|
207
|
|
|
} |
208
|
|
|
|
209
|
|
|
/** |
210
|
|
|
* @param string $type |
211
|
|
|
* @param string $vendor |
212
|
|
|
*/ |
213
|
|
|
protected function loadFormOfPayment($type, $vendor) |
|
|
|
|
214
|
|
|
{ |
215
|
|
|
|
216
|
|
|
} |
217
|
|
|
|
218
|
|
|
/** |
219
|
|
|
* @param string $indicator |
220
|
|
|
*/ |
221
|
|
|
protected function loadSalesIndicator($indicator) |
|
|
|
|
222
|
|
|
{ |
223
|
|
|
|
224
|
|
|
} |
225
|
|
|
|
226
|
|
|
/** |
227
|
|
|
* @param int $count |
228
|
|
|
* @param string $fromItem |
229
|
|
|
*/ |
230
|
|
|
protected function loadScrolling($count, $fromItem) |
|
|
|
|
231
|
|
|
{ |
232
|
|
|
|
233
|
|
|
} |
234
|
|
|
} |
235
|
|
|
|
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.