/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleCpp.js
 */

#include "RNSdkPaymentModuleSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_getFormTokenVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeSdkPaymentModuleCxxSpecJSI *>(&turboModule)->getFormTokenVersion(
    rt
  );
}
static jsi::Value __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_getSDKVersion(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeSdkPaymentModuleCxxSpecJSI *>(&turboModule)->getSDKVersion(
    rt
  );
}
static jsi::Value __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_initialize(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeSdkPaymentModuleCxxSpecJSI *>(&turboModule)->initialize(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
  );
}
static jsi::Value __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_process(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeSdkPaymentModuleCxxSpecJSI *>(&turboModule)->process(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt)
  );
}
static jsi::Value __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_cancelProcess(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  static_cast<NativeSdkPaymentModuleCxxSpecJSI *>(&turboModule)->cancelProcess(
    rt
  );
  return jsi::Value::undefined();
}

NativeSdkPaymentModuleCxxSpecJSI::NativeSdkPaymentModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("SdkPaymentModule", jsInvoker) {
  methodMap_["getFormTokenVersion"] = MethodMetadata {0, __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_getFormTokenVersion};
  methodMap_["getSDKVersion"] = MethodMetadata {0, __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_getSDKVersion};
  methodMap_["initialize"] = MethodMetadata {2, __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_initialize};
  methodMap_["process"] = MethodMetadata {2, __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_process};
  methodMap_["cancelProcess"] = MethodMetadata {0, __hostFunction_NativeSdkPaymentModuleCxxSpecJSI_cancelProcess};
}


} // namespace facebook::react
