feat: [barobill] SOAP 동기화 서비스 신규 구축

- BarobillSoapService: PHP SoapClient 기반 SOAP 래퍼 (회원/계좌/카드/인증서)
- BarobillBankSyncService: 은행 거래내역 SOAP 조회 → DB 캐시 동기화
- BarobillCardSyncService: 카드 거래내역 SOAP 조회 → DB 캐시 동기화
- HometaxSyncService: 홈택스 세금계산서 upsert 동기화
- BarobillSyncController: 동기화/회원/인증서/잔액 API 11개 엔드포인트
- SyncBarobillDataJob: 매일 06:00/06:30 자동 동기화 스케줄러
- BarobillController.status() 보강: 실제 계좌/카드 수 표시
This commit is contained in:
김보곤
2026-03-17 13:03:24 +09:00
parent ead546e268
commit 269a17b49c
9 changed files with 1727 additions and 5 deletions

View File

@@ -191,3 +191,29 @@
->onFailure(function () {
\Illuminate\Support\Facades\Log::error('❌ demo:reset-showcase 스케줄러 실행 실패', ['time' => now()]);
});
// ─── 바로빌 데이터 동기화 ───
// 매일 06:00 — 전일 은행 거래내역 동기화
Schedule::job(new \App\Jobs\Barobill\SyncBarobillDataJob('bank'))
->dailyAt('06:00')
->withoutOverlapping()
->appendOutputTo(storage_path('logs/scheduler.log'))
->onSuccess(function () {
\Illuminate\Support\Facades\Log::info('[Scheduler] 바로빌 은행 동기화 성공', ['time' => now()]);
})
->onFailure(function () {
\Illuminate\Support\Facades\Log::error('[Scheduler] 바로빌 은행 동기화 실패', ['time' => now()]);
});
// 매일 06:30 — 전일 카드 거래내역 동기화
Schedule::job(new \App\Jobs\Barobill\SyncBarobillDataJob('card'))
->dailyAt('06:30')
->withoutOverlapping()
->appendOutputTo(storage_path('logs/scheduler.log'))
->onSuccess(function () {
\Illuminate\Support\Facades\Log::info('[Scheduler] 바로빌 카드 동기화 성공', ['time' => now()]);
})
->onFailure(function () {
\Illuminate\Support\Facades\Log::error('[Scheduler] 바로빌 카드 동기화 실패', ['time' => now()]);
});