From 28e88b5b800c8d7e3099ed58fdc158f2c4382858 Mon Sep 17 00:00:00 2001 From: Erik Peterson Date: Sun, 13 Sep 2020 10:04:40 -0400 Subject: [PATCH] Initial commit to add more available fields to the AccountResponse object (#83) --- src/Response/AccountResponse.php | 20 ++++++++++++++++++++ tests/Endpoints/AccountTest.php | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/src/Response/AccountResponse.php b/src/Response/AccountResponse.php index 1dff0fef..03234008 100644 --- a/src/Response/AccountResponse.php +++ b/src/Response/AccountResponse.php @@ -13,9 +13,19 @@ class AccountResponse public $id; public $uuid; public $name; + public $first_name; + public $last_name; public $last_login_at; public $created_at; public $mail; + public $phone; + public $job_title; + public $job_function; + public $company; + public $country; + public $state; + public $timezone; + public $picture_url; public $features; public $flags; public $metadata; @@ -31,9 +41,19 @@ public function __construct($account) $this->id = $account->id; $this->uuid = $account->uuid; $this->name = $account->name; + $this->first_name = $account->first_name; + $this->last_name = $account->last_name; $this->last_login_at = $account->last_login_at; $this->created_at = $account->created_at; $this->mail = $account->mail; + $this->phone = $account->phone; + $this->job_title = $account->job_title; + $this->job_function = $account->job_function; + $this->company = $account->company; + $this->country = $account->country; + $this->state = $account->state; + $this->timezone = $account->timezone; + $this->picture_url = $account->picture_url; $this->features = $account->features; $this->flags = $account->flags; $this->metadata = $account->metadata; diff --git a/tests/Endpoints/AccountTest.php b/tests/Endpoints/AccountTest.php index f38a8a66..2bdf5c5f 100644 --- a/tests/Endpoints/AccountTest.php +++ b/tests/Endpoints/AccountTest.php @@ -12,9 +12,19 @@ class AccountTest extends CloudApiTestCase 'id', 'uuid', 'name', + 'first_name', + 'last_name', 'last_login_at', 'created_at', 'mail', + 'phone', + 'job_title', + 'job_function', + 'company', + 'country', + 'state', + 'timezone', + 'picture_url', 'features', 'flags', 'metadata',