edutap.wallet_google.models.primitives.class_template_info.TemplateItem#

pydantic model edutap.wallet_google.models.primitives.class_template_info.TemplateItem#

see: https://developers.google.com/wallet/generic/rest/v1/ClassTemplateInfo#templateitem

Show JSON schema
{
   "title": "TemplateItem",
   "description": "see: https://developers.google.com/wallet/generic/rest/v1/ClassTemplateInfo#templateitem",
   "type": "object",
   "properties": {
      "firstValue": {
         "anyOf": [
            {
               "$ref": "#/$defs/FieldSelector"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "secondValue": {
         "anyOf": [
            {
               "$ref": "#/$defs/FieldSelector"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      },
      "predefinedItem": {
         "anyOf": [
            {
               "$ref": "#/$defs/PredefinedItem"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "DateFormat": {
         "enum": [
            "DATE_FORMAT_UNSPECIFIED",
            "DATE_TIME",
            "DATE_ONLY",
            "TIME_ONLY",
            "DATE_TIME_YEAR",
            "DATE_YEAR"
         ],
         "title": "DateFormat",
         "type": "string"
      },
      "FieldReference": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/ClassTemplateInfo#fieldreference",
         "properties": {
            "fieldPath": {
               "title": "Fieldpath",
               "type": "string"
            },
            "dateFormat": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/DateFormat"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            }
         },
         "required": [
            "fieldPath"
         ],
         "title": "FieldReference",
         "type": "object"
      },
      "FieldSelector": {
         "description": "see: https://developers.google.com/wallet/generic/rest/v1/ClassTemplateInfo#fieldselector",
         "properties": {
            "fields": {
               "items": {
                  "$ref": "#/$defs/FieldReference"
               },
               "title": "Fields",
               "type": "array"
            }
         },
         "required": [
            "fields"
         ],
         "title": "FieldSelector",
         "type": "object"
      },
      "PredefinedItem": {
         "description": "see: https://developers.google.com/wallet/retail/offers/rest/v1/ClassTemplateInfo#predefineditem",
         "enum": [
            "PREDEFINED_ITEM_UNSPECIFIED",
            "FREQUENT_FLYER_PROGRAM_NAME_AND_NUMBER",
            "FLIGHT_NUMBER_AND_OPERATING_FLIGHT_NUMBER"
         ],
         "title": "PredefinedItem",
         "type": "string"
      }
   }
}

Fields:
field firstValue: FieldSelector | None = None#
field predefinedItem: PredefinedItem | None = None#
field secondValue: FieldSelector | None = None#