edutap.wallet_google.models.primitives.notification.Message#
- pydantic model edutap.wallet_google.models.primitives.notification.Message#
see: https://developers.google.com/wallet/tickets/events/rest/v1/Message
Show JSON schema
{ "title": "Message", "description": "see: https://developers.google.com/wallet/tickets/events/rest/v1/Message", "type": "object", "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 } }, "$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" }, "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:
displayInterval (edutap.wallet_google.models.primitives.datetime.TimeInterval | None)
localizedBody (edutap.wallet_google.models.primitives.localized_string.LocalizedString | None)
localizedHeader (edutap.wallet_google.models.primitives.localized_string.LocalizedString | None)
messageType (edutap.wallet_google.models.primitives.enums.MessageType)
- field body: str | None = None#
- field displayInterval: TimeInterval | None = None#
- field header: str | None = None#
- field id: str | None = None#
- field localizedBody: LocalizedString | None = None#
- field localizedHeader: LocalizedString | None = None#
- field messageType: MessageType = MessageType.MESSAGE_TYPE_UNSPECIFIED#