<?php

namespace GlsApi\Struct;

use \WsdlToPhp\PackageBase\AbstractStructBase;

/**
 * This class stands for adeZip_CustomsRequired Struct
 * Meta information extracted from the WSDL
 * - type: tns:adeZip_CustomsRequired
 * @subpackage Structs
 */
class AdeZip_CustomsRequired extends AbstractStructBase
{
    /**
     * The session
     * @var string
     */
    public $session;
    /**
     * The country
     * @var string
     */
    public $country;
    /**
     * The zipcode
     * @var string
     */
    public $zipcode;
    /**
     * Constructor method for adeZip_CustomsRequired
     * @uses AdeZip_CustomsRequired::setSession()
     * @uses AdeZip_CustomsRequired::setCountry()
     * @uses AdeZip_CustomsRequired::setZipcode()
     * @param string $session
     * @param string $country
     * @param string $zipcode
     */
    public function __construct($session = null, $country = null, $zipcode = null)
    {
        $this
            ->setSession($session)
            ->setCountry($country)
            ->setZipcode($zipcode);
    }
    /**
     * Get session value
     * @return string|null
     */
    public function getSession()
    {
        return $this->session;
    }
    /**
     * Set session value
     * @param string $session
     * @return \GlsApi\Struct\AdeZip_CustomsRequired
     */
    public function setSession($session = null)
    {
        // validation for constraint: string
        if (!is_null($session) && !is_string($session)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($session, true), gettype($session)), __LINE__);
        }
        $this->session = $session;
        return $this;
    }
    /**
     * Get country value
     * @return string|null
     */
    public function getCountry()
    {
        return $this->country;
    }
    /**
     * Set country value
     * @param string $country
     * @return \GlsApi\Struct\AdeZip_CustomsRequired
     */
    public function setCountry($country = null)
    {
        // validation for constraint: string
        if (!is_null($country) && !is_string($country)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($country, true), gettype($country)), __LINE__);
        }
        $this->country = $country;
        return $this;
    }
    /**
     * Get zipcode value
     * @return string|null
     */
    public function getZipcode()
    {
        return $this->zipcode;
    }
    /**
     * Set zipcode value
     * @param string $zipcode
     * @return \GlsApi\Struct\AdeZip_CustomsRequired
     */
    public function setZipcode($zipcode = null)
    {
        // validation for constraint: string
        if (!is_null($zipcode) && !is_string($zipcode)) {
            throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($zipcode, true), gettype($zipcode)), __LINE__);
        }
        $this->zipcode = $zipcode;
        return $this;
    }
}
