wip
This commit is contained in:
@@ -8,6 +8,7 @@ use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Str;
|
||||
use Laravel\Nova\Actions\Action;
|
||||
use Laravel\Nova\Actions\ActionResponse;
|
||||
use Laravel\Nova\Fields\ActionFields;
|
||||
use Laravel\Nova\Fields\Date;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
@@ -48,7 +49,18 @@ class DownloadCardTransaction extends Action
|
||||
end_date: $end_date->format('d.m.Y'),
|
||||
);
|
||||
|
||||
info($response);
|
||||
// if (! is_array($response)) {
|
||||
// return ActionResponse::danger('Connection issue');
|
||||
// }
|
||||
|
||||
// if ($response['errCode'] != 0) {
|
||||
// return ActionResponse::danger($response['message']);
|
||||
// }
|
||||
|
||||
info([
|
||||
'response' => $response,
|
||||
'type' => gettype($response),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -70,6 +82,17 @@ class DownloadCardTransaction extends Action
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Fetch from internal API
|
||||
*
|
||||
* @param string $passport_serie
|
||||
* @param string $passport_id
|
||||
* @param string $card_number_masked
|
||||
* @param string $card_expire_date
|
||||
* @param string $start_date
|
||||
* @param string $end_date
|
||||
* @return null|array{"idSeria":string,"idNo":string,"cardMaskNumber":string,"expDate":string,"clientType":string,"fromDate":string,"toDate":string,"clientName":string,"depName":string,"cardPan":string,"cardAccountNumber":string,"birthDate":string,"mfo":string,"passOrg":string,"passDate":string,"address":string,"phone":string,"errCode":int,"message":string,"messageRu":string,"messageEn":string,"transactions": array}
|
||||
*/
|
||||
public function fetchApi(
|
||||
string $passport_serie,
|
||||
string $passport_id,
|
||||
|
||||
Reference in New Issue
Block a user