
/**
 * 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: GenerateModuleJavaSpec.js
 *
 * @nolint
 */

package com.hyperswitchsdkreactnative;

import com.facebook.proguard.annotations.DoNotStrip;
import com.facebook.react.bridge.Callback;
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.ReactApplicationContext;
import com.facebook.react.bridge.ReactContextBaseJavaModule;
import com.facebook.react.bridge.ReactMethod;
import com.facebook.react.bridge.ReadableMap;
import com.facebook.react.turbomodule.core.interfaces.TurboModule;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;

public abstract class NativeHyperswitchSdkReactNativeSpec extends ReactContextBaseJavaModule implements TurboModule {
  public static final String NAME = "HyperswitchSdkReactNative";

  public NativeHyperswitchSdkReactNativeSpec(ReactApplicationContext reactContext) {
    super(reactContext);
  }

  @Override
  public @Nonnull String getName() {
    return NAME;
  }

  @ReactMethod
  @DoNotStrip
  public abstract void initialise(ReadableMap config, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void initPaymentSession(String instanceHandle, String sdkAuthorization, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void presentPaymentSheet(ReadableMap configuration, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void getCustomerSavedPaymentMethods(@Nullable ReadableMap options, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void getCustomerDefaultSavedPaymentMethodData(Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void getCustomerLastUsedPaymentMethodData(Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void confirmWithCustomerDefaultPaymentMethod(@Nullable String cvcWidgetReactTag, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void confirmWithCustomerLastUsedPaymentMethod(@Nullable String cvcWidgetReactTag, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void confirmWithCustomerPaymentToken(String paymentToken, Promise promise);

  @ReactMethod
  @DoNotStrip
  public abstract void updateIntent(String sdkAuthorization, Promise promise);
}
