|
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\Fop; |
|
24
|
|
|
|
|
25
|
|
|
/** |
|
26
|
|
|
* AttributeDetails |
|
27
|
|
|
* |
|
28
|
|
|
* @package Amadeus\Client\Struct\Fop |
|
29
|
|
|
* @author Dieter Devlieghere <[email protected]> |
|
30
|
|
|
*/ |
|
31
|
|
|
class AttributeDetails |
|
32
|
|
|
{ |
|
33
|
|
|
const TYPE_AUTHORISATION_ONLY = "AO"; |
|
34
|
|
|
const TYPE_FC_ELEMENT = "FC"; |
|
35
|
|
|
const TYPE_FP_ELEMENT = "FP"; |
|
36
|
|
|
const TYPE_PAY_ELEMENT = "PAY"; |
|
37
|
|
|
|
|
38
|
|
|
|
|
39
|
|
|
const TYPE_BEST_FARE_CANDIDATE = "BFAREC"; |
|
40
|
|
|
const TYPE_CIND = "CIND"; |
|
41
|
|
|
const TYPE_GWT_DATA = "GWTD"; |
|
42
|
|
|
const TYPE_GWT_REQUIRED = "GWTR"; |
|
43
|
|
|
const TYPE_CC_HOLDER_NAME = "HOLDN"; |
|
44
|
|
|
const TYPE_ONO_DATA = "ONOD"; |
|
45
|
|
|
const TYPE_ONO_REQUIRED = "ONOR"; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* Give tag for a pair tag, value |
|
49
|
|
|
* |
|
50
|
|
|
* self::TYPE_* |
|
51
|
|
|
* |
|
52
|
|
|
* @var string |
|
53
|
|
|
*/ |
|
54
|
|
|
public $attributeType; |
|
55
|
|
|
|
|
56
|
|
|
/** |
|
57
|
|
|
* Free form description of an attribute |
|
58
|
|
|
* |
|
59
|
|
|
* @var string |
|
60
|
|
|
*/ |
|
61
|
|
|
public $attributeDescription; |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* AttributeDetails constructor. |
|
65
|
|
|
* |
|
66
|
|
|
* @param string $attributeType self::TYPE_* |
|
67
|
|
|
* @param string|null $attributeDescription |
|
68
|
|
|
*/ |
|
69
|
13 |
|
public function __construct($attributeType, $attributeDescription = null) |
|
70
|
|
|
{ |
|
71
|
13 |
|
$this->attributeType = $attributeType; |
|
72
|
13 |
|
$this->attributeDescription = $attributeDescription; |
|
73
|
13 |
|
} |
|
74
|
|
|
} |
|
75
|
|
|
|