<?php
/**
 * TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults
 *
 * PHP version 5
 *
 * @category Class
 * @package  CyberSource
 * @author   Swaagger Codegen team
 * @link     https://github.com/swagger-api/swagger-codegen
 */

/**
 * CyberSource Merged Spec
 *
 * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
 *
 * OpenAPI spec version: 0.0.1
 * 
 * Generated by: https://github.com/swagger-api/swagger-codegen.git
 *
 */
/**
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen
 * Do not edit the class manually.
 */

namespace CyberSource\Model;

use \ArrayAccess;

/**
 * TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults Class Doc Comment
 *
 * @category    Class
 * @package     CyberSource
 * @author      Swagger Codegen team
 * @link        https://github.com/swagger-api/swagger-codegen
 */
class TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults implements ArrayAccess
{
    const DISCRIMINATOR = null;

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = [
        'email' => 'string',
        'emailRaw' => 'string',
        'name' => 'string',
        'nameRaw' => 'string',
        'phoneNumber' => 'string',
        'phoneNumberRaw' => 'string',
        'street' => 'string',
        'streetRaw' => 'string',
        'postalCode' => 'string',
        'postalCodeRaw' => 'string'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerFormats = [
        'email' => null,
        'emailRaw' => null,
        'name' => null,
        'nameRaw' => null,
        'phoneNumber' => null,
        'phoneNumberRaw' => null,
        'street' => null,
        'streetRaw' => null,
        'postalCode' => null,
        'postalCodeRaw' => null
    ];

    public static function swaggerTypes()
    {
        return self::$swaggerTypes;
    }

    public static function swaggerFormats()
    {
        return self::$swaggerFormats;
    }

    /**
     * Array of attributes where the key is the local name, and the value is the original name
     * @var string[]
     */
    protected static $attributeMap = [
        'email' => 'email',
        'emailRaw' => 'emailRaw',
        'name' => 'name',
        'nameRaw' => 'nameRaw',
        'phoneNumber' => 'phoneNumber',
        'phoneNumberRaw' => 'phoneNumberRaw',
        'street' => 'street',
        'streetRaw' => 'streetRaw',
        'postalCode' => 'postalCode',
        'postalCodeRaw' => 'postalCodeRaw'
    ];


    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = [
        'email' => 'setEmail',
        'emailRaw' => 'setEmailRaw',
        'name' => 'setName',
        'nameRaw' => 'setNameRaw',
        'phoneNumber' => 'setPhoneNumber',
        'phoneNumberRaw' => 'setPhoneNumberRaw',
        'street' => 'setStreet',
        'streetRaw' => 'setStreetRaw',
        'postalCode' => 'setPostalCode',
        'postalCodeRaw' => 'setPostalCodeRaw'
    ];


    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = [
        'email' => 'getEmail',
        'emailRaw' => 'getEmailRaw',
        'name' => 'getName',
        'nameRaw' => 'getNameRaw',
        'phoneNumber' => 'getPhoneNumber',
        'phoneNumberRaw' => 'getPhoneNumberRaw',
        'street' => 'getStreet',
        'streetRaw' => 'getStreetRaw',
        'postalCode' => 'getPostalCode',
        'postalCodeRaw' => 'getPostalCodeRaw'
    ];

    public static function attributeMap()
    {
        return self::$attributeMap;
    }

    public static function setters()
    {
        return self::$setters;
    }

    public static function getters()
    {
        return self::$getters;
    }

    

    

    /**
     * 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['email'] = isset($data['email']) ? $data['email'] : null;
        $this->container['emailRaw'] = isset($data['emailRaw']) ? $data['emailRaw'] : null;
        $this->container['name'] = isset($data['name']) ? $data['name'] : null;
        $this->container['nameRaw'] = isset($data['nameRaw']) ? $data['nameRaw'] : null;
        $this->container['phoneNumber'] = isset($data['phoneNumber']) ? $data['phoneNumber'] : null;
        $this->container['phoneNumberRaw'] = isset($data['phoneNumberRaw']) ? $data['phoneNumberRaw'] : null;
        $this->container['street'] = isset($data['street']) ? $data['street'] : null;
        $this->container['streetRaw'] = isset($data['streetRaw']) ? $data['streetRaw'] : null;
        $this->container['postalCode'] = isset($data['postalCode']) ? $data['postalCode'] : null;
        $this->container['postalCodeRaw'] = isset($data['postalCodeRaw']) ? $data['postalCodeRaw'] : null;
    }

    /**
     * show all the invalid properties with reasons.
     *
     * @return array invalid properties with reasons
     */
    public function listInvalidProperties()
    {
        $invalid_properties = [];

        return $invalid_properties;
    }

    /**
     * validate all the properties in the model
     * return true if all passed
     *
     * @return bool True if all properties are valid
     */
    public function valid()
    {

        return true;
    }


    /**
     * Gets email
     * @return string
     */
    public function getEmail()
    {
        return $this->container['email'];
    }

    /**
     * Sets email
     * @param string $email Mapped Electronic Verification response code for the customer's email address.
     * @return $this
     */
    public function setEmail($email)
    {
        $this->container['email'] = $email;

        return $this;
    }

    /**
     * Gets emailRaw
     * @return string
     */
    public function getEmailRaw()
    {
        return $this->container['emailRaw'];
    }

    /**
     * Sets emailRaw
     * @param string $emailRaw Raw Electronic Verification response code from the processor for the customer's email address.
     * @return $this
     */
    public function setEmailRaw($emailRaw)
    {
        $this->container['emailRaw'] = $emailRaw;

        return $this;
    }

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

    /**
     * Sets name
     * @param string $name #### Visa Platform Connect Mapped Electronic Verification response code for the customer's name.  Valid values :  'Y'   Yes, the data Matches 'N'   No Match 'O'   Partial Match
     * @return $this
     */
    public function setName($name)
    {
        $this->container['name'] = $name;

        return $this;
    }

    /**
     * Gets nameRaw
     * @return string
     */
    public function getNameRaw()
    {
        return $this->container['nameRaw'];
    }

    /**
     * Sets nameRaw
     * @param string $nameRaw #### Visa Platform Connect Raw Electronic Verification response code from the processor for the customer's name.  Valid values :  '01'     Match '50'     Partial Match '99'     No Match
     * @return $this
     */
    public function setNameRaw($nameRaw)
    {
        $this->container['nameRaw'] = $nameRaw;

        return $this;
    }

    /**
     * Gets phoneNumber
     * @return string
     */
    public function getPhoneNumber()
    {
        return $this->container['phoneNumber'];
    }

    /**
     * Sets phoneNumber
     * @param string $phoneNumber Mapped Electronic Verification response code for the customer's phone number.
     * @return $this
     */
    public function setPhoneNumber($phoneNumber)
    {
        $this->container['phoneNumber'] = $phoneNumber;

        return $this;
    }

    /**
     * Gets phoneNumberRaw
     * @return string
     */
    public function getPhoneNumberRaw()
    {
        return $this->container['phoneNumberRaw'];
    }

    /**
     * Sets phoneNumberRaw
     * @param string $phoneNumberRaw Raw Electronic Verification response code from the processor for the customer's phone number.
     * @return $this
     */
    public function setPhoneNumberRaw($phoneNumberRaw)
    {
        $this->container['phoneNumberRaw'] = $phoneNumberRaw;

        return $this;
    }

    /**
     * Gets street
     * @return string
     */
    public function getStreet()
    {
        return $this->container['street'];
    }

    /**
     * Sets street
     * @param string $street Mapped Electronic Verification response code for the customer's street address.
     * @return $this
     */
    public function setStreet($street)
    {
        $this->container['street'] = $street;

        return $this;
    }

    /**
     * Gets streetRaw
     * @return string
     */
    public function getStreetRaw()
    {
        return $this->container['streetRaw'];
    }

    /**
     * Sets streetRaw
     * @param string $streetRaw Raw Electronic Verification response code from the processor for the customer's street address.
     * @return $this
     */
    public function setStreetRaw($streetRaw)
    {
        $this->container['streetRaw'] = $streetRaw;

        return $this;
    }

    /**
     * Gets postalCode
     * @return string
     */
    public function getPostalCode()
    {
        return $this->container['postalCode'];
    }

    /**
     * Sets postalCode
     * @param string $postalCode Mapped Electronic Verification response code for the customer's postal code.
     * @return $this
     */
    public function setPostalCode($postalCode)
    {
        $this->container['postalCode'] = $postalCode;

        return $this;
    }

    /**
     * Gets postalCodeRaw
     * @return string
     */
    public function getPostalCodeRaw()
    {
        return $this->container['postalCodeRaw'];
    }

    /**
     * Sets postalCodeRaw
     * @param string $postalCodeRaw Raw Electronic Verification response code from the processor for the customer's postal code.
     * @return $this
     */
    public function setPostalCodeRaw($postalCodeRaw)
    {
        $this->container['postalCodeRaw'] = $postalCodeRaw;

        return $this;
    }
    /**
     * Returns true if offset exists. False otherwise.
     * @param  integer $offset Offset
     * @return boolean
     */
    #[\ReturnTypeWillChange]
    public function offsetExists($offset)
    {
        return isset($this->container[$offset]);
    }

    /**
     * Gets offset.
     * @param  integer $offset Offset
     * @return mixed
     */
    #[\ReturnTypeWillChange]
    public function offsetGet($offset)
    {
        return isset($this->container[$offset]) ? $this->container[$offset] : null;
    }

    /**
     * Sets value based on offset.
     * @param  integer $offset Offset
     * @param  mixed   $value  Value to be set
     * @return void
     */
    #[\ReturnTypeWillChange]
    public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $this->container[] = $value;
        } else {
            $this->container[$offset] = $value;
        }
    }

    /**
     * Unsets offset.
     * @param  integer $offset Offset
     * @return void
     */
    #[\ReturnTypeWillChange]
    public function offsetUnset($offset)
    {
        unset($this->container[$offset]);
    }

    /**
     * Gets the string presentation of the object
     * @return string
     */
    public function __toString()
    {
        if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
            return json_encode(\CyberSource\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
        }

        return json_encode(\CyberSource\ObjectSerializer::sanitizeForSerialization($this));
    }
}


