1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace zaporylie\Vipps\Model\Payment; |
4
|
|
|
|
5
|
|
|
use JMS\Serializer\Annotation as Serializer; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* Class TransactionSummary |
9
|
|
|
* |
10
|
|
|
* @package Vipps\Model\Payment |
11
|
|
|
*/ |
12
|
|
|
class TransactionSummary |
13
|
|
|
{ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* @var int |
17
|
|
|
* @Serializer\Type("integer") |
18
|
|
|
*/ |
19
|
|
|
protected $capturedAmount; |
20
|
|
|
|
21
|
|
|
/** |
22
|
|
|
* @var int |
23
|
|
|
* @Serializer\Type("integer") |
24
|
|
|
*/ |
25
|
|
|
protected $remainingAmountToCapture; |
26
|
|
|
|
27
|
|
|
/** |
28
|
|
|
* @var int |
29
|
|
|
* @Serializer\Type("integer") |
30
|
|
|
*/ |
31
|
|
|
protected $refundedAmount; |
32
|
|
|
|
33
|
|
|
/** |
34
|
|
|
* @var int |
35
|
|
|
* @Serializer\Type("integer") |
36
|
|
|
*/ |
37
|
|
|
protected $remainingAmountToRefund; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Gets capturedAmount value. |
41
|
|
|
* |
42
|
|
|
* @return int |
43
|
|
|
*/ |
44
|
|
|
public function getCapturedAmount() |
45
|
|
|
{ |
46
|
|
|
return $this->capturedAmount; |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* Sets capturedAmount variable. |
51
|
|
|
* |
52
|
|
|
* @param int $capturedAmount |
53
|
|
|
* |
54
|
|
|
* @return $this |
55
|
|
|
*/ |
56
|
|
|
public function setCapturedAmount($capturedAmount) |
57
|
|
|
{ |
58
|
|
|
$this->capturedAmount = $capturedAmount; |
59
|
|
|
return $this; |
60
|
|
|
} |
61
|
|
|
|
62
|
|
|
/** |
63
|
|
|
* Gets remainingAmountToCapture value. |
64
|
|
|
* |
65
|
|
|
* @return int |
66
|
|
|
*/ |
67
|
|
|
public function getRemainingAmountToCapture() |
68
|
|
|
{ |
69
|
|
|
return $this->remainingAmountToCapture; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
/** |
73
|
|
|
* Sets remainingAmountToCapture variable. |
74
|
|
|
* |
75
|
|
|
* @param int $remainingAmountToCapture |
76
|
|
|
* |
77
|
|
|
* @return $this |
78
|
|
|
*/ |
79
|
|
|
public function setRemainingAmountToCapture($remainingAmountToCapture) |
80
|
|
|
{ |
81
|
|
|
$this->remainingAmountToCapture = $remainingAmountToCapture; |
82
|
|
|
return $this; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Gets refundedAmount value. |
87
|
|
|
* |
88
|
|
|
* @return int |
89
|
|
|
*/ |
90
|
|
|
public function getRefundedAmount() |
91
|
|
|
{ |
92
|
|
|
return $this->refundedAmount; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* Sets refundedAmount variable. |
97
|
|
|
* |
98
|
|
|
* @param int $refundedAmount |
99
|
|
|
* |
100
|
|
|
* @return $this |
101
|
|
|
*/ |
102
|
|
|
public function setRefundedAmount($refundedAmount) |
103
|
|
|
{ |
104
|
|
|
$this->refundedAmount = $refundedAmount; |
105
|
|
|
return $this; |
106
|
|
|
} |
107
|
|
|
|
108
|
|
|
/** |
109
|
|
|
* Gets remainingAmountToRefund value. |
110
|
|
|
* |
111
|
|
|
* @return int |
112
|
|
|
*/ |
113
|
|
|
public function getRemainingAmountToRefund() |
114
|
|
|
{ |
115
|
|
|
return $this->remainingAmountToRefund; |
116
|
|
|
} |
117
|
|
|
|
118
|
|
|
/** |
119
|
|
|
* Sets remainingAmountToRefund variable. |
120
|
|
|
* |
121
|
|
|
* @param int $remainingAmountToRefund |
122
|
|
|
* |
123
|
|
|
* @return $this |
124
|
|
|
*/ |
125
|
|
|
public function setRemainingAmountToRefund($remainingAmountToRefund) |
126
|
|
|
{ |
127
|
|
|
$this->remainingAmountToRefund = $remainingAmountToRefund; |
128
|
|
|
return $this; |
129
|
|
|
} |
130
|
|
|
} |
131
|
|
|
|