CluPilotCloud/app/Models/StripePendingEvent.php

25 lines
518 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* A billing event held until the contract it is about exists.
*
* See the migration for why: Stripe does not guarantee delivery order, and
* answering 2xx to an event we cannot match yet would drop it for good.
*/
class StripePendingEvent extends Model
{
protected $guarded = [];
protected function casts(): array
{
return [
'payload' => 'array',
'raised_at' => 'datetime',
];
}
}