Class: Io::Flow::V0::Models::Event
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::Event
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Direct Known Subclasses
AuthorizationDeleted, AuthorizationUpserted, CaptureUpserted, CardDeleted, CardUpserted, CatalogDeleted, CatalogItemDeleted, CatalogItemUpserted, CatalogUpserted, ContractedRateUpserted, EventUndefinedType, ExperienceDeleted, ExperienceUpserted, FlowCurrencySettingDeleted, FlowCurrencySettingUpserted, Hs10CodeDeleted, Hs10CodeUpserted, Hs6CodeDeleted, Hs6CodeUpserted, ItemMarginDeleted, ItemMarginUpserted, LabelUpserted, LocalizedItemDeleted, LocalizedItemSnapshot, LocalizedItemUpserted, OrderBookingDeleted, OrderBookingUpserted, OrderDeleted, OrderUpserted, OrganizationCurrencySettingDeleted, OrganizationCurrencySettingUpserted, OrganizationDeleted, OrganizationUpserted, RateDeleted, RateUpserted, RefundUpserted, SpotRateDeleted, SpotRateUpserted, SubcatalogDeleted, SubcatalogItemDeleted, SubcatalogItemUpserted, SubcatalogUpserted, TrackingLabelEventUpserted
Defined Under Namespace
Modules: Types
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(incoming = {}) ⇒ Event
constructor
A new instance of Event.
- #to_hash ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ Event
Returns a new instance of Event.
3768 3769 3770 3771 3772 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 3768 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:name], 'Event') @name = HttpClient::Preconditions.assert_class('name', opts.delete(:name), String) end |
Class Method Details
.from_json(hash) ⇒ Object
Instance Method Details
#to_hash ⇒ Object
3774 3775 3776 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 3774 def to_hash subtype_to_hash.merge(:discriminator => @name) end |