Module: Peddler::Notifications::ItemProductTypeChange
- Defined in:
- lib/peddler/notifications/item_product_type_change.rb,
lib/peddler/notifications/item_product_type_change/payload.rb,
lib/peddler/notifications/item_product_type_change/notification.rb
Overview
The root schema
The root schema comprises the entire JSON document.
Constant Summary collapse
- Payload =
Notification payload data
Structure.new do # @return [String] attribute(:asin, String, from: "Asin") # @return [String] attribute(:current_product_type, String, from: "CurrentProductType") # @return [String] attribute(:marketplace_id, String, from: "MarketplaceId") # @return [String] attribute(:previous_product_type, String, from: "PreviousProductType") end
- Notification =
The root schema comprises the entire JSON document.
Structure.new do # @return [String] attribute(:event_time, String, from: "EventTime") # @return [Hash] attribute(:notification_metadata, Hash, from: "NotificationMetadata") # @return [String] attribute(:notification_type, String, from: "NotificationType") # @return [String] attribute(:notification_version, String, from: "NotificationVersion") # @return [Payload] attribute(:payload, Payload, from: "Payload") # @return [String] attribute(:payload_version, String, from: "PayloadVersion") end
Class Method Summary collapse
Class Method Details
.parse(hash) ⇒ Object
12 13 14 |
# File 'lib/peddler/notifications/item_product_type_change.rb', line 12 def parse(hash) Notification.parse(hash) end |