Completed
Pull Request — master (#2)
by
unknown
05:58
created
src/Models/Booking.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -20,38 +20,38 @@
 block discarded – undo
20 20
     public function allowed(): array
21 21
     {
22 22
         return [
23
-            'bookingNumber'               => 'string',             // The unique booking number. Always treat as string [read-only],
24
-            'eventId'                     => 'string',             // When the booking is for a product of type fixed or fixedCourse, this is the id of the slot (see /availability/slots). Note that for fixedCourse, Bookeo always returns the eventId of the first class in a course, even if the customer is enrolled starting from a later class. In this case, firstCourseEnrolledEvent will be set.,
25
-            'firstCourseEnrolledEventId'  => 'string',             // If the product is of type fixedCourse, and it is possible to accept late enrolment, this is the id of the event (class) where the actual enrolment starts.,
26
-            'dropinCourseEnrolledEventId' => 'string',             // If the product is of type fixedCourse, and it is possible to accept bookings for a single class in the course (drop-in), this is the id of the event (class) actually enrolled in.,
27
-            'startTime'                   => 'string:datetime',    // The start time of the booking. When creating a booking, either this or eventId must be specified,
28
-            'endTime'                     => 'string:datetime',    // The end time of the booking. When creating a new booking of type flexibleTime, you can specify this field to force an end time. Or you can omit this field, in which case Bookeo will calculate the end time based on product and options chosen.,
29
-            'customerId'                  => 'string',             // The id of the customer this booking is for. When creating a booking, use this to create a booking for an existing customer.,
30
-            'customer'                    => 'Customer',           // The customer associated with this booking When reading a booking, this field is included only if the parameter expandCustomer is set to true, and the application has the necessary read permission for the customer. An application can include this field only when creating a new booking for a new customer. To create a booking for an existing customer, use the customerId field instead,
31
-            'title'                       => 'string',             // The title of this booking, same as the one displayed by Bookeo in the calendar [read-only],
32
-            'externalRef'                 => 'string',             // An external reference number that identifies this booking in an external system. The maximum length is 64 characters.,
23
+            'bookingNumber'               => 'string', // The unique booking number. Always treat as string [read-only],
24
+            'eventId'                     => 'string', // When the booking is for a product of type fixed or fixedCourse, this is the id of the slot (see /availability/slots). Note that for fixedCourse, Bookeo always returns the eventId of the first class in a course, even if the customer is enrolled starting from a later class. In this case, firstCourseEnrolledEvent will be set.,
25
+            'firstCourseEnrolledEventId'  => 'string', // If the product is of type fixedCourse, and it is possible to accept late enrolment, this is the id of the event (class) where the actual enrolment starts.,
26
+            'dropinCourseEnrolledEventId' => 'string', // If the product is of type fixedCourse, and it is possible to accept bookings for a single class in the course (drop-in), this is the id of the event (class) actually enrolled in.,
27
+            'startTime'                   => 'string:datetime', // The start time of the booking. When creating a booking, either this or eventId must be specified,
28
+            'endTime'                     => 'string:datetime', // The end time of the booking. When creating a new booking of type flexibleTime, you can specify this field to force an end time. Or you can omit this field, in which case Bookeo will calculate the end time based on product and options chosen.,
29
+            'customerId'                  => 'string', // The id of the customer this booking is for. When creating a booking, use this to create a booking for an existing customer.,
30
+            'customer'                    => 'Customer', // The customer associated with this booking When reading a booking, this field is included only if the parameter expandCustomer is set to true, and the application has the necessary read permission for the customer. An application can include this field only when creating a new booking for a new customer. To create a booking for an existing customer, use the customerId field instead,
31
+            'title'                       => 'string', // The title of this booking, same as the one displayed by Bookeo in the calendar [read-only],
32
+            'externalRef'                 => 'string', // An external reference number that identifies this booking in an external system. The maximum length is 64 characters.,
33 33
             'participants'                => 'Array[Participant]', // Participants associated to this booking,
34
-            'resources'                   => 'Array[Resource]',    // Resources involved in a booking, if the booking is for a product of type "flexibleTime". If the booking is for a different type of product, this field is empty/ignored. When creating or updating a booking, only the id of a resource is required. Any name passed is ignored. If not specified when creating or updating a booking, Bookeo will automatically assign available resources.,
35
-            'canceled'                    => 'boolean',            // Whether this booking is canceled [read-only],
36
-            'cancelationTime'             => 'string:datetime',    // If the booking is cancelled, this is the time when it was cancelled [read-only],
37
-            'cancelationAgent'            => 'string',             // If the booking is cancelled, this is the person who cancelled [read-only],
38
-            'accepted'                    => 'boolean',            // Whether this booking was accepted. If no accept/deny was applicable to the booking, the booking is considered accepted as created. [read-only],
39
-            'sourceIp'                    => 'string',             // The IP address from where this booking was created,
40
-            'creationTime'                => 'string:datetime',    // The time when the booking was created [read-only],
41
-            'creationAgent'               => 'string',             // The person that created the booking [read-only],
42
-            'lastChangeTime'              => 'string:datetime',    // The time when the booking was last updated. If the booking was never changed after creation, this field is not present. [read-only],
43
-            'lastChangeAgent'             => 'string',             // The person who last updated this booking. If the booking was never changed after creation, this field is not present. [read-only],
44
-            'productName'                 => 'string',             // The name of the product this booking is for [read-only],
45
-            'productId'                   => 'string',             // The id of the product this booking is for. For a full list of products and their ids, see /settings/products,
46
-            'price'                       => 'Price',              // Details about price, taxes, etc. [read-only],
34
+            'resources'                   => 'Array[Resource]', // Resources involved in a booking, if the booking is for a product of type "flexibleTime". If the booking is for a different type of product, this field is empty/ignored. When creating or updating a booking, only the id of a resource is required. Any name passed is ignored. If not specified when creating or updating a booking, Bookeo will automatically assign available resources.,
35
+            'canceled'                    => 'boolean', // Whether this booking is canceled [read-only],
36
+            'cancelationTime'             => 'string:datetime', // If the booking is cancelled, this is the time when it was cancelled [read-only],
37
+            'cancelationAgent'            => 'string', // If the booking is cancelled, this is the person who cancelled [read-only],
38
+            'accepted'                    => 'boolean', // Whether this booking was accepted. If no accept/deny was applicable to the booking, the booking is considered accepted as created. [read-only],
39
+            'sourceIp'                    => 'string', // The IP address from where this booking was created,
40
+            'creationTime'                => 'string:datetime', // The time when the booking was created [read-only],
41
+            'creationAgent'               => 'string', // The person that created the booking [read-only],
42
+            'lastChangeTime'              => 'string:datetime', // The time when the booking was last updated. If the booking was never changed after creation, this field is not present. [read-only],
43
+            'lastChangeAgent'             => 'string', // The person who last updated this booking. If the booking was never changed after creation, this field is not present. [read-only],
44
+            'productName'                 => 'string', // The name of the product this booking is for [read-only],
45
+            'productId'                   => 'string', // The id of the product this booking is for. For a full list of products and their ids, see /settings/products,
46
+            'price'                       => 'Price', // Details about price, taxes, etc. [read-only],
47 47
             'options'                     => 'Array[BookingOption]',
48
-            'privateEvent'                => 'boolean',            // Whether this booking reserves the entire event. Only available for products that allow it.,
49
-            'promotionCodeInput'          => 'string',             // Optional promotion code input, can be used when creating or updating a booking It could be a single code, or a list of codes separated by comma (ex. multiple coupon/voucher codes) In general, applications creating bookings can simply ask the customer to input a promotion code (like they would on Bookeo's web interface) and pass the input in this field. Bookeo will then parse and validate any text entered,
50
-            'promotionName'               => 'string',             // The name of the promotion that was applied to this booking. [read-only],
48
+            'privateEvent'                => 'boolean', // Whether this booking reserves the entire event. Only available for products that allow it.,
49
+            'promotionCodeInput'          => 'string', // Optional promotion code input, can be used when creating or updating a booking It could be a single code, or a list of codes separated by comma (ex. multiple coupon/voucher codes) In general, applications creating bookings can simply ask the customer to input a promotion code (like they would on Bookeo's web interface) and pass the input in this field. Bookeo will then parse and validate any text entered,
50
+            'promotionName'               => 'string', // The name of the promotion that was applied to this booking. [read-only],
51 51
             'couponCodes'                 => 'string',
52
-            'giftVoucherCodeInput'        => 'string',             // A gift voucher code applicable to this booking. This field is only set by the application, when creating or updating a booking. It is possible to specify multiple codes, separated by commas. No more than one specific (as opposed to "generic", value-based) gift voucher can be used per booking.,
53
-            'specificVoucherCode'         => 'string',             // When the booking used a service specific voucher (i.e. as opposed to a "generic" voucher, based on a fixed amount), the code of the voucher is reported here. [read-only],
54
-            'initialPayments'             => 'Array[Payment]',     // When creating a new booking, an application can also record one or more payment associated to the booking (ex. if the customer has paid a deposit or the full amount online) This field is never set by Bookeo, and is ignored unless this is a new booking being created.
52
+            'giftVoucherCodeInput'        => 'string', // A gift voucher code applicable to this booking. This field is only set by the application, when creating or updating a booking. It is possible to specify multiple codes, separated by commas. No more than one specific (as opposed to "generic", value-based) gift voucher can be used per booking.,
53
+            'specificVoucherCode'         => 'string', // When the booking used a service specific voucher (i.e. as opposed to a "generic" voucher, based on a fixed amount), the code of the voucher is reported here. [read-only],
54
+            'initialPayments'             => 'Array[Payment]', // When creating a new booking, an application can also record one or more payment associated to the booking (ex. if the customer has paid a deposit or the full amount online) This field is never set by Bookeo, and is ignored unless this is a new booking being created.
55 55
         ];
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Models/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
             'numCancelations'            => 'integer', // Number of booking cancellations that were tracked for this customer
42 42
             'numNoShows'                 => 'integer', // Number of no-shows for this customer
43 43
             'member'                     => 'boolean', // Whether this customer is currently a member
44
-            'membershipEnd'              => 'date',    // When the membership expires. If the membership is not set to expire, this field is not set.
44
+            'membershipEnd'              => 'date', // When the membership expires. If the membership is not set to expire, this field is not set.
45 45
         ];
46 46
     }
