%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/square/square/src/Models/ |
Upload File : |
<?php
declare(strict_types=1);
namespace Square\Models;
use stdClass;
/**
* Information about fulfillment updates.
*/
class OrderFulfillmentUpdatedUpdate implements \JsonSerializable
{
/**
* @var string|null
*/
private $fulfillmentUid;
/**
* @var string|null
*/
private $oldState;
/**
* @var string|null
*/
private $newState;
/**
* Returns Fulfillment Uid.
*
* A unique ID that identifies the fulfillment only within this order.
*/
public function getFulfillmentUid(): ?string
{
return $this->fulfillmentUid;
}
/**
* Sets Fulfillment Uid.
*
* A unique ID that identifies the fulfillment only within this order.
*
* @maps fulfillment_uid
*/
public function setFulfillmentUid(?string $fulfillmentUid): void
{
$this->fulfillmentUid = $fulfillmentUid;
}
/**
* Returns Old State.
*
* The current state of this fulfillment.
*/
public function getOldState(): ?string
{
return $this->oldState;
}
/**
* Sets Old State.
*
* The current state of this fulfillment.
*
* @maps old_state
*/
public function setOldState(?string $oldState): void
{
$this->oldState = $oldState;
}
/**
* Returns New State.
*
* The current state of this fulfillment.
*/
public function getNewState(): ?string
{
return $this->newState;
}
/**
* Sets New State.
*
* The current state of this fulfillment.
*
* @maps new_state
*/
public function setNewState(?string $newState): void
{
$this->newState = $newState;
}
/**
* 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 = [];
if (isset($this->fulfillmentUid)) {
$json['fulfillment_uid'] = $this->fulfillmentUid;
}
if (isset($this->oldState)) {
$json['old_state'] = $this->oldState;
}
if (isset($this->newState)) {
$json['new_state'] = $this->newState;
}
$json = array_filter($json, function ($val) {
return $val !== null;
});
return (!$asArrayWhenEmpty && empty($json)) ? new stdClass() : $json;
}
}