CluPilotCloud/app/Models/StripeAddonPrice.php

25 lines
651 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
/**
* One Stripe Price for one module, at one amount, on one interval.
*
* The module catalogue lives in config and has no rows of its own, so this is
* where the mirror into Stripe is remembered — the same job `plan_prices`
* does for packages. See the migration for why a module needs more than one
* Price: a booking is frozen at the price it was booked at, and a Stripe Price
* cannot be edited.
*/
class StripeAddonPrice extends Model
{
protected $guarded = [];
protected function casts(): array
{
return ['amount_cents' => 'integer'];
}
}