You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,9 @@ All notable changes to this project will be documented in this file.
3
3
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
Copy file name to clipboardExpand all lines: src/Resources/Basket.php
+62-3Lines changed: 62 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,15 +31,30 @@
31
31
32
32
class Basket extends AbstractUnzerResource
33
33
{
34
-
/** @var float $amountTotalGross */
34
+
/**
35
+
* @var float $amountTotalGross
36
+
*
37
+
* @deprecated since 1.1.5.0 @see $totalValueGross.
38
+
*/
35
39
protected$amountTotalGross = 0.0;
36
40
37
-
/** @var float $amountTotalDiscount */
41
+
/**
42
+
* @var float $amountTotalDiscount
43
+
*
44
+
* @deprecated since 1.1.5.0 @see Please set $amountDiscountPerUnitGross for each element of $basketItems instead.
45
+
*/
38
46
protected$amountTotalDiscount = 0.0;
39
47
40
-
/** @var float $amountTotalVat */
48
+
/**
49
+
* @var float $amountTotalVat
50
+
*
51
+
* @deprecated since 1.1.5.0 Please set the $vat in percent for each element of $basketItems instead, if not already happened. The actual amount is not required anymore.
52
+
*/
41
53
protected$amountTotalVat = 0.0;
42
54
55
+
/** @var float $totalValueGross */
56
+
protected$totalValueGross = 0.0;
57
+
43
58
/** @var string $currencyCode */
44
59
protected$currencyCode;
45
60
@@ -55,6 +70,8 @@ class Basket extends AbstractUnzerResource
55
70
/**
56
71
* Basket constructor.
57
72
*
73
+
* @deprecated since 1.1.5.0 Please call constructor without parameters and use setter functions instead.
74
+
*
58
75
* @param float $amountTotalGross
59
76
* @param string $currencyCode
60
77
* @param string $orderId
@@ -76,6 +93,8 @@ public function __construct(
76
93
77
94
/**
78
95
* @return float
96
+
*
97
+
* @deprecated since 1.1.5.0 @see $getTotalValueGross.
79
98
*/
80
99
publicfunctiongetAmountTotalGross(): float
81
100
{
@@ -85,6 +104,8 @@ public function getAmountTotalGross(): float
85
104
/**
86
105
* @param float $amountTotalGross
87
106
*
107
+
* @deprecated since 1.1.5.0 @see $getTotalValueGross.
0 commit comments