class Io::Flow::V0::Models::AvalaraTaxSetting
Attributes
api_key[R]
base_currency[R]
company_code[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::TaxSetting::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 31796 def initialize(incoming={}) super(:discriminator => TaxSetting::Types::AVALARA_TAX_SETTING) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:company_code, :base_currency], 'AvalaraTaxSetting') @company_code = HttpClient::Preconditions.assert_class('company_code', opts.delete(:company_code), String) @base_currency = HttpClient::Preconditions.assert_class('base_currency', opts.delete(:base_currency), String) @api_key = (x = opts.delete(:api_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('api_key', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31809 def copy(incoming={}) AvalaraTaxSetting.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 31813 def subtype_to_hash { :company_code => company_code, :base_currency => base_currency, :api_key => api_key } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 31805 def to_json JSON.dump(to_hash) end