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

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

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

    /**
      * Array of property to type mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerTypes = [
        'cardProcessing' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'alternativePaymentMethods' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsAlternativePaymentMethods',
        'cardPresentConnect' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'eCheck' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'payerAuthentication' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'digitalPayments' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'secureAcceptance' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'virtualTerminal' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'currencyConversion' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'tax' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'customerInvoicing' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'recurringBilling' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'cybsReadyTerminal' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'paymentOrchestration' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'payouts' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing',
        'payByLink' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'unifiedCheckout' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'receivablesManager' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments',
        'serviceFee' => '\CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing'
    ];

    /**
      * Array of property to format mappings. Used for (de)serialization
      * @var string[]
      */
    protected static $swaggerFormats = [
        'cardProcessing' => null,
        'alternativePaymentMethods' => null,
        'cardPresentConnect' => null,
        'eCheck' => null,
        'payerAuthentication' => null,
        'digitalPayments' => null,
        'secureAcceptance' => null,
        'virtualTerminal' => null,
        'currencyConversion' => null,
        'tax' => null,
        'customerInvoicing' => null,
        'recurringBilling' => null,
        'cybsReadyTerminal' => null,
        'paymentOrchestration' => null,
        'payouts' => null,
        'payByLink' => null,
        'unifiedCheckout' => null,
        'receivablesManager' => null,
        'serviceFee' => 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 = [
        'cardProcessing' => 'cardProcessing',
        'alternativePaymentMethods' => 'alternativePaymentMethods',
        'cardPresentConnect' => 'cardPresentConnect',
        'eCheck' => 'eCheck',
        'payerAuthentication' => 'payerAuthentication',
        'digitalPayments' => 'digitalPayments',
        'secureAcceptance' => 'secureAcceptance',
        'virtualTerminal' => 'virtualTerminal',
        'currencyConversion' => 'currencyConversion',
        'tax' => 'tax',
        'customerInvoicing' => 'customerInvoicing',
        'recurringBilling' => 'recurringBilling',
        'cybsReadyTerminal' => 'cybsReadyTerminal',
        'paymentOrchestration' => 'paymentOrchestration',
        'payouts' => 'payouts',
        'payByLink' => 'payByLink',
        'unifiedCheckout' => 'unifiedCheckout',
        'receivablesManager' => 'receivablesManager',
        'serviceFee' => 'serviceFee'
    ];


    /**
     * Array of attributes to setter functions (for deserialization of responses)
     * @var string[]
     */
    protected static $setters = [
        'cardProcessing' => 'setCardProcessing',
        'alternativePaymentMethods' => 'setAlternativePaymentMethods',
        'cardPresentConnect' => 'setCardPresentConnect',
        'eCheck' => 'setECheck',
        'payerAuthentication' => 'setPayerAuthentication',
        'digitalPayments' => 'setDigitalPayments',
        'secureAcceptance' => 'setSecureAcceptance',
        'virtualTerminal' => 'setVirtualTerminal',
        'currencyConversion' => 'setCurrencyConversion',
        'tax' => 'setTax',
        'customerInvoicing' => 'setCustomerInvoicing',
        'recurringBilling' => 'setRecurringBilling',
        'cybsReadyTerminal' => 'setCybsReadyTerminal',
        'paymentOrchestration' => 'setPaymentOrchestration',
        'payouts' => 'setPayouts',
        'payByLink' => 'setPayByLink',
        'unifiedCheckout' => 'setUnifiedCheckout',
        'receivablesManager' => 'setReceivablesManager',
        'serviceFee' => 'setServiceFee'
    ];


    /**
     * Array of attributes to getter functions (for serialization of requests)
     * @var string[]
     */
    protected static $getters = [
        'cardProcessing' => 'getCardProcessing',
        'alternativePaymentMethods' => 'getAlternativePaymentMethods',
        'cardPresentConnect' => 'getCardPresentConnect',
        'eCheck' => 'getECheck',
        'payerAuthentication' => 'getPayerAuthentication',
        'digitalPayments' => 'getDigitalPayments',
        'secureAcceptance' => 'getSecureAcceptance',
        'virtualTerminal' => 'getVirtualTerminal',
        'currencyConversion' => 'getCurrencyConversion',
        'tax' => 'getTax',
        'customerInvoicing' => 'getCustomerInvoicing',
        'recurringBilling' => 'getRecurringBilling',
        'cybsReadyTerminal' => 'getCybsReadyTerminal',
        'paymentOrchestration' => 'getPaymentOrchestration',
        'payouts' => 'getPayouts',
        'payByLink' => 'getPayByLink',
        'unifiedCheckout' => 'getUnifiedCheckout',
        'receivablesManager' => 'getReceivablesManager',
        'serviceFee' => 'getServiceFee'
    ];

    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['cardProcessing'] = isset($data['cardProcessing']) ? $data['cardProcessing'] : null;
        $this->container['alternativePaymentMethods'] = isset($data['alternativePaymentMethods']) ? $data['alternativePaymentMethods'] : null;
        $this->container['cardPresentConnect'] = isset($data['cardPresentConnect']) ? $data['cardPresentConnect'] : null;
        $this->container['eCheck'] = isset($data['eCheck']) ? $data['eCheck'] : null;
        $this->container['payerAuthentication'] = isset($data['payerAuthentication']) ? $data['payerAuthentication'] : null;
        $this->container['digitalPayments'] = isset($data['digitalPayments']) ? $data['digitalPayments'] : null;
        $this->container['secureAcceptance'] = isset($data['secureAcceptance']) ? $data['secureAcceptance'] : null;
        $this->container['virtualTerminal'] = isset($data['virtualTerminal']) ? $data['virtualTerminal'] : null;
        $this->container['currencyConversion'] = isset($data['currencyConversion']) ? $data['currencyConversion'] : null;
        $this->container['tax'] = isset($data['tax']) ? $data['tax'] : null;
        $this->container['customerInvoicing'] = isset($data['customerInvoicing']) ? $data['customerInvoicing'] : null;
        $this->container['recurringBilling'] = isset($data['recurringBilling']) ? $data['recurringBilling'] : null;
        $this->container['cybsReadyTerminal'] = isset($data['cybsReadyTerminal']) ? $data['cybsReadyTerminal'] : null;
        $this->container['paymentOrchestration'] = isset($data['paymentOrchestration']) ? $data['paymentOrchestration'] : null;
        $this->container['payouts'] = isset($data['payouts']) ? $data['payouts'] : null;
        $this->container['payByLink'] = isset($data['payByLink']) ? $data['payByLink'] : null;
        $this->container['unifiedCheckout'] = isset($data['unifiedCheckout']) ? $data['unifiedCheckout'] : null;
        $this->container['receivablesManager'] = isset($data['receivablesManager']) ? $data['receivablesManager'] : null;
        $this->container['serviceFee'] = isset($data['serviceFee']) ? $data['serviceFee'] : 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 cardProcessing
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getCardProcessing()
    {
        return $this->container['cardProcessing'];
    }

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

        return $this;
    }

    /**
     * Gets alternativePaymentMethods
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsAlternativePaymentMethods
     */
    public function getAlternativePaymentMethods()
    {
        return $this->container['alternativePaymentMethods'];
    }

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

        return $this;
    }

    /**
     * Gets cardPresentConnect
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getCardPresentConnect()
    {
        return $this->container['cardPresentConnect'];
    }

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

        return $this;
    }

    /**
     * Gets eCheck
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getECheck()
    {
        return $this->container['eCheck'];
    }

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

        return $this;
    }

    /**
     * Gets payerAuthentication
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getPayerAuthentication()
    {
        return $this->container['payerAuthentication'];
    }

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

        return $this;
    }

    /**
     * Gets digitalPayments
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getDigitalPayments()
    {
        return $this->container['digitalPayments'];
    }

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

        return $this;
    }

    /**
     * Gets secureAcceptance
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getSecureAcceptance()
    {
        return $this->container['secureAcceptance'];
    }

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

        return $this;
    }

    /**
     * Gets virtualTerminal
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getVirtualTerminal()
    {
        return $this->container['virtualTerminal'];
    }

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

        return $this;
    }

    /**
     * Gets currencyConversion
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getCurrencyConversion()
    {
        return $this->container['currencyConversion'];
    }

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

        return $this;
    }

    /**
     * Gets tax
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getTax()
    {
        return $this->container['tax'];
    }

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

        return $this;
    }

    /**
     * Gets customerInvoicing
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getCustomerInvoicing()
    {
        return $this->container['customerInvoicing'];
    }

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

        return $this;
    }

    /**
     * Gets recurringBilling
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getRecurringBilling()
    {
        return $this->container['recurringBilling'];
    }

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

        return $this;
    }

    /**
     * Gets cybsReadyTerminal
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getCybsReadyTerminal()
    {
        return $this->container['cybsReadyTerminal'];
    }

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

        return $this;
    }

    /**
     * Gets paymentOrchestration
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getPaymentOrchestration()
    {
        return $this->container['paymentOrchestration'];
    }

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

        return $this;
    }

    /**
     * Gets payouts
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getPayouts()
    {
        return $this->container['payouts'];
    }

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

        return $this;
    }

    /**
     * Gets payByLink
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getPayByLink()
    {
        return $this->container['payByLink'];
    }

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

        return $this;
    }

    /**
     * Gets unifiedCheckout
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getUnifiedCheckout()
    {
        return $this->container['unifiedCheckout'];
    }

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

        return $this;
    }

    /**
     * Gets receivablesManager
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsDigitalPayments
     */
    public function getReceivablesManager()
    {
        return $this->container['receivablesManager'];
    }

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

        return $this;
    }

    /**
     * Gets serviceFee
     * @return \CyberSource\Model\InlineResponse2012SetupsPaymentsCardProcessing
     */
    public function getServiceFee()
    {
        return $this->container['serviceFee'];
    }

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

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


