add tests batch 20

This commit is contained in:
root
2026-06-09 01:03:53 -04:00
parent 95efb9652e
commit 6be4875c5e
1502 changed files with 13797 additions and 11313 deletions
+7 -5
View File
@@ -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');
}
}
}