Skip to content

Commit

Permalink
Initial commit to add more available fields to the AccountResponse ob…
Browse files Browse the repository at this point in the history
…ject (#83)
  • Loading branch information
eporama authored Sep 13, 2020
1 parent 73053fd commit 28e88b5
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Response/AccountResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down
10 changes: 10 additions & 0 deletions tests/Endpoints/AccountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 28e88b5

Please sign in to comment.