- config/services.php에 barobill 설정 등록 (운영/테스트 모드 분기 정상화) - BarobillSetting 모델에 BelongsToTenant 적용 및 use_* 필드 casts 추가 - BarobillService API URL을 baroservice.com(SOAP)으로 수정 - BarobillService callApi 메서드 경로 하드코딩 제거 (서비스별 분기) - BarobillService 예외 이중 래핑 문제 수정 - BarobillController URL 메서드 중복 코드 제거 - 누락 모델 16개 생성 (MNG 패턴 준수, BelongsToTenant 적용) - 바로빌 전 테이블 options JSON 컬럼 추가 마이그레이션
42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Models\Barobill;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class BarobillCardTransactionAmountLog extends Model
|
|
{
|
|
protected $table = 'barobill_card_transaction_amount_logs';
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'card_transaction_id',
|
|
'original_unique_key',
|
|
'before_supply_amount',
|
|
'before_tax',
|
|
'after_supply_amount',
|
|
'after_tax',
|
|
'modified_by',
|
|
'modified_by_name',
|
|
'ip_address',
|
|
];
|
|
|
|
protected $casts = [
|
|
'before_supply_amount' => 'decimal:2',
|
|
'before_tax' => 'decimal:2',
|
|
'after_supply_amount' => 'decimal:2',
|
|
'after_tax' => 'decimal:2',
|
|
];
|
|
|
|
// =========================================================================
|
|
// 관계 정의
|
|
// =========================================================================
|
|
|
|
public function cardTransaction(): BelongsTo
|
|
{
|
|
return $this->belongsTo(BarobillCardTransaction::class, 'card_transaction_id');
|
|
}
|
|
}
|