# frozen_string_literal: true

# This file is generated. Do not edit.

require "peddler/notifications/b2b_any_offer_changed/payload"

module Peddler
  module Notifications
    module B2bAnyOfferChanged
      # Notification envelope with metadata
      Notification = Structure.new do
        # @return [String] The date and time in ISO 8601 format in UTC time that the event which triggered the
        # notification occurred.
        attribute(:event_time, String, from: "eventTime")

        # @return [String]
        attribute(:notification_metadata, String, from: "notificationMetadata")

        # @return [String] The notification type. Combined with the payload version this controls the structure of the
        # payload object.
        attribute(:notification_type, String, from: "notificationType")

        # @return [String] The notification version. This controls the structure of the notification.
        attribute(:notification_version, String, from: "notificationVersion")

        # @return [Payload]
        attribute(:payload, Payload)

        # @return [String] The payload version. Combined with the notification type this controls the structure of the
        # payload object.
        attribute(:payload_version, String, from: "payloadVersion")
      end
    end
  end
end
