Module: Peddler::Notifications::ListingsItemIssuesChange
- Defined in:
- lib/peddler/notifications/listings_item_issues_change.rb,
lib/peddler/notifications/listings_item_issues_change/payload.rb,
lib/peddler/notifications/listings_item_issues_change/notification.rb
Overview
Listings Item Issues Change Notification
To be delivered when issues are created, changed, or resolved for a listings item.
Constant Summary collapse
- Payload =
Notification payload data
Structure.new do # @return [String] Selling partner identifier, such as a merchant account or vendor code, of the affected # listings item. attribute(:seller_id, String, from: "SellerId") # @return [Array<String>] Array of severities for the issues currently associated with the affected listings # item. When no issues are affecting the listings item, "NONE" is provided instead. attribute(:severities, [String], from: "Severities") # @return [String] Identifier of the affected listings item. attribute(:sku, String, from: "Sku") # @return [String] The Amazon Standard Identification Number (ASIN) identifier of the catalog item associated # with the listings item. attribute?(:asin, String, from: "Asin") # @return [Array<String>] Array of enforcement actions taken by Amazon for the issues associated with the # affected listings item. attribute?(:enforcement_actions, [String], from: "EnforcementActions") # @return [String] Amazon marketplace identifier of the affected listings item. attribute?(:marketplace_id, String, from: "MarketplaceId") end
- Notification =
To be delivered when issues are created, changed, or resolved for a listings item.
Structure.new do # @return [Time] Timestamp of the event, formatted as ISO8601 date-time. attribute(:event_time, Time, 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, from: "Payload") # @return [String] The version of the payload. attribute(:payload_version, String, from: "PayloadVersion") end
Class Method Summary collapse
Class Method Details
.parse(hash) ⇒ Object
12 13 14 |
# File 'lib/peddler/notifications/listings_item_issues_change.rb', line 12 def parse(hash) Notification.parse(hash) end |