1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace Cardinity\Method\Payment; |
4
|
|
|
|
5
|
|
|
// only for serialization (testing?) |
6
|
|
|
// use Cardinity\Method\ResultObject; |
7
|
|
|
|
8
|
|
|
use Cardinity\Method\Payment\BrowserInfoInterface; |
9
|
|
|
use Cardinity\Method\Payment\Address; |
10
|
|
|
use Cardinity\Method\Payment\CardHolderInfo; |
11
|
|
|
|
12
|
|
|
|
13
|
|
|
class ThreeDS2Data //extends ResultObject |
14
|
|
|
{ |
15
|
|
|
/** @type string */ |
16
|
|
|
private $notificationUrl; |
17
|
|
|
|
18
|
|
|
/** @type object */ |
19
|
|
|
private $browserInfo; |
20
|
|
|
|
21
|
|
|
/** @type object */ |
22
|
|
|
private $billingAddress; |
23
|
|
|
|
24
|
|
|
/** @type object */ |
25
|
|
|
private $deliveryAddress; |
26
|
|
|
|
27
|
|
|
/** @type object */ |
28
|
|
|
private $cardHolderInfo; |
29
|
|
|
|
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* @return STRING of notification URL. |
33
|
|
|
*/ |
34
|
|
|
public function getNotificationUrl() |
35
|
|
|
{ |
36
|
|
|
return $this->notificationUrl; |
37
|
|
|
} |
38
|
|
|
|
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @param STRING of notification URL |
42
|
|
|
* @return VOID |
43
|
|
|
*/ |
44
|
|
|
public function setNotificationUrl(string $url) : void |
45
|
|
|
{ |
46
|
|
|
$this->notificationUrl = $url; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* @return BrowserInfoInterface object of browser info. |
52
|
|
|
*/ |
53
|
|
|
public function getBrowserInfo() |
54
|
|
|
{ |
55
|
|
|
return $this->browserInfo; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* @param BrowserInfo object of browser info. |
61
|
|
|
* @return VOID |
62
|
|
|
*/ |
63
|
|
|
public function setBrowserInfo(BrowserInfo $browserInfo) : void |
64
|
|
|
{ |
65
|
|
|
$this->browserInfo = $browserInfo; |
66
|
|
|
} |
67
|
|
|
|
68
|
|
|
|
69
|
|
|
/** |
70
|
|
|
* @return Address object of billing address. |
71
|
|
|
*/ |
72
|
|
|
public function getBillingAddress() |
73
|
|
|
{ |
74
|
|
|
return $this->billingAddress; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* @param Address object of billing address interface. |
80
|
|
|
* @return VOID |
81
|
|
|
*/ |
82
|
|
|
public function setBillingAddress(Address $billingAddress) : void |
83
|
|
|
{ |
84
|
|
|
$this->billingAddress = $billingAddress; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
|
88
|
|
|
/** |
89
|
|
|
* @return DeliveryAddress object of delivery address interface. |
90
|
|
|
*/ |
91
|
|
|
public function getDeliveryAddress() |
92
|
|
|
{ |
93
|
|
|
return $this->deliveryAddress; |
94
|
|
|
} |
95
|
|
|
|
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* @param Address object of delivery address interface. |
99
|
|
|
* @return VOID |
100
|
|
|
*/ |
101
|
|
|
public function setDeliveryAddress(Address $deliveryAddress) : void |
102
|
|
|
{ |
103
|
|
|
$this->deliveryAddress = $deliveryAddress; |
104
|
|
|
} |
105
|
|
|
|
106
|
|
|
|
107
|
|
|
/** |
108
|
|
|
* @return CardHolderInfo object of card holder info interface. |
109
|
|
|
*/ |
110
|
|
|
public function getCardHolderInfo() |
111
|
|
|
{ |
112
|
|
|
return $this->cardHolderInfo; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
|
116
|
|
|
/** |
117
|
|
|
* @param CardHolderInfo object of card holder info interface. |
118
|
|
|
* @return VOID |
119
|
|
|
*/ |
120
|
|
|
public function setCardHolderInfo(CardHolderInfo $cardHolderInfo) : void |
121
|
|
|
{ |
122
|
|
|
$this->cardHolderInfo = $cardHolderInfo; |
123
|
|
|
} |
124
|
|
|
} |