Module: Peddler::Notifications::DetailPageTrafficEvent
- Defined in:
- lib/peddler/notifications/detail_page_traffic_event.rb,
lib/peddler/notifications/detail_page_traffic_event/payload.rb,
lib/peddler/notifications/detail_page_traffic_event/notification.rb,
lib/peddler/notifications/detail_page_traffic_event/notification_metadata.rb,
lib/peddler/notifications/detail_page_traffic_event/detail_page_traffic_event.rb,
lib/peddler/notifications/detail_page_traffic_event/detail_page_traffic_events.rb
Overview
The root schema comprises the entire JSON document.
Defined Under Namespace
Classes: DetailPageTrafficEvents
Constant Summary collapse
- Payload =
Notification payload data
Structure.new do # @return [Array<DetailPageTrafficEvent>] attribute(:detail_page_traffic_events, [DetailPageTrafficEvent], from: "detailPageTrafficEvents") end
- Notification =
The root schema comprises the entire JSON document.
Structure.new do # @return [String] attribute(:event_time, String, from: "eventTime") # @return [String] attribute(:notification_metadata, String, from: "notificationMetadata") # @return [String] attribute(:notification_type, String, from: "notificationType") # @return [String] attribute(:notification_version, String, from: "notificationVersion") # @return [Payload] attribute(:payload, Payload) # @return [String] attribute(:payload_version, String, from: "payloadVersion") end
- NotificationMetadata =
Structure.new do # @return [String] attribute(:application_id, String, from: "applicationId") # @return [String] attribute(:notification_id, String, from: "notificationId") # @return [String] attribute(:publish_time, String, from: "publishTime") # @return [String] attribute(:subscription_id, String, from: "subscriptionId") end
- DetailPageTrafficEvent =
Structure.new do # @return [String] The merchant customer ID or vendor group ID of the partner account this notification is sent # to. attribute(:account_id, String, from: "accountId") # @return [String] The Amazon Standard Identification Number of the product. attribute(:asin, String) # @return [Time] The end of the date-time range of the traffic data in ISO 8601 format in UTC time. attribute(:end_time, Time, from: "endTime") # @return [Integer] The number of customer views of the product detail page for this ASIN. attribute(:glance_views, Integer, from: "glanceViews") # @return [String] The marketplace identifier of the traffic data. attribute(:marketplace_id, String, from: "marketplaceId") # @return [Time] The start of the date-time range of the traffic data in ISO 8601 format in UTC time. attribute(:start_time, Time, from: "startTime") end
Class Method Summary collapse
Class Method Details
.parse(hash) ⇒ Object
12 13 14 |
# File 'lib/peddler/notifications/detail_page_traffic_event.rb', line 12 def parse(hash) Notification.parse(hash) end |