|
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\Fare\MasterPricer; |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* FeeId |
|
27
|
|
|
* |
|
28
|
|
|
* @package Amadeus\Client\Struct\Fare\MasterPricer |
|
29
|
|
|
* @author Dieter Devlieghere <[email protected]> |
|
30
|
|
|
*/ |
|
31
|
|
|
class FeeId |
|
32
|
|
|
{ |
|
33
|
|
|
const FEETYPE_ARP_NUMBER = "ARP"; |
|
34
|
|
|
const FEETYPE_FREE_BAGGAGE_ALLOWANCE = "FBA"; |
|
35
|
|
|
const FEETYPE_FARE_FAMILY_INFORMATION = "FFI"; |
|
36
|
|
|
const FEETYPE_NO_PNR_SPLIT = "NPS"; |
|
37
|
|
|
const FEETYPE_PRICE_TO_REACH_AMOUNT_TYPE = "PTRAM"; |
|
38
|
|
|
const FEETYPE_HAL_ROUND_TRIP_COMBINATION = "RTC"; |
|
39
|
|
|
const FEETYPE_SEARCH_BY_FBA = "SBF"; |
|
40
|
|
|
const FEETYPE_SORTING_OPTION = "SORT"; |
|
41
|
|
|
const FEETYPE_TOKEN = "TOKEN"; |
|
42
|
|
|
const FEETYPE_UPSELL_PER_BOUND = "UPB"; |
|
43
|
|
|
const FEETYPE_HOMOGENOUS_UPSELL = "UPH"; |
|
44
|
|
|
|
|
45
|
|
|
/** |
|
46
|
|
|
* Fee Type |
|
47
|
|
|
* |
|
48
|
|
|
* self::FEETYPE_* |
|
49
|
|
|
* |
|
50
|
|
|
* @var string |
|
51
|
|
|
*/ |
|
52
|
|
|
public $feeType; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* Fee Id Number |
|
56
|
|
|
* |
|
57
|
|
|
* @var int |
|
58
|
|
|
*/ |
|
59
|
|
|
public $feeIdNumber; |
|
60
|
|
|
|
|
61
|
|
|
/** |
|
62
|
|
|
* FeeId constructor. |
|
63
|
|
|
* |
|
64
|
|
|
* @param string|null $feeType |
|
65
|
|
|
* @param int|null $feeIdNumber |
|
66
|
|
|
*/ |
|
67
|
1 |
|
public function __construct($feeType = null, $feeIdNumber = null) |
|
68
|
|
|
{ |
|
69
|
1 |
|
if (!is_null($feeType)) { |
|
70
|
1 |
|
$this->feeType = $feeType; |
|
71
|
1 |
|
} |
|
72
|
1 |
|
if (!is_null($feeIdNumber)) { |
|
73
|
1 |
|
$this->feeIdNumber = $feeIdNumber; |
|
74
|
1 |
|
} |
|
75
|
1 |
|
} |
|
76
|
|
|
} |
|
77
|
|
|
|