From 40521115b234236ce3c1b82cc90f0f8e175d4987 Mon Sep 17 00:00:00 2001 From: Jakub Strus Date: Mon, 28 Jun 2021 17:50:55 +0200 Subject: [PATCH] Add possibility to set deal's 'added_on' attribute --- CHANGELOG.md | 5 +++++ lib/Configuration.php | 4 ++-- lib/DealsService.php | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 700c36e..87caadd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## CHANGELOG +### v1.4.4 (2021-06-28) + +**Features and Improvements** +* Added possibility to set deal's 'added_on' attribute + ### v1.4.3 (2020-04-22) * Update license to Apache License 2.0 diff --git a/lib/Configuration.php b/lib/Configuration.php index b3196f9..30bb44c 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -3,8 +3,8 @@ class Configuration { - // @version 1.4.3 Current stable version. - const VERSION = "1.4.3"; + // @version 1.4.4 Current stable version. + const VERSION = "1.4.4"; const PRODUCTION_URL = "https://api.getbase.com"; const URL_REGEXP = "/\b(?:(?:https?|http):\/\/|www\.)[-a-z0-9+&@#\/%?=~_|!:,.;]*[-a-z0-9+&@#\/%=~_|]/i"; diff --git a/lib/DealsService.php b/lib/DealsService.php index bbb746b..9cd8784 100644 --- a/lib/DealsService.php +++ b/lib/DealsService.php @@ -12,7 +12,7 @@ class DealsService { // @var array Allowed attribute names. - protected static $keysToPersist = ['contact_id', 'currency', 'custom_fields', 'hot', 'loss_reason_id', 'name', 'owner_id', 'source_id', 'stage_id', 'last_stage_change_at', 'tags', 'value', 'estimated_close_date', 'customized_win_likelihood']; + protected static $keysToPersist = ['contact_id', 'currency', 'custom_fields', 'hot', 'loss_reason_id', 'name', 'owner_id', 'source_id', 'stage_id', 'last_stage_change_at', 'tags', 'value', 'estimated_close_date', 'customized_win_likelihood', 'added_on']; protected $httpClient;