static::platform(), 'category' => $this->category->value, 'platform_error_code' => $this->platformErrorCode, 'user_message' => $this->userMessage, 'raw_response' => TokenRedactor::redact($this->rawResponse), ]; } abstract public static function fromApiResponse(mixed $response): static; abstract public function platform(): string; }