Class: Io::Flow::V0::Models::ShippingConfigurationItemShippingPricingUpserted
- Inherits:
-
Event
- Object
- Event
- Io::Flow::V0::Models::ShippingConfigurationItemShippingPricingUpserted
- 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 = {}) ⇒ ShippingConfigurationItemShippingPricingUpserted
constructor
A new instance of ShippingConfigurationItemShippingPricingUpserted.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from Event
Constructor Details
#initialize(incoming = {}) ⇒ ShippingConfigurationItemShippingPricingUpserted
Returns a new instance of ShippingConfigurationItemShippingPricingUpserted.
66256 66257 66258 66259 66260 66261 66262 66263 66264 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66256 def initialize(incoming={}) super(:discriminator => Event::Types::SHIPPING_CONFIGURATION_ITEM_SHIPPING_PRICING_UPSERTED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:event_id, :timestamp, :organization_id, :shipping_configuration_item_shipping_pricing], 'ShippingConfigurationItemShippingPricingUpserted') @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_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.
66254 66255 66256 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66254 def event_id @event_id end |
#organization_id ⇒ Object (readonly)
Returns the value of attribute organization_id.
66254 66255 66256 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66254 def organization_id @organization_id end |
#shipping_configuration_item_shipping_pricing ⇒ Object (readonly)
Returns the value of attribute shipping_configuration_item_shipping_pricing.
66254 66255 66256 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66254 def shipping_configuration_item_shipping_pricing @shipping_configuration_item_shipping_pricing end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
66254 66255 66256 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66254 def @timestamp end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
66270 66271 66272 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66270 def copy(incoming={}) ShippingConfigurationItemShippingPricingUpserted.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
66274 66275 66276 66277 66278 66279 66280 66281 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66274 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
66266 66267 66268 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 66266 def to_json JSON.dump(to_hash) end |