class Io::Flow::V0::Models::TaxDutyQuoteFeeValue
Value of a fee associated with customs or import.
Attributes
amount[R]
amount_refundable_on_return[R]
description[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 69966 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:amount, :description, :amount_refundable_on_return], 'TaxDutyQuoteFeeValue') @amount = HttpClient::Preconditions.assert_class('amount', HttpClient::Helper.to_big_decimal(opts.delete(:amount)), BigDecimal) @description = HttpClient::Preconditions.assert_class('description', opts.delete(:description), String) @amount_refundable_on_return = HttpClient::Preconditions.assert_class('amount_refundable_on_return', HttpClient::Helper.to_big_decimal(opts.delete(:amount_refundable_on_return)), BigDecimal) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 69978 def copy(incoming={}) TaxDutyQuoteFeeValue.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 69982 def to_hash { :amount => amount.to_f.to_s, :description => description, :amount_refundable_on_return => amount_refundable_on_return.to_f.to_s } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 69974 def to_json JSON.dump(to_hash) end