This commit is contained in:
2024-11-06 14:22:34 +05:00
parent 564fe508bf
commit f745ce53d6
2 changed files with 47 additions and 23 deletions

View File

@@ -17,6 +17,10 @@ class FetchLoanHistoryController extends Controller
'passport_id' => ['required', 'string', 'max:255'],
]);
if (app()->isLocal()) {
return $this->sampleRequest();
}
$curl = curl_init();
curl_setopt_array($curl, [
@@ -47,4 +51,42 @@ class FetchLoanHistoryController extends Controller
return $response;
}
public function sampleRequest()
{
return response()->json([
'recipient' => [
[
'KARZ_ID' => '468427',
'KARZ_GORNUS_ID' => '26',
'SERTNAMA_NO' => '530/23',
'SERTNAMA_SENESI' => '14.09.23',
'KARZ_SIFRY' => null,
'KARZ_MAKSAT_ID' => '118',
'PUL_BIRLIGI_ID' => '1',
'MOCBERI' => '20000',
'KARZ_BERLEN_SENESI' => '19.09.23',
'KARZ_SONKY_SENESI' => '14.09.26',
'KARZ_GOTERIMI' => '12',
'KY_TERTIP_ID' => '1',
'GY_TERTIP_ID' => '1',
'KARZ_UG_ID' => '2',
'KARZ_CESME_ID' => '1',
'BANK_ID' => '104',
'MUSDERI_ID' => '365098',
'USER_ID' => '434',
'IS_ARCHIVE' => '0',
'BELLIK' => 'Sarp ediş maksatlary üçin',
'KARZ_CODE' => null,
'MOHLET_GORNUSI' => '2',
'IS_ACTIVE' => '1',
'CREATED_AT' => '22.09.23 15:20:13',
'MUSDERI_DOLY_ADY' => 'Joraýew Mämmetjan Galandarowiç',
'PASPORT_BELGISI' => null,
],
],
'guarantor' => [
],
]);
}
}