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
|
|
|
* MonetaryDetails |
27
|
|
|
* |
28
|
|
|
* @package Amadeus\Client\Struct\Fop |
29
|
|
|
* @author Dieter Devlieghere <[email protected]> |
30
|
|
|
*/ |
31
|
|
|
class MonetaryDetails |
32
|
|
|
{ |
33
|
|
|
const TYPE_TOTAL_FARE_AMOUNT = "712"; |
34
|
|
|
const TYPE_ADDITIONAL_COLLECTION_AMOUNT = "A"; |
35
|
|
|
const TYPE_AUTHORIZED_AMOUNT = "AUT"; |
36
|
|
|
const TYPE_BALANCE = "BAL"; |
37
|
|
|
const TYPE_TRANSACTION_TOTAL_AMOUNT = "I"; |
38
|
|
|
const TYPE_TRANSACTION_TOTAL_AMOUNT_IN_PNR_CURRENCY = "IPC"; |
39
|
|
|
const TYPE_FIRST_INSTALMENT_AMOUNT = "ISF"; |
40
|
|
|
const TYPE_INSTALMENT_INTEREST = "ISI"; |
41
|
|
|
const TYPE_FOLLOWING_INSTALMENT_AMOUNT = "ISN"; |
42
|
|
|
const TYPE_INITIAL_TST_TOTAL_AMOUNT = "IT"; |
43
|
|
|
const TYPE_INITIAL_TOTAL_AMOUNT_IN_PNR_CURRENCY = "ITC"; |
44
|
|
|
const TYPE_MILES = "MIL"; |
45
|
|
|
const TYPE_PENALTY = "PEN"; |
46
|
|
|
const TYPE_TOTAL_AMOUNT_REMAINING_AMOUNT = "R"; |
47
|
|
|
const TYPE_REFUNDABLE_AMOUNT = "REF"; |
48
|
|
|
const TYPE_REUSABLE_AMOUNT = "REU"; |
49
|
|
|
const TYPE_INITIAL_TST_INDIVIDUAL_AMOUNT = "T"; |
50
|
|
|
const TYPE_INITIAL_TST_INDIVIDUAL_AMOUNT_TPC = "TPC"; |
51
|
|
|
|
52
|
|
|
/** |
53
|
|
|
* self::QUAL_* |
54
|
|
|
* |
55
|
|
|
* @var string |
56
|
|
|
*/ |
57
|
|
|
public $typeQualifier; |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @var int|string|double |
61
|
|
|
*/ |
62
|
|
|
public $amount; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* @var string |
66
|
|
|
*/ |
67
|
|
|
public $currency; |
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* Construct MonetaryDetails |
71
|
|
|
* |
72
|
|
|
* @param int|double $amount |
73
|
|
|
* @param string $currency 3-character currency code |
74
|
|
|
* @param string $type self::TYPE_* |
75
|
|
|
*/ |
76
|
5 |
|
public function __construct($amount, $currency, $type) |
77
|
|
|
{ |
78
|
5 |
|
$this->amount = $amount; |
79
|
5 |
|
$this->currency = $currency; |
80
|
5 |
|
$this->typeQualifier = $type; |
81
|
5 |
|
} |
82
|
|
|
} |
83
|
|
|
|