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": {
      "kind": {
         "default": null,
         "deprecated": true,
         "title": "Kind",
         "type": "string"
      },
      "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": {
         "additionalProperties": false,
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString",
         "properties": {
            "kind": {
               "default": null,
               "deprecated": true,
               "title": "Kind",
               "type": "string"
            },
            "translatedValues": {
               "items": {
                  "$ref": "#/$defs/TranslatedString"
               },
               "title": "Translatedvalues",
               "type": "array"
            },
            "defaultValue": {
               "$ref": "#/$defs/TranslatedString"
            }
         },
         "required": [
            "defaultValue"
         ],
         "title": "LocalizedString",
         "type": "object"
      },
      "TranslatedString": {
         "additionalProperties": false,
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/LocalizedString#translatedstring",
         "properties": {
            "kind": {
               "default": null,
               "deprecated": true,
               "title": "Kind",
               "type": "string"
            },
            "language": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Language"
            },
            "value": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Value"
            }
         },
         "title": "TranslatedString",
         "type": "object"
      }
   },
   "additionalProperties": false
}

Config:
  • extra: str = forbid

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#
kind: Annotated[str, Field(deprecated=deprecated('Attribute "kind" was used in the past to identify resources but is now deprecated.'), exclude=True, default=None)]#

Read-only data descriptor used to emit a runtime deprecation warning before accessing a deprecated field.

Attributes:

msg: The deprecation message to be emitted. wrapped_property: The property instance if the deprecated field is a computed field, or None. field_name: The name of the field being deprecated.