class Io::Flow::V0::Models::UnharmonizedItemExportType

Export for items that require harmonization.

Attributes

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 72080
def initialize(incoming={})
  super(:discriminator => ExportType::Types::UNHARMONIZED_ITEM_EXPORT_TYPE)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  @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 72090
def copy(incoming={})
  UnharmonizedItemExportType.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 72094
def subtype_to_hash
  {
    :sort => sort
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 72086
def to_json
  JSON.dump(to_hash)
end