stan errors
This commit is contained in:
@@ -148,7 +148,6 @@ class CardTransactionRepository
|
|||||||
*/
|
*/
|
||||||
public function getExtraVariables(object $response): object
|
public function getExtraVariables(object $response): object
|
||||||
{
|
{
|
||||||
info([$response]);
|
|
||||||
if (count($response->transactions) < 1) {
|
if (count($response->transactions) < 1) {
|
||||||
return emptyClass(basdakyGalyndy: 0, ahyrkyGalyndy: 0, girdeji: 0, cykdajy: 0);
|
return emptyClass(basdakyGalyndy: 0, ahyrkyGalyndy: 0, girdeji: 0, cykdajy: 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,6 @@ class CardTransactionResponse
|
|||||||
|
|
||||||
public string $messageEn;
|
public string $messageEn;
|
||||||
|
|
||||||
/** @var array<int, object> */
|
/** @var array<int, CardTransactionResponseTransactionItem> */
|
||||||
public array $transactions;
|
public array $transactions;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Modules\CardTransaction\Types;
|
||||||
|
|
||||||
|
class CardTransactionResponseTransactionItem
|
||||||
|
{
|
||||||
|
public string $operdate;
|
||||||
|
|
||||||
|
public string $trandate;
|
||||||
|
|
||||||
|
public string $trantime;
|
||||||
|
|
||||||
|
public string $rrn;
|
||||||
|
|
||||||
|
public string $cardnum;
|
||||||
|
|
||||||
|
public string $binfo;
|
||||||
|
|
||||||
|
public string $terminalLocation;
|
||||||
|
|
||||||
|
public int $currOperSum;
|
||||||
|
|
||||||
|
public int $accOperSum;
|
||||||
|
|
||||||
|
public string $sign;
|
||||||
|
|
||||||
|
public int $rest;
|
||||||
|
|
||||||
|
public string $currCode;
|
||||||
|
|
||||||
|
public string $opername;
|
||||||
|
|
||||||
|
public int $operRestType;
|
||||||
|
}
|
||||||
@@ -38,7 +38,7 @@ class SmsRepository
|
|||||||
try {
|
try {
|
||||||
$res = $client->sendAsync($request)->wait();
|
$res = $client->sendAsync($request)->wait();
|
||||||
|
|
||||||
return $res->getBody();
|
return $res->getBody(); // @phpstan-ignore-line
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error($e);
|
Log::error($e);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user