From f86b9710ed63333ddf25163fd5dbf0f3e5995c85 Mon Sep 17 00:00:00 2001 From: "sosuke.iwabuchi" Date: Mon, 6 Nov 2023 14:46:23 +0900 Subject: [PATCH] =?UTF-8?q?SMBC=E5=8F=A3=E5=BA=A7=E6=8C=AF=E6=9B=BF?= =?UTF-8?q?=E7=B5=90=E6=9E=9C=E5=8F=96=E5=BE=97=E3=81=AE=E5=BC=95=E3=81=A3?= =?UTF-8?q?=E8=B6=8A=E3=81=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{SMBCPoll.php => SMBCBankAccountRegisterPoll.php} | 10 +++++----- app/Console/Kernel.php | 2 +- .../{SMBCPoll.php => SMBCBankAccountRegisterPoll.php} | 6 +++--- .../Customer/BankAccountRegisterStartController.php | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) rename app/Console/Commands/{SMBCPoll.php => SMBCBankAccountRegisterPoll.php} (95%) rename app/Console/Schedules/{SMBCPoll.php => SMBCBankAccountRegisterPoll.php} (64%) diff --git a/app/Console/Commands/SMBCPoll.php b/app/Console/Commands/SMBCBankAccountRegisterPoll.php similarity index 95% rename from app/Console/Commands/SMBCPoll.php rename to app/Console/Commands/SMBCBankAccountRegisterPoll.php index ac4a01a..041a567 100644 --- a/app/Console/Commands/SMBCPoll.php +++ b/app/Console/Commands/SMBCBankAccountRegisterPoll.php @@ -3,9 +3,9 @@ namespace App\Console\Commands; use App\Email\Members\BankAccountRegisterFailedNotice; -use App\Http\API\SMBC\PollResultRecord; -use App\Http\API\SMBC\SMBC; -use App\Http\API\SMBC\SMBCStatus; +use App\Http\API\SMBC\BankAccountRegister\PollResultRecord; +use App\Http\API\SMBC\BankAccountRegister\SMBC; +use App\Http\API\SMBC\BankAccountRegister\SMBCStatus; use App\Kintone\Models\BankAccountUpdateApplication; use App\Kintone\Models\Customer; use App\Logic\EmailManager; @@ -18,10 +18,10 @@ use Illuminate\Support\Carbon; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; -class SMBCPoll extends BaseCommand +class SMBCBankAccountRegisterPoll extends BaseCommand { - const COMMAND = "smbc:poll"; + const COMMAND = "smbc:bank-account-register-poll"; /** diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index 3702f47..4739ae8 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule): void { Schedules\HeartBeat::register($schedule); - Schedules\SMBCPoll::register($schedule); + Schedules\SMBCBankAccountRegisterPoll::register($schedule); Schedules\BankAccountRegisterRemaind::register($schedule); Schedules\SeasonTikcetContractSelectionFillCandidates::register($schedule); Schedules\SeasonTikcetContractSelectionSetResult::register($schedule); diff --git a/app/Console/Schedules/SMBCPoll.php b/app/Console/Schedules/SMBCBankAccountRegisterPoll.php similarity index 64% rename from app/Console/Schedules/SMBCPoll.php rename to app/Console/Schedules/SMBCBankAccountRegisterPoll.php index 16e3f08..eb37c11 100644 --- a/app/Console/Schedules/SMBCPoll.php +++ b/app/Console/Schedules/SMBCBankAccountRegisterPoll.php @@ -2,15 +2,15 @@ namespace App\Console\Schedules; -use App\Console\Commands\SMBCPoll as CommandsSMBCPoll; +use App\Console\Commands\SMBCBankAccountRegisterPoll as Command; use Illuminate\Console\Scheduling\Schedule; -class SMBCPoll extends BaseSchedule +class SMBCBankAccountRegisterPoll extends BaseSchedule { static public function register(Schedule $schedule) { - $schedule->command(CommandsSMBCPoll::class) + $schedule->command(Command::class) ->everyThreeMinutes() ->unlessBetween('1:00', '6:00') ->description("SMBC口座振替申請結果取得"); diff --git a/app/Http/Controllers/Web/Customer/BankAccountRegisterStartController.php b/app/Http/Controllers/Web/Customer/BankAccountRegisterStartController.php index f1b1549..7d0523c 100644 --- a/app/Http/Controllers/Web/Customer/BankAccountRegisterStartController.php +++ b/app/Http/Controllers/Web/Customer/BankAccountRegisterStartController.php @@ -2,8 +2,7 @@ namespace App\Http\Controllers\Web\Customer; -use App\Exceptions\ConfigException; -use App\Http\API\SMBC\SMBC; +use App\Http\API\SMBC\BankAccountRegister\SMBC; use App\Http\Controllers\Web\WebController; use App\Kintone\Models\Customer; use Illuminate\Http\JsonResponse;