KSA-ORACLE/app/Models/Payment.php
Nyavokevin b6fa37f716 agenda
2025-10-14 21:49:22 +03:00

48 lines
947 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Payment extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'amount',
'currency',
'stripe_session_id',
'client_session_id',
'draw_count',
'status',
'cards',
'appointment_date',
'payment_provider',
'wise_payment_id',
'wise_session_id',
'wise_transfer_id',
'wise_recipient_id',
'wise_quote_id',
'target_currency',
'recipient_name',
'recipient_email',
'error_message',
];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = [
'amount' => 'decimal:2',
'cards' => 'array',
];
}