edutap.wallet_google.models.datatypes.data.TextModuleData#

pydantic model edutap.wallet_google.models.datatypes.data.TextModuleData#

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

Google accepts both header and localizedHeader, body and localizedBody but if localizedHeader and localizedBody are present, header and body are ignored and set to None.

Show JSON schema
{
   "title": "TextModuleData",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/TextModuleData\n\nGoogle accepts both header and localizedHeader, body and localizedBody\nbut if localizedHeader and localizedBody are present, header and body are ignored and set to None.",
   "type": "object",
   "properties": {
      "header": {
         "anyOf": [
            {
               "maxLength": 35,
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Header"
      },
      "body": {
         "anyOf": [
            {
               "maxLength": 500,
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Body"
      },
      "localizedHeader": {
         "anyOf": [
            {
               "$ref": "#/$defs/LocalizedString"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "localizedBody": {
         "anyOf": [
            {
               "$ref": "#/$defs/LocalizedString"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "id": {
         "anyOf": [
            {
               "type": "string"
            },
            {
               "type": "null"
            }
         ],
         "default": null,
         "title": "Id"
      }
   },
   "$defs": {
      "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 body: str | None = None#
Constraints:
  • max_length = 500

field header: str | None = None#
Constraints:
  • max_length = 35

field id: str | None = None#
field localizedBody: LocalizedString | None = None#
field localizedHeader: LocalizedString | None = None#