Class: Io::Flow::V0::Models::ShippingConfigurationItemShippingPricingDeleted
- Inherits:
-
Event
- Object
- Event
- Io::Flow::V0::Models::ShippingConfigurationItemShippingPricingDeleted
- 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_shipping_pricing ⇒ Object
readonly
Returns the value of attribute shipping_configuration_item_shipping_pricing.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Attributes inherited from Event
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ShippingConfigurationItemShippingPricingDeleted
constructor
A new instance of ShippingConfigurationItemShippingPricingDeleted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ ShippingConfigurationItemShippingPricingDeleted
Returns a new instance of ShippingConfigurationItemShippingPricingDeleted.
49663 49664 49665 49666 49667 49668 49669 49670 49671 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49663 def initialize(incoming={}) super(:discriminator => Event::Types::SHIPPING_CONFIGURATION_ITEM_SHIPPING_PRICING_DELETED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :shipping_configuration_item_shipping_pricing], 'ShippingConfigurationItemShippingPricingDeleted') @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_id = HttpClient::Preconditions.assert_class('organization_id', opts.delete(:organization_id), String) @shipping_configuration_item_shipping_pricing = (x = opts.delete(:shipping_configuration_item_shipping_pricing); x.is_a?(::Io::Flow::V0::Models::ShippingConfigurationItemShippingPricing) ? x : ::Io::Flow::V0::Models::ShippingConfigurationItemShippingPricing.new(x)) end |
Instance Attribute Details
#event_id ⇒ Object (readonly)
Returns the value of attribute event_id.
49661 49662 49663 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49661 def event_id @event_id end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
49661 49662 49663 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49661 def organization_id @organization_id end |
#shipping_configuration_item_shipping_pricing ⇒ Object (readonly)
Returns the value of attribute shipping_configuration_item_shipping_pricing.
49661 49662 49663 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49661 def shipping_configuration_item_shipping_pricing @shipping_configuration_item_shipping_pricing end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
49661 49662 49663 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49661 def end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
49677 49678 49679 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49677 def copy(incoming={}) ShippingConfigurationItemShippingPricingDeleted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
49681 49682 49683 49684 49685 49686 49687 49688 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49681 def subtype_to_hash { :event_id => event_id, :timestamp => , :organization_id => organization_id, :shipping_configuration_item_shipping_pricing => shipping_configuration_item_shipping_pricing.to_hash } end |
#to_json ⇒ Object
49673 49674 49675 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 49673 def to_json JSON.dump(to_hash) end |