| @@ -18,16 +18,16 @@ | ||
| 18 | 18 | public function allowed(): array | 
| 19 | 19 |      { | 
| 20 | 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. | |
| 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 | 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 | |
| 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 | 31 | ]; | 
| 32 | 32 | } | 
| 33 | 33 | |
| @@ -18,23 +18,23 @@ | ||
| 18 | 18 | public function allowed(): array | 
| 19 | 19 |      { | 
| 20 | 20 | return [ | 
| 21 | - 'id' => 'int', // The unique id for the booking object. | |
| 21 | + 'id' => 'int', // The unique id for the booking object. | |
| 22 | 22 | 'item' => 'object', // The item associated with the booking, an instance of the item object. | 
| 23 | 23 | 'time' => 'object', // The time associated with the booking, an instance of the time object | 
| 24 | 24 | 'booking_date' => 'string', // The date of the basket booking. | 
| 25 | 25 | 'booking_time' => 'string', // The time of the basket booking. | 
| 26 | 26 | 'booking_end' => 'string', // The end time of the basket booking. | 
| 27 | - 'duration' => 'int', // The duration of the basket booking. | |
| 28 | - 'total_quantity' => 'int', // The total quantity of spaces for the basket booking. | |
| 27 | + 'duration' => 'int', // The duration of the basket booking. | |
| 28 | + 'total_quantity' => 'int', // The total quantity of spaces for the basket booking. | |
| 29 | 29 | 'quantities' => 'array:Quantity', // The quantities of item pricing categories for this basket booking. | 
| 30 | 30 | 'extras' => 'array:Extra', // The item extras for this basket booking. | 
| 31 | - 'price' => 'float', // The basket booking subtotal. | |
| 32 | - 'discount' => 'float', // The total discount value of the basket. | |
| 33 | - 'fee' => 'float', // The fee value of the basket. | |
| 34 | - 'tax' => 'float', // The tax value of the basket. | |
| 35 | - 'total' => 'float', // The total for the basket. | |
| 31 | + 'price' => 'float', // The basket booking subtotal. | |
| 32 | + 'discount' => 'float', // The total discount value of the basket. | |
| 33 | + 'fee' => 'float', // The fee value of the basket. | |
| 34 | + 'tax' => 'float', // The tax value of the basket. | |
| 35 | + 'total' => 'float', // The total for the basket. | |
| 36 | 36 | 'questions' => 'array:Question', // The item booking questions for this basket booking. | 
| 37 | - 'participants' => 'array', // The participants for this basket booking. | |
| 37 | + 'participants' => 'array', // The participants for this basket booking. | |
| 38 | 38 | ]; | 
| 39 | 39 | } | 
| 40 | 40 | } |