class Io::Flow::V0::Models::HarmonizationOverviewExportType
Exports HS10 code overview details
Attributes
destination[R]
origin[R]
sort[R]
Public Class Methods
new(incoming={})
click to toggle source
Calls superclass method
Io::Flow::V0::Models::ExportType::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 44527 def initialize(incoming={}) super(:discriminator => ExportType::Types::HARMONIZATION_OVERVIEW_EXPORT_TYPE) opts = HttpClient::Helper.symbolize_keys(incoming) @origin = (x = opts.delete(:origin); x.nil? ? nil : HttpClient::Preconditions.assert_class('origin', x, String)) @destination = (x = opts.delete(:destination); x.nil? ? nil : HttpClient::Preconditions.assert_class('destination', x, String)) @sort = (x = opts.delete(:sort); x.nil? ? nil : HttpClient::Preconditions.assert_class('sort', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 44539 def copy(incoming={}) HarmonizationOverviewExportType.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 44543 def subtype_to_hash { :origin => origin, :destination => destination, :sort => sort } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 44535 def to_json JSON.dump(to_hash) end