File tree Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Expand file tree Collapse file tree 3 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 46
46
- BC: Added the ` ?CheckoutSubject ` return type to the ` getCart() ` method of the ` Checkout ` interface
47
47
- BC: Changed ` Checkout::getShippingAddress() ` return type to be nullable
48
48
- BC: Added the void return type to ` Checkout::setShippingAddress() `
49
- - BC: Added the ` removeShippingAddress() ` method to the Checkout interface
49
+ - BC: Added the following methods to the Checkout interface:
50
+ - ` removeShippingAddress() `
51
+ - ` getShippingAmount() `
52
+ - ` setShippingAmount() `
53
+ - ` getTaxesAmount() `
54
+ - ` setTaxesAmount() `
50
55
- BC: The unused ` $config ` parameter has been removed from the ` RequestStore ` checkout driver constructor
51
56
- BC: Added the ` deleteByType() ` and ` clear() ` methods to the ` AdjustmentCollection ` interface
52
57
- Fixed possible null return type on Billpayer::getName() when is_organization is true but the company name is null
Original file line number Diff line number Diff line change 13
13
- BC: The unused ` $config ` parameter has been removed from the ` RequestStore ` checkout driver constructor
14
14
- BC: Changed ` Checkout::getShippingAddress() ` return type to be nullable
15
15
- BC: Added the void return type to ` Checkout::setShippingAddress() `
16
- - BC: Added the ` removeShippingAddress() ` method to the Checkout interface
16
+ - BC: Added the following methods to the Checkout interface:
17
+ - ` removeShippingAddress() `
18
+ - ` getShippingAmount() `
19
+ - ` setShippingAmount() `
20
+ - ` getTaxesAmount() `
21
+ - ` setTaxesAmount() `
17
22
18
23
## 3.x Series
19
24
Original file line number Diff line number Diff line change 17
17
use Vanilo \Contracts \Address ;
18
18
use Vanilo \Contracts \Billpayer ;
19
19
use Vanilo \Contracts \CheckoutSubject ;
20
+ use Vanilo \Contracts \DetailedAmount ;
20
21
21
22
interface Checkout
22
23
{
@@ -71,6 +72,14 @@ public function putCustomAttributes(array $data): void;
71
72
72
73
public function getCustomAttributes (): array ;
73
74
75
+ public function getShippingAmount (): DetailedAmount ;
76
+
77
+ public function setShippingAmount (float |DetailedAmount $ amount ): void ;
78
+
79
+ public function getTaxesAmount (): DetailedAmount ;
80
+
81
+ public function setTaxesAmount (float |DetailedAmount $ amount ): void ;
82
+
74
83
/**
75
84
* Update checkout data with an array of attributes
76
85
*
You can’t perform that action at this time.
0 commit comments