wip
This commit is contained in:
@@ -44,7 +44,7 @@ class DownloadCardTransaction extends Action
|
||||
passport_serie: $model->passport_serie,
|
||||
passport_id: $model->passport_id,
|
||||
card_number_masked: Str::mask($model->card_number, '*', 6, 6),
|
||||
card_expire_date: $model->card_month .'/'. substr($model->card_year, 2),
|
||||
card_expire_date: $model->card_month.'/'.substr($model->card_year, 2),
|
||||
start_date: $start_date->format('d.m.Y'),
|
||||
end_date: $end_date->format('d.m.Y'),
|
||||
);
|
||||
@@ -85,12 +85,12 @@ 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
|
||||
* @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(
|
||||
@@ -122,6 +122,6 @@ class DownloadCardTransaction extends Action
|
||||
|
||||
curl_close($curl);
|
||||
|
||||
return $response;
|
||||
return (array) $response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user