@@ -23,7 +23,8 @@ public function __construct(OrderReferenceGeneratorInterface $generator)
23
23
/**
24
24
* Execute the action.
25
25
*
26
- * @param \GetCandy\Models\Cart $cart
26
+ * @param \GetCandy\Models\Cart $cart
27
+ *
27
28
* @return void
28
29
*/
29
30
public function execute (
@@ -56,9 +57,9 @@ public function execute(
56
57
'tax_breakdown ' => $ cart ->taxBreakdown ->map (function ($ tax ) {
57
58
return [
58
59
'description ' => $ tax ['description ' ],
59
- 'identifier ' => $ tax ['identifier ' ],
60
- 'percentage ' => $ tax ['amounts ' ]->sum ('percentage ' ),
61
- 'total ' => $ tax ['total ' ]->value ,
60
+ 'identifier ' => $ tax ['identifier ' ],
61
+ 'percentage ' => $ tax ['amounts ' ]->sum ('percentage ' ),
62
+ 'total ' => $ tax ['total ' ]->value ,
62
63
];
63
64
})->values (),
64
65
'tax_total ' => $ cart ->taxTotal ->value ,
@@ -87,9 +88,9 @@ public function execute(
87
88
'tax_breakdown ' => $ line ->taxBreakdown ->amounts ->map (function ($ amount ) {
88
89
return [
89
90
'description ' => $ amount ->description ,
90
- 'identifier ' => $ amount ->identifier ,
91
- 'percentage ' => $ amount ->percentage ,
92
- 'total ' => $ amount ->price ->value ,
91
+ 'identifier ' => $ amount ->identifier ,
92
+ 'percentage ' => $ amount ->percentage ,
93
+ 'total ' => $ amount ->price ->value ,
93
94
];
94
95
})->values (),
95
96
'tax_total ' => $ line ->taxAmount ->value ,
@@ -127,9 +128,9 @@ public function execute(
127
128
'tax_breakdown ' => $ shippingAddress ->taxBreakdown ->amounts ->map (function ($ amount ) {
128
129
return [
129
130
'description ' => $ amount ->description ,
130
- 'identifier ' => $ amount ->identifier ,
131
- 'percentage ' => $ amount ->percentage ,
132
- 'total ' => $ amount ->price ->value ,
131
+ 'identifier ' => $ amount ->identifier ,
132
+ 'percentage ' => $ amount ->percentage ,
133
+ 'total ' => $ amount ->price ->value ,
133
134
];
134
135
})->values (),
135
136
'tax_total ' => $ shippingAddress ->shippingTaxTotal ->value ,
0 commit comments