Module: Peddler::Notifications::ListingsItemMfnQuantityChange
- Defined in:
- lib/peddler/notifications/listings_item_mfn_quantity_change.rb,
lib/peddler/notifications/listings_item_mfn_quantity_change/payload.rb,
lib/peddler/notifications/listings_item_mfn_quantity_change/notification.rb
Overview
Listings Item MFN Quantity Change Notification
To be delivered when the inventory quantity of a MFN Seller listing changes.
Constant Summary collapse
- Payload =
Notification payload data
Structure.new do # @return [String] The Fulfillment channel code representing the MFN (seller-fulfilled) fulfillment program, # network, or channel where the quantity is applicable. attribute(:fulfillment_channel_code, String, from: "FulfillmentChannelCode") # @return [Integer] The available quantity for MFN (seller-fulfillment) with the fulfillment program, network, # or channel. attribute(:quantity, Integer, from: "Quantity") # @return [String] Selling partner identifier, such as a merchant ID, of the affected listings item. attribute(:seller_id, String, from: "SellerId") # @return [String] A selling partner provided identifier for an Amazon listing. attribute(:sku, String, from: "Sku") end
- Notification =
To be delivered when the inventory quantity of a MFN Seller listing changes.
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_mfn_quantity_change.rb', line 12 def parse(hash) Notification.parse(hash) end |