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

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

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

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

    /**
      * Array of property to format mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerFormats = [
        'code' => null,
        'codeRaw' => null,
        'email' => null,
        'emailRaw' => null,
        'phoneNumber' => null,
        'phoneNumberRaw' => null,
        'postalCode' => null,
        'postalCodeRaw' => null,
        'street' => null,
        'streetRaw' => null,
        'name' => null,
        'nameRaw' => null,
        'firstNameRaw' => null,
        'firstName' => null,
        'middleNameRaw' => null,
        'middleName' => null,
        'lastNameRaw' => null,
        'lastName' => 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 = [
        'code' => 'code',
        'codeRaw' => 'codeRaw',
        'email' => 'email',
        'emailRaw' => 'emailRaw',
        'phoneNumber' => 'phoneNumber',
        'phoneNumberRaw' => 'phoneNumberRaw',
        'postalCode' => 'postalCode',
        'postalCodeRaw' => 'postalCodeRaw',
        'street' => 'street',
        'streetRaw' => 'streetRaw',
        'name' => 'name',
        'nameRaw' => 'nameRaw',
        'firstNameRaw' => 'firstNameRaw',
        'firstName' => 'firstName',
        'middleNameRaw' => 'middleNameRaw',
        'middleName' => 'middleName',
        'lastNameRaw' => 'lastNameRaw',
        'lastName' => 'lastName'
    ];


    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = [
        'code' => 'setCode',
        'codeRaw' => 'setCodeRaw',
        'email' => 'setEmail',
        'emailRaw' => 'setEmailRaw',
        'phoneNumber' => 'setPhoneNumber',
        'phoneNumberRaw' => 'setPhoneNumberRaw',
        'postalCode' => 'setPostalCode',
        'postalCodeRaw' => 'setPostalCodeRaw',
        'street' => 'setStreet',
        'streetRaw' => 'setStreetRaw',
        'name' => 'setName',
        'nameRaw' => 'setNameRaw',
        'firstNameRaw' => 'setFirstNameRaw',
        'firstName' => 'setFirstName',
        'middleNameRaw' => 'setMiddleNameRaw',
        'middleName' => 'setMiddleName',
        'lastNameRaw' => 'setLastNameRaw',
        'lastName' => 'setLastName'
    ];


    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = [
        'code' => 'getCode',
        'codeRaw' => 'getCodeRaw',
        'email' => 'getEmail',
        'emailRaw' => 'getEmailRaw',
        'phoneNumber' => 'getPhoneNumber',
        'phoneNumberRaw' => 'getPhoneNumberRaw',
        'postalCode' => 'getPostalCode',
        'postalCodeRaw' => 'getPostalCodeRaw',
        'street' => 'getStreet',
        'streetRaw' => 'getStreetRaw',
        'name' => 'getName',
        'nameRaw' => 'getNameRaw',
        'firstNameRaw' => 'getFirstNameRaw',
        'firstName' => 'getFirstName',
        'middleNameRaw' => 'getMiddleNameRaw',
        'middleName' => 'getMiddleName',
        'lastNameRaw' => 'getLastNameRaw',
        'lastName' => 'getLastName'
    ];

    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['code'] = isset($data['code']) ? $data['code'] : null;
        $this->container['codeRaw'] = isset($data['codeRaw']) ? $data['codeRaw'] : null;
        $this->container['email'] = isset($data['email']) ? $data['email'] : null;
        $this->container['emailRaw'] = isset($data['emailRaw']) ? $data['emailRaw'] : null;
        $this->container['phoneNumber'] = isset($data['phoneNumber']) ? $data['phoneNumber'] : null;
        $this->container['phoneNumberRaw'] = isset($data['phoneNumberRaw']) ? $data['phoneNumberRaw'] : null;
        $this->container['postalCode'] = isset($data['postalCode']) ? $data['postalCode'] : null;
        $this->container['postalCodeRaw'] = isset($data['postalCodeRaw']) ? $data['postalCodeRaw'] : null;
        $this->container['street'] = isset($data['street']) ? $data['street'] : null;
        $this->container['streetRaw'] = isset($data['streetRaw']) ? $data['streetRaw'] : null;
        $this->container['name'] = isset($data['name']) ? $data['name'] : null;
        $this->container['nameRaw'] = isset($data['nameRaw']) ? $data['nameRaw'] : null;
        $this->container['firstNameRaw'] = isset($data['firstNameRaw']) ? $data['firstNameRaw'] : null;
        $this->container['firstName'] = isset($data['firstName']) ? $data['firstName'] : null;
        $this->container['middleNameRaw'] = isset($data['middleNameRaw']) ? $data['middleNameRaw'] : null;
        $this->container['middleName'] = isset($data['middleName']) ? $data['middleName'] : null;
        $this->container['lastNameRaw'] = isset($data['lastNameRaw']) ? $data['lastNameRaw'] : null;
        $this->container['lastName'] = isset($data['lastName']) ? $data['lastName'] : 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 code
     * @return string
     */
    public function getCode()
    {
        return $this->container['code'];
    }

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * 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 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 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;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

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


