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; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* MessageFunctionDetails |
27
|
|
|
* |
28
|
|
|
* @package Amadeus\Client\Struct\Fare |
29
|
|
|
* @author Dieter Devlieghere <[email protected]> |
30
|
|
|
*/ |
31
|
|
|
class MessageFunctionDetails |
32
|
|
|
{ |
33
|
|
|
/** |
34
|
|
|
* Message function code for 'Fare Display by city pair' |
35
|
|
|
* |
36
|
|
|
* See functional documentation of Fare_DisplayFaresForCityPair |
37
|
|
|
* https://webservices.amadeus.com/extranet/structures/ |
38
|
|
|
* viewMessageStructure.do?id=21&serviceVersionId=11#_42590_D_APA_Fare_10_codeset |
39
|
|
|
* |
40
|
|
|
* @var int |
41
|
|
|
*/ |
42
|
|
|
const FARE_DISPLAY_BY_CITY_PAIR = 711; |
43
|
|
|
/** |
44
|
|
|
* Message function code for 'Fare Check Rules' |
45
|
|
|
* |
46
|
|
|
* See functional documentation of Fare_CheckRules |
47
|
|
|
* https://webservices.amadeus.com/extranet/structures/ |
48
|
|
|
* viewMessageStructure.do?id=742&serviceVersionId=719#_244505_D_APA_Fare_82_codeset |
49
|
|
|
* |
50
|
|
|
* @var int |
51
|
|
|
*/ |
52
|
|
|
const FARE_DISPLAY_RULES = 712; |
53
|
|
|
/** |
54
|
|
|
* Message function code for 'Fare Reservation Booking (Code) Designator Display' |
55
|
|
|
* |
56
|
|
|
* See functional documentation of Fare_DisplayBookingCodeInformation |
57
|
|
|
* https://webservices.amadeus.com/extranet/structures/ |
58
|
|
|
* viewMessageStructure.do?id=1487&serviceVersionId=1697#_339248_D_APA_Fare_92_codeset |
59
|
|
|
* |
60
|
|
|
* @var int |
61
|
|
|
*/ |
62
|
|
|
const FARE_DISPLAY_BOOKING_CODE_INFORMATION = 724; |
63
|
|
|
/** |
64
|
|
|
* Message function code for 'Fare Currency conversion' |
65
|
|
|
* |
66
|
|
|
* See functional documentation of Fare_ConvertCurrency |
67
|
|
|
* https://webservices.amadeus.com/extranet/structures/ |
68
|
|
|
* viewMessageStructure.do?id=1050&serviceVersionId=1249#_333441_D_APA_Fare_86_codeset |
69
|
|
|
* |
70
|
|
|
* @var int |
71
|
|
|
*/ |
72
|
|
|
const FARE_CURRENCY_CONVERSION = 726; |
73
|
|
|
/** |
74
|
|
|
* Message function code for 'Fare CalculateMileage' |
75
|
|
|
* |
76
|
|
|
* See functional documentation of Fare_ConvertCurrency |
77
|
|
|
* https://webservices.amadeus.com/extranet/structures/ |
78
|
|
|
* viewMessageStructure.do?id=1050&serviceVersionId=1249#_333441_D_APA_Fare_86_codeset |
79
|
|
|
* |
80
|
|
|
* @var int |
81
|
|
|
*/ |
82
|
|
|
const FARE_CALCULATE_MILEAGE = 717; |
83
|
|
|
|
84
|
|
|
/** |
85
|
|
|
* Message function code for 'Fare Get Fare Rules' |
86
|
|
|
* |
87
|
|
|
* See functional documentation of Fare_GetFareRules |
88
|
|
|
* |
89
|
|
|
* @var string |
90
|
|
|
*/ |
91
|
|
|
const FARE_GET_FARE_RULES = "FRN"; |
92
|
|
|
|
93
|
|
|
/** |
94
|
|
|
* @var string|int |
95
|
|
|
*/ |
96
|
|
|
public $messageFunction; |
97
|
|
|
|
98
|
|
|
/** |
99
|
|
|
* MessageFunctionDetails constructor. |
100
|
|
|
* |
101
|
|
|
* @param string|int|null $messageFunction |
102
|
|
|
*/ |
103
|
10 |
|
public function __construct($messageFunction = null) |
104
|
|
|
{ |
105
|
10 |
|
$this->messageFunction = $messageFunction; |
106
|
10 |
|
} |
107
|
|
|
} |
108
|
|
|
|