From ef900fb2abb87d1e1005249aa7ece347de1f6dbc Mon Sep 17 00:00:00 2001 From: BenSandeen <12025856+BenSandeen@users.noreply.github.com> Date: Wed, 12 Mar 2025 13:39:00 -0600 Subject: [PATCH 1/2] Increment version number --- CHANGELOG.md | 4 ++++ src/Client.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d6746b..956e843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * Your improvement here! +## 1.5.0 + +* Adds shopper activity v3 end points (Thanks @RickKukiela!) + ## 1.4.2 * Update composer.json to allow newer PHP. diff --git a/src/Client.php b/src/Client.php index 2b7685e..62459bb 100644 --- a/src/Client.php +++ b/src/Client.php @@ -17,7 +17,7 @@ */ class Client { - const VERSION = '1.4.2'; + const VERSION = '1.5.0'; /** @var string */ protected $api_key = ''; From a545dd7a11a76d4e6be382da564468da32fdf3e2 Mon Sep 17 00:00:00 2001 From: BenSandeen <12025856+BenSandeen@users.noreply.github.com> Date: Wed, 12 Mar 2025 13:43:48 -0600 Subject: [PATCH 2/2] Fixes for linter --- src/Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Client.php b/src/Client.php index 62459bb..af8fa94 100644 --- a/src/Client.php +++ b/src/Client.php @@ -450,7 +450,7 @@ public function record_event($params) */ public function create_or_update_cart($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/cart", $params, self::POST); @@ -467,7 +467,7 @@ public function create_or_update_cart($params) */ public function create_or_update_order($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/order", $params, self::POST); @@ -484,7 +484,7 @@ public function create_or_update_order($params) */ public function create_or_update_product($params) { - if(strstr($this->api_end_point, '/v3') === false) { + if (strstr($this->api_end_point, '/v3') === false) { throw new Exception(__CLASS__ . '::' . __METHOD__ . ' only supports the APIv3 endpoint.'); } return $this->make_request("$this->account_id/shopper_activity/product", $params, self::POST);