<?php

namespace CheckoutWC\SmartyStreets\PhpSdk\International_Street;

require_once(__DIR__ . '/../ArrayUtil.php');
use CheckoutWC\SmartyStreets\PhpSdk\ArrayUtil;


class RootLevel {

    //region [fields]

    private $inputId,
        $organization,
        $address1,
        $address2,
        $address3,
        $address4,
        $address5,
        $address6,
        $address7,
        $address8,
        $address9,
        $address10,
        $address11,
        $address12;

    //endregion

    public function __construct($obj) {
        if ($obj == null)
            return;

        $this->inputId = ArrayUtil::getField($obj, 'input_id');
        $this->organization = ArrayUtil::getField($obj, 'organization');
        $this->address1 = ArrayUtil::getField($obj, 'address1');
        $this->address2 = ArrayUtil::getField($obj, 'address2');
        $this->address3 = ArrayUtil::getField($obj, 'address3');
        $this->address4 = ArrayUtil::getField($obj, 'address4');
        $this->address5 = ArrayUtil::getField($obj, 'address5');
        $this->address6 = ArrayUtil::getField($obj, 'address6');
        $this->address7 = ArrayUtil::getField($obj, 'address7');
        $this->address8 = ArrayUtil::getField($obj, 'address8');
        $this->address9 = ArrayUtil::getField($obj, 'address9');
        $this->address10 = ArrayUtil::getField($obj, 'address10');
        $this->address11 = ArrayUtil::getField($obj, 'address11');
        $this->address12 = ArrayUtil::getField($obj, 'address12');
    }

    //region [ Getters ]

    public function getInputId() {
        return $this->inputId;
    }

    public function getOrganization() {
        return $this->organization;
    }

    public function getAddress1() {
        return $this->address1;
    }

    public function getAddress2() {
        return $this->address2;
    }

    public function getAddress3() {
        return $this->address3;
    }

    public function getAddress4() {
        return $this->address4;
    }

    public function getAddress5() {
        return $this->address5;
    }

    public function getAddress6() {
        return $this->address6;
    }

    public function getAddress7() {
        return $this->address7;
    }

    public function getAddress8() {
        return $this->address8;
    }

    public function getAddress9() {
        return $this->address9;
    }

    public function getAddress10() {
        return $this->address10;
    }

    public function getAddress11() {
        return $this->address11;
    }

    public function getAddress12() {
        return $this->address12;
    }

    //endregion
}