Completed
Push — master ( 3e720f...f6b7fd )
by Mr
02:14
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/Promotion.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     public function allowed(): array
19 19
     {
20 20
         return [
21
-            'id'       => 'int',    // The unique id for the object.
21
+            'id'       => 'int', // The unique id for the object.
22 22
             'type'     => 'string', // Can be: 'discount' or 'custom'.
23
-            'amount'   => 'float',  // The amount of the discount.
23
+            'amount'   => 'float', // The amount of the discount.
24 24
             'discount' => 'object', // The discount object if the promotion type is 'discount'.
25 25
         ];
26 26
     }
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/GiftVoucher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@
 block discarded – undo
14 14
     public function allowed(): array
15 15
     {
16 16
         return [
17
-            'id'           => 'int',    // The unique id for the object.
17
+            'id'           => 'int', // The unique id for the object.
18 18
             'name'         => 'string', // The name of the gift voucher.
19
-            'amount'       => 'float',  // The purchase amount for this gift voucher.
19
+            'amount'       => 'float', // The purchase amount for this gift voucher.
20 20
             'voucher_type' => 'string', // Can be: value or spaces.
21
-            'discount'     => 'float',  // The discountable amount for a gift code belonging to this voucher.
21
+            'discount'     => 'float', // The discountable amount for a gift code belonging to this voucher.
22 22
             'description'  => 'string', // The description of how the gift voucher is applied.
23
-            'status'       => 'bool',   // True if the gift voucher is active.
23
+            'status'       => 'bool', // True if the gift voucher is active.
24 24
         ];
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Models/PurchaseRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@
 block discarded – undo
14 14
     public function allowed(): array
15 15
     {
16 16
         return [
17
-            'gift_voucher_id' => 'int',    // Id for the gift voucher object.
17
+            'gift_voucher_id' => 'int', // Id for the gift voucher object.
18 18
             'gift_email'      => 'string', // Gift email for the purchase
19 19
             'gift_message'    => 'string', // Gift message for the purchase
20
-            'total_quantity'  => 'int',    // The total quantity of the purchase.
21
-            'fee_exempt'      => 'bool',   // True if this basket purchase is fee exempt.
20
+            'total_quantity'  => 'int', // The total quantity of the purchase.
21
+            'fee_exempt'      => 'bool', // True if this basket purchase is fee exempt.
22 22
             'tax_exempt'      => 'string', // True if this basket purchase is tax exempt.
23 23
         ];
24 24
     }
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.
src/Config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
             'http_errors'     => false,
51 51
 
52 52
             // Wrapper settings
53
-            'tries'           => 2,  // Count of tries
53
+            'tries'           => 2, // Count of tries
54 54
             'seconds'         => 10, // Waiting time per each try
55 55
 
56 56
             // Optional parameters
Please login to merge, or discard this patch.
src/Models/TransactionUpdate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
     public function allowed(): array
10 10
     {
11 11
         return [
12
-            'customer_id' => 'int',  // The primary customer for the transaction.
12
+            'customer_id' => 'int', // The primary customer for the transaction.
13 13
             'status'      => 'bool', // True if the transaction is active.
14 14
         ];
15 15
     }
Please login to merge, or discard this patch.
src/Models/TransactionRequest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
     public function allowed(): array
10 10
     {
11 11
         return [
12
-            'type'     => 'string',      // Can be: "card", "stored_card", "credit", "manual_card", "manual_cash", "manual_cheque", "manual_transfer", "arrival" or "invoice"
13
-            'customer' => 'float',       // The amount of payment being made.
12
+            'type'     => 'string', // Can be: "card", "stored_card", "credit", "manual_card", "manual_cash", "manual_cheque", "manual_transfer", "arrival" or "invoice"
13
+            'customer' => 'float', // The amount of payment being made.
14 14
             'card'     => 'object:Card', // The card being used to make payment. Required if type is "card".
15 15
         ];
16 16
     }
Please login to merge, or discard this patch.