feat: Phase 8 SaaS 확장 - 구독관리/결제내역 API 추가

- 사용량 조회 API (GET /subscriptions/usage)
- 데이터 내보내기 API (POST/GET /subscriptions/export)
- 결제 명세서 API (GET /payments/{id}/statement)
- DataExport 모델 및 마이그레이션 추가
This commit is contained in:
2025-12-19 16:53:49 +09:00
parent 0d49e4cc75
commit abaff1286e
13 changed files with 868 additions and 1 deletions

View File

@@ -295,4 +295,20 @@
'already_withdrawn' => '이미 탈퇴한 계정입니다.',
'cannot_withdraw' => '탈퇴할 수 없는 상태입니다.',
],
// 구독 관련
'subscription' => [
'already_active' => '이미 활성화된 구독이 있습니다.',
'not_cancellable' => '취소할 수 없는 상태입니다.',
'not_renewable' => '갱신할 수 없는 상태입니다.',
'not_suspendable' => '일시정지할 수 없는 상태입니다.',
'not_resumable' => '재개할 수 없는 상태입니다.',
],
// 데이터 내보내기 관련
'export' => [
'already_in_progress' => '이미 진행 중인 내보내기가 있습니다.',
'not_found' => '내보내기 요청을 찾을 수 없습니다.',
'failed' => '내보내기 처리 중 오류가 발생했습니다.',
],
];

View File

@@ -346,4 +346,25 @@
'suspended' => '사용 중지가 완료되었습니다.',
'agreements_updated' => '약관 동의 정보가 수정되었습니다.',
],
// 구독 관리
'subscription' => [
'cancelled' => '구독이 취소되었습니다.',
'renewed' => '구독이 갱신되었습니다.',
'suspended' => '구독이 일시정지되었습니다.',
'resumed' => '구독이 재개되었습니다.',
],
// 데이터 내보내기
'export' => [
'requested' => '내보내기 요청이 접수되었습니다.',
'completed' => '내보내기가 완료되었습니다.',
],
// 결제 관리
'payment' => [
'completed' => '결제가 완료되었습니다.',
'cancelled' => '결제가 취소되었습니다.',
'refunded' => '환불이 완료되었습니다.',
],
];