wip
This commit is contained in:
@@ -24,6 +24,13 @@ class LoanOrderStoreRequest extends FormRequest
|
||||
*/
|
||||
'loan_type' => ['required', 'integer', Rule::exists('loan_types', 'id')],
|
||||
|
||||
/**
|
||||
* Loan amount
|
||||
*
|
||||
* @example 20000
|
||||
*/
|
||||
'loan_amount' => ['required', 'integer', 'max:40000'],
|
||||
|
||||
/**
|
||||
* Region (https://online.tbbank.gov.tm/api/base-app-enums)
|
||||
*/
|
||||
@@ -147,6 +154,34 @@ class LoanOrderStoreRequest extends FormRequest
|
||||
*/
|
||||
'phone_home' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Card number
|
||||
*
|
||||
* @example 4434345434423442
|
||||
*/
|
||||
'card_number' => ['required', 'digits:16'],
|
||||
|
||||
/**
|
||||
* Name on card
|
||||
*
|
||||
* @example 'Mahmyt Allaberdiyev'
|
||||
*/
|
||||
'card_name' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Card expiration month
|
||||
*
|
||||
* @example 06
|
||||
*/
|
||||
'card_month' => ['required'],
|
||||
|
||||
/**
|
||||
* Card expiration year
|
||||
*
|
||||
* @example 2040
|
||||
*/
|
||||
'card_year' => ['required'],
|
||||
|
||||
/**
|
||||
* Region (https://online.tbbank.gov.tm/api/base-app-enums)
|
||||
*/
|
||||
@@ -212,6 +247,103 @@ class LoanOrderStoreRequest extends FormRequest
|
||||
*/
|
||||
'passport_four' => ['required', 'file', 'max:2048', 'mimes:jpg,png,jpeg'],
|
||||
|
||||
/**
|
||||
* Guarantor name
|
||||
*
|
||||
* @example Mahmyt
|
||||
*/
|
||||
'guarantor_name' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor surname
|
||||
*
|
||||
* @example Allaberdiev
|
||||
*/
|
||||
'guarantor_surname' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor surname
|
||||
*
|
||||
* @example Owezowic
|
||||
*/
|
||||
'guarantor_patronic_name' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor card number
|
||||
*
|
||||
* @example 4323344234423443
|
||||
*/
|
||||
'guarantor_card_number' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor name on card
|
||||
*
|
||||
* @example Mahmyt Allaberdiyev
|
||||
*/
|
||||
'guarantor_card_name' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor Card month
|
||||
*
|
||||
* @example 06
|
||||
*/
|
||||
'guarantor_card_month' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* Guarantor Card year
|
||||
*
|
||||
* @example 2040
|
||||
*/
|
||||
'guarantor_card_year' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* 2. Guarantor name
|
||||
*
|
||||
* @example Mahmyt
|
||||
*/
|
||||
'guarantor_2_name' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* 2. Guarantor surname
|
||||
*
|
||||
* @example Allaberdiev
|
||||
*/
|
||||
'guarantor_2_surname' => ['required', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* 2. Guarantor patronic name
|
||||
*
|
||||
* @example Owezowich
|
||||
*/
|
||||
'guarantor_2_patronic_name' => ['nullable', 'string', 'max:255'],
|
||||
|
||||
/**
|
||||
* 2. Guarantor card number
|
||||
*
|
||||
* @example 4323344234423443
|
||||
*/
|
||||
'guarantor_2_card_number' => [],
|
||||
|
||||
/**
|
||||
* 2. Guarantor name on card
|
||||
*
|
||||
* @example Mahmyt Allaberdiyev
|
||||
*/
|
||||
'guarantor_2_card_name' => [],
|
||||
|
||||
/**
|
||||
* 2. Guarantor Card month
|
||||
*
|
||||
* @example 06
|
||||
*/
|
||||
'guarantor_2_card_month' => [],
|
||||
|
||||
/**
|
||||
* 2. Guarantor Card year
|
||||
*
|
||||
* @example 2040
|
||||
*/
|
||||
'guarantor_2_card_year' => [],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user