id = intval($data['id']); $this->created = Carbon::createFromFormat('Y-m-d H:i:s.u', $data['created']); $this->updated = Carbon::createFromFormat('Y-m-d H:i:s.u', $data['updated']); $this->status = $data['status']; $this->subStatus = $data['sub_status']; $this->publicUuid = $data['public_uuid']; $this->displayName = $data['display_name']; $this->publicNickName = $data['public_nick_name']; $this->language = $data['language']; $this->region = $data['region']; $this->sessionTimeout = intval($data['session_timeout']); $this->firstName = $data['first_name']; $this->middleName = $data['middle_name']; $this->lastName = $data['last_name']; $this->legalName = $data['legal_name']; $this->taxResident = $data['tax_resident']; $this->dateOfBirth = Carbon::createFromFormat('Y-m-d', $data['date_of_birth']); $this->placeOfBirth = $data['place_of_birth']; $this->countryOfBirth = $data['country_of_birth']; $this->nationality = $data['nationality']; $this->gender = $data['gender']; $this->versionTos = intval($data['version_terms_of_service']); $this->documentNumber = $data['document_number']; $this->documentType = $data['document_type']; $this->documentCountry = $data['document_country_of_issuance']; // create aliases // create avatar // create daily limit // create notification filters // create address main, postal // document front, back attachment // customer, customer_limit // billing contracts // echo '
';
        //        print_r($data);
        //        var_dump($this);
        //        echo '
'; } }