Completed
Push — master ( fc4efe...2a0cb3 )
by Mr
02:09
created
src/Models/Purchase.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
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'   => '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'   => '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
 
Please login to merge, or discard this patch.
src/Models/Booking.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -18,23 +18,23 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Models/Basket.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
     public function allowed(): array
21 21
     {
22 22
         return [
23
-            'id'                  => 'int',    // The unique id for the basket object.
23
+            'id'                  => 'int', // The unique id for the basket object.
24 24
             'customer'            => 'Customer', // The primary customer for the basket, an instance of the customer object.
25
-            'price'               => 'float',  // The subtotal price for the basket.
26
-            'fee'                 => 'float',  // The fee value of the basket.
27
-            'discount'            => 'float',  // The total discount value of the basket.
28
-            'tax'                 => 'float',  // The tax for the basket.
29
-            'total'               => 'float',  // The total for the basket.
30
-            'due;'                => 'float',  // The due amount for the basket.
31
-            'deposit_due'         => 'float',  // The deposit due, if active, amount for the basket.
32
-            'expired'             => 'bool',   // True if the basket has expired.
25
+            'price'               => 'float', // The subtotal price for the basket.
26
+            'fee'                 => 'float', // The fee value of the basket.
27
+            'discount'            => 'float', // The total discount value of the basket.
28
+            'tax'                 => 'float', // The tax for the basket.
29
+            'total'               => 'float', // The total for the basket.
30
+            'due;'                => 'float', // The due amount for the basket.
31
+            'deposit_due'         => 'float', // The deposit due, if active, amount for the basket.
32
+            'expired'             => 'bool', // True if the basket has expired.
33 33
             'expires_at'          => 'string:timestamp', // The timestamp of when the basket expires.
34 34
             'storage_key'         => 'string', // Unique storage key
35 35
             'bookings'            => 'array[Booking]', // Array of basket bookings, contains: basket booking object.
Please login to merge, or discard this patch.