edutap.wallet_google.models.primitives.notification.AddMessageRequest#

pydantic model edutap.wallet_google.models.primitives.notification.AddMessageRequest#

see: https://developers.google.com/wallet/tickets/events/rest/v1/AddMessageRequest

Show JSON schema
{
   "title": "AddMessageRequest",
   "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/AddMessageRequest",
   "type": "object",
   "properties": {
      "message": {
         "anyOf": [
            {
               "$ref": "#/$defs/Message"
            },
            {
               "type": "null"
            }
         ],
         "default": null
      }
   },
   "$defs": {
      "DateTime": {
         "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/DateTime",
         "properties": {
            "date": {
               "format": "date-time",
               "title": "Date",
               "type": "string"
            }
         },
         "required": [
            "date"
         ],
         "title": "DateTime",
         "type": "object"
      },
      "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"
      },
      "Message": {
         "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/Message",
         "properties": {
            "header": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Header"
            },
            "body": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Body"
            },
            "displayInterval": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/TimeInterval"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "id": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Id"
            },
            "messageType": {
               "allOf": [
                  {
                     "$ref": "#/$defs/MessageType"
                  }
               ],
               "default": "MESSAGE_TYPE_UNSPECIFIED"
            },
            "localizedHeader": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/LocalizedString"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "localizedBody": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/LocalizedString"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            }
         },
         "title": "Message",
         "type": "object"
      },
      "MessageType": {
         "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/Message#messagetype",
         "enum": [
            "MESSAGE_TYPE_UNSPECIFIED",
            "TEXT",
            "EXPIRATION_NOTIFICATION"
         ],
         "title": "MessageType",
         "type": "string"
      },
      "TimeInterval": {
         "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/TimeInterval",
         "properties": {
            "start": {
               "$ref": "#/$defs/DateTime"
            },
            "end": {
               "$ref": "#/$defs/DateTime"
            }
         },
         "required": [
            "start",
            "end"
         ],
         "title": "TimeInterval",
         "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 message: Message | None = None#