edutap.wallet_google.models.primitives.barcode.RotatingBarcode#

pydantic model edutap.wallet_google.models.primitives.barcode.RotatingBarcode#

see: https://developers.google.com/wallet/generic/rest/v1/RotatingBarcode

Show JSON schema
{
   "title": "RotatingBarcode",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/RotatingBarcode",
   "type": "object",
   "properties": {
      "type": {
         "allOf": [
            {
               "$ref": "#/$defs/BarcodeType"
            }
         ],
         "default": "BARCODE_TYPE_UNSPECIFIED"
      },
      "renderEncoding": {
         "allOf": [
            {
               "$ref": "#/$defs/BarcodeRenderEncoding"
            }
         ],
         "default": "RENDER_ENCODING_UNSPECIFIED"
      },
      "valuePattern": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Valuepattern"
      },
      "totpDetails": {
         "anyOf": [
            {
               "$ref": "#/$defs/TotpDetails"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "alternateText": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Alternatetext"
      },
      "showCodeText": {
         "anyOf": [
            {
               "$ref": "#/$defs/LocalizedString"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "BarcodeRenderEncoding": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/BarcodeRenderEncoding",
         "enum": [
            "RENDER_ENCODING_UNSPECIFIED",
            "UTF_8"
         ],
         "title": "BarcodeRenderEncoding",
         "type": "string"
      },
      "BarcodeType": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/BarcodeType",
         "enum": [
            "BARCODE_TYPE_UNSPECIFIED",
            "AZTEC",
            "CODE_39",
            "CODE_128",
            "CODABAR",
            "DATA_MATRIX",
            "EAN_8",
            "EAN_13",
            "ITF_14",
            "PDF_417",
            "QR_CODE",
            "UPC_A",
            "TEXT_ONLY"
         ],
         "title": "BarcodeType",
         "type": "string"
      },
      "LocalizedString": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString",
         "properties": {
            "defaultValue": {
               "$ref": "#/$defs/TranslatedString"
            },
            "translatedValues": {
               "default": [],
               "items": {
                  "$ref": "#/$defs/TranslatedString"
               },
               "title": "Translatedvalues",
               "type": "array"
            }
         },
         "required": [
            "defaultValue"
         ],
         "title": "LocalizedString",
         "type": "object"
      },
      "TotpAlgorithm": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/RotatingBarcode#totpalgorithm",
         "enum": [
            "TOTP_ALGORITHM_UNSPECIFIED",
            "TOTP_SHA1"
         ],
         "title": "TotpAlgorithm",
         "type": "string"
      },
      "TotpDetails": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/RotatingBarcode#totpdetails",
         "properties": {
            "periodMillis": {
               "title": "Periodmillis",
               "type": "string"
            },
            "algorithm": {
               "allOf": [
                  {
                     "$ref": "#/$defs/TotpAlgorithm"
                  }
               ],
               "default": "TOTP_ALGORITHM_UNSPECIFIED"
            },
            "parameters": {
               "items": {
                  "$ref": "#/$defs/TotpParameters"
               },
               "title": "Parameters",
               "type": "array"
            }
         },
         "required": [
            "periodMillis",
            "parameters"
         ],
         "title": "TotpDetails",
         "type": "object"
      },
      "TotpParameters": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/RotatingBarcode#totpparameters",
         "properties": {
            "key": {
               "title": "Key",
               "type": "string"
            },
            "valueLength": {
               "title": "Valuelength",
               "type": "integer"
            }
         },
         "required": [
            "key",
            "valueLength"
         ],
         "title": "TotpParameters",
         "type": "object"
      },
      "TranslatedString": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring",
         "properties": {
            "language": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Language"
            },
            "value": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Value"
            }
         },
         "title": "TranslatedString",
         "type": "object"
      }
   }
}

Fields:
field alternateText: str | None = None#
field renderEncoding: BarcodeRenderEncoding = BarcodeRenderEncoding.RENDER_ENCODING_UNSPECIFIED#
field showCodeText: LocalizedString | None = None#
field totpDetails: TotpDetails | None = None#
field type: BarcodeType = BarcodeType.BARCODE_TYPE_UNSPECIFIED#
field valuePattern: str | None = None#