Class: Io::Flow::V0::Models::ExperiencePriceBookMappingUpserted
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#experience_price_book_mapping ⇒ Object
readonly
Returns the value of attribute experience_price_book_mapping.
-
#organization ⇒ Object
readonly
Returns the value of attribute organization.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from Event
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperiencePriceBookMappingUpserted
constructor
A new instance of ExperiencePriceBookMappingUpserted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ ExperiencePriceBookMappingUpserted
Returns a new instance of ExperiencePriceBookMappingUpserted.
31910 31911 31912 31913 31914 31915 31916 31917 31918 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31910 def initialize(incoming={}) super(:discriminator => Event::Types::EXPERIENCE_PRICE_BOOK_MAPPING_UPSERTED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization, :experience_price_book_mapping], 'ExperiencePriceBookMappingUpserted') @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String) = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime) @organization = HttpClient::Preconditions.assert_class('organization', opts.delete(:organization), String) @experience_price_book_mapping = (x = opts.delete(:experience_price_book_mapping); x.is_a?(::Io::Flow::V0::Models::ExperiencePriceBookMapping) ? x : ::Io::Flow::V0::Models::ExperiencePriceBookMapping.new(x)) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
31908 31909 31910 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31908 def event_id @event_id end |
#experience_price_book_mapping ⇒ Object (readonly)
Returns the value of attribute experience_price_book_mapping.
31908 31909 31910 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31908 def experience_price_book_mapping @experience_price_book_mapping end |
#organization ⇒ Object (readonly)
Returns the value of attribute organization.
31908 31909 31910 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31908 def organization @organization end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
31908 31909 31910 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31908 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
31924 31925 31926 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31924 def copy(incoming={}) ExperiencePriceBookMappingUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
31928 31929 31930 31931 31932 31933 31934 31935 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31928 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization => organization, :experience_price_book_mapping => experience_price_book_mapping.to_hash } end |
#to_json ⇒ Object
31920 31921 31922 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 31920 def to_json JSON.dump(to_hash) end |