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
|
|
|
use Amadeus\Client\RequestOptions\Fop\ThreeDSecureInfo; |
26
|
|
|
use Amadeus\Client\Struct\WsMessageUtility; |
27
|
|
|
|
28
|
|
|
/** |
29
|
|
|
* CreditCardDetailedData |
30
|
|
|
* |
31
|
|
|
* @package Amadeus\Client\Struct\Fop |
32
|
|
|
* @author Dieter Devlieghere <[email protected]> |
33
|
|
|
*/ |
34
|
|
|
class CreditCardDetailedData extends WsMessageUtility |
35
|
|
|
{ |
36
|
|
|
/** |
37
|
|
|
* @var AuthorisationSupplementaryData |
38
|
|
|
*/ |
39
|
|
|
public $authorisationSupplementaryData; |
40
|
|
|
|
41
|
|
|
/** |
42
|
|
|
* @var ApprovalDetails |
43
|
|
|
*/ |
44
|
|
|
public $approvalDetails; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var LocalDateTime[] |
48
|
|
|
*/ |
49
|
|
|
public $localDateTime = []; |
50
|
|
|
|
51
|
|
|
/** |
52
|
|
|
* @var AuthorisationInformation |
53
|
|
|
*/ |
54
|
|
|
public $authorisationInformation; |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* @var BrowserData |
58
|
|
|
*/ |
59
|
|
|
public $browserData; |
60
|
|
|
|
61
|
|
|
/** |
62
|
|
|
* @var TdsInformation |
63
|
|
|
*/ |
64
|
|
|
public $tdsInformation; |
65
|
|
|
|
66
|
|
|
/** |
67
|
|
|
* @var CardSupplementaryData[] |
68
|
|
|
*/ |
69
|
|
|
public $cardSupplementaryData = []; |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @var TransactionStatus[] |
73
|
|
|
*/ |
74
|
|
|
public $transactionStatus = []; |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* CreditCardDetailedData constructor. |
78
|
|
|
* |
79
|
|
|
* @param string $approvalCode |
80
|
|
|
* @param string $approvalSource |
81
|
|
|
* @param ThreeDSecureInfo|null $threeDSecure |
82
|
|
|
*/ |
83
|
2 |
|
public function __construct($approvalCode, $approvalSource, $threeDSecure = null) |
84
|
|
|
{ |
85
|
2 |
|
if (!empty($approvalCode)) { |
86
|
1 |
|
$this->approvalDetails = new ApprovalDetails($approvalCode, $approvalSource); |
87
|
1 |
|
} |
88
|
|
|
|
89
|
2 |
|
if ($threeDSecure instanceof ThreeDSecureInfo) { |
90
|
1 |
|
$this->tdsInformation = new TdsInformation($threeDSecure); |
91
|
1 |
|
} |
92
|
2 |
|
} |
93
|
|
|
} |
94
|
|
|
|