subscription = $subscription; $this->order = $order; $this->customer = $customer; $this->updates = $updates; $this->changes = $changes; } public function toArray(): array { // Superset payload — keeps the original `subscription`/`updates`/`changes` keys the bare // do_action('fluent_cart/subscription_updated') used, adds order/customer. return [ 'subscription' => $this->subscription, 'updates' => $this->updates, 'changes' => $this->changes, 'order' => $this->order, 'customer' => $this->customer ?? [], ]; } public function getActivityEventModel(): Subscription { return $this->subscription; } public function shouldCreateActivity(): bool { // updateSubscription() already writes a detailed addLog() entry listing the // changed fields. Skipping the generic Activity row keeps the timeline unchanged. return false; } }