Class: Io::Flow::V0::Models::ShippingConfigurationItemAvailabilityDeleted
- Inherits:
-
Event
- Object
- Event
- Io::Flow::V0::Models::ShippingConfigurationItemAvailabilityDeleted
- 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.
-
#organization_id ⇒ Object
readonly
Returns the value of attribute organization_id.
-
#shipping_configuration_item_availability ⇒ Object
readonly
Returns the value of attribute shipping_configuration_item_availability.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from Event
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShippingConfigurationItemAvailabilityDeleted
constructor
A new instance of ShippingConfigurationItemAvailabilityDeleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ ShippingConfigurationItemAvailabilityDeleted
Returns a new instance of ShippingConfigurationItemAvailabilityDeleted.
66123 66124 66125 66126 66127 66128 66129 66130 66131 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66123 def initialize(incoming={}) super(:discriminator => Event::Types::SHIPPING_CONFIGURATION_ITEM_AVAILABILITY_DELETED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :shipping_configuration_item_availability], 'ShippingConfigurationItemAvailabilityDeleted') @event_id = HttpClient::Preconditions.assert_class('event_id', opts.delete(:event_id), String) @timestamp = HttpClient::Preconditions.assert_class('timestamp', HttpClient::Helper.to_date_time_iso8601(opts.delete(:timestamp)), DateTime) @organization_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String) @shipping_configuration_item_availability = (x = opts.delete(:shipping_configuration_item_availability); x.is_a?(::Io::Flow::V0::Models::ShippingConfigurationItemAvailability) ? x : ::Io::Flow::V0::Models::ShippingConfigurationItemAvailability.new(x)) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
66121 66122 66123 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66121 def event_id @event_id end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
66121 66122 66123 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66121 def organization_id @organization_id end |
#shipping_configuration_item_availability ⇒ Object (readonly)
Returns the value of attribute shipping_configuration_item_availability.
66121 66122 66123 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66121 def shipping_configuration_item_availability @shipping_configuration_item_availability end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
66121 66122 66123 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66121 def @timestamp end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
66137 66138 66139 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66137 def copy(incoming={}) ShippingConfigurationItemAvailabilityDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
66141 66142 66143 66144 66145 66146 66147 66148 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66141 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization_id => organization_id, :shipping_configuration_item_availability => shipping_configuration_item_availability.to_hash } end |
#to_json ⇒ Object
66133 66134 66135 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66133 def to_json JSON.dump(to_hash) end |