1717 */
1818class Client
1919{
20- const VERSION = '1.4.2 ' ;
20+ const VERSION = '1.5.0 ' ;
2121
2222 /** @var string */
2323 protected $ api_key = '' ;
@@ -450,7 +450,7 @@ public function record_event($params)
450450 */
451451 public function create_or_update_cart ($ params )
452452 {
453- if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
453+ if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
454454 throw new Exception (__CLASS__ . ':: ' . __METHOD__ . ' only supports the APIv3 endpoint. ' );
455455 }
456456 return $ this ->make_request ("$ this ->account_id /shopper_activity/cart " , $ params , self ::POST );
@@ -467,7 +467,7 @@ public function create_or_update_cart($params)
467467 */
468468 public function create_or_update_order ($ params )
469469 {
470- if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
470+ if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
471471 throw new Exception (__CLASS__ . ':: ' . __METHOD__ . ' only supports the APIv3 endpoint. ' );
472472 }
473473 return $ this ->make_request ("$ this ->account_id /shopper_activity/order " , $ params , self ::POST );
@@ -484,7 +484,7 @@ public function create_or_update_order($params)
484484 */
485485 public function create_or_update_product ($ params )
486486 {
487- if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
487+ if (strstr ($ this ->api_end_point , '/v3 ' ) === false ) {
488488 throw new Exception (__CLASS__ . ':: ' . __METHOD__ . ' only supports the APIv3 endpoint. ' );
489489 }
490490 return $ this ->make_request ("$ this ->account_id /shopper_activity/product " , $ params , self ::POST );
0 commit comments