Completed
Push — master ( e96a0c...fa76da )
by Mr
01:59
created
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.
src/Models/Webhook.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@
 block discarded – undo
19 19
     public function allowed(): array
20 20
     {
21 21
         return [
22
-            'id'       => 'int',     // The unique id for the object.
23
-            'endpoint' => 'string',  // The endpoint url this webhook event is sent to.
24
-            'events'   => 'array',   // The events this webhook is fired on. Can include: 'transaction.created', 'transaction.cancelled', 'booking.update' or 'booking.cancelled'.
22
+            'id'       => 'int', // The unique id for the object.
23
+            'endpoint' => 'string', // The endpoint url this webhook event is sent to.
24
+            'events'   => 'array', // The events this webhook is fired on. Can include: 'transaction.created', 'transaction.cancelled', 'booking.update' or 'booking.cancelled'.
25 25
             'status'   => 'boolean', // True if webhook is active.
26 26
         ];
27 27
     }
Please login to merge, or discard this patch.
src/Models/Transaction.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -9,20 +9,20 @@
 block discarded – undo
9 9
     public function allowed(): array
10 10
     {
11 11
         return [
12
-            'id'                  => 'int',      // The unique id for the transaction object.
13
-            'reference'           => 'string',   // The unique reference for the transaction object.
12
+            'id'                  => 'int', // The unique id for the transaction object.
13
+            'reference'           => 'string', // The unique reference for the transaction object.
14 14
             'customer'            => 'Customer', // The primary customer for the transaction, an instance of the customer object.
15
-            'price'               => 'float',    // The subtotal price for the transaction.
16
-            'fee'                 => 'float',    // The fee value of the transaction.
17
-            'discount'            => 'float',    // The total discount value of the transaction.
18
-            'tax'                 => 'float',    // The tax value of the transaction.
19
-            'total'               => 'float',    // The total for the transaction.
20
-            'paid'                => 'float',    // The paid value of the transaction.
21
-            'refunded'            => 'float',    // The refunded value of the transaction.
22
-            'due'                 => 'float',    // The due value of the transaction.
23
-            'overpaid'            => 'boolean',  // True if transaction is overpaid.
24
-            'status'              => 'boolean',  // True if transaction is active.
25
-            'combined_taxes_fees' => 'array',    // Array of taxes and fees applied to the transaction.
15
+            'price'               => 'float', // The subtotal price for the transaction.
16
+            'fee'                 => 'float', // The fee value of the transaction.
17
+            'discount'            => 'float', // The total discount value of the transaction.
18
+            'tax'                 => 'float', // The tax value of the transaction.
19
+            'total'               => 'float', // The total for the transaction.
20
+            'paid'                => 'float', // The paid value of the transaction.
21
+            'refunded'            => 'float', // The refunded value of the transaction.
22
+            'due'                 => 'float', // The due value of the transaction.
23
+            'overpaid'            => 'boolean', // True if transaction is overpaid.
24
+            'status'              => 'boolean', // True if transaction is active.
25
+            'combined_taxes_fees' => 'array', // Array of taxes and fees applied to the transaction.
26 26
             'bookings'            => 'array[Booking]', // Array of bookings applied to the transaction, contains: booking object.
27 27
             'payments'            => 'array[Booking]', // Array of payments applied to the transaction, contains: payment object.
28 28
             'promotions'          => 'array[Booking]', // Array of promotions applied to the transaction, contains: promotion object.
Please login to merge, or discard this patch.