|
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\TaxData; |
|
26
|
|
|
|
|
27
|
|
|
/** |
|
28
|
|
|
* TaxDetailsInformation |
|
29
|
|
|
* |
|
30
|
|
|
* @package Amadeus\Client\Struct\DocRefund\UpdateRefund |
|
31
|
|
|
* @author Dieter Devlieghere <[email protected]> |
|
32
|
|
|
*/ |
|
33
|
|
|
class TaxDetailsInformation |
|
34
|
|
|
{ |
|
35
|
|
|
const CATEGORY_ADDITIONAL_COLLECTION = "700"; |
|
36
|
|
|
const CATEGORY_PAID = "701"; |
|
37
|
|
|
const CATEGORY_CURRENT = "702"; |
|
38
|
|
|
const CATEGORY_TOTAL_AMOUNT_OF_ALL_PASSENGER_FACILITY_CHARGES = "703"; |
|
39
|
|
|
const CATEGORY_TOTAL_TAXES = "704"; |
|
40
|
|
|
const CATEGORY_INCLUDE_DEPARTURE_TAXES_ONLY = "D"; |
|
41
|
|
|
const CATEGORY_TAX_EXEMPT = "E"; |
|
42
|
|
|
const CATEGORY_TAXES_INCLUDED = "I"; |
|
43
|
|
|
const CATEGORY_TAXES_NOT_APPLICABLE = "N"; |
|
44
|
|
|
const CATEGORY_EXEMPT_SECURITY_SURCHARGE = "Q"; |
|
45
|
|
|
const CATEGORY_DOMESTIC_TAX_NOT_APPLICABLE = "T"; |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* self::CATEGORY_* |
|
49
|
|
|
* |
|
50
|
|
|
* @var string |
|
51
|
|
|
*/ |
|
52
|
|
|
public $taxCategory; |
|
53
|
|
|
|
|
54
|
|
|
/** |
|
55
|
|
|
* @var TaxDetails[] |
|
56
|
|
|
*/ |
|
57
|
|
|
public $taxDetails = []; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* TaxDetailsInformation constructor. |
|
61
|
|
|
* |
|
62
|
|
|
* @param TaxData $taxData |
|
63
|
|
|
*/ |
|
64
|
4 |
|
public function __construct(TaxData $taxData) |
|
65
|
|
|
{ |
|
66
|
4 |
|
$this->taxCategory = $taxData->category; |
|
67
|
|
|
|
|
68
|
4 |
|
$this->taxDetails[] = new TaxDetails( |
|
69
|
4 |
|
$taxData->rate, |
|
70
|
4 |
|
$taxData->countryCode, |
|
71
|
4 |
|
$taxData->currencyCode, |
|
72
|
4 |
|
$taxData->type |
|
73
|
4 |
|
); |
|
74
|
4 |
|
} |
|
75
|
|
|
} |
|
76
|
|
|
|