Skip to content

Commit 49f1d25

Browse files
committed
Merge remote-tracking branch 'origin/MAG-815' into v4.1.2
2 parents f3f0f99 + 012fd6a commit 49f1d25

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

lib/Core/Api/ApiModel.php

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,26 @@ public function updateOrder($order, $signifydId)
9292
* @throws InvalidClassException
9393
* @throws \Signifyd\Core\Exceptions\LoggerException
9494
*/
95-
public function getCase($signifydId)
95+
public function getCase($orderId)
9696
{
97-
//TODO: implements getCase for v3
97+
$this->logger->info('SaleApi: Get case method called');
98+
if (false === is_numeric($orderId)) {
99+
$this->logger->error('SaleApi: Invalid case id for get case' . $orderId);
100+
}
101+
102+
$this->logger->info(
103+
'SaleApi: Connection call get case api with order id: ' . $orderId
104+
);
105+
106+
$endpoint = 'orders/' . $orderId . '/decision';
107+
$response = $this->connection->callApi(
108+
$endpoint,
109+
'',
110+
'get',
111+
'sale'
112+
);
113+
114+
return $response;
98115
}
99116

100117
/**

0 commit comments

Comments
 (0)