HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/zelfverkopen.komma.pro/app/KommaApp/Icepay/Api/PostbackModel.php
<?php


namespace App\KommaApp\Icepay\Api;


use Illuminate\Contracts\Support\Arrayable;

class PostbackModel extends DataModel implements Arrayable
{
    /** @var string $consumerName The name of the end-user. This information is only available for iDEAL payments and wire transfers. */
    private $consumerName;

    /** @var string $consumerAccountNumber The account number of the end-user. Only the last four digits is available. This information is only available for wire transfers. */
    private $consumerAccountNumber;

    /** @var string $consumerAddress Address of the end-user. */
    private $consumerAddress;

    /** @var string $consumerHouseNumber Address house number of the end-user */
    private $consumerHouseNumber;

    /** @var string $consumerCity City in which the end-user reside */
    private $consumerCity;

    /** @var string $consumerCountry Country in which the end-user resides */
    private $consumerCountry;

    /** @var string $consumerEmail E-mail of the end-user */
    private $consumerEmail;

    /** @var string $consumerPhoneNumber Phone number of the end-user. */
    private $consumerPhoneNumber;

    /** @var string $consumer IP Address of the end-user. */
    private $consumerIPAddress;

    /** @var string $amount that is paid by the end-user. */
    private $amount;

    /** @var string $currency The money that a country uses: a specific kind of money.*/
    private $currency;

    /** @var string $paymentMethod Specifies which payment method was used for this payment, e.g. CREDITCARD, IDEAL, etc */
    private $paymentMethod;

    public function __construct(array $data)
    {
        parent::__construct($data);

        $this->consumerName = (isset($data['consumerName'])) ? $data['consumerName'] : '';
        $this->consumerAccountNumber = (isset($data['consumerAccountNumber'])) ? $data['consumerAccountNumber'] : '';
        $this->consumerAddress = (isset($data['consumerAddress'])) ? $data['consumerAddress'] : '';
        $this->consumerHouseNumber = (isset($data['consumerHouseNumber'])) ? $data['consumerHouseNumber'] : '';
        $this->consumerCity = (isset($data['consumerCity'])) ? $data['consumerCity'] : '';
        $this->consumerCountry = (isset($data['consumerCountry'])) ? $data['consumerCountry'] : '';
        $this->consumerEmail = (isset($data['consumerEmail'])) ? $data['consumerEmail'] : '';
        $this->consumerPhoneNumber = (isset($data['consumerPhoneNumber'])) ? $data['consumerPhoneNumber'] : '';
        $this->consumerIPAddress = (isset($data['consumerIPAddress'])) ? $data['consumerIPAddress'] : '';
        $this->amount = (isset($data['amount'])) ? $data['amount'] : '';
        $this->currency = (isset($data['currency'])) ? $data['currency'] : '';
        $this->paymentMethod = (isset($data['paymentMethod'])) ? $data['paymentMethod'] : '';
    }
    /**
     * @return string
     */
    public function getConsumerName(): string
    {
        return $this->consumerName;
    }

    /**
     * @param string $consumerName
     * @return PostbackModel
     */
    public function setConsumerName(string $consumerName): PostbackModel
    {
        $this->consumerName = $consumerName;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerAccountNumber(): string
    {
        return $this->consumerAccountNumber;
    }

    /**
     * @param string $consumerAccountNumber
     * @return PostbackModel
     */
    public function setConsumerAccountNumber(string $consumerAccountNumber): PostbackModel
    {
        $this->consumerAccountNumber = $consumerAccountNumber;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerAddress(): string
    {
        return $this->consumerAddress;
    }

    /**
     * @param string $consumerAddress
     * @return PostbackModel
     */
    public function setConsumerAddress(string $consumerAddress): PostbackModel
    {
        $this->consumerAddress = $consumerAddress;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerHouseNumber(): string
    {
        return $this->consumerHouseNumber;
    }

    /**
     * @param string $consumerHouseNumber
     * @return PostbackModel
     */
    public function setConsumerHouseNumber(string $consumerHouseNumber): PostbackModel
    {
        $this->consumerHouseNumber = $consumerHouseNumber;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerCity(): string
    {
        return $this->consumerCity;
    }

    /**
     * @param string $consumerCity
     * @return PostbackModel
     */
    public function setConsumerCity(string $consumerCity): PostbackModel
    {
        $this->consumerCity = $consumerCity;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerCountry(): string
    {
        return $this->consumerCountry;
    }

    /**
     * @param string $consumerCountry
     * @return PostbackModel
     */
    public function setConsumerCountry(string $consumerCountry): PostbackModel
    {
        $this->consumerCountry = $consumerCountry;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerEmail(): string
    {
        return $this->consumerEmail;
    }

    /**
     * @param string $consumerEmail
     * @return PostbackModel
     */
    public function setConsumerEmail(string $consumerEmail): PostbackModel
    {
        $this->consumerEmail = $consumerEmail;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerPhoneNumber(): string
    {
        return $this->consumerPhoneNumber;
    }

    /**
     * @param string $consumerPhoneNumber
     * @return PostbackModel
     */
    public function setConsumerPhoneNumber(string $consumerPhoneNumber): PostbackModel
    {
        $this->consumerPhoneNumber = $consumerPhoneNumber;
        return $this;
    }

    /**
     * @return string
     */
    public function getConsumerIPAddress(): string
    {
        return $this->consumerIPAddress;
    }

    /**
     * @param string $consumerIPAddress
     * @return PostbackModel
     */
    public function setConsumerIPAddress(string $consumerIPAddress): PostbackModel
    {
        $this->consumerIPAddress = $consumerIPAddress;
        return $this;
    }

    /**
     * @return string
     */
    public function getAmount(): string
    {
        return $this->amount;
    }

    /**
     * @param string $amount
     * @return PostbackModel
     */
    public function setAmount(string $amount): PostbackModel
    {
        $this->amount = $amount;
        return $this;
    }

    /**
     * @return string
     */
    public function getCurrency(): string
    {
        return $this->currency;
    }

    /**
     * @param string $currency
     * @return PostbackModel
     */
    public function setCurrency(string $currency): PostbackModel
    {
        $this->currency = $currency;
        return $this;
    }

    /**
     * @return string
     */
    public function getPaymentMethod(): string
    {
        return $this->paymentMethod;
    }

    /**
     * @param string $paymentMethod
     * @return PostbackModel
     */
    public function setPaymentMethod(string $paymentMethod): PostbackModel
    {
        $this->paymentMethod = $paymentMethod;
        return $this;
    }

    public function toArray()
    {
        $array = parent::toArray();
        $array['consumerName'] = $this->consumerName;
        $array['consumerAccountNumber'] = $this->consumerAccountNumber;
        $array['consumerAddress'] = $this->consumerAddress;
        $array['consumerHouseNumber'] = $this->consumerHouseNumber;
        $array['consumerCity'] = $this->consumerCity;
        $array['consumerCountry'] = $this->consumerCountry;
        $array['consumerEmail'] = $this->consumerEmail;
        $array['consumerPhoneNumber'] = $this->consumerPhoneNumber;
        $array['consumerIPAddress'] = $this->consumerIPAddress;
        $array['amount'] = $this->amount;
        $array['currency'] = $this->currency;
        $array['paymentMethod'] = $this->paymentMethod;

        return $array;
    }
}