Message

A message that will be displayed with a Valuable

JSON representation
{
  "kind": string,
  "header": string,
  "body": string,
  "displayInterval": {
    object (TimeInterval)
  },
  "id": string,
  "messageType": enum (MessageType),
  "localizedHeader": {
    object (LocalizedString)
  },
  "localizedBody": {
    object (LocalizedString)
  }
}
Fields
kind
(deprecated)

string

Identifies what kind of resource this is. Value: the fixed string "walletobjects#walletObjectMessage".

header

string

The message header.

body

string

The message body.

displayInterval

object (TimeInterval)

The period of time that the message will be displayed to users. You can define both a startTime and endTime for each message. A message is displayed immediately after a Wallet Object is inserted unless a startTime is set. The message will appear in a list of messages indefinitely if endTime is not provided.

id

string

The ID associated with a message. This field is here to enable ease of management of messages. Notice ID values could possibly duplicate across multiple messages in the same class/instance, and care must be taken to select a reasonable ID for each message.

messageType

enum (MessageType)

The type of the message. Currently, this can only be set for offers.

localizedHeader

object (LocalizedString)

Translated strings for the message header.

localizedBody

object (LocalizedString)

Translated strings for the message body.

MessageType

Enums
MESSAGE_TYPE_UNSPECIFIED
TEXT Renders the message as text on the card details screen. This is the default message type.
text

Legacy alias for TEXT. Deprecated.

EXPIRATION_NOTIFICATION Notification to display for an offer expiration. The displayInterval.start.date sets the time the notification will appear. It can be set up to 30 days prior to the expiration date. If a time span greater than this is specified, then the notification will trigger at the 30 day mark.
expirationNotification

Legacy alias for EXPIRATION_NOTIFICATION. Deprecated.