diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f9d55b5..c149ce1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,7 +5,7 @@ on: [push, pull_request] jobs: run-tests: name: PHP ${{ matrix.php-versions }} - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 env: extensions: mbstring, intl, json, phalcon4, redis, swoole, xdebug key: cache-v0.0.2 diff --git a/src/Leads/Contact.php b/src/Leads/Contact.php index 57bb055..70a62d8 100644 --- a/src/Leads/Contact.php +++ b/src/Leads/Contact.php @@ -19,6 +19,7 @@ class Contact public array $smsPreferences = []; public array $leadInformation = []; public array $personalInformation = []; + public array $licenseData = []; public array $addresses = []; /** @@ -38,6 +39,7 @@ public function __construct(array $data) $this->leadInformation = $data['leadInformation'] ?? []; $this->personalInformation = $data['PersonalInformation'] ?? []; $this->addresses = $data['Addresses'] ?? []; + $this->licenseData = $data['LicenseData'] ?? []; } /** @@ -168,6 +170,10 @@ public function update(Dealer $dealer, User $user) : self $data['LeadInformation'] = $this->leadInformation; } + if (!empty($this->licenseData)) { + $data['LicenseData'] = $this->licenseData; + } + if (!empty($this->personalInformation)) { $data['PersonalInformation'] = $this->personalInformation; }