wip
This commit is contained in:
@@ -315,7 +315,7 @@ function view_loan_order_permission_id(): int
|
||||
*/
|
||||
function vp_fetch_ClientInfoAll($model, $start_date, $end_date)
|
||||
{
|
||||
$response = DownloadCardTransaction::make()->fetchApi(
|
||||
return fetchCardTransactionFromAzat(
|
||||
passport_serie: $model->passport_serie,
|
||||
passport_id: $model->passport_id,
|
||||
card_number_masked: Str::mask($model->card_number, '*', 6, 6),
|
||||
@@ -323,6 +323,11 @@ function vp_fetch_ClientInfoAll($model, $start_date, $end_date)
|
||||
start_date: $start_date,
|
||||
end_date: $end_date,
|
||||
);
|
||||
}
|
||||
|
||||
function fetchCardTransactionFromAzat($passport_serie, $passport_id, $card_number_masked, $card_expire_date, $start_date, $end_date)
|
||||
{
|
||||
$response = DownloadCardTransaction::make()->fetchApi($passport_serie, $passport_id, $card_number_masked, $card_expire_date, $start_date, $end_date);
|
||||
|
||||
return Str::isJson($response)
|
||||
? json_decode($response)
|
||||
|
||||
Reference in New Issue
Block a user