{
  "api": {
    "name": "SunmiCardReaderPlugin",
    "slug": "sunmicardreaderplugin",
    "docs": "",
    "tags": [],
    "methods": [],
    "properties": [
      {
        "name": "readCard",
        "tags": [
          {
            "text": "Promise<SunmiCardResult>",
            "name": "returns"
          }
        ],
        "docs": "Start listing to read the card,\nyou have to initialize the SDK first before calling this functionality.",
        "complexTypes": [
          "PluginCallback"
        ],
        "type": "(callback: PluginCallback) => void"
      },
      {
        "name": "getDeviceModel",
        "tags": [
          {
            "text": "Promise<SunmiCardResult>",
            "name": "returns"
          }
        ],
        "docs": "Get the device model details.",
        "complexTypes": [
          "SunmiCardDeviceModel"
        ],
        "type": "() => Promise<SunmiCardDeviceModel>"
      },
      {
        "name": "initSunmiSDK",
        "tags": [
          {
            "text": "Promise<void>",
            "name": "returns"
          }
        ],
        "docs": "Initializes the SDK to start reading cards.",
        "complexTypes": [],
        "type": "() => Promise<void>"
      },
      {
        "name": "closeCardReader",
        "tags": [
          {
            "text": "Promise<void>",
            "name": "returns"
          }
        ],
        "docs": "Closes the card reader.",
        "complexTypes": [],
        "type": "() => Promise<void>"
      }
    ]
  },
  "interfaces": [
    {
      "name": "PluginResultData",
      "slug": "pluginresultdata",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": []
    },
    {
      "name": "PluginResultError",
      "slug": "pluginresulterror",
      "docs": "",
      "tags": [],
      "methods": [],
      "properties": [
        {
          "name": "message",
          "tags": [],
          "docs": "",
          "complexTypes": [],
          "type": "string"
        }
      ]
    }
  ],
  "enums": [],
  "typeAliases": [
    {
      "name": "PluginCallback",
      "slug": "plugincallback",
      "docs": "",
      "types": [
        {
          "text": "(data: PluginResultData, error?: PluginResultError | undefined): void",
          "complexTypes": [
            "PluginResultData",
            "PluginResultError"
          ]
        }
      ]
    },
    {
      "name": "SunmiCardDeviceModel",
      "slug": "sunmicarddevicemodel",
      "docs": "",
      "types": [
        {
          "text": "{\n  model: string,\n  isP2: boolean,\n  isP1N: boolean,\n  isP2Lite: boolean,\n  isP2Pro: boolean,\n  isP14G: boolean,\n}",
          "complexTypes": []
        }
      ]
    }
  ],
  "pluginConfigs": []
}