Skip to content

Commit 30eb099

Browse files
committed
remove dependency on Meta_Sales constant from Meta_BusinessExtension
1 parent 28d8cea commit 30eb099

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Meta/BusinessExtension/Helper/GraphAPIAdapter.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
namespace Meta\BusinessExtension\Helper;
1919

2020
use CURLFile;
21-
use Meta\Sales\Model\FacebookOrder;
2221
use Meta\BusinessExtension\Model\System\Config as SystemConfig;
2322
use GuzzleHttp\Client;
2423
use GuzzleHttp\Exception\BadResponseException;
@@ -29,6 +28,9 @@ class GraphAPIAdapter
2928
{
3029
const GET_ORDERS_LIMIT = 25;
3130

31+
/** @var string */
32+
private const ORDER_STATE_CREATED = 'STATE_CREATED';
33+
3234
/**
3335
* @var mixed
3436
*/
@@ -375,7 +377,7 @@ public function getOrders($pageId, $cursorAfter = false)
375377
];
376378
$request = [
377379
'access_token' => $this->accessToken,
378-
'state' => FacebookOrder::STATE_CREATED,
380+
'state' => self::ORDER_STATE_CREATED,
379381
'fields' => implode(',', $requestFields),
380382
'limit' => self::GET_ORDERS_LIMIT,
381383
];

0 commit comments

Comments
 (0)