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

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

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = [
        'issuerInformation' => '\CyberSource\Model\Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation',
        'lowValueExemptionIndicator' => 'string',
        'riskAnalysisExemptionIndicator' => 'string',
        'trustedMerchantExemptionIndicator' => 'string',
        'secureCorporatePaymentIndicator' => 'string',
        'delegatedAuthenticationExemptionIndicator' => 'string',
        'outageExemptionIndicator' => 'string',
        'authenticationIndicator' => 'string'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerFormats = [
        'issuerInformation' => null,
        'lowValueExemptionIndicator' => null,
        'riskAnalysisExemptionIndicator' => null,
        'trustedMerchantExemptionIndicator' => null,
        'secureCorporatePaymentIndicator' => null,
        'delegatedAuthenticationExemptionIndicator' => null,
        'outageExemptionIndicator' => null,
        'authenticationIndicator' => 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 = [
        'issuerInformation' => 'issuerInformation',
        'lowValueExemptionIndicator' => 'lowValueExemptionIndicator',
        'riskAnalysisExemptionIndicator' => 'riskAnalysisExemptionIndicator',
        'trustedMerchantExemptionIndicator' => 'trustedMerchantExemptionIndicator',
        'secureCorporatePaymentIndicator' => 'secureCorporatePaymentIndicator',
        'delegatedAuthenticationExemptionIndicator' => 'delegatedAuthenticationExemptionIndicator',
        'outageExemptionIndicator' => 'outageExemptionIndicator',
        'authenticationIndicator' => 'authenticationIndicator'
    ];


    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = [
        'issuerInformation' => 'setIssuerInformation',
        'lowValueExemptionIndicator' => 'setLowValueExemptionIndicator',
        'riskAnalysisExemptionIndicator' => 'setRiskAnalysisExemptionIndicator',
        'trustedMerchantExemptionIndicator' => 'setTrustedMerchantExemptionIndicator',
        'secureCorporatePaymentIndicator' => 'setSecureCorporatePaymentIndicator',
        'delegatedAuthenticationExemptionIndicator' => 'setDelegatedAuthenticationExemptionIndicator',
        'outageExemptionIndicator' => 'setOutageExemptionIndicator',
        'authenticationIndicator' => 'setAuthenticationIndicator'
    ];


    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = [
        'issuerInformation' => 'getIssuerInformation',
        'lowValueExemptionIndicator' => 'getLowValueExemptionIndicator',
        'riskAnalysisExemptionIndicator' => 'getRiskAnalysisExemptionIndicator',
        'trustedMerchantExemptionIndicator' => 'getTrustedMerchantExemptionIndicator',
        'secureCorporatePaymentIndicator' => 'getSecureCorporatePaymentIndicator',
        'delegatedAuthenticationExemptionIndicator' => 'getDelegatedAuthenticationExemptionIndicator',
        'outageExemptionIndicator' => 'getOutageExemptionIndicator',
        'authenticationIndicator' => 'getAuthenticationIndicator'
    ];

    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['issuerInformation'] = isset($data['issuerInformation']) ? $data['issuerInformation'] : null;
        $this->container['lowValueExemptionIndicator'] = isset($data['lowValueExemptionIndicator']) ? $data['lowValueExemptionIndicator'] : null;
        $this->container['riskAnalysisExemptionIndicator'] = isset($data['riskAnalysisExemptionIndicator']) ? $data['riskAnalysisExemptionIndicator'] : null;
        $this->container['trustedMerchantExemptionIndicator'] = isset($data['trustedMerchantExemptionIndicator']) ? $data['trustedMerchantExemptionIndicator'] : null;
        $this->container['secureCorporatePaymentIndicator'] = isset($data['secureCorporatePaymentIndicator']) ? $data['secureCorporatePaymentIndicator'] : null;
        $this->container['delegatedAuthenticationExemptionIndicator'] = isset($data['delegatedAuthenticationExemptionIndicator']) ? $data['delegatedAuthenticationExemptionIndicator'] : null;
        $this->container['outageExemptionIndicator'] = isset($data['outageExemptionIndicator']) ? $data['outageExemptionIndicator'] : null;
        $this->container['authenticationIndicator'] = isset($data['authenticationIndicator']) ? $data['authenticationIndicator'] : 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 issuerInformation
     * @return \CyberSource\Model\Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
     */
    public function getIssuerInformation()
    {
        return $this->container['issuerInformation'];
    }

    /**
     * Sets issuerInformation
     * @param \CyberSource\Model\Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation $issuerInformation
     * @return $this
     */
    public function setIssuerInformation($issuerInformation)
    {
        $this->container['issuerInformation'] = $issuerInformation;

        return $this;
    }

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

    /**
     * Sets lowValueExemptionIndicator
     * @param string $lowValueExemptionIndicator This field will contain the low value exemption indicator with one of the following values: Possible values: - `0`  ( low value exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it to be a low value payment)
     * @return $this
     */
    public function setLowValueExemptionIndicator($lowValueExemptionIndicator)
    {
        $this->container['lowValueExemptionIndicator'] = $lowValueExemptionIndicator;

        return $this;
    }

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

    /**
     * Sets riskAnalysisExemptionIndicator
     * @param string $riskAnalysisExemptionIndicator This field will contain the transaction risk analysis exemption indicator with one of the following values: Possible values: - `0`  (TRA exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it to be low risk in accordance with the criteria defined by PSD2/RTS)
     * @return $this
     */
    public function setRiskAnalysisExemptionIndicator($riskAnalysisExemptionIndicator)
    {
        $this->container['riskAnalysisExemptionIndicator'] = $riskAnalysisExemptionIndicator;

        return $this;
    }

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

    /**
     * Sets trustedMerchantExemptionIndicator
     * @param string $trustedMerchantExemptionIndicator Possible values: - `0`  (Trusted merchant exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as it originated at a merchant trusted by the cardholder)
     * @return $this
     */
    public function setTrustedMerchantExemptionIndicator($trustedMerchantExemptionIndicator)
    {
        $this->container['trustedMerchantExemptionIndicator'] = $trustedMerchantExemptionIndicator;

        return $this;
    }

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

    /**
     * Sets secureCorporatePaymentIndicator
     * @param string $secureCorporatePaymentIndicator This field will contain the secure corporate payment exemption indicator with one of the following values: Possible values: - `0`  (SCA exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as the merchant/acquirer has determined it as a secure corporate payment)
     * @return $this
     */
    public function setSecureCorporatePaymentIndicator($secureCorporatePaymentIndicator)
    {
        $this->container['secureCorporatePaymentIndicator'] = $secureCorporatePaymentIndicator;

        return $this;
    }

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

    /**
     * Sets delegatedAuthenticationExemptionIndicator
     * @param string $delegatedAuthenticationExemptionIndicator This field will contain the delegated authentication exemption indicator with one of the following values: Possible values: - `0`  (delegated Authentication exemption does not apply to the transaction) - `1` (Transaction exempt from SCA as authentication has been delegated to other provider (PSP,Acquirer))
     * @return $this
     */
    public function setDelegatedAuthenticationExemptionIndicator($delegatedAuthenticationExemptionIndicator)
    {
        $this->container['delegatedAuthenticationExemptionIndicator'] = $delegatedAuthenticationExemptionIndicator;

        return $this;
    }

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

    /**
     * Sets outageExemptionIndicator
     * @param string $outageExemptionIndicator This field will contain the outage exemption indicator with one of the following values: Possible values: - `0`  (Outage Authentication exemption does not apply to the transaction) - `1` (Outage exempt from SCA as authentication could not be done due to outage)
     * @return $this
     */
    public function setOutageExemptionIndicator($outageExemptionIndicator)
    {
        $this->container['outageExemptionIndicator'] = $outageExemptionIndicator;

        return $this;
    }

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

    /**
     * Sets authenticationIndicator
     * @param string $authenticationIndicator Indicates the type of Authentication request  01 - Payment transaction  02 - Recurring transaction  03 - Installment transaction  04 - Add card  05 - Maintain card  06 - Cardholder verification as part of EMV token ID and V
     * @return $this
     */
    public function setAuthenticationIndicator($authenticationIndicator)
    {
        $this->container['authenticationIndicator'] = $authenticationIndicator;

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


