<?php

namespace ShopMagicVendor\Getresponse\Sdk\Operation\Model;

use ShopMagicVendor\Getresponse\Sdk\Client\Operation\BaseModel;
class NewProductVariant extends BaseModel
{
    /** @var string */
    private $name;
    /** @var string */
    private $url = self::FIELD_NOT_SET;
    /** @var string */
    private $sku;
    /** @var float */
    private $price;
    /** @var float */
    private $priceTax;
    /** @var float */
    private $previousPrice = self::FIELD_NOT_SET;
    /** @var float */
    private $previousPriceTax = self::FIELD_NOT_SET;
    /** @var int */
    private $quantity = self::FIELD_NOT_SET;
    /** @var int */
    private $position = self::FIELD_NOT_SET;
    /** @var string */
    private $barcode = self::FIELD_NOT_SET;
    /** @var string */
    private $externalId = self::FIELD_NOT_SET;
    /** @var string */
    private $description = self::FIELD_NOT_SET;
    /** @var NewProductVariantImage[] */
    private $images = self::FIELD_NOT_SET;
    /** @var NewMetaField[] */
    private $metaFields = self::FIELD_NOT_SET;
    /** @var NewTax[] */
    private $taxes = self::FIELD_NOT_SET;
    /**
     * @param string $name
     * @param string $sku
     * @param float $price
     * @param float $priceTax
     */
    public function __construct($name, $sku, $price, $priceTax)
    {
        $this->name = $name;
        $this->sku = $sku;
        $this->price = $price;
        $this->priceTax = $priceTax;
    }
    /**
     * @param string $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }
    /**
     * @param float $previousPrice
     */
    public function setPreviousPrice($previousPrice)
    {
        $this->previousPrice = $previousPrice;
    }
    /**
     * @param float $previousPriceTax
     */
    public function setPreviousPriceTax($previousPriceTax)
    {
        $this->previousPriceTax = $previousPriceTax;
    }
    /**
     * @param int $quantity
     */
    public function setQuantity($quantity)
    {
        $this->quantity = $quantity;
    }
    /**
     * @param int $position
     */
    public function setPosition($position)
    {
        $this->position = $position;
    }
    /**
     * @param string $barcode
     */
    public function setBarcode($barcode)
    {
        $this->barcode = $barcode;
    }
    /**
     * @param string $externalId
     */
    public function setExternalId($externalId)
    {
        $this->externalId = $externalId;
    }
    /**
     * @param string $description
     */
    public function setDescription($description)
    {
        $this->description = $description;
    }
    /**
     * @param NewProductVariantImage[] $images
     */
    public function setImages(array $images)
    {
        $this->images = $images;
    }
    /**
     * @param NewMetaField[] $metaFields
     */
    public function setMetaFields(array $metaFields)
    {
        $this->metaFields = $metaFields;
    }
    /**
     * @param NewTax[] $taxes
     */
    public function setTaxes(array $taxes)
    {
        $this->taxes = $taxes;
    }
    public function jsonSerialize(): array
    {
        $data = ['name' => $this->name, 'url' => $this->url, 'sku' => $this->sku, 'price' => $this->price, 'priceTax' => $this->priceTax, 'previousPrice' => $this->previousPrice, 'previousPriceTax' => $this->previousPriceTax, 'quantity' => $this->quantity, 'position' => $this->position, 'barcode' => $this->barcode, 'externalId' => $this->externalId, 'description' => $this->description, 'images' => $this->images, 'metaFields' => $this->metaFields, 'taxes' => $this->taxes];
        return $this->filterUnsetFields($data);
    }
}
