Module: Peddler::Notifications::FeedProcessingFinished
- Defined in:
- lib/peddler/notifications/feed_processing_finished.rb,
lib/peddler/notifications/feed_processing_finished/payload.rb,
lib/peddler/notifications/feed_processing_finished/notification.rb,
lib/peddler/notifications/feed_processing_finished/feed_processing_finished_notification.rb
Overview
The root schema comprises the entire JSON document.
Constant Summary collapse
- Payload =
Notification payload that wraps nested notification data
Structure.new do # @return [FeedProcessingFinishedNotification] attribute(:feed_processing_finished_notification, FeedProcessingFinishedNotification, from: "feedProcessingFinishedNotification") end
- Notification =
The root schema comprises the entire JSON document.
Structure.new do # @return [String] The timestamp of the event, formatted as ISO 8601 date-time. attribute(:event_time, String, from: "eventTime") # @return [Hash] The metadata of the notification. attribute(:notification_metadata, Hash, from: "notificationMetadata") # @return [String] The type of the notification. attribute(:notification_type, String, from: "notificationType") # @return [String] The version of the notification. attribute(:notification_version, String, from: "notificationVersion") # @return [Payload] The details of this notification. attribute(:payload, Payload) # @return [String] The version of the payload. attribute(:payload_version, String, from: "payloadVersion") end
- FeedProcessingFinishedNotification =
Nested notification data
Structure.new do # @return [String] The merchant customer identifier or vendor group identifier of the selling partner account on # whose behalf the feed was submitted. attribute(:account_id, String, from: "accountId") # @return [String] The feed identifier. attribute(:feed_id, String, from: "feedId") # @return [String] The feed type. attribute(:feed_type, String, from: "feedType") # @return [String] The processing status of the feed. attribute(:processing_status, String, from: "processingStatus") # @return [String] The feed document identifier. This identifier is unique only in combination with a seller ID. attribute?(:result_feed_document_id, String, from: "resultFeedDocumentId") # @return [String] The merchant customer identifier of the selling partner account on whose behalf the feed was # submitted. This field will be null when the feed was submitted on behalf of a vendor group identifier. attribute?(:seller_id, String, from: "sellerId") end
Class Method Summary collapse
Class Method Details
.parse(hash) ⇒ Object
12 13 14 |
# File 'lib/peddler/notifications/feed_processing_finished.rb', line 12 def parse(hash) Notification.parse(hash) end |