$this->id, 'key' => $this->key, 'driver' => $this->driver, 'currencies' => $this->currencies, 'driver_config' => $this->driver_config, 'company_id' => $this->company_id, 'active' => $this->active, 'company' => $this->when( $this->company()->exists(), fn (): CompanyResource => new CompanyResource($this->company) ), ]; } }