47 47
 }
Please login to merge, or discard this patch.
src/Models/PeopleCategory.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
-            'name'     => 'string',  // [read-only],
24
-            'id'       => 'string',  // [read-only],
23
+            'name'     => 'string', // [read-only],
24
+            'id'       => 'string', // [read-only],
25 25
             'numSeats' => 'integer', // How many seats a unit of this category actually takes. Ex a category "Family" may take up 4 seats. [read-only]
26 26
         ];
27 27
     }
Please login to merge, or discard this patch.
src/Models/MatchingSlot.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@
 block discarded – undo
22 22
         return [
23 23
             'startTime'      => 'string:datetime',
24 24
             'endTime'        => 'string:datetime',
25
-            'price'          => Money::class,          // Note that this is the "display" price . The account may have set up taxes not included in the price, which are only shown at checkout . This element is included for products of type fixed and fixedCourse . It is not included for products of type flexibleTime . Call HTTP POST / holds to create a hold at checkout and get the final price details, including taxes . [read - only],
25
+            'price'          => Money::class, // Note that this is the "display" price . The account may have set up taxes not included in the price, which are only shown at checkout . This element is included for products of type fixed and fixedCourse . It is not included for products of type flexibleTime . Call HTTP POST / holds to create a hold at checkout and get the final price details, including taxes . [read - only],
26 26
             'courseSchedule' => CourseSchedule::class, // If the product is of type fixedCourse, this includes the full schedule of the course . In this case startTime and endTime are the start and end times of the first event in the schedule . If late enrollment is enabled, startTime and endTime will refer to the first event in the course that is booked . If the product is not of type fixedCourse, this field is omitted . [read - only],
27
-            'eventId'        => 'string',              // Unique id that identifies the slot, it can be used to create bookings for this slot [read - only],
28
-            'resources'      => 'Array[Resource]',     // Resources involved in this slot . This field is only included for products of type fixed or fixedCourse . Only resources whose type is "public" are listed here . [read - only]
27
+            'eventId'        => 'string', // Unique id that identifies the slot, it can be used to create bookings for this slot [read - only],
28
+            'resources'      => 'Array[Resource]', // Resources involved in this slot . This field is only included for products of type fixed or fixedCourse . Only resources whose type is "public" are listed here . [read - only]
29 29
         ];
30 30
     }
31 31
 }
Please login to merge, or discard this patch.