Skip to content

Commit

Permalink
Merge pull request #501 from ans-group/lm-127-contacts-sdk-update-sur…
Browse files Browse the repository at this point in the history
…facing-mobile-and-monitoring-and-ctm-alert-preferences

Update Accounts Contact entity
  • Loading branch information
DawidVH authored Aug 8, 2022
2 parents 401410f + d8e9708 commit 3323413
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Account/Entities/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ class Contact
public $firstName;
public $lastName;
public $emailAddress;
public $mobile;

public $monitoringAlertsEmail;
public $thresholdMonitoringAlertsEmail;
public $monitoringAlertsSms;
public $thresholdMonitoringAlertsSms;

/**
* Contact constructor.
Expand All @@ -27,6 +33,12 @@ public function __construct($item = null)
$this->firstName = $item->first_name;
$this->lastName = $item->last_name;
$this->emailAddress = $item->email_address;
$this->mobile = $item->mobile;

$this->monitoringAlertsEmail = $item->monitoring_alerts_email;
$this->thresholdMonitoringAlertsEmail = $item->threshold_monitoring_alerts_email;
$this->monitoringAlertsSms = $item->monitoring_alerts_sms;
$this->thresholdMonitoringAlertsSms = $item->threshold_monitoring_alerts_sms;
}

/**
Expand Down

0 comments on commit 3323413

Please sign in to comment.