class Io::Flow::V0::Models::OrderQuotePriceEstimated
Attributes
amount[R]
currency[R]
label[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::OrderQuotePrice::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 53215 def initialize(incoming={}) super(:discriminator => OrderQuotePrice::Types::ORDER_QUOTE_PRICE_ESTIMATED) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:amount, :currency, :label], 'OrderQuotePriceEstimated') @amount = HttpClient::Preconditions.assert_class('amount', opts.delete(:amount), Numeric) @currency = HttpClient::Preconditions.assert_class('currency', opts.delete(:currency), String) @label = HttpClient::Preconditions.assert_class('label', opts.delete(:label), String) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53228 def copy(incoming={}) OrderQuotePriceEstimated.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
subtype_to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53232 def subtype_to_hash { :amount => amount, :currency => currency, :label => label } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 53224 def to_json JSON.dump(to_hash) end