Changeset View
Changeset View
Standalone View
Standalone View
src/app/Transaction.php
Show All 10 Lines | |||||
* | * | ||||
* @property int $amount | * @property int $amount | ||||
* @property string $description | * @property string $description | ||||
* @property string $id | * @property string $id | ||||
* @property string $object_id | * @property string $object_id | ||||
* @property string $object_type | * @property string $object_type | ||||
* @property string $type | * @property string $type | ||||
* @property string $transaction_id | * @property string $transaction_id | ||||
* @property string $user_email | * @property string $user_email | ||||
machniak: Please, document 'period_start' and 'period_end' properties here. | |||||
*/ | */ | ||||
class Transaction extends Model | class Transaction extends Model | ||||
{ | { | ||||
public const ENTITLEMENT_BILLED = 'billed'; | public const ENTITLEMENT_BILLED = 'billed'; | ||||
public const ENTITLEMENT_CREATED = 'created'; | public const ENTITLEMENT_CREATED = 'created'; | ||||
public const ENTITLEMENT_DELETED = 'deleted'; | public const ENTITLEMENT_DELETED = 'deleted'; | ||||
public const WALLET_AWARD = 'award'; | public const WALLET_AWARD = 'award'; | ||||
Show All 13 Lines | protected $fillable = [ | ||||
// entitlement: created, deleted, billed | // entitlement: created, deleted, billed | ||||
// wallet: debit, credit, award, penalty | // wallet: debit, credit, award, penalty | ||||
'type', | 'type', | ||||
'amount', | 'amount', | ||||
'description', | 'description', | ||||
// timespan that was charged for | |||||
Done Inline ActionsMissing space. machniak: Missing space. | |||||
'period_start', | |||||
'period_end', | |||||
// parent, for example wallet debit is parent for entitlements charged. | // parent, for example wallet debit is parent for entitlements charged. | ||||
'transaction_id' | 'transaction_id' | ||||
]; | ]; | ||||
/** @var array Casts properties as type */ | /** @var array Casts properties as type */ | ||||
protected $casts = [ | protected $casts = [ | ||||
'amount' => 'integer', | 'amount' => 'integer', | ||||
▲ Show 20 Lines • Show All 141 Lines • Show Last 20 Lines |
Please, document 'period_start' and 'period_end' properties here.