Skip to content

Commit

Permalink
Merge pull request #9 from bakaphp/feature-add-license
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken authored Nov 19, 2021
2 parents e1ecf25 + 0a3d17c commit 816b8a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/Leads/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class Contact
public array $smsPreferences = [];
public array $leadInformation = [];
public array $personalInformation = [];
public array $licenseData = [];
public array $addresses = [];

/**
Expand All @@ -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'] ?? [];
}

/**
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 816b8a2

Please sign in to comment.