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

/**
 * TransactionItem 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 TransactionItem implements ModelInterface, ArrayAccess, \JsonSerializable
{
    public const DISCRIMINATOR = null;

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      *
      * @var string[]
      */
    protected static $openAPITypes = [
        'sku' => 'string',
        'name' => 'string',
        'price' => 'double',
        'priceWithModifier' => 'double',
        'itemType' => 'string',
        'productId' => 'int',
        'custom1' => 'string',
        'quantity' => 'double',
        'grossPrice' => 'double',
        'notes' => 'string',
        'commission' => 'double',
        'uomId' => 'int',
        'uomMultiplier' => 'double',
        'approvalClerkId' => 'int',
        'tenderTypeId' => 'int',
        'added' => 'int',
        'internalFlag' => 'bool',
        'stockFlag' => 'bool',
        'earnsLoyalty' => 'bool',
        'allowEbt' => 'bool',
        'modifiers' => '\SmartVolution\Model\TransactionItemModifier[]',
        'symbol' => 'string',
        'containerId' => 'int',
        'priceListId' => 'int',
        'surchargeValue' => 'double',
        'itemLocalId' => 'string',
        'parentItemLocalId' => 'string',
        'defaultQty' => 'double',
        'displayInJournal' => 'bool',
        'followTransactionPriceList' => 'bool',
        'defaultQuantityFreeOfCharge' => 'bool',
        'ebtPaymentPercentage' => 'double',
        '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 = [
        'sku' => null,
        'name' => null,
        'price' => 'double',
        'priceWithModifier' => 'double',
        'itemType' => null,
        'productId' => 'int64',
        'custom1' => null,
        'quantity' => 'double',
        'grossPrice' => 'double',
        'notes' => null,
        'commission' => 'double',
        'uomId' => 'int64',
        'uomMultiplier' => 'double',
        'approvalClerkId' => 'int64',
        'tenderTypeId' => 'int64',
        'added' => 'int64',
        'internalFlag' => null,
        'stockFlag' => null,
        'earnsLoyalty' => null,
        'allowEbt' => null,
        'modifiers' => null,
        'symbol' => null,
        'containerId' => 'int64',
        'priceListId' => 'int64',
        'surchargeValue' => 'double',
        'itemLocalId' => null,
        'parentItemLocalId' => null,
        'defaultQty' => 'double',
        'displayInJournal' => null,
        'followTransactionPriceList' => null,
        'defaultQuantityFreeOfCharge' => null,
        'ebtPaymentPercentage' => 'double',
        '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 = [
        'sku' => 'sku',
        'name' => 'name',
        'price' => 'price',
        'priceWithModifier' => 'priceWithModifier',
        'itemType' => 'itemType',
        'productId' => 'productId',
        'custom1' => 'custom1',
        'quantity' => 'quantity',
        'grossPrice' => 'grossPrice',
        'notes' => 'notes',
        'commission' => 'commission',
        'uomId' => 'uomId',
        'uomMultiplier' => 'uomMultiplier',
        'approvalClerkId' => 'approvalClerkId',
        'tenderTypeId' => 'tenderTypeId',
        'added' => 'added',
        'internalFlag' => 'internalFlag',
        'stockFlag' => 'stockFlag',
        'earnsLoyalty' => 'earnsLoyalty',
        'allowEbt' => 'allowEbt',
        'modifiers' => 'modifiers',
        'symbol' => 'symbol',
        'containerId' => 'containerId',
        'priceListId' => 'priceListId',
        'surchargeValue' => 'surchargeValue',
        'itemLocalId' => 'itemLocalId',
        'parentItemLocalId' => 'parentItemLocalId',
        'defaultQty' => 'defaultQty',
        'displayInJournal' => 'displayInJournal',
        'followTransactionPriceList' => 'followTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'defaultQuantityFreeOfCharge',
        'ebtPaymentPercentage' => 'ebtPaymentPercentage',
        'deviceId' => 'deviceId',
        'deviceName' => 'deviceName'
    ];

    /**
     * Array of attributes to setter functions (for deserialization of responses)
     *
     * @var string[]
     */
    protected static $setters = [
        'sku' => 'setSku',
        'name' => 'setName',
        'price' => 'setPrice',
        'priceWithModifier' => 'setPriceWithModifier',
        'itemType' => 'setItemType',
        'productId' => 'setProductId',
        'custom1' => 'setCustom1',
        'quantity' => 'setQuantity',
        'grossPrice' => 'setGrossPrice',
        'notes' => 'setNotes',
        'commission' => 'setCommission',
        'uomId' => 'setUomId',
        'uomMultiplier' => 'setUomMultiplier',
        'approvalClerkId' => 'setApprovalClerkId',
        'tenderTypeId' => 'setTenderTypeId',
        'added' => 'setAdded',
        'internalFlag' => 'setInternalFlag',
        'stockFlag' => 'setStockFlag',
        'earnsLoyalty' => 'setEarnsLoyalty',
        'allowEbt' => 'setAllowEbt',
        'modifiers' => 'setModifiers',
        'symbol' => 'setSymbol',
        'containerId' => 'setContainerId',
        'priceListId' => 'setPriceListId',
        'surchargeValue' => 'setSurchargeValue',
        'itemLocalId' => 'setItemLocalId',
        'parentItemLocalId' => 'setParentItemLocalId',
        'defaultQty' => 'setDefaultQty',
        'displayInJournal' => 'setDisplayInJournal',
        'followTransactionPriceList' => 'setFollowTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'setDefaultQuantityFreeOfCharge',
        'ebtPaymentPercentage' => 'setEbtPaymentPercentage',
        'deviceId' => 'setDeviceId',
        'deviceName' => 'setDeviceName'
    ];

    /**
     * Array of attributes to getter functions (for serialization of requests)
     *
     * @var string[]
     */
    protected static $getters = [
        'sku' => 'getSku',
        'name' => 'getName',
        'price' => 'getPrice',
        'priceWithModifier' => 'getPriceWithModifier',
        'itemType' => 'getItemType',
        'productId' => 'getProductId',
        'custom1' => 'getCustom1',
        'quantity' => 'getQuantity',
        'grossPrice' => 'getGrossPrice',
        'notes' => 'getNotes',
        'commission' => 'getCommission',
        'uomId' => 'getUomId',
        'uomMultiplier' => 'getUomMultiplier',
        'approvalClerkId' => 'getApprovalClerkId',
        'tenderTypeId' => 'getTenderTypeId',
        'added' => 'getAdded',
        'internalFlag' => 'getInternalFlag',
        'stockFlag' => 'getStockFlag',
        'earnsLoyalty' => 'getEarnsLoyalty',
        'allowEbt' => 'getAllowEbt',
        'modifiers' => 'getModifiers',
        'symbol' => 'getSymbol',
        'containerId' => 'getContainerId',
        'priceListId' => 'getPriceListId',
        'surchargeValue' => 'getSurchargeValue',
        'itemLocalId' => 'getItemLocalId',
        'parentItemLocalId' => 'getParentItemLocalId',
        'defaultQty' => 'getDefaultQty',
        'displayInJournal' => 'getDisplayInJournal',
        'followTransactionPriceList' => 'getFollowTransactionPriceList',
        'defaultQuantityFreeOfCharge' => 'getDefaultQuantityFreeOfCharge',
        'ebtPaymentPercentage' => 'getEbtPaymentPercentage',
        '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['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['notes'] = $data['notes'] ?? null;
        $this->container['commission'] = $data['commission'] ?? null;
        $this->container['uomId'] = $data['uomId'] ?? null;
        $this->container['uomMultiplier'] = $data['uomMultiplier'] ?? null;
        $this->container['approvalClerkId'] = $data['approvalClerkId'] ?? null;
        $this->container['tenderTypeId'] = $data['tenderTypeId'] ?? null;
        $this->container['added'] = $data['added'] ?? null;
        $this->container['internalFlag'] = $data['internalFlag'] ?? null;
        $this->container['stockFlag'] = $data['stockFlag'] ?? null;
        $this->container['earnsLoyalty'] = $data['earnsLoyalty'] ?? null;
        $this->container['allowEbt'] = $data['allowEbt'] ?? null;
        $this->container['modifiers'] = $data['modifiers'] ?? null;
        $this->container['symbol'] = $data['symbol'] ?? null;
        $this->container['containerId'] = $data['containerId'] ?? null;
        $this->container['priceListId'] = $data['priceListId'] ?? null;
        $this->container['surchargeValue'] = $data['surchargeValue'] ?? null;
        $this->container['itemLocalId'] = $data['itemLocalId'] ?? null;
        $this->container['parentItemLocalId'] = $data['parentItemLocalId'] ?? 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['ebtPaymentPercentage'] = $data['ebtPaymentPercentage'] ?? 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 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 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 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 uomId
     *
     * @return int|null
     */
    public function getUomId()
    {
        return $this->container['uomId'];
    }

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

        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 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 modifiers
     *
     * @return \SmartVolution\Model\TransactionItemModifier[]|null
     */
    public function getModifiers()
    {
        return $this->container['modifiers'];
    }

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

        return $this;
    }

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

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

        return $this;
    }

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

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

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

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

        return $this;
    }

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

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

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


