<?php
/**
 * SuspendedTransactionItemOut
 *
 * 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;

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

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'id' => 'int',
        'transactionId' => 'int',
        'sku' => 'string',
        'name' => 'string',
        'price' => 'double',
        'priceWithModifier' => 'double',
        'itemType' => 'string',
        'productId' => 'int',
        'custom1' => 'string',
        'quantity' => 'double',
        'grossPrice' => 'double',
        'modified' => 'int',
        'printed' => 'int',
        'commission' => 'double',
        'approvalClerkId' => 'int',
        'printOrderReceipt' => 'int',
        'notes' => 'string',
        'stockFlag' => 'bool',
        'earnsLoyalty' => 'bool',
        'modifiers' => '\SmartVolution\Model\SuspendedTransactionItemModifierOut[]',
        'tenderTypeId' => 'int',
        'priceListId' => 'int',
        'surchargeValue' => 'double',
        'allowEbt' => 'bool',
        'parentItemId' => 'int',
        'defaultQty' => 'double',
        'displayInJournal' => 'bool',
        'followTransactionPriceList' => 'bool',
        'defaultQuantityFreeOfCharge' => 'bool',
        'refundType' => 'int',
        'originalModifierQty' => 'double',
        'printMode' => 'int',
        'ebtPaymentPercentage' => 'double',
        'preauthCompleted' => 'bool',
        'happyHourPrice' => 'bool',
        'deviceId' => 'int',
        'deviceName' => '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 = [
        'id' => 'int64',
        'transactionId' => 'int64',
        'sku' => null,
        'name' => null,
        'price' => 'double',
        'priceWithModifier' => 'double',
        'itemType' => null,
        'productId' => 'int64',
        'custom1' => null,
        'quantity' => 'double',
        'grossPrice' => 'double',
        'modified' => 'int64',
        'printed' => 'int64',
        'commission' => 'double',
        'approvalClerkId' => 'int64',
        'printOrderReceipt' => 'int32',
        'notes' => null,
        'stockFlag' => null,
        'earnsLoyalty' => null,
        'modifiers' => null,
        'tenderTypeId' => 'int64',
        'priceListId' => 'int64',
        'surchargeValue' => 'double',
        'allowEbt' => null,
        'parentItemId' => 'int64',
        'defaultQty' => 'double',
        'displayInJournal' => null,
        'followTransactionPriceList' => null,
        'defaultQuantityFreeOfCharge' => null,
        'refundType' => 'int64',
        'originalModifierQty' => 'double',
        'printMode' => 'int64',
        'ebtPaymentPercentage' => 'double',
        'preauthCompleted' => null,
        'happyHourPrice' => null,
        'deviceId' => 'int64',
        'deviceName' => 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 = [
        'id' => 'id',
        'transactionId' => 'transactionId',
        'sku' => 'sku',
        'name' => 'name',
        'price' => 'price',
        'priceWithModifier' => 'priceWithModifier',
        'itemType' => 'itemType',
        'productId' => 'productId',
        'custom1' => 'custom1',
        'quantity' => 'quantity',
        'grossPrice' => 'grossPrice',
        'modified' => 'modified',
        'printed' => 'printed',
        'commission' => 'commission',
        'approvalClerkId' => 'approvalClerkId',
        'printOrderReceipt' => 'printOrderReceipt',
        'notes' => 'notes',
        'stockFlag' => 'stockFlag',
        'earnsLoyalty' => 'earnsLoyalty',
        'modifiers' => 'modifiers',
        'tenderTypeId' => 'tenderTypeId',
        'priceListId' => 'priceListId',
        'surchargeValue' => 'surchargeValue',
        'allowEbt' => 'allowEbt',
        'parentItemId' => 'parentItemId',
        'defaultQty' => 'defaultQty',
        'displayInJournal' => 'displayInJournal',
        'followTransactionPriceList' => 'followTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'defaultQuantityFreeOfCharge',
        'refundType' => 'refundType',
        'originalModifierQty' => 'originalModifierQty',
        'printMode' => 'printMode',
        'ebtPaymentPercentage' => 'ebtPaymentPercentage',
        'preauthCompleted' => 'preauthCompleted',
        'happyHourPrice' => 'happyHourPrice',
        'deviceId' => 'deviceId',
        'deviceName' => 'deviceName'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'id' => 'setId',
        'transactionId' => 'setTransactionId',
        'sku' => 'setSku',
        'name' => 'setName',
        'price' => 'setPrice',
        'priceWithModifier' => 'setPriceWithModifier',
        'itemType' => 'setItemType',
        'productId' => 'setProductId',
        'custom1' => 'setCustom1',
        'quantity' => 'setQuantity',
        'grossPrice' => 'setGrossPrice',
        'modified' => 'setModified',
        'printed' => 'setPrinted',
        'commission' => 'setCommission',
        'approvalClerkId' => 'setApprovalClerkId',
        'printOrderReceipt' => 'setPrintOrderReceipt',
        'notes' => 'setNotes',
        'stockFlag' => 'setStockFlag',
        'earnsLoyalty' => 'setEarnsLoyalty',
        'modifiers' => 'setModifiers',
        'tenderTypeId' => 'setTenderTypeId',
        'priceListId' => 'setPriceListId',
        'surchargeValue' => 'setSurchargeValue',
        'allowEbt' => 'setAllowEbt',
        'parentItemId' => 'setParentItemId',
        'defaultQty' => 'setDefaultQty',
        'displayInJournal' => 'setDisplayInJournal',
        'followTransactionPriceList' => 'setFollowTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'setDefaultQuantityFreeOfCharge',
        'refundType' => 'setRefundType',
        'originalModifierQty' => 'setOriginalModifierQty',
        'printMode' => 'setPrintMode',
        'ebtPaymentPercentage' => 'setEbtPaymentPercentage',
        'preauthCompleted' => 'setPreauthCompleted',
        'happyHourPrice' => 'setHappyHourPrice',
        'deviceId' => 'setDeviceId',
        'deviceName' => 'setDeviceName'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'id' => 'getId',
        'transactionId' => 'getTransactionId',
        'sku' => 'getSku',
        'name' => 'getName',
        'price' => 'getPrice',
        'priceWithModifier' => 'getPriceWithModifier',
        'itemType' => 'getItemType',
        'productId' => 'getProductId',
        'custom1' => 'getCustom1',
        'quantity' => 'getQuantity',
        'grossPrice' => 'getGrossPrice',
        'modified' => 'getModified',
        'printed' => 'getPrinted',
        'commission' => 'getCommission',
        'approvalClerkId' => 'getApprovalClerkId',
        'printOrderReceipt' => 'getPrintOrderReceipt',
        'notes' => 'getNotes',
        'stockFlag' => 'getStockFlag',
        'earnsLoyalty' => 'getEarnsLoyalty',
        'modifiers' => 'getModifiers',
        'tenderTypeId' => 'getTenderTypeId',
        'priceListId' => 'getPriceListId',
        'surchargeValue' => 'getSurchargeValue',
        'allowEbt' => 'getAllowEbt',
        'parentItemId' => 'getParentItemId',
        'defaultQty' => 'getDefaultQty',
        'displayInJournal' => 'getDisplayInJournal',
        'followTransactionPriceList' => 'getFollowTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'getDefaultQuantityFreeOfCharge',
        'refundType' => 'getRefundType',
        'originalModifierQty' => 'getOriginalModifierQty',
        'printMode' => 'getPrintMode',
        'ebtPaymentPercentage' => 'getEbtPaymentPercentage',
        'preauthCompleted' => 'getPreauthCompleted',
        'happyHourPrice' => 'getHappyHourPrice',
        'deviceId' => 'getDeviceId',
        'deviceName' => 'getDeviceName'
    ];

    /**
     * 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['id'] = $data['id'] ?? null;
        $this->container['transactionId'] = $data['transactionId'] ?? null;
        $this->container['sku'] = $data['sku'] ?? null;
        $this->container['name'] = $data['name'] ?? null;
        $this->container['price'] = $data['price'] ?? null;
        $this->container['priceWithModifier'] = $data['priceWithModifier'] ?? null;
        $this->container['itemType'] = $data['itemType'] ?? null;
        $this->container['productId'] = $data['productId'] ?? null;
        $this->container['custom1'] = $data['custom1'] ?? null;
        $this->container['quantity'] = $data['quantity'] ?? null;
        $this->container['grossPrice'] = $data['grossPrice'] ?? null;
        $this->container['modified'] = $data['modified'] ?? null;
        $this->container['printed'] = $data['printed'] ?? null;
        $this->container['commission'] = $data['commission'] ?? null;
        $this->container['approvalClerkId'] = $data['approvalClerkId'] ?? null;
        $this->container['printOrderReceipt'] = $data['printOrderReceipt'] ?? null;
        $this->container['notes'] = $data['notes'] ?? null;
        $this->container['stockFlag'] = $data['stockFlag'] ?? null;
        $this->container['earnsLoyalty'] = $data['earnsLoyalty'] ?? null;
        $this->container['modifiers'] = $data['modifiers'] ?? null;
        $this->container['tenderTypeId'] = $data['tenderTypeId'] ?? null;
        $this->container['priceListId'] = $data['priceListId'] ?? null;
        $this->container['surchargeValue'] = $data['surchargeValue'] ?? null;
        $this->container['allowEbt'] = $data['allowEbt'] ?? null;
        $this->container['parentItemId'] = $data['parentItemId'] ?? null;
        $this->container['defaultQty'] = $data['defaultQty'] ?? null;
        $this->container['displayInJournal'] = $data['displayInJournal'] ?? null;
        $this->container['followTransactionPriceList'] = $data['followTransactionPriceList'] ?? null;
        $this->container['defaultQuantityFreeOfCharge'] = $data['defaultQuantityFreeOfCharge'] ?? null;
        $this->container['refundType'] = $data['refundType'] ?? null;
        $this->container['originalModifierQty'] = $data['originalModifierQty'] ?? null;
        $this->container['printMode'] = $data['printMode'] ?? null;
        $this->container['ebtPaymentPercentage'] = $data['ebtPaymentPercentage'] ?? null;
        $this->container['preauthCompleted'] = $data['preauthCompleted'] ?? null;
        $this->container['happyHourPrice'] = $data['happyHourPrice'] ?? null;
        $this->container['deviceId'] = $data['deviceId'] ?? null;
        $this->container['deviceName'] = $data['deviceName'] ?? 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 id
     *
     * @return int|null
     */
    public function getId()
    {
        return $this->container['id'];
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        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 priceWithModifier
     *
     * @return double|null
     */
    public function getPriceWithModifier()
    {
        return $this->container['priceWithModifier'];
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        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 quantity
     *
     * @return double|null
     */
    public function getQuantity()
    {
        return $this->container['quantity'];
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        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 printOrderReceipt
     *
     * @return int|null
     */
    public function getPrintOrderReceipt()
    {
        return $this->container['printOrderReceipt'];
    }

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

        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;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        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));
    }
}


