feat: I-3 법인카드 사용내역 API 구현
- CardTransactionController: 카드 거래내역 조회 API - CardTransactionService: 카드 거래 조회 로직 - Withdrawal 모델 카드 필드 확장 - Swagger 문서화 - withdrawals 테이블 카드 필드 마이그레이션 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -14,9 +14,12 @@ class Withdrawal extends Model
|
||||
protected $fillable = [
|
||||
'tenant_id',
|
||||
'withdrawal_date',
|
||||
'used_at',
|
||||
'client_id',
|
||||
'client_name',
|
||||
'merchant_name',
|
||||
'bank_account_id',
|
||||
'card_id',
|
||||
'amount',
|
||||
'payment_method',
|
||||
'account_code',
|
||||
@@ -30,9 +33,11 @@ class Withdrawal extends Model
|
||||
|
||||
protected $casts = [
|
||||
'withdrawal_date' => 'date',
|
||||
'used_at' => 'datetime',
|
||||
'amount' => 'decimal:2',
|
||||
'client_id' => 'integer',
|
||||
'bank_account_id' => 'integer',
|
||||
'card_id' => 'integer',
|
||||
'reference_id' => 'integer',
|
||||
];
|
||||
|
||||
@@ -62,6 +67,14 @@ public function bankAccount(): BelongsTo
|
||||
return $this->belongsTo(BankAccount::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 카드 관계
|
||||
*/
|
||||
public function card(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Card::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* 생성자 관계
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user