{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-pay/json-schema/google-pay-smart-tap-schema.json",
  "title": "SmartTap",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-pay-smarttap-api-openapi.yml#/components/schemas/SmartTap",
  "type": "object",
  "properties": {
    "infos": {
      "type": "array",
      "description": "Communication from merchant to user.",
      "items": {
        "$ref": "#/$defs/IssuerToUserInfo"
      }
    },
    "merchantId": {
      "type": "string",
      "format": "int64",
      "description": "Smart Tap merchant ID of who engaged in the Smart Tap interaction."
    },
    "kind": {
      "type": "string",
      "description": "Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#smartTap\"`."
    },
    "id": {
      "type": "string",
      "description": "The unique identifier for a smart tap. This value should follow the format issuer ID.identifier where the former is issued by Google and latter is the Smart Tap id. The Smart Tap id is a Base64 encoded string which represents the id which was generated by the Google Pay app."
    }
  },
  "$defs": {
    "IssuerToUserInfo": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "JSON web token for action S2AP."
        },
        "signUpInfo": {
          "$ref": "#/$defs/SignUpInfo"
        },
        "url": {
          "type": "string",
          "description": "Currently not used, consider deprecating."
        },
        "action": {
          "type": "string",
          "enum": [
            "ACTION_UNSPECIFIED",
            "S2AP",
            "s2ap",
            "SIGN_UP",
            "signUp"
          ]
        }
      }
    },
    "SignUpInfo": {
      "type": "object",
      "properties": {
        "classId": {
          "type": "string",
          "description": "ID of the class the user can sign up for."
        }
      }
    }
  }
}