subscription = $subscription; $this->order = $order; $this->customer = $customer; $this->oldStatus = $oldStatus; $this->reason = $reason; } public function toArray(): array { // Superset payload — keeps the original `subscription`/`reason` keys the bare // do_action('fluent_cart/subscription_paused') used, adds order/customer/old_status. return [ 'subscription' => $this->subscription, 'reason' => $this->reason, 'order' => $this->order, 'customer' => $this->customer ?? [], 'old_status' => $this->oldStatus, ]; } public function getActivityEventModel(): Subscription { return $this->subscription; } public function shouldCreateActivity(): bool { // The transition sites already write a detailed addLog() entry (with the pause // reason). Skipping the generic Activity row keeps the timeline unchanged. return false; } }