/// /// HybridPlugpagNitroSpec.kt /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE. /// https://github.com/mrousavy/nitro /// Copyright © 2025 Marc Rousavy @ Margelo /// package com.margelo.nitro.plugpagnitro import androidx.annotation.Keep import com.facebook.jni.HybridData import com.facebook.proguard.annotations.DoNotStrip import com.margelo.nitro.core.* /** * A Kotlin class representing the PlugpagNitro HybridObject. * Implement this abstract class to create Kotlin-based instances of PlugpagNitro. */ @DoNotStrip @Keep @Suppress( "KotlinJniMissingFunction", "unused", "RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet", "LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName" ) abstract class HybridPlugpagNitroSpec: HybridObject() { @DoNotStrip private var mHybridData: HybridData = initHybrid() init { super.updateNative(mHybridData) } override fun updateNative(hybridData: HybridData) { mHybridData = hybridData super.updateNative(hybridData) } // Properties // Methods @DoNotStrip @Keep abstract fun getConstants(): PlugpagConstants @DoNotStrip @Keep abstract fun getTerminalSerialNumber(): String @DoNotStrip @Keep abstract fun initializeAndActivatePinPad(activationCode: String): Promise @DoNotStrip @Keep abstract fun doPayment(amount: Double, type: PaymentType, installmentType: InstallmentType, installments: Double, printReceipt: Boolean, userReference: String): Promise @DoNotStrip @Keep abstract fun refundPayment(transactionCode: String, transactionId: String, printReceipt: Boolean): Promise @DoNotStrip @Keep abstract fun doAbort(): Promise @DoNotStrip @Keep abstract fun setStyleTheme(styleData: PlugpagStyleData): Promise @DoNotStrip @Keep abstract fun print(filePath: String, textSize: Double): Promise @DoNotStrip @Keep abstract fun reprintCustomerReceipt(): Promise private external fun initHybrid(): HybridData companion object { private const val TAG = "HybridPlugpagNitroSpec" } }