Module: ErpTools::Event::V0::Base
- Included in:
- Customer, Item, PurchaseOrder, PurchaseOrderRefund, SalesOrder, SalesOrderRefund
- Defined in:
- lib/erp_tools/event/v0/base.rb
Overview
A collection of methods for specifying the correct payload envelope to EventBridge when communicating with the ERP > Item.source #=> ‘mms.Item’ > Item.detail_types #=> [:upsert] > Item.detail_type :upsert #=> “upsertItem” > Item.detail_type :create ErpTools::Event::UnsupportedEvent (key not found: :create) > Item.payload_version #=> “0”
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- PAYLOAD_VERSION =
'0'
Class Method Summary collapse
Class Method Details
.included(other) ⇒ Object
21 22 23 |
# File 'lib/erp_tools/event/v0/base.rb', line 21 def self.included(other) other.extend ClassMethods end |