class Io::Flow::V0::Models::OrderOptions
Optional behaviors to enable for this order
Attributes
storage[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52582 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @storage = (x = (x = opts.delete(:storage); x.nil? ? "persist" : x); x.is_a?(::Io::Flow::V0::Models::OrderStorage) ? x : ::Io::Flow::V0::Models::OrderStorage.apply(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52591 def copy(incoming={}) OrderOptions.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52595 def to_hash { :storage => storage.value } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 52587 def to_json JSON.dump(to_hash) end