{
  "metadata": {
    "toolPackage": "@microsoft/api-extractor",
    "toolVersion": "7.19.4",
    "schemaVersion": 1004,
    "oldestForwardsCompatibleVersion": 1001,
    "tsdocConfig": {
      "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
      "noStandardTags": true,
      "tagDefinitions": [
        {
          "tagName": "@alpha",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@beta",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@defaultValue",
          "syntaxKind": "block"
        },
        {
          "tagName": "@decorator",
          "syntaxKind": "block",
          "allowMultiple": true
        },
        {
          "tagName": "@deprecated",
          "syntaxKind": "block"
        },
        {
          "tagName": "@eventProperty",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@example",
          "syntaxKind": "block",
          "allowMultiple": true
        },
        {
          "tagName": "@experimental",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@inheritDoc",
          "syntaxKind": "inline"
        },
        {
          "tagName": "@internal",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@label",
          "syntaxKind": "inline"
        },
        {
          "tagName": "@link",
          "syntaxKind": "inline",
          "allowMultiple": true
        },
        {
          "tagName": "@override",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@packageDocumentation",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@param",
          "syntaxKind": "block",
          "allowMultiple": true
        },
        {
          "tagName": "@privateRemarks",
          "syntaxKind": "block"
        },
        {
          "tagName": "@public",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@readonly",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@remarks",
          "syntaxKind": "block"
        },
        {
          "tagName": "@returns",
          "syntaxKind": "block"
        },
        {
          "tagName": "@sealed",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@see",
          "syntaxKind": "block"
        },
        {
          "tagName": "@throws",
          "syntaxKind": "block",
          "allowMultiple": true
        },
        {
          "tagName": "@typeParam",
          "syntaxKind": "block",
          "allowMultiple": true
        },
        {
          "tagName": "@virtual",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@betaDocumentation",
          "syntaxKind": "modifier"
        },
        {
          "tagName": "@internalRemarks",
          "syntaxKind": "block"
        },
        {
          "tagName": "@preapproved",
          "syntaxKind": "modifier"
        }
      ],
      "supportForTags": {
        "@alpha": true,
        "@beta": true,
        "@defaultValue": true,
        "@decorator": true,
        "@deprecated": true,
        "@eventProperty": true,
        "@example": true,
        "@experimental": true,
        "@inheritDoc": true,
        "@internal": true,
        "@label": true,
        "@link": true,
        "@override": true,
        "@packageDocumentation": true,
        "@param": true,
        "@privateRemarks": true,
        "@public": true,
        "@readonly": true,
        "@remarks": true,
        "@returns": true,
        "@sealed": true,
        "@see": true,
        "@throws": true,
        "@typeParam": true,
        "@virtual": true,
        "@betaDocumentation": true,
        "@internalRemarks": true,
        "@preapproved": true
      }
    }
  },
  "kind": "Package",
  "canonicalReference": "promptpay-qr!",
  "docComment": "/**\n * The `promptpay-qr` npm package provides a function to generate a PromptPay QR code that can be scanned by mobile banking apps.\n *\n * @remarks\n *\n * A {@link https://www.blognone.com/node/95133 | PromptPay QR code} payload format is based on the {@link https://www.emvco.com/emv-technologies/qrcodes/ | EMV QR Code specification}. Specifically, the Merchant-Presented Mode is supported by this library.\n *\n * This package is a CommonJS module. Import the {@link (generatePayload:function)} function from CommonJS code like this:\n * ```\n * const generatePayload = require('promptpay-qr')\n * ```\n *\n * If you use ES modules, you can use the default import syntax:\n * ```\n * import generatePayload from 'promptpay-qr'\n * ```\n *\n * If you use TypeScript, make sure to set `\"esModuleInterop\": true` in the `tsconfig.json` file.\n *\n * @packageDocumentation\n */\n",
  "name": "promptpay-qr",
  "members": [
    {
      "kind": "EntryPoint",
      "canonicalReference": "promptpay-qr!",
      "name": "",
      "members": [
        {
          "kind": "Function",
          "canonicalReference": "promptpay-qr!generatePayload:function(1)",
          "docComment": "/**\n * Generates a PromptPay QR payload.\n *\n * @remarks\n *\n * This package is a CommonJS module. Import this function from CommonJS code like this:\n * ```\n * const generatePayload = require('promptpay-qr')\n * ```\n *\n * If you use ES modules, you can use the default import syntax:\n * ```\n * import generatePayload from 'promptpay-qr'\n * ```\n *\n * If you use TypeScript, make sure to set `\"esModuleInterop\": true` in the `tsconfig.json` file.\n *\n * @param target - The target PromptPay ID. This can be a phone number (10 digits), a citizen ID (13 digits), a tax ID (13 digits), or an e-Wallet account ID (15 digits).\n *\n * @param options - Options for generating a PromptPay QR payload\n *\n * @returns A PromptPay QR payload. Use this payload to generate a QR code that can be scanned by mobile banking apps in Thailand.\n *\n * @example\n *\n * Generate a PromptPay QR payload for a phone number\n * ```\n * generatePayload('0812345678', {})\n * ```\n *\n * @example\n *\n * Generate a PromptPay QR payload for a phone number with a fixed amount\n * ```\n * generatePayload('0812345678', { amount: 4.22 })\n * ```\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export function generatePayload(\n  target: "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ",\n  options: "
            },
            {
              "kind": "Reference",
              "text": "generatePayload.Options",
              "canonicalReference": "promptpay-qr!generatePayload.Options:interface"
            },
            {
              "kind": "Content",
              "text": "\n"
            },
            {
              "kind": "Content",
              "text": "): "
            },
            {
              "kind": "Content",
              "text": "string"
            },
            {
              "kind": "Content",
              "text": ";"
            }
          ],
          "returnTypeTokenRange": {
            "startIndex": 6,
            "endIndex": 7
          },
          "releaseTag": "Public",
          "overloadIndex": 1,
          "parameters": [
            {
              "parameterName": "target",
              "parameterTypeTokenRange": {
                "startIndex": 1,
                "endIndex": 2
              }
            },
            {
              "parameterName": "options",
              "parameterTypeTokenRange": {
                "startIndex": 3,
                "endIndex": 5
              }
            }
          ],
          "name": "generatePayload"
        },
        {
          "kind": "Namespace",
          "canonicalReference": "promptpay-qr!generatePayload:namespace",
          "docComment": "/**\n * This namespace exports the types that can be used with the {@link (generatePayload:function)} function.\n *\n * @public\n */\n",
          "excerptTokens": [
            {
              "kind": "Content",
              "text": "export namespace generatePayload "
            }
          ],
          "releaseTag": "Public",
          "name": "generatePayload",
          "members": [
            {
              "kind": "Interface",
              "canonicalReference": "promptpay-qr!generatePayload.Options:interface",
              "docComment": "/**\n * Options to pass to {@link (generatePayload:function)}.\n */\n",
              "excerptTokens": [
                {
                  "kind": "Content",
                  "text": "export interface Options "
                }
              ],
              "releaseTag": "Public",
              "name": "Options",
              "members": [
                {
                  "kind": "PropertySignature",
                  "canonicalReference": "promptpay-qr!generatePayload.Options#amount:member",
                  "docComment": "/**\n * The amount of money.\n *\n * @remarks\n *\n * If specified, some banking apps will prefill the amount field.\n */\n",
                  "excerptTokens": [
                    {
                      "kind": "Content",
                      "text": "amount?: "
                    },
                    {
                      "kind": "Content",
                      "text": "number"
                    },
                    {
                      "kind": "Content",
                      "text": ";"
                    }
                  ],
                  "isOptional": true,
                  "releaseTag": "Public",
                  "name": "amount",
                  "propertyTypeTokenRange": {
                    "startIndex": 1,
                    "endIndex": 2
                  }
                }
              ],
              "extendsTokenRanges": []
            }
          ]
        }
      ]
    }
  ]
}
