///
/// HybridRnFawryPaySdkSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2025 Marc Rousavy @ Margelo
///

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif

// Forward declaration of `FawryLaunchModel` to properly resolve imports.
namespace margelo::nitro::fawrypay_rnfawrypaysdk { struct FawryLaunchModel; }
// Forward declaration of `FawryLanguages` to properly resolve imports.
namespace margelo::nitro::fawrypay_rnfawrypaysdk { enum class FawryLanguages; }
// Forward declaration of `MerchantInfo` to properly resolve imports.
namespace margelo::nitro::fawrypay_rnfawrypaysdk { struct MerchantInfo; }
// Forward declaration of `CustomerInfo` to properly resolve imports.
namespace margelo::nitro::fawrypay_rnfawrypaysdk { struct CustomerInfo; }

#include "FawryLaunchModel.hpp"
#include <string>
#include "FawryLanguages.hpp"
#include "MerchantInfo.hpp"
#include "CustomerInfo.hpp"
#include <optional>
#include <functional>

namespace margelo::nitro::fawrypay_rnfawrypaysdk {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `RnFawryPaySdk`
   * Inherit this class to create instances of `HybridRnFawryPaySdkSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridRnFawryPaySdk: public HybridRnFawryPaySdkSpec {
   * public:
   *   HybridRnFawryPaySdk(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridRnFawryPaySdkSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridRnFawryPaySdkSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridRnFawryPaySdkSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual double multiply(double a, double b) = 0;
      virtual void startPayment(const FawryLaunchModel& model) = 0;
      virtual void openCardsManager(const std::string& baseUrl, FawryLanguages lang, const MerchantInfo& merchantInfo, const CustomerInfo& customerInfo, const std::optional<std::string>& tokenizationSignature) = 0;
      virtual std::function<void()> addListener(const std::function<void(const std::string& /* eventName */, const std::string& /* payload */)>& listener) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "RnFawryPaySdk";
  };

} // namespace margelo::nitro::fawrypay_rnfawrypaysdk
