edutap.wallet_google.models.primitives.barcode.Barcode#

pydantic model edutap.wallet_google.models.primitives.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": {
         "allOf": [
            {
               "$ref": "#/$defs/BarcodeType"
            }
         ],
         "default": "BARCODE_TYPE_UNSPECIFIED"
      },
      "renderEncoding": {
         "allOf": [
            {
               "$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": [
            "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"
      },
      "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#