'integer', 'opened_at' => 'datetime', 'next_step_at' => 'datetime', 'settled_at' => 'datetime', 'fee_invoice_ids' => 'array', ]; } public function subscription(): BelongsTo { return $this->belongsTo(Subscription::class); } /** Läuft noch — weder beglichen noch von Hand geschlossen. */ public function isOpen(): bool { return $this->settled_at === null; } public function isSuspended(): bool { return $this->level >= DunningSchedule::SUSPENDED; } }