<?php
/**
 * SuspendedTransactionInPut
 *
 * PHP version 7.4
 *
 * @category Class
 * @package  SmartVolution
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 */

/**
 * SV Register Web-services
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 4.15
 * Generated by: https://openapi-generator.tech
 * OpenAPI Generator version: 6.0.0
 */

/**
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

namespace SmartVolution\Model;

use \ArrayAccess;
use \SmartVolution\ObjectSerializer;

/**
 * SuspendedTransactionInPut Class Doc Comment
 *
 * @category Class
 * @description 
 * @package  SmartVolution
 * @author   OpenAPI Generator team
 * @link     https://openapi-generator.tech
 * @implements \ArrayAccess<TKey, TValue>
 * @template TKey int|null
 * @template TValue mixed|null
 */
class SuspendedTransactionInPut implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

    /**
      * The original name of the model.
      *
      * @var string
      */
    protected static $openAPIModelName = 'SuspendedTransactionInPut';

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'transactionId' => 'string',
        'tenantId' => 'int',
        'deviceId' => 'int',
        'storeId' => 'int',
        'appVersion' => 'string',
        'reference' => 'string',
        'clerkId' => 'int',
        'clerkName' => 'string',
        'userId' => 'int',
        'transType' => 'string',
        'dateTime' => '\DateTime',
        'price' => 'double',
        'priceWithModifiers' => 'double',
        'amountTendered' => 'double',
        'changeGiven' => 'double',
        'cardPan' => 'string',
        'expiry' => 'string',
        'mid' => 'string',
        'tid' => 'string',
        'aid' => 'string',
        'authcode' => 'string',
        'custom1' => 'string',
        'version' => 'int',
        'customerId' => 'int',
        'appointmentId' => 'int',
        'locked' => 'bool',
        'approvalClerkId' => 'int',
        'parentId' => 'string',
        'suspendReasonId' => 'int',
        'originator' => 'int',
        'items' => '\SmartVolution\Model\SuspendedTransactionItemInPut[]',
        'tipAmount' => 'double',
        'lastClerkId' => 'int',
        'readyToComplete' => 'bool',
        'useActivityDefaultPriceList' => 'bool',
        'notes' => 'string'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      *
      * @var string[]
      * @phpstan-var array<string, string|null>
      * @psalm-var array<string, string|null>
      */
    protected static $openAPIFormats = [
        'transactionId' => null,
        'tenantId' => 'int64',
        'deviceId' => 'int64',
        'storeId' => 'int64',
        'appVersion' => null,
        'reference' => null,
        'clerkId' => 'int64',
        'clerkName' => null,
        'userId' => 'int64',
        'transType' => null,
        'dateTime' => 'date-time',
        'price' => 'double',
        'priceWithModifiers' => 'double',
        'amountTendered' => 'double',
        'changeGiven' => 'double',
        'cardPan' => null,
        'expiry' => null,
        'mid' => null,
        'tid' => null,
        'aid' => null,
        'authcode' => null,
        'custom1' => null,
        'version' => 'int32',
        'customerId' => 'int64',
        'appointmentId' => 'int64',
        'locked' => null,
        'approvalClerkId' => 'int64',
        'parentId' => null,
        'suspendReasonId' => 'int64',
        'originator' => 'int64',
        'items' => null,
        'tipAmount' => 'double',
        'lastClerkId' => 'int64',
        'readyToComplete' => null,
        'useActivityDefaultPriceList' => null,
        'notes' => null
    ];

    /**
     * Array of property to type mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPITypes()
    {
        return self::$openAPITypes;
    }

    /**
     * Array of property to format mappings. Used for (de)serialization
     *
     * @return array
     */
    public static function openAPIFormats()
    {
        return self::$openAPIFormats;
    }

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @var string[]
     */
    protected static $attributeMap = [
        'transactionId' => 'transactionId',
        'tenantId' => 'tenantId',
        'deviceId' => 'deviceId',
        'storeId' => 'storeId',
        'appVersion' => 'appVersion',
        'reference' => 'reference',
        'clerkId' => 'clerkId',
        'clerkName' => 'clerkName',
        'userId' => 'userId',
        'transType' => 'transType',
        'dateTime' => 'dateTime',
        'price' => 'price',
        'priceWithModifiers' => 'priceWithModifiers',
        'amountTendered' => 'amountTendered',
        'changeGiven' => 'changeGiven',
        'cardPan' => 'cardPan',
        'expiry' => 'expiry',
        'mid' => 'mid',
        'tid' => 'tid',
        'aid' => 'aid',
        'authcode' => 'authcode',
        'custom1' => 'custom1',
        'version' => 'version',
        'customerId' => 'customerId',
        'appointmentId' => 'appointmentId',
        'locked' => 'locked',
        'approvalClerkId' => 'approvalClerkId',
        'parentId' => 'parentId',
        'suspendReasonId' => 'suspendReasonId',
        'originator' => 'originator',
        'items' => 'items',
        'tipAmount' => 'tipAmount',
        'lastClerkId' => 'lastClerkId',
        'readyToComplete' => 'readyToComplete',
        'useActivityDefaultPriceList' => 'useActivityDefaultPriceList',
        'notes' => 'notes'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'transactionId' => 'setTransactionId',
        'tenantId' => 'setTenantId',
        'deviceId' => 'setDeviceId',
        'storeId' => 'setStoreId',
        'appVersion' => 'setAppVersion',
        'reference' => 'setReference',
        'clerkId' => 'setClerkId',
        'clerkName' => 'setClerkName',
        'userId' => 'setUserId',
        'transType' => 'setTransType',
        'dateTime' => 'setDateTime',
        'price' => 'setPrice',
        'priceWithModifiers' => 'setPriceWithModifiers',
        'amountTendered' => 'setAmountTendered',
        'changeGiven' => 'setChangeGiven',
        'cardPan' => 'setCardPan',
        'expiry' => 'setExpiry',
        'mid' => 'setMid',
        'tid' => 'setTid',
        'aid' => 'setAid',
        'authcode' => 'setAuthcode',
        'custom1' => 'setCustom1',
        'version' => 'setVersion',
        'customerId' => 'setCustomerId',
        'appointmentId' => 'setAppointmentId',
        'locked' => 'setLocked',
        'approvalClerkId' => 'setApprovalClerkId',
        'parentId' => 'setParentId',
        'suspendReasonId' => 'setSuspendReasonId',
        'originator' => 'setOriginator',
        'items' => 'setItems',
        'tipAmount' => 'setTipAmount',
        'lastClerkId' => 'setLastClerkId',
        'readyToComplete' => 'setReadyToComplete',
        'useActivityDefaultPriceList' => 'setUseActivityDefaultPriceList',
        'notes' => 'setNotes'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'transactionId' => 'getTransactionId',
        'tenantId' => 'getTenantId',
        'deviceId' => 'getDeviceId',
        'storeId' => 'getStoreId',
        'appVersion' => 'getAppVersion',
        'reference' => 'getReference',
        'clerkId' => 'getClerkId',
        'clerkName' => 'getClerkName',
        'userId' => 'getUserId',
        'transType' => 'getTransType',
        'dateTime' => 'getDateTime',
        'price' => 'getPrice',
        'priceWithModifiers' => 'getPriceWithModifiers',
        'amountTendered' => 'getAmountTendered',
        'changeGiven' => 'getChangeGiven',
        'cardPan' => 'getCardPan',
        'expiry' => 'getExpiry',
        'mid' => 'getMid',
        'tid' => 'getTid',
        'aid' => 'getAid',
        'authcode' => 'getAuthcode',
        'custom1' => 'getCustom1',
        'version' => 'getVersion',
        'customerId' => 'getCustomerId',
        'appointmentId' => 'getAppointmentId',
        'locked' => 'getLocked',
        'approvalClerkId' => 'getApprovalClerkId',
        'parentId' => 'getParentId',
        'suspendReasonId' => 'getSuspendReasonId',
        'originator' => 'getOriginator',
        'items' => 'getItems',
        'tipAmount' => 'getTipAmount',
        'lastClerkId' => 'getLastClerkId',
        'readyToComplete' => 'getReadyToComplete',
        'useActivityDefaultPriceList' => 'getUseActivityDefaultPriceList',
        'notes' => 'getNotes'
    ];

    /**
     * Array of attributes where the key is the local name,
     * and the value is the original name
     *
     * @return array
     */
    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @return array
     */
    public static function setters()
    {
        return self::$setters;
    }

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @return array
     */
    public static function getters()
    {
        return self::$getters;
    }

    /**
     * The original name of the model.
     *
     * @return string
     */
    public function getModelName()
    {
        return self::$openAPIModelName;
    }


    /**
     * Associative array for storing property values
     *
     * @var mixed[]
     */
    protected $container = [];

    /**
     * Constructor
     *
     * @param mixed[] $data Associated array of property values
     *                      initializing the model
     */
    public function __construct(array $data = null)
    {
        $this->container['transactionId'] = $data['transactionId'] ?? null;
        $this->container['tenantId'] = $data['tenantId'] ?? null;
        $this->container['deviceId'] = $data['deviceId'] ?? null;
        $this->container['storeId'] = $data['storeId'] ?? null;
        $this->container['appVersion'] = $data['appVersion'] ?? null;
        $this->container['reference'] = $data['reference'] ?? null;
        $this->container['clerkId'] = $data['clerkId'] ?? null;
        $this->container['clerkName'] = $data['clerkName'] ?? null;
        $this->container['userId'] = $data['userId'] ?? null;
        $this->container['transType'] = $data['transType'] ?? null;
        $this->container['dateTime'] = $data['dateTime'] ?? null;
        $this->container['price'] = $data['price'] ?? null;
        $this->container['priceWithModifiers'] = $data['priceWithModifiers'] ?? null;
        $this->container['amountTendered'] = $data['amountTendered'] ?? null;
        $this->container['changeGiven'] = $data['changeGiven'] ?? null;
        $this->container['cardPan'] = $data['cardPan'] ?? null;
        $this->container['expiry'] = $data['expiry'] ?? null;
        $this->container['mid'] = $data['mid'] ?? null;
        $this->container['tid'] = $data['tid'] ?? null;
        $this->container['aid'] = $data['aid'] ?? null;
        $this->container['authcode'] = $data['authcode'] ?? null;
        $this->container['custom1'] = $data['custom1'] ?? null;
        $this->container['version'] = $data['version'] ?? null;
        $this->container['customerId'] = $data['customerId'] ?? null;
        $this->container['appointmentId'] = $data['appointmentId'] ?? null;
        $this->container['locked'] = $data['locked'] ?? null;
        $this->container['approvalClerkId'] = $data['approvalClerkId'] ?? null;
        $this->container['parentId'] = $data['parentId'] ?? null;
        $this->container['suspendReasonId'] = $data['suspendReasonId'] ?? null;
        $this->container['originator'] = $data['originator'] ?? null;
        $this->container['items'] = $data['items'] ?? null;
        $this->container['tipAmount'] = $data['tipAmount'] ?? null;
        $this->container['lastClerkId'] = $data['lastClerkId'] ?? null;
        $this->container['readyToComplete'] = $data['readyToComplete'] ?? null;
        $this->container['useActivityDefaultPriceList'] = $data['useActivityDefaultPriceList'] ?? null;
        $this->container['notes'] = $data['notes'] ?? null;
    }

    /**
     * Show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalidProperties = [];

        return $invalidProperties;
    }

    /**
     * Validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {
        return count($this->listInvalidProperties()) === 0;
    }


    /**
     * Gets transactionId
     *
     * @return string|null
     */
    public function getTransactionId()
    {
        return $this->container['transactionId'];
    }

    /**
     * Sets transactionId
     *
     * @param string|null $transactionId tablet local transaction id
     *
     * @return self
     */
    public function setTransactionId($transactionId)
    {
        $this->container['transactionId'] = $transactionId;

        return $this;
    }

    /**
     * Gets tenantId
     *
     * @return int|null
     */
    public function getTenantId()
    {
        return $this->container['tenantId'];
    }

    /**
     * Sets tenantId
     *
     * @param int|null $tenantId Tenant id
     *
     * @return self
     */
    public function setTenantId($tenantId)
    {
        $this->container['tenantId'] = $tenantId;

        return $this;
    }

    /**
     * Gets deviceId
     *
     * @return int|null
     */
    public function getDeviceId()
    {
        return $this->container['deviceId'];
    }

    /**
     * Sets deviceId
     *
     * @param int|null $deviceId Device id
     *
     * @return self
     */
    public function setDeviceId($deviceId)
    {
        $this->container['deviceId'] = $deviceId;

        return $this;
    }

    /**
     * Gets storeId
     *
     * @return int|null
     */
    public function getStoreId()
    {
        return $this->container['storeId'];
    }

    /**
     * Sets storeId
     *
     * @param int|null $storeId Store id
     *
     * @return self
     */
    public function setStoreId($storeId)
    {
        $this->container['storeId'] = $storeId;

        return $this;
    }

    /**
     * Gets appVersion
     *
     * @return string|null
     */
    public function getAppVersion()
    {
        return $this->container['appVersion'];
    }

    /**
     * Sets appVersion
     *
     * @param string|null $appVersion appVersion
     *
     * @return self
     */
    public function setAppVersion($appVersion)
    {
        $this->container['appVersion'] = $appVersion;

        return $this;
    }

    /**
     * Gets reference
     *
     * @return string|null
     */
    public function getReference()
    {
        return $this->container['reference'];
    }

    /**
     * Sets reference
     *
     * @param string|null $reference reference
     *
     * @return self
     */
    public function setReference($reference)
    {
        $this->container['reference'] = $reference;

        return $this;
    }

    /**
     * Gets clerkId
     *
     * @return int|null
     */
    public function getClerkId()
    {
        return $this->container['clerkId'];
    }

    /**
     * Sets clerkId
     *
     * @param int|null $clerkId clerkId
     *
     * @return self
     */
    public function setClerkId($clerkId)
    {
        $this->container['clerkId'] = $clerkId;

        return $this;
    }

    /**
     * Gets clerkName
     *
     * @return string|null
     */
    public function getClerkName()
    {
        return $this->container['clerkName'];
    }

    /**
     * Sets clerkName
     *
     * @param string|null $clerkName clerkName
     *
     * @return self
     */
    public function setClerkName($clerkName)
    {
        $this->container['clerkName'] = $clerkName;

        return $this;
    }

    /**
     * Gets userId
     *
     * @return int|null
     */
    public function getUserId()
    {
        return $this->container['userId'];
    }

    /**
     * Sets userId
     *
     * @param int|null $userId userId
     *
     * @return self
     */
    public function setUserId($userId)
    {
        $this->container['userId'] = $userId;

        return $this;
    }

    /**
     * Gets transType
     *
     * @return string|null
     */
    public function getTransType()
    {
        return $this->container['transType'];
    }

    /**
     * Sets transType
     *
     * @param string|null $transType transType
     *
     * @return self
     */
    public function setTransType($transType)
    {
        $this->container['transType'] = $transType;

        return $this;
    }

    /**
     * Gets dateTime
     *
     * @return \DateTime|null
     */
    public function getDateTime()
    {
        return $this->container['dateTime'];
    }

    /**
     * Sets dateTime
     *
     * @param \DateTime|null $dateTime dateTime
     *
     * @return self
     */
    public function setDateTime($dateTime)
    {
        $this->container['dateTime'] = $dateTime;

        return $this;
    }

    /**
     * Gets price
     *
     * @return double|null
     */
    public function getPrice()
    {
        return $this->container['price'];
    }

    /**
     * Sets price
     *
     * @param double|null $price price
     *
     * @return self
     */
    public function setPrice($price)
    {
        $this->container['price'] = $price;

        return $this;
    }

    /**
     * Gets priceWithModifiers
     *
     * @return double|null
     */
    public function getPriceWithModifiers()
    {
        return $this->container['priceWithModifiers'];
    }

    /**
     * Sets priceWithModifiers
     *
     * @param double|null $priceWithModifiers priceWithModifiers
     *
     * @return self
     */
    public function setPriceWithModifiers($priceWithModifiers)
    {
        $this->container['priceWithModifiers'] = $priceWithModifiers;

        return $this;
    }

    /**
     * Gets amountTendered
     *
     * @return double|null
     */
    public function getAmountTendered()
    {
        return $this->container['amountTendered'];
    }

    /**
     * Sets amountTendered
     *
     * @param double|null $amountTendered amountTendered
     *
     * @return self
     */
    public function setAmountTendered($amountTendered)
    {
        $this->container['amountTendered'] = $amountTendered;

        return $this;
    }

    /**
     * Gets changeGiven
     *
     * @return double|null
     */
    public function getChangeGiven()
    {
        return $this->container['changeGiven'];
    }

    /**
     * Sets changeGiven
     *
     * @param double|null $changeGiven changeGiven
     *
     * @return self
     */
    public function setChangeGiven($changeGiven)
    {
        $this->container['changeGiven'] = $changeGiven;

        return $this;
    }

    /**
     * Gets cardPan
     *
     * @return string|null
     */
    public function getCardPan()
    {
        return $this->container['cardPan'];
    }

    /**
     * Sets cardPan
     *
     * @param string|null $cardPan cardPan
     *
     * @return self
     */
    public function setCardPan($cardPan)
    {
        $this->container['cardPan'] = $cardPan;

        return $this;
    }

    /**
     * Gets expiry
     *
     * @return string|null
     */
    public function getExpiry()
    {
        return $this->container['expiry'];
    }

    /**
     * Sets expiry
     *
     * @param string|null $expiry expiry
     *
     * @return self
     */
    public function setExpiry($expiry)
    {
        $this->container['expiry'] = $expiry;

        return $this;
    }

    /**
     * Gets mid
     *
     * @return string|null
     */
    public function getMid()
    {
        return $this->container['mid'];
    }

    /**
     * Sets mid
     *
     * @param string|null $mid mid
     *
     * @return self
     */
    public function setMid($mid)
    {
        $this->container['mid'] = $mid;

        return $this;
    }

    /**
     * Gets tid
     *
     * @return string|null
     */
    public function getTid()
    {
        return $this->container['tid'];
    }

    /**
     * Sets tid
     *
     * @param string|null $tid tid
     *
     * @return self
     */
    public function setTid($tid)
    {
        $this->container['tid'] = $tid;

        return $this;
    }

    /**
     * Gets aid
     *
     * @return string|null
     */
    public function getAid()
    {
        return $this->container['aid'];
    }

    /**
     * Sets aid
     *
     * @param string|null $aid aid
     *
     * @return self
     */
    public function setAid($aid)
    {
        $this->container['aid'] = $aid;

        return $this;
    }

    /**
     * Gets authcode
     *
     * @return string|null
     */
    public function getAuthcode()
    {
        return $this->container['authcode'];
    }

    /**
     * Sets authcode
     *
     * @param string|null $authcode authcode
     *
     * @return self
     */
    public function setAuthcode($authcode)
    {
        $this->container['authcode'] = $authcode;

        return $this;
    }

    /**
     * Gets custom1
     *
     * @return string|null
     */
    public function getCustom1()
    {
        return $this->container['custom1'];
    }

    /**
     * Sets custom1
     *
     * @param string|null $custom1 custom1
     *
     * @return self
     */
    public function setCustom1($custom1)
    {
        $this->container['custom1'] = $custom1;

        return $this;
    }

    /**
     * Gets version
     *
     * @return int|null
     */
    public function getVersion()
    {
        return $this->container['version'];
    }

    /**
     * Sets version
     *
     * @param int|null $version version
     *
     * @return self
     */
    public function setVersion($version)
    {
        $this->container['version'] = $version;

        return $this;
    }

    /**
     * Gets customerId
     *
     * @return int|null
     */
    public function getCustomerId()
    {
        return $this->container['customerId'];
    }

    /**
     * Sets customerId
     *
     * @param int|null $customerId customerId
     *
     * @return self
     */
    public function setCustomerId($customerId)
    {
        $this->container['customerId'] = $customerId;

        return $this;
    }

    /**
     * Gets appointmentId
     *
     * @return int|null
     */
    public function getAppointmentId()
    {
        return $this->container['appointmentId'];
    }

    /**
     * Sets appointmentId
     *
     * @param int|null $appointmentId appointmentId
     *
     * @return self
     */
    public function setAppointmentId($appointmentId)
    {
        $this->container['appointmentId'] = $appointmentId;

        return $this;
    }

    /**
     * Gets locked
     *
     * @return bool|null
     */
    public function getLocked()
    {
        return $this->container['locked'];
    }

    /**
     * Sets locked
     *
     * @param bool|null $locked locked
     *
     * @return self
     */
    public function setLocked($locked)
    {
        $this->container['locked'] = $locked;

        return $this;
    }

    /**
     * Gets approvalClerkId
     *
     * @return int|null
     */
    public function getApprovalClerkId()
    {
        return $this->container['approvalClerkId'];
    }

    /**
     * Sets approvalClerkId
     *
     * @param int|null $approvalClerkId approvalClerkId
     *
     * @return self
     */
    public function setApprovalClerkId($approvalClerkId)
    {
        $this->container['approvalClerkId'] = $approvalClerkId;

        return $this;
    }

    /**
     * Gets parentId
     *
     * @return string|null
     */
    public function getParentId()
    {
        return $this->container['parentId'];
    }

    /**
     * Sets parentId
     *
     * @param string|null $parentId parentId
     *
     * @return self
     */
    public function setParentId($parentId)
    {
        $this->container['parentId'] = $parentId;

        return $this;
    }

    /**
     * Gets suspendReasonId
     *
     * @return int|null
     */
    public function getSuspendReasonId()
    {
        return $this->container['suspendReasonId'];
    }

    /**
     * Sets suspendReasonId
     *
     * @param int|null $suspendReasonId suspendReasonId
     *
     * @return self
     */
    public function setSuspendReasonId($suspendReasonId)
    {
        $this->container['suspendReasonId'] = $suspendReasonId;

        return $this;
    }

    /**
     * Gets originator
     *
     * @return int|null
     */
    public function getOriginator()
    {
        return $this->container['originator'];
    }

    /**
     * Sets originator
     *
     * @param int|null $originator originator
     *
     * @return self
     */
    public function setOriginator($originator)
    {
        $this->container['originator'] = $originator;

        return $this;
    }

    /**
     * Gets items
     *
     * @return \SmartVolution\Model\SuspendedTransactionItemInPut[]|null
     */
    public function getItems()
    {
        return $this->container['items'];
    }

    /**
     * Sets items
     *
     * @param \SmartVolution\Model\SuspendedTransactionItemInPut[]|null $items items
     *
     * @return self
     */
    public function setItems($items)
    {
        $this->container['items'] = $items;

        return $this;
    }

    /**
     * Gets tipAmount
     *
     * @return double|null
     */
    public function getTipAmount()
    {
        return $this->container['tipAmount'];
    }

    /**
     * Sets tipAmount
     *
     * @param double|null $tipAmount tipAmount
     *
     * @return self
     */
    public function setTipAmount($tipAmount)
    {
        $this->container['tipAmount'] = $tipAmount;

        return $this;
    }

    /**
     * Gets lastClerkId
     *
     * @return int|null
     */
    public function getLastClerkId()
    {
        return $this->container['lastClerkId'];
    }

    /**
     * Sets lastClerkId
     *
     * @param int|null $lastClerkId lastClerkId
     *
     * @return self
     */
    public function setLastClerkId($lastClerkId)
    {
        $this->container['lastClerkId'] = $lastClerkId;

        return $this;
    }

    /**
     * Gets readyToComplete
     *
     * @return bool|null
     */
    public function getReadyToComplete()
    {
        return $this->container['readyToComplete'];
    }

    /**
     * Sets readyToComplete
     *
     * @param bool|null $readyToComplete readyToComplete
     *
     * @return self
     */
    public function setReadyToComplete($readyToComplete)
    {
        $this->container['readyToComplete'] = $readyToComplete;

        return $this;
    }

    /**
     * Gets useActivityDefaultPriceList
     *
     * @return bool|null
     */
    public function getUseActivityDefaultPriceList()
    {
        return $this->container['useActivityDefaultPriceList'];
    }

    /**
     * Sets useActivityDefaultPriceList
     *
     * @param bool|null $useActivityDefaultPriceList useActivityDefaultPriceList
     *
     * @return self
     */
    public function setUseActivityDefaultPriceList($useActivityDefaultPriceList)
    {
        $this->container['useActivityDefaultPriceList'] = $useActivityDefaultPriceList;

        return $this;
    }

    /**
     * Gets notes
     *
     * @return string|null
     */
    public function getNotes()
    {
        return $this->container['notes'];
    }

    /**
     * Sets notes
     *
     * @param string|null $notes notes
     *
     * @return self
     */
    public function setNotes($notes)
    {
        $this->container['notes'] = $notes;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     *
     * @param integer $offset Offset
     *
     * @return boolean
     */
    public function offsetExists($offset): bool
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     *
     * @param integer $offset Offset
     *
     * @return mixed|null
     */
    #[\ReturnTypeWillChange]
    public function offsetGet($offset)
    {
        return $this->container[$offset] ?? null;
    }

    /**
     * Sets value based on offset.
     *
     * @param int|null $offset Offset
     * @param mixed    $value  Value to be set
     *
     * @return void
     */
    public function offsetSet($offset, $value): void
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     *
     * @param integer $offset Offset
     *
     * @return void
     */
    public function offsetUnset($offset): void
    {
        unset($this->container[$offset]);
    }

    /**
     * Serializes the object to a value that can be serialized natively by json_encode().
     * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
     *
     * @return mixed Returns data which can be serialized by json_encode(), which is a value
     * of any type other than a resource.
     */
    #[\ReturnTypeWillChange]
    public function jsonSerialize()
    {
       return ObjectSerializer::sanitizeForSerialization($this);
    }

    /**
     * Gets the string presentation of the object
     *
     * @return string
     */
    public function __toString()
    {
        return json_encode(
            ObjectSerializer::sanitizeForSerialization($this),
            JSON_PRETTY_PRINT
        );
    }

    /**
     * Gets a header-safe presentation of the object
     *
     * @return string
     */
    public function toHeaderValue()
    {
        return json_encode(ObjectSerializer::sanitizeForSerialization($this));
    }
}


