class Io::Flow::V0::Models::OrderQuoteGeoPutForm
Provides options that may be used to configure how a order_quote is rendered for a customer, such as currency and language.
Attributes
country[R]
currency[R]
ip[R]
language[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53078 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @country = (x = opts.delete(:country); x.nil? ? nil : HttpClient::Preconditions.assert_class('country', x, String)) @ip = (x = opts.delete(:ip); x.nil? ? nil : HttpClient::Preconditions.assert_class('ip', x, String)) @currency = (x = opts.delete(:currency); x.nil? ? nil : HttpClient::Preconditions.assert_class('currency', x, String)) @language = (x = opts.delete(:language); x.nil? ? nil : HttpClient::Preconditions.assert_class('language', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53090 def copy(incoming={}) OrderQuoteGeoPutForm.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 53094 def to_hash { :country => country, :ip => ip, :currency => currency, :language => language } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53086 def to_json JSON.dump(to_hash) end