Module: Peddler::Notifications::MfnOrderStatusChange
- Defined in:
- lib/peddler/notifications/mfn_order_status_change.rb,
lib/peddler/notifications/mfn_order_status_change/payload.rb,
lib/peddler/notifications/mfn_order_status_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 [Hash] attribute(:mfn_order_status_change_notification, Hash, from: "MFNOrderStatusChangeNotification") 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/mfn_order_status_change.rb', line 12 def parse(hash) Notification.parse(hash) end |