Completed
Pull Request — master (#2)
by
unknown
05:58
created
src/Models/PeopleNumber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
     {
16 16
         return [
17 17
             'peopleCategoryId' => 'string', // The id of the PeopleCategory to which these participants belong to. See /settings/peoplecategories,
18
-            'number'           => 'int',    // Indicates how many people of this category are in the booking
18
+            'number'           => 'int', // Indicates how many people of this category are in the booking
19 19
         ];
20 20
     }
21 21
 }
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
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'http_errors'     => false,
55 55
 
56 56
             // Wrapper settings
57
-            'tries'           => 2,  // Count of tries
57
+            'tries'           => 2, // Count of tries
58 58
             'seconds'         => 10, // Waiting time per each try
59 59
 
60 60
             // Optional parameters
Please login to merge, or discard this patch.
configs/bookeo-api.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
     'base_uri'        => 'https://api.bookeo.com/v2',
8 8
     'user_agent'      => 'Bookeo PHP Client',
9 9
     'timeout'         => 20,
10
-    'tries'           => 2,  // Count of tries
10
+    'tries'           => 2, // Count of tries
11 11
     'seconds'         => 10, // Waiting time per each try
12 12
     'verbose'         => false,
13 13
     'debug'           => false,
Please login to merge, or discard this patch.
src/Models/Tax.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
     public function allowed(): array
