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;