File "BulkRetrieveTeamMemberBookingProfilesRequest.php"
Full path: /home/capoeirajd/www/wp-content/plugins/wpforms-lite/vendor_prefixed/square/square/src/Models/BulkRetrieveTeamMemberBookingProfilesRequest.php
File
size: 1.72 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
declare (strict_types=1);
namespace WPForms\Vendor\Square\Models;
use stdClass;
/**
* Request payload for the
* [BulkRetrieveTeamMemberBookingProfiles]($e/Bookings/BulkRetrieveTeamMemberBookingProfiles) endpoint.
*/
class BulkRetrieveTeamMemberBookingProfilesRequest implements \JsonSerializable
{
/**
* @var string[]
*/
private $teamMemberIds;
/**
* @param string[] $teamMemberIds
*/
public function __construct(array $teamMemberIds)
{
$this->teamMemberIds = $teamMemberIds;
}
/**
* Returns Team Member Ids.
* A non-empty list of IDs of team members whose booking profiles you want to retrieve.
*
* @return string[]
*/
public function getTeamMemberIds() : array
{
return $this->teamMemberIds;
}
/**
* Sets Team Member Ids.
* A non-empty list of IDs of team members whose booking profiles you want to retrieve.
*
* @required
* @maps team_member_ids
*
* @param string[] $teamMemberIds
*/
public function setTeamMemberIds(array $teamMemberIds) : void
{
$this->teamMemberIds = $teamMemberIds;
}
/**
* Encode this object to JSON
*
* @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields
* are set. (default: false)
*
* @return array|stdClass
*/
#[\ReturnTypeWillChange]
public function jsonSerialize(bool $asArrayWhenEmpty = \false)
{
$json = [];
$json['team_member_ids'] = $this->teamMemberIds;
$json = \array_filter($json, function ($val) {
return $val !== null;
});
return !$asArrayWhenEmpty && empty($json) ? new stdClass() : $json;
}
}