edutap.wallet_google.models.datatypes.barcode.Barcode#

pydantic model edutap.wallet_google.models.datatypes.barcode.Barcode#

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

Show JSON schema
{
   "title": "Barcode",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/Barcode",
   "type": "object",
   "properties": {
      "type": {
         "$ref": "#/$defs/BarcodeType",
         "default": "BARCODE_TYPE_UNSPECIFIED"
      },
      "renderEncoding": {
         "$ref": "#/$defs/BarcodeRenderEncoding",
         "default": "RENDER_ENCODING_UNSPECIFIED"
      },
      "value": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Value"
      },
      "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": [
            "renderEncodingUnspecified",
            "RENDER_ENCODING_UNSPECIFIED",
            "utf8",
            "UTF_8"
         ],
         "title": "BarcodeRenderEncoding",
         "type": "string"
      },
      "BarcodeType": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/BarcodeType",
         "enum": [
            "barcodeTypeUnspecified",
            "BARCODE_TYPE_UNSPECIFIED",
            "aztec",
            "AZTEC",
            "code39",
            "CODE_39",
            "code128",
            "CODE_128",
            "codabar",
            "CODABAR",
            "dataMatrix",
            "DATA_MATRIX",
            "ean8",
            "EAN_8",
            "ean13",
            "EAN_13",
            "itf14",
            "ITF_14",
            "pdf417",
            "PDF_417",
            "qrCode",
            "QR_CODE",
            "upcA",
            "UPC_A",
            "textOnly",
            "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"
      },
      "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 type: BarcodeType = BarcodeType.BARCODE_TYPE_UNSPECIFIED#
field value: str | None = None#