Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function allowed(): array |
||
19 | { |
||
20 | return [ |
||
21 | 'id' => 'int', // The unique id for the purchase object. |
||
22 | 'price' => 'float', // The basket purchase subtotal. |
||
23 | 'discount' => 'float', // The total discount value of the basket purchase. |
||
24 | 'fee' => 'float', // The fee value of the basket purchase. |
||
25 | 'tax' => 'float', // The tax value of the basket purchase. |
||
26 | 'total' => 'float', // The total for the basket. |
||
27 | 'total_quantity' => 'int', // The total quantity of the purchase. |
||
28 | 'gift_voucher' => 'object:GiftVoucher', // The gift voucher object |
||
29 | 'gift_email' => 'string', // Gift email for the purchase |
||
30 | 'gift_message' => 'string', // Gift message for the purchase |
||
31 | ]; |
||
35 |