add tests batch 20
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\BaseModel;
|
||||
|
||||
class PaypalTransaction extends BaseModel
|
||||
{
|
||||
protected $table = 'paypal_transactions';
|
||||
@@ -27,11 +29,11 @@ class PaypalTransaction extends BaseModel
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'payment_id' => 'integer',
|
||||
'amount' => 'decimal:2', // adjust precision if needed
|
||||
'transaction_fee' => 'decimal:2', // adjust precision if needed
|
||||
'payment_id' => 'integer',
|
||||
'amount' => 'decimal:2', // adjust precision if needed
|
||||
'transaction_fee' => 'decimal:2', // adjust precision if needed
|
||||
// raw_data is often JSON; if it's JSON in DB, cast to array
|
||||
'raw_data' => 'array',
|
||||
'raw_data' => 'array',
|
||||
];
|
||||
|
||||
/* Optional relationship */
|
||||
@@ -39,4 +41,4 @@ class PaypalTransaction extends BaseModel
|
||||
{
|
||||
return $this->belongsTo(Payment::class, 'payment_id');
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user