Module: Peddler::Notifications::FBAOutboundShipmentStatus

Defined in:
lib/peddler/notifications/fba_outbound_shipment_status.rb,
lib/peddler/notifications/fba_outbound_shipment_status/payload.rb,
lib/peddler/notifications/fba_outbound_shipment_status/notification.rb,
lib/peddler/notifications/fba_outbound_shipment_status/fba_outbound_shipment_status_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 [FBAOutboundShipmentStatusNotification]
  attribute(:fba_outbound_shipment_status_notification, FBAOutboundShipmentStatusNotification, from: "FBAOutboundShipmentStatusNotification")
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
FBAOutboundShipmentStatusNotification =

Nested notification data

Structure.new do
  # @return [String]
  attribute(:amazon_order_id, String, from: "AmazonOrderId")

  # @return [String]
  attribute(:amazon_shipment_id, String, from: "AmazonShipmentId")

  # @return [String]
  attribute(:seller_id, String, from: "SellerId")

  # @return [String]
  attribute(:shipment_status, String, from: "ShipmentStatus")
end

Class Method Summary collapse

Class Method Details

.parse(hash) ⇒ Object



12
13
14
# File 'lib/peddler/notifications/fba_outbound_shipment_status.rb', line 12

def parse(hash)
  Notification.parse(hash)
end