<?php

namespace StructType;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for JP_RentacarCheckAvailResult StructType
 * @subpackage Structs
 */
class JP_RentacarCheckAvailResult extends AbstractStructBase
{
    /**
     * The RentacarInfo
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_RentacarInfo
     */
    public $RentacarInfo;
    /**
     * The OriginZoneName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var mixed
     */
    public $OriginZoneName;
    /**
     * The DestinationZoneName
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var mixed
     */
    public $DestinationZoneName;
    /**
     * The ExternalProduct
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var bool
     */
    public $ExternalProduct;
    /**
     * The Order
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var int
     */
    public $Order;
    /**
     * The RentacarOptions
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \ArrayType\ArrayOfJP_RentacarCheckAvailOption
     */
    public $RentacarOptions;
    /**
     * The Supplier
     * Meta information extracted from the WSDL
     * - maxOccurs: 1
     * - minOccurs: 0
     * @var \StructType\JP_Supplier
     */
    public $Supplier;
    /**
     * The Code
     * @var string
     */
    public $Code;
    /**
     * The OriginZone
     * @var string
     */
    public $OriginZone;
    /**
     * The DestinationZone
     * @var string
     */
    public $DestinationZone;
    /**
     * Constructor method for JP_RentacarCheckAvailResult
     * @uses JP_RentacarCheckAvailResult::setRentacarInfo()
     * @uses JP_RentacarCheckAvailResult::setOriginZoneName()
     * @uses JP_RentacarCheckAvailResult::setDestinationZoneName()
     * @uses JP_RentacarCheckAvailResult::setExternalProduct()
     * @uses JP_RentacarCheckAvailResult::setOrder()
     * @uses JP_RentacarCheckAvailResult::setRentacarOptions()
     * @uses JP_RentacarCheckAvailResult::setSupplier()
     * @uses JP_RentacarCheckAvailResult::setCode()
     * @uses JP_RentacarCheckAvailResult::setOriginZone()
     * @uses JP_RentacarCheckAvailResult::setDestinationZone()
     * @param \StructType\JP_RentacarInfo $rentacarInfo
     * @param mixed $originZoneName
     * @param mixed $destinationZoneName
     * @param bool $externalProduct
     * @param int $order
     * @param \ArrayType\ArrayOfJP_RentacarCheckAvailOption $rentacarOptions
     * @param \StructType\JP_Supplier $supplier
     * @param string $code
     * @param string $originZone
     * @param string $destinationZone
     */
    public function __construct(\StructType\JP_RentacarInfo $rentacarInfo = null, $originZoneName = null, $destinationZoneName = null, $externalProduct = null, $order = null, \ArrayType\ArrayOfJP_RentacarCheckAvailOption $rentacarOptions = null, \StructType\JP_Supplier $supplier = null, $code = null, $originZone = null, $destinationZone = null)
    {
        $this
            ->setRentacarInfo($rentacarInfo)
            ->setOriginZoneName($originZoneName)
            ->setDestinationZoneName($destinationZoneName)
            ->setExternalProduct($externalProduct)
            ->setOrder($order)
            ->setRentacarOptions($rentacarOptions)
            ->setSupplier($supplier)
            ->setCode($code)
            ->setOriginZone($originZone)
            ->setDestinationZone($destinationZone);
    }
    /**
     * Get RentacarInfo value
     * @return \StructType\JP_RentacarInfo|null
     */
    public function getRentacarInfo()
    {
        return $this->RentacarInfo;
    }
    /**
     * Set RentacarInfo value
     * @param \StructType\JP_RentacarInfo $rentacarInfo
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setRentacarInfo(\StructType\JP_RentacarInfo $rentacarInfo = null)
    {
        $this->RentacarInfo = $rentacarInfo;
        return $this;
    }
    /**
     * Get OriginZoneName value
     * @return mixed|null
     */
    public function getOriginZoneName()
    {
        return $this->OriginZoneName;
    }
    /**
     * Set OriginZoneName value
     * @param mixed $originZoneName
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setOriginZoneName($originZoneName = null)
    {
        $this->OriginZoneName = $originZoneName;
        return $this;
    }
    /**
     * Get DestinationZoneName value
     * @return mixed|null
     */
    public function getDestinationZoneName()
    {
        return $this->DestinationZoneName;
    }
    /**
     * Set DestinationZoneName value
     * @param mixed $destinationZoneName
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setDestinationZoneName($destinationZoneName = null)
    {
        $this->DestinationZoneName = $destinationZoneName;
        return $this;
    }
    /**
     * Get ExternalProduct value
     * @return bool|null
     */
    public function getExternalProduct()
    {
        return $this->ExternalProduct;
    }
    /**
     * Set ExternalProduct value
     * @param bool $externalProduct
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setExternalProduct($externalProduct = null)
    {
        // validation for constraint: boolean
        if (!is_null($externalProduct) && !is_bool($externalProduct)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($externalProduct, true), gettype($externalProduct)), __LINE__);
        }
        $this->ExternalProduct = $externalProduct;
        return $this;
    }
    /**
     * Get Order value
     * @return int|null
     */
    public function getOrder()
    {
        return $this->Order;
    }
    /**
     * Set Order value
     * @param int $order
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setOrder($order = null)
    {
        // validation for constraint: int
        if (!is_null($order) && !(is_int($order) || ctype_digit($order))) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($order, true), gettype($order)), __LINE__);
        }
        $this->Order = $order;
        return $this;
    }
    /**
     * Get RentacarOptions value
     * @return \ArrayType\ArrayOfJP_RentacarCheckAvailOption|null
     */
    public function getRentacarOptions()
    {
        return $this->RentacarOptions;
    }
    /**
     * Set RentacarOptions value
     * @param \ArrayType\ArrayOfJP_RentacarCheckAvailOption $rentacarOptions
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setRentacarOptions(\ArrayType\ArrayOfJP_RentacarCheckAvailOption $rentacarOptions = null)
    {
        $this->RentacarOptions = $rentacarOptions;
        return $this;
    }
    /**
     * Get Supplier value
     * @return \StructType\JP_Supplier|null
     */
    public function getSupplier()
    {
        return $this->Supplier;
    }
    /**
     * Set Supplier value
     * @param \StructType\JP_Supplier $supplier
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setSupplier(\StructType\JP_Supplier $supplier = null)
    {
        $this->Supplier = $supplier;
        return $this;
    }
    /**
     * Get Code value
     * @return string|null
     */
    public function getCode()
    {
        return $this->Code;
    }
    /**
     * Set Code value
     * @param string $code
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setCode($code = null)
    {
        // validation for constraint: string
        if (!is_null($code) && !is_string($code)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($code, true), gettype($code)), __LINE__);
        }
        $this->Code = $code;
        return $this;
    }
    /**
     * Get OriginZone value
     * @return string|null
     */
    public function getOriginZone()
    {
        return $this->OriginZone;
    }
    /**
     * Set OriginZone value
     * @param string $originZone
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setOriginZone($originZone = null)
    {
        // validation for constraint: string
        if (!is_null($originZone) && !is_string($originZone)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($originZone, true), gettype($originZone)), __LINE__);
        }
        $this->OriginZone = $originZone;
        return $this;
    }
    /**
     * Get DestinationZone value
     * @return string|null
     */
    public function getDestinationZone()
    {
        return $this->DestinationZone;
    }
    /**
     * Set DestinationZone value
     * @param string $destinationZone
     * @return \StructType\JP_RentacarCheckAvailResult
     */
    public function setDestinationZone($destinationZone = null)
    {
        // validation for constraint: string
        if (!is_null($destinationZone) && !is_string($destinationZone)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($destinationZone, true), gettype($destinationZone)), __LINE__);
        }
        $this->DestinationZone = $destinationZone;
        return $this;
    }
}
