Add scope Booking wrappers#476
Conversation
mesilov
left a comment
There was a problem hiding this comment.
please
- update branch from v3-dev
- resolve comments
| /** | ||
| * This file is part of the bitrix24-php-sdk package. | ||
| * | ||
| * © Maksim Mesilov <mesilov.maxim@gmail.com> |
There was a problem hiding this comment.
Please add your full name and contacts
| * @property-read array<string, mixed>|null $datePeriod | ||
| * @property-read array<int, int>|null $resourceIds | ||
| */ | ||
| class BookingItemResult extends AbstractItem |
There was a problem hiding this comment.
in 3.2.0 we added https://github.com/bitrix24/b24phpsdk/blob/v3/src/Core/Result/AbstractAnnotatedItem.php#L22C16-L22C37 with automatic type casting based on phpdocs annotations
please fix
class BookingItemResult extends AbstractItem
to
class BookingItemResult extends AbstractAnnotatedItem
| * @property-read int|null $id | ||
| * @property-read array<string, string>|null $type | ||
| */ | ||
| class BookingClientItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read string|null $moduleId | ||
| * @property-read string|null $value | ||
| */ | ||
| class BookingExternalDataItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read string|null $code | ||
| * @property-read string|null $module | ||
| */ | ||
| class ClientTypeItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read string|null $templateTypeFeedback | ||
| * @property-read string|null $templateTypeReminder | ||
| */ | ||
| class ResourceTypeItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read int|null $id | ||
| * @property-read string|null $note | ||
| */ | ||
| class WaitlistItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read int|null $id | ||
| * @property-read array<string, string>|null $type | ||
| */ | ||
| class WaitlistClientItemResult extends AbstractItem |
There was a problem hiding this comment.
| * @property-read string|null $moduleId | ||
| * @property-read string|null $value | ||
| */ | ||
| class WaitlistExternalDataItemResult extends AbstractItem |
There was a problem hiding this comment.
|
|
||
| ### Added | ||
|
|
||
| - Added `Services\Booking\BookingServiceBuilder` with Booking scope wrappers and integration coverage for `booking.v1.clienttype.*`, `booking.v1.resourceType.*`, `booking.v1.resource.*`, `booking.v1.resource.slots.*`, `booking.v1.waitlist.*`, `booking.v1.waitlist.client.*`, `booking.v1.waitlist.externalData.*`, `booking.v1.booking.*`, `booking.v1.booking.client.*`, and `booking.v1.booking.externalData.*` methods. |
There was a problem hiding this comment.
move to 3.3.0 planned release
23c325c to
c497f17
Compare
This PR adds support for the Booking scope in the PHP SDK.
Example usage:
Quality-gate checklist
Closes #473