21 21
     {
22 22
         return [
23
-            'id'   => 'string',  // [read-only],
24
-            'name' => 'string',  // [read-only],
23
+            'id'   => 'string', // [read-only],
24
+            'name' => 'string', // [read-only],
25 25
         ];
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Models/CustomFieldDefinitions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
         return [
23 23
             'choiceFields' => 'Array[ChoiceCustomField]', // A list of choice custom fields. The property is not present if there are no choice fields [read-only],
24 24
             'numberFields' => 'Array[NumberCustomField]', // A list of number custom fields. The property is not present if there are no number fields [read-only],
25
-            'onOffFields'  => 'Array[OnOffCustomField]',  // A list of on/off custom fields. The property is not present if there are no on/off fields [read-only],
26
-            'textFields'   => 'Array[TextCustomField]',   // A list of text custom fields. The property is not present if there are no text fields [read-only]
25
+            'onOffFields'  => 'Array[OnOffCustomField]', // A list of on/off custom fields. The property is not present if there are no on/off fields [read-only],
26
+            'textFields'   => 'Array[TextCustomField]', // A list of text custom fields. The property is not present if there are no text fields [read-only]
27 27
         ];
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Models/Hold.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,13 +20,13 @@
 block discarded – undo
20 20
     public function allowed(): array
21 21
     {
22 22
         return [
23
-            'id'                          => 'string',          // [read-only],
24
-            'price'                       => 'Price',           // The total price for the booking [read-only],
25
-            'totalPayable'                => 'Money',           // The total amount payable now. This is the total gross price less any applicable credit [read-only],
23
+            'id'                          => 'string', // [read-only],
24
+            'price'                       => 'Price', // The total price for the booking [read-only],
25
+            'totalPayable'                => 'Money', // The total amount payable now. This is the total gross price less any applicable credit [read-only],
26 26
             'expiration'                  => 'string:datetime', // The time at which this hold will expire [read-only],
27
-            'applicableMoneyCredit'       => 'Money',           // Existing customers can have a "store credit" that Bookeo uses automatically to pay for purchases. This field indicates the credit that would be applied to the booking if it was saved. This field is present only if the hold is being made on behalf of an existing customer. New customers cannot have pre-existing credit [read-only],
28
-            'applicableGiftVoucherCredit' => 'Money',           // Indicates the credit resulting from money gift vouchers that would be applied to the booking if it was saved. This field is present only if some credit is applicable (from a gift voucher being redeemed at this time, or from previous unused gift vouchers if this booking is for an existing customer) [read-only],
29
-            'applicablePrepaidCredits'    => 'integer',         // Indicates the number of prepaid credits that would be applied to the booking if it was saved. Note that if prepaid credits are applicable, the total price would be reduced, and possibly be 0 if the credit can pay for the entire booking. This field is present only if the hold is being made on behalf of an existing customer. New customers cannot have pre-existing credit [read-only]
27
+            'applicableMoneyCredit'       => 'Money', // Existing customers can have a "store credit" that Bookeo uses automatically to pay for purchases. This field indicates the credit that would be applied to the booking if it was saved. This field is present only if the hold is being made on behalf of an existing customer. New customers cannot have pre-existing credit [read-only],
28
+            'applicableGiftVoucherCredit' => 'Money', // Indicates the credit resulting from money gift vouchers that would be applied to the booking if it was saved. This field is present only if some credit is applicable (from a gift voucher being redeemed at this time, or from previous unused gift vouchers if this booking is for an existing customer) [read-only],
29
+            'applicablePrepaidCredits'    => 'integer', // Indicates the number of prepaid credits that would be applied to the booking if it was saved. Note that if prepaid credits are applicable, the total price would be reduced, and possibly be 0 if the credit can pay for the entire booking. This field is present only if the hold is being made on behalf of an existing customer. New customers cannot have pre-existing credit [read-only]
30 30
         ];
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Models/ProductList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         return [
23 23
             'info' => PaginationInfo::class, // [read-only]
24
-            'data' => 'array[Product]',      // [read-only]
24
+            'data' => 'array[Product]', // [read-only]
25 25
         ];
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Models/Payment.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,16 +17,16 @@
 block discarded – undo
17 17
             'id'                 => 'string',
18 18
             'creationTime'       => 'string:datetime', // When this record was created
19 19
             'receivedTime'       => 'string:datetime', //  When this payment was received
20
-            'reason'             => 'string',          // Reason for the payment. Shown to customer where appropriate. Ex. "Deposit", "Balance payment", "Additional fee", etc,
21
-            'description'        => 'string',          // Indicates what the payment was for (ex. "Booking 1234", "Prepaid package ABC", "Gift voucher XYZ")
22
-            'comment'            => 'string',          // An optional comment tracked with the payment. Not shown to customers.
23
-            'amount'             => Money::class,      // The payment amount
24
-            'paymentMethod'      => 'string',          // ['creditCard' or 'paypal' or 'bankTransfer' or 'cash' or 'checque' or 'debitCard' or 'existingCredit' or 'accountCredit' or 'moneyVoucher' or 'other']
25
-            'paymentMethodOther' => 'string',          // If paymentMethod is 'other', this field is required, and it specifies what other method was used,
26
-            'agent'              => 'string',          // Who registered this payment. If this field is not present, it means that the customer paid online on Bookeo's booking page
27
-            'customerId'         => 'string',          // The id of customer associated with this payment
28
-            'gatewayName'        => 'string',          // The name of the payment gateway that processed the payment (if it was processed by a payment gateway)
29
-            'transactionId'      => 'string',          // The transaction number/id as provided by the payment gateway that processed the payment - if any
20
+            'reason'             => 'string', // Reason for the payment. Shown to customer where appropriate. Ex. "Deposit", "Balance payment", "Additional fee", etc,
21
+            'description'        => 'string', // Indicates what the payment was for (ex. "Booking 1234", "Prepaid package ABC", "Gift voucher XYZ")
22
+            'comment'            => 'string', // An optional comment tracked with the payment. Not shown to customers.
23
+            'amount'             => Money::class, // The payment amount
24
+            'paymentMethod'      => 'string', // ['creditCard' or 'paypal' or 'bankTransfer' or 'cash' or 'checque' or 'debitCard' or 'existingCredit' or 'accountCredit' or 'moneyVoucher' or 'other']
25
+            'paymentMethodOther' => 'string', // If paymentMethod is 'other', this field is required, and it specifies what other method was used,
26
+            'agent'              => 'string', // Who registered this payment. If this field is not present, it means that the customer paid online on Bookeo's booking page
27
+            'customerId'         => 'string', // The id of customer associated with this payment
28
+            'gatewayName'        => 'string', // The name of the payment gateway that processed the payment (if it was processed by a payment gateway)
29
+            'transactionId'      => 'string', // The transaction number/id as provided by the payment gateway that processed the payment - if any
30 30
         ];
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Models/Business.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -20,15 +20,15 @@
 block discarded – undo
20 20
     public function allowed(): array
21 21
     {
22 22
         return [
23
-            'id'               => 'string',             // The unique id for this business(Bookeo account) [read - only],
24
-            'name'             => 'string',             // [read - only],
25
-            'legalIdentifiers' => 'string, optional',   // Tax ID, Vat ID, other legal identifiers [read - only],
23
+            'id'               => 'string', // The unique id for this business(Bookeo account) [read - only],
24
+            'name'             => 'string', // [read - only],
25
+            'legalIdentifiers' => 'string, optional', // Tax ID, Vat ID, other legal identifiers [read - only],
26 26
             'phoneNumbers'     => 'Array[PhoneNumber]', // [read - only],
27
-            'websiteURL'       => 'string, optional',   // [read - only],
28
-            'emailAddress'     => 'string, optional',   // [read - only],
29
-            'streetAddress'    => 'StreetAddress',      // [read - only],
30
-            'logo'             => 'Image, optional',    // [read - only],
31
-            'description'      => 'string, optional',   // A description of the business, provided by the business itself . The content is in HTML . [read - only]
27
+            'websiteURL'       => 'string, optional', // [read - only],
28
+            'emailAddress'     => 'string, optional', // [read - only],
29
+            'streetAddress'    => 'StreetAddress', // [read - only],
30
+            'logo'             => 'Image, optional', // [read - only],
31
+            'description'      => 'string, optional', // A description of the business, provided by the business itself . The content is in HTML . [read - only]
32 32
         ];
33 33
     }
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.