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\DocRefund\UpdateRefund; |
24
|
|
|
|
25
|
|
|
use Amadeus\Client\RequestOptions\DocRefund\MonetaryData; |
26
|
|
|
use Amadeus\Client\Struct\Fop\MonetaryDetails as FopMonetaryDetails; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* MonetaryDetails |
30
|
|
|
* |
31
|
|
|
* @package Amadeus\Client\Struct\DocRefund\UpdateRefund |
32
|
|
|
* @author Dieter Devlieghere <[email protected]> |
33
|
|
|
*/ |
34
|
|
|
class MonetaryDetails extends FopMonetaryDetails |
35
|
|
|
{ |
36
|
|
|
const TYPE_AMOUNT_ENTERED_BY_AGENT = "AEA"; |
37
|
|
|
const TYPE_BASE_FARE = "B"; |
38
|
|
|
const TYPE_CANCELLATION_PENALTY = "CP"; |
39
|
|
|
const TYPE_CURENCY_CONVERSION_AMOUNT = "CUR"; |
40
|
|
|
const TYPE_DISCOUNT_AMOUNT_STORED_IN_REFUND_PANEL = "DA"; |
41
|
|
|
const TYPE_DISCOUNT_AMOUNT_COMPUTED_BY_ATC_REFUND = "DAA"; |
42
|
|
|
const TYPE_FARE_REFUND = "FRF"; |
43
|
|
|
const TYPE_GST_TAX_AMOUNT = "GST"; |
44
|
|
|
const TYPE_FARE_PAID_IN_MILES = "MFP"; |
45
|
|
|
const TYPE_FARE_REFUND_IN_MILES = "MFR"; |
46
|
|
|
const TYPE_FARE_USED_IN_MILES = "MFU"; |
47
|
|
|
const TYPE_REFUND_TOTAL_IN_MILES = "MRT"; |
48
|
|
|
const TYPE_NET_FARE_PAID = "NFP"; |
49
|
|
|
const TYPE_NET_FARE_REFUND = "NFR"; |
50
|
|
|
const TYPE_NET_FARE_USED = "NFU"; |
51
|
|
|
const TYPE_NET_REMIT_TOTAL_AMOUNT = "NR"; |
52
|
|
|
const TYPE_NO_SHOW_FEE = "NSF"; |
53
|
|
|
const TYPE_PUBLISHED_FARE_PAID = "PFP"; |
54
|
|
|
const TYPE_PUBLISHED_FARE_REFUND = "PFR"; |
55
|
|
|
const TYPE_PUBLISHED_FARE_USED = "PFU"; |
56
|
|
|
const TYPE_REFUND_TOTAL = "RFT"; |
57
|
|
|
const TYPE_FARE_USED = "RFU"; |
58
|
|
|
const TYPE_MISCELLANEOUS_FEE = "RMF"; |
59
|
|
|
const TYPE_SELLING_FARE_PAID = "SFP"; |
60
|
|
|
const TYPE_SELLING_FARE_REFUND = "SFR"; |
61
|
|
|
const TYPE_SELLING_FARE_USED = "SFU"; |
62
|
|
|
const TYPE_TOTAL_TAXES = "TXT"; |
63
|
|
|
|
64
|
|
|
/** |
65
|
|
|
* MonetaryDetails constructor. |
66
|
|
|
* |
67
|
|
|
* @param MonetaryData $data |
68
|
|
|
*/ |
69
|
20 |
|
public function __construct(MonetaryData $data) |
70
|
|
|
{ |
71
|
20 |
|
parent::__construct($data->amount, $data->currency, $data->type); |
72
|
20 |
|
} |
73
|
|
|
} |
74
|
|
|
|