// SPDX-License-Identifier: GPL-3.0-or-later

// This file is auto-generated by scripts/generate_nymea_api.py
// Any changes made here will be lost when the files are regenerated.
// Do not edit manually.

#pragma once

#include "apiutils.h"

namespace nymea::api {

class IntegrationsPairThingResponse {
public:
    // wire: 'displayMessage' (optional)
    std::optional<QString> displayMessage;
    // wire: 'oAuthUrl' (optional)
    std::optional<QString> oAuthUrl;
    // wire: 'pairingTransactionId' (optional)
    std::optional<QUuid> pairingTransactionId;
    // wire: 'pin' (optional)
    std::optional<QString> pin;
    // wire: 'setupMethod' (optional)
    std::optional<SetupMethod> setupMethod;
    // wire: 'thingError' (field)
    ThingError thingError{};

    static IntegrationsPairThingResponse fromJson(const QJsonObject &object);
    QJsonObject toJson() const;
};

} // namespace nymea::api
