edutap.wallet_google.models.misc.AddMessageRequest#

pydantic model edutap.wallet_google.models.misc.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": {
            "kind": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": "walletobjects#walletObjectMessage",
               "deprecated": true,
               "description": "deprecated",
               "title": "Kind"
            },
            "id": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Id"
            },
            "messageType": {
               "$ref": "#/$defs/MessageType",
               "default": "MESSAGE_TYPE_UNSPECIFIED"
            },
            "displayInterval": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/TimeInterval"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "header": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Header"
            },
            "localizedHeader": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/LocalizedString"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "body": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null,
               "title": "Body"
            },
            "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": [
            "messageTypeUnspecified",
            "MESSAGE_TYPE_UNSPECIFIED",
            "text",
            "TEXT",
            "textAndNotify",
            "TEXT_AND_NOTIFY",
            "expirationNotification",
            "EXPIRATION_NOTIFICATION"
         ],
         "title": "MessageType",
         "type": "string"
      },
      "TimeInterval": {
         "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/TimeInterval",
         "properties": {
            "kind": {
               "anyOf": [
                  {
                     "type": "string"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": "walletobjects#timeInterval",
               "deprecated": true,
               "description": "deprecated",
               "title": "Kind"
            },
            "start": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/DateTime"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            },
            "end": {
               "anyOf": [
                  {
                     "$ref": "#/$defs/DateTime"
                  },
                  {
                     "type": "null"
                  }
               ],
               "default": null
            }
         },
         "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"
      }
   },
   "additionalProperties": false
}

Config:
  • extra: str = forbid

Fields:
field message: Message | None = None#