From 001fe497fd19c396e1153a9df8183f8b7c14141d Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Fri, 18 Oct 2024 17:51:24 +0500 Subject: [PATCH] visa master --- .../Requests/LoanOrderStoreRequest.php | 28 +++++++++++++++++++ .../Models/VisaMasterPaymentOrder.php | 4 +-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/app/Modules/LoanOrder/Controllers/Requests/LoanOrderStoreRequest.php b/app/Modules/LoanOrder/Controllers/Requests/LoanOrderStoreRequest.php index 7d89a14..ee25431 100644 --- a/app/Modules/LoanOrder/Controllers/Requests/LoanOrderStoreRequest.php +++ b/app/Modules/LoanOrder/Controllers/Requests/LoanOrderStoreRequest.php @@ -324,6 +324,20 @@ class LoanOrderStoreRequest extends FormRequest */ 'guarantor_card_year' => ['required', 'string'], + /** + * Guarantor Passport serie + * + * @example I-AS + */ + 'guarantor_passport_serie' => ['required', 'string', Rule::in(PassportRepo::values())], + + /** + * Guarantor Passport number + * + * @example 100999 + */ + 'guarantor_passport_id' => ['required', 'numeric', 'digits:6'], + /** * 2. Guarantor name * @@ -372,6 +386,20 @@ class LoanOrderStoreRequest extends FormRequest * @example 2040 */ 'guarantor_2_card_year' => [Rule::requiredIf($this->loan_amount > 20000), 'string'], + + /** + * Guarantor Passport serie + * + * @example I-AS + */ + 'guarantor_2_passport_serie' => ['required', 'string', Rule::in(PassportRepo::values())], + + /** + * Guarantor Passport number + * + * @example 100999 + */ + 'guarantor_2_passport_id' => ['required', 'numeric', 'digits:6'], ]; } } diff --git a/app/Modules/VisaMasterPaymentOrder/Models/VisaMasterPaymentOrder.php b/app/Modules/VisaMasterPaymentOrder/Models/VisaMasterPaymentOrder.php index ee3c34d..b8f54e8 100644 --- a/app/Modules/VisaMasterPaymentOrder/Models/VisaMasterPaymentOrder.php +++ b/app/Modules/VisaMasterPaymentOrder/Models/VisaMasterPaymentOrder.php @@ -38,7 +38,7 @@ class VisaMasterPaymentOrder extends Model implements HasMedia 'payment_reciever' => 'array', ]; - /** + /** * The "booted" method of the model. */ protected static function booted(): void @@ -53,7 +53,7 @@ class VisaMasterPaymentOrder extends Model implements HasMedia sendSMS( phone: $user->phone, - message: $visaMasterPaymentOrder->unique_id . 'belgili sargydyňyz kanagatlandyryldy. Banka ýüztutmagyňyzy Sizden haýyş edýäris.' + message: $visaMasterPaymentOrder->unique_id.'belgili sargydyňyz kanagatlandyryldy. Banka ýüztutmagyňyzy Sizden haýyş edýäris.' ); } });