Class: Io::Flow::V0::Models::ExperienceCheckoutSettings
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ExperienceCheckoutSettings
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#checkout_configuration ⇒ Object
readonly
Returns the value of attribute checkout_configuration.
-
#experience ⇒ Object
readonly
Returns the value of attribute experience.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ExperienceCheckoutSettings
constructor
A new instance of ExperienceCheckoutSettings.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ExperienceCheckoutSettings
Returns a new instance of ExperienceCheckoutSettings.
27160 27161 27162 27163 27164 27165 27166 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27160 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id, :experience, :checkout_configuration], 'ExperienceCheckoutSettings') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @experience = (x = opts.delete(:experience); x.is_a?(::Io::Flow::V0::Models::ExperienceOverview) ? x : ::Io::Flow::V0::Models::ExperienceOverview.new(x)) @checkout_configuration = (x = opts.delete(:checkout_configuration); x.is_a?(::Io::Flow::V0::Models::ExperienceConfigurationReference) ? x : ::Io::Flow::V0::Models::ExperienceConfigurationReference.new(x)) end |
Instance Attribute Details
#checkout_configuration ⇒ Object (readonly)
Returns the value of attribute checkout_configuration.
27158 27159 27160 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27158 def checkout_configuration @checkout_configuration end |
#experience ⇒ Object (readonly)
Returns the value of attribute experience.
27158 27159 27160 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27158 def experience @experience end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
27158 27159 27160 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27158 def id @id end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
27172 27173 27174 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27172 def copy(incoming={}) ExperienceCheckoutSettings.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
27176 27177 27178 27179 27180 27181 27182 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27176 def to_hash { :id => id, :experience => experience.to_hash, :checkout_configuration => checkout_configuration.to_hash } end |
#to_json ⇒ Object
27168 27169 27170 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27168 def to_json JSON.dump(to_hash) end |