class UltracartClient::ItemEbay

Attributes

active[RW]

True if the item is active for listing

category_id[RW]

e-Bay category ID

category_specifics[RW]

Answers to category specific questions

condition_description[RW]

Description of the condition (e-Bay constant)

condition_id[RW]

Numerical ID of the condition (e-Bay constant)

consecutive_failures[RW]

Number of consecutive failures trying to list this item

custom_category1[RW]

e-Bay Store category 1

custom_category2[RW]

e-Bay Store category 2

dispatch_time_max[RW]

Maximum number of days it will take to ship the item

domestic_1_additional_cost[RW]

Domestic 1 method additional item cost

domestic_1_first_cost[RW]

Domestic 1 method first item cost

domestic_2_additional_cost[RW]

Domestic 2 method additional item cost

domestic_2_first_cost[RW]

Domestic 2 method first item cost

domestic_3_additional_cost[RW]

Domestic 3 method additional item cost

domestic_3_first_cost[RW]

Domestic 3 method first item cost

domestic_4_additional_cost[RW]

Domestic 4 method additional item cost

domestic_4_first_cost[RW]

Domestic 4 method first item cost

ebay_auction_id[RW]

If listed, this is the e-Bay auction id

ebay_specific_inventory[RW]

e-Bay specific inventory

ebay_template_name[RW]

The template name to use hwen rendering the e-Bay listing

ebay_template_oid[RW]

The template object identifier to use when rendering the e-Bay listing

end_time[RW]

Date/time of the auction end

free_shipping[RW]

True if item receives free shipping

free_shipping_method[RW]

The method that is free for free shipping

international_1_additional_cost[RW]

International 1 method additional item cost

international_1_first_cost[RW]

International 1 method first item cost

international_2_additional_cost[RW]

International 2 method additional item cost

international_2_first_cost[RW]

International 2 method first item cost

international_3_additional_cost[RW]

International 3 method additional item cost

international_3_first_cost[RW]

International 3 method first item cost

international_4_additional_cost[RW]

International 4 method additional item cost

international_4_first_cost[RW]

International 4 method first item cost

last_status_dts[RW]

Date/time of the last status check

listed_dispatch_time_max[RW]

Current listing dispatch time maximum

listed_ebay_template_oid[RW]

The template object identifier used for the listing

listing_dts[RW]

Date/time of the listing

listing_duration[RW]

The duration of the listing

listing_price[RW]

Price to list the item at

listing_price_override[RW]

The price to list the item at if different than the regular UltraCart item price

listing_type[RW]

The type of e-Bay listing

marketplace_analysis[RW]
marketplace_analysis_perform[RW]

True if marketplace analysis should be performed

marketplace_final_value_fee_percentage[RW]

Marketplace FVF percentage

marketplace_last_check_dts[RW]

Date/time of the marketplace analysis last check

marketplace_lowest[RW]

True if we are the lowest offer in the marketplace

marketplace_map_violation[RW]

True if another seller is violating MAP

marketplace_multiplier[RW]

Marketplace multiplier

marketplace_other_price[RW]

Marketplace other price

marketplace_other_seller[RW]

Marketplace other seller

marketplace_other_shipping[RW]

Marketplace other shipping

marketplace_other_total[RW]

Marketplace other total

marketplace_our_additional_profit_potential[RW]

Marketplace our additional profit potential

marketplace_our_price[RW]

Marketplace our price

marketplace_our_profit[RW]

Marketplace our profit

marketplace_our_shipping[RW]

Marketplace our shipping

marketplace_our_total[RW]

Marketplace our total

marketplace_overhead[RW]

Marketplace overhead

marketplace_profitable[RW]

True if our listing is profitable to sell

next_attempt_dts[RW]

Date/time for the next attempt to list

next_listing_duration[RW]

The next listing duration to use when the current listing ends.

no_promotional_shipping[RW]

True if the item should not qualify for promotional shipping

packaging_handling_costs[RW]

Packaging and handling costs

previous_ebay_auction_id[RW]

Previous e-Bay auction id

quantity[RW]

Quantity available of the item

reserve_price[RW]

Reserve price

send_dimensions_and_weight[RW]

How to send the item dimensions and weights to e-Bay

start_time[RW]

Date/time of the auction start

status[RW]

Status of the item's listing

target_dispatch_time_max[RW]

Typical number of days it will take to ship the item

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/ultracart_api/models/item_ebay.rb, line 224
def self.attribute_map
  {
    :'active' => :'active',
    :'category_id' => :'category_id',
    :'category_specifics' => :'category_specifics',
    :'condition_description' => :'condition_description',
    :'condition_id' => :'condition_id',
    :'consecutive_failures' => :'consecutive_failures',
    :'custom_category1' => :'custom_category1',
    :'custom_category2' => :'custom_category2',
    :'dispatch_time_max' => :'dispatch_time_max',
    :'domestic_1_additional_cost' => :'domestic_1_additional_cost',
    :'domestic_1_first_cost' => :'domestic_1_first_cost',
    :'domestic_2_additional_cost' => :'domestic_2_additional_cost',
    :'domestic_2_first_cost' => :'domestic_2_first_cost',
    :'domestic_3_additional_cost' => :'domestic_3_additional_cost',
    :'domestic_3_first_cost' => :'domestic_3_first_cost',
    :'domestic_4_additional_cost' => :'domestic_4_additional_cost',
    :'domestic_4_first_cost' => :'domestic_4_first_cost',
    :'ebay_auction_id' => :'ebay_auction_id',
    :'ebay_specific_inventory' => :'ebay_specific_inventory',
    :'ebay_template_name' => :'ebay_template_name',
    :'ebay_template_oid' => :'ebay_template_oid',
    :'end_time' => :'end_time',
    :'free_shipping' => :'free_shipping',
    :'free_shipping_method' => :'free_shipping_method',
    :'international_1_additional_cost' => :'international_1_additional_cost',
    :'international_1_first_cost' => :'international_1_first_cost',
    :'international_2_additional_cost' => :'international_2_additional_cost',
    :'international_2_first_cost' => :'international_2_first_cost',
    :'international_3_additional_cost' => :'international_3_additional_cost',
    :'international_3_first_cost' => :'international_3_first_cost',
    :'international_4_additional_cost' => :'international_4_additional_cost',
    :'international_4_first_cost' => :'international_4_first_cost',
    :'last_status_dts' => :'last_status_dts',
    :'listed_dispatch_time_max' => :'listed_dispatch_time_max',
    :'listed_ebay_template_oid' => :'listed_ebay_template_oid',
    :'listing_dts' => :'listing_dts',
    :'listing_duration' => :'listing_duration',
    :'listing_price' => :'listing_price',
    :'listing_price_override' => :'listing_price_override',
    :'listing_type' => :'listing_type',
    :'marketplace_analysis' => :'marketplace_analysis',
    :'marketplace_analysis_perform' => :'marketplace_analysis_perform',
    :'marketplace_final_value_fee_percentage' => :'marketplace_final_value_fee_percentage',
    :'marketplace_last_check_dts' => :'marketplace_last_check_dts',
    :'marketplace_lowest' => :'marketplace_lowest',
    :'marketplace_map_violation' => :'marketplace_map_violation',
    :'marketplace_multiplier' => :'marketplace_multiplier',
    :'marketplace_other_price' => :'marketplace_other_price',
    :'marketplace_other_seller' => :'marketplace_other_seller',
    :'marketplace_other_shipping' => :'marketplace_other_shipping',
    :'marketplace_other_total' => :'marketplace_other_total',
    :'marketplace_our_additional_profit_potential' => :'marketplace_our_additional_profit_potential',
    :'marketplace_our_price' => :'marketplace_our_price',
    :'marketplace_our_profit' => :'marketplace_our_profit',
    :'marketplace_our_shipping' => :'marketplace_our_shipping',
    :'marketplace_our_total' => :'marketplace_our_total',
    :'marketplace_overhead' => :'marketplace_overhead',
    :'marketplace_profitable' => :'marketplace_profitable',
    :'next_attempt_dts' => :'next_attempt_dts',
    :'next_listing_duration' => :'next_listing_duration',
    :'no_promotional_shipping' => :'no_promotional_shipping',
    :'packaging_handling_costs' => :'packaging_handling_costs',
    :'previous_ebay_auction_id' => :'previous_ebay_auction_id',
    :'quantity' => :'quantity',
    :'reserve_price' => :'reserve_price',
    :'send_dimensions_and_weight' => :'send_dimensions_and_weight',
    :'start_time' => :'start_time',
    :'status' => :'status',
    :'target_dispatch_time_max' => :'target_dispatch_time_max'
  }
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

# File lib/ultracart_api/models/item_ebay.rb, line 375
def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  if attributes.has_key?(:'active')
    self.active = attributes[:'active']
  end

  if attributes.has_key?(:'category_id')
    self.category_id = attributes[:'category_id']
  end

  if attributes.has_key?(:'category_specifics')
    if (value = attributes[:'category_specifics']).is_a?(Array)
      self.category_specifics = value
    end
  end

  if attributes.has_key?(:'condition_description')
    self.condition_description = attributes[:'condition_description']
  end

  if attributes.has_key?(:'condition_id')
    self.condition_id = attributes[:'condition_id']
  end

  if attributes.has_key?(:'consecutive_failures')
    self.consecutive_failures = attributes[:'consecutive_failures']
  end

  if attributes.has_key?(:'custom_category1')
    self.custom_category1 = attributes[:'custom_category1']
  end

  if attributes.has_key?(:'custom_category2')
    self.custom_category2 = attributes[:'custom_category2']
  end

  if attributes.has_key?(:'dispatch_time_max')
    self.dispatch_time_max = attributes[:'dispatch_time_max']
  end

  if attributes.has_key?(:'domestic_1_additional_cost')
    self.domestic_1_additional_cost = attributes[:'domestic_1_additional_cost']
  end

  if attributes.has_key?(:'domestic_1_first_cost')
    self.domestic_1_first_cost = attributes[:'domestic_1_first_cost']
  end

  if attributes.has_key?(:'domestic_2_additional_cost')
    self.domestic_2_additional_cost = attributes[:'domestic_2_additional_cost']
  end

  if attributes.has_key?(:'domestic_2_first_cost')
    self.domestic_2_first_cost = attributes[:'domestic_2_first_cost']
  end

  if attributes.has_key?(:'domestic_3_additional_cost')
    self.domestic_3_additional_cost = attributes[:'domestic_3_additional_cost']
  end

  if attributes.has_key?(:'domestic_3_first_cost')
    self.domestic_3_first_cost = attributes[:'domestic_3_first_cost']
  end

  if attributes.has_key?(:'domestic_4_additional_cost')
    self.domestic_4_additional_cost = attributes[:'domestic_4_additional_cost']
  end

  if attributes.has_key?(:'domestic_4_first_cost')
    self.domestic_4_first_cost = attributes[:'domestic_4_first_cost']
  end

  if attributes.has_key?(:'ebay_auction_id')
    self.ebay_auction_id = attributes[:'ebay_auction_id']
  end

  if attributes.has_key?(:'ebay_specific_inventory')
    self.ebay_specific_inventory = attributes[:'ebay_specific_inventory']
  end

  if attributes.has_key?(:'ebay_template_name')
    self.ebay_template_name = attributes[:'ebay_template_name']
  end

  if attributes.has_key?(:'ebay_template_oid')
    self.ebay_template_oid = attributes[:'ebay_template_oid']
  end

  if attributes.has_key?(:'end_time')
    self.end_time = attributes[:'end_time']
  end

  if attributes.has_key?(:'free_shipping')
    self.free_shipping = attributes[:'free_shipping']
  end

  if attributes.has_key?(:'free_shipping_method')
    self.free_shipping_method = attributes[:'free_shipping_method']
  end

  if attributes.has_key?(:'international_1_additional_cost')
    self.international_1_additional_cost = attributes[:'international_1_additional_cost']
  end

  if attributes.has_key?(:'international_1_first_cost')
    self.international_1_first_cost = attributes[:'international_1_first_cost']
  end

  if attributes.has_key?(:'international_2_additional_cost')
    self.international_2_additional_cost = attributes[:'international_2_additional_cost']
  end

  if attributes.has_key?(:'international_2_first_cost')
    self.international_2_first_cost = attributes[:'international_2_first_cost']
  end

  if attributes.has_key?(:'international_3_additional_cost')
    self.international_3_additional_cost = attributes[:'international_3_additional_cost']
  end

  if attributes.has_key?(:'international_3_first_cost')
    self.international_3_first_cost = attributes[:'international_3_first_cost']
  end

  if attributes.has_key?(:'international_4_additional_cost')
    self.international_4_additional_cost = attributes[:'international_4_additional_cost']
  end

  if attributes.has_key?(:'international_4_first_cost')
    self.international_4_first_cost = attributes[:'international_4_first_cost']
  end

  if attributes.has_key?(:'last_status_dts')
    self.last_status_dts = attributes[:'last_status_dts']
  end

  if attributes.has_key?(:'listed_dispatch_time_max')
    self.listed_dispatch_time_max = attributes[:'listed_dispatch_time_max']
  end

  if attributes.has_key?(:'listed_ebay_template_oid')
    self.listed_ebay_template_oid = attributes[:'listed_ebay_template_oid']
  end

  if attributes.has_key?(:'listing_dts')
    self.listing_dts = attributes[:'listing_dts']
  end

  if attributes.has_key?(:'listing_duration')
    self.listing_duration = attributes[:'listing_duration']
  end

  if attributes.has_key?(:'listing_price')
    self.listing_price = attributes[:'listing_price']
  end

  if attributes.has_key?(:'listing_price_override')
    self.listing_price_override = attributes[:'listing_price_override']
  end

  if attributes.has_key?(:'listing_type')
    self.listing_type = attributes[:'listing_type']
  end

  if attributes.has_key?(:'marketplace_analysis')
    self.marketplace_analysis = attributes[:'marketplace_analysis']
  end

  if attributes.has_key?(:'marketplace_analysis_perform')
    self.marketplace_analysis_perform = attributes[:'marketplace_analysis_perform']
  end

  if attributes.has_key?(:'marketplace_final_value_fee_percentage')
    self.marketplace_final_value_fee_percentage = attributes[:'marketplace_final_value_fee_percentage']
  end

  if attributes.has_key?(:'marketplace_last_check_dts')
    self.marketplace_last_check_dts = attributes[:'marketplace_last_check_dts']
  end

  if attributes.has_key?(:'marketplace_lowest')
    self.marketplace_lowest = attributes[:'marketplace_lowest']
  end

  if attributes.has_key?(:'marketplace_map_violation')
    self.marketplace_map_violation = attributes[:'marketplace_map_violation']
  end

  if attributes.has_key?(:'marketplace_multiplier')
    self.marketplace_multiplier = attributes[:'marketplace_multiplier']
  end

  if attributes.has_key?(:'marketplace_other_price')
    self.marketplace_other_price = attributes[:'marketplace_other_price']
  end

  if attributes.has_key?(:'marketplace_other_seller')
    self.marketplace_other_seller = attributes[:'marketplace_other_seller']
  end

  if attributes.has_key?(:'marketplace_other_shipping')
    self.marketplace_other_shipping = attributes[:'marketplace_other_shipping']
  end

  if attributes.has_key?(:'marketplace_other_total')
    self.marketplace_other_total = attributes[:'marketplace_other_total']
  end

  if attributes.has_key?(:'marketplace_our_additional_profit_potential')
    self.marketplace_our_additional_profit_potential = attributes[:'marketplace_our_additional_profit_potential']
  end

  if attributes.has_key?(:'marketplace_our_price')
    self.marketplace_our_price = attributes[:'marketplace_our_price']
  end

  if attributes.has_key?(:'marketplace_our_profit')
    self.marketplace_our_profit = attributes[:'marketplace_our_profit']
  end

  if attributes.has_key?(:'marketplace_our_shipping')
    self.marketplace_our_shipping = attributes[:'marketplace_our_shipping']
  end

  if attributes.has_key?(:'marketplace_our_total')
    self.marketplace_our_total = attributes[:'marketplace_our_total']
  end

  if attributes.has_key?(:'marketplace_overhead')
    self.marketplace_overhead = attributes[:'marketplace_overhead']
  end

  if attributes.has_key?(:'marketplace_profitable')
    self.marketplace_profitable = attributes[:'marketplace_profitable']
  end

  if attributes.has_key?(:'next_attempt_dts')
    self.next_attempt_dts = attributes[:'next_attempt_dts']
  end

  if attributes.has_key?(:'next_listing_duration')
    self.next_listing_duration = attributes[:'next_listing_duration']
  end

  if attributes.has_key?(:'no_promotional_shipping')
    self.no_promotional_shipping = attributes[:'no_promotional_shipping']
  end

  if attributes.has_key?(:'packaging_handling_costs')
    self.packaging_handling_costs = attributes[:'packaging_handling_costs']
  end

  if attributes.has_key?(:'previous_ebay_auction_id')
    self.previous_ebay_auction_id = attributes[:'previous_ebay_auction_id']
  end

  if attributes.has_key?(:'quantity')
    self.quantity = attributes[:'quantity']
  end

  if attributes.has_key?(:'reserve_price')
    self.reserve_price = attributes[:'reserve_price']
  end

  if attributes.has_key?(:'send_dimensions_and_weight')
    self.send_dimensions_and_weight = attributes[:'send_dimensions_and_weight']
  end

  if attributes.has_key?(:'start_time')
    self.start_time = attributes[:'start_time']
  end

  if attributes.has_key?(:'status')
    self.status = attributes[:'status']
  end

  if attributes.has_key?(:'target_dispatch_time_max')
    self.target_dispatch_time_max = attributes[:'target_dispatch_time_max']
  end
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/ultracart_api/models/item_ebay.rb, line 299
def self.swagger_types
  {
    :'active' => :'BOOLEAN',
    :'category_id' => :'Integer',
    :'category_specifics' => :'Array<ItemEbayCategorySpecific>',
    :'condition_description' => :'String',
    :'condition_id' => :'Integer',
    :'consecutive_failures' => :'Integer',
    :'custom_category1' => :'Integer',
    :'custom_category2' => :'Integer',
    :'dispatch_time_max' => :'Integer',
    :'domestic_1_additional_cost' => :'Float',
    :'domestic_1_first_cost' => :'Float',
    :'domestic_2_additional_cost' => :'Float',
    :'domestic_2_first_cost' => :'Float',
    :'domestic_3_additional_cost' => :'Float',
    :'domestic_3_first_cost' => :'Float',
    :'domestic_4_additional_cost' => :'Float',
    :'domestic_4_first_cost' => :'Float',
    :'ebay_auction_id' => :'String',
    :'ebay_specific_inventory' => :'Integer',
    :'ebay_template_name' => :'String',
    :'ebay_template_oid' => :'Integer',
    :'end_time' => :'String',
    :'free_shipping' => :'BOOLEAN',
    :'free_shipping_method' => :'String',
    :'international_1_additional_cost' => :'Float',
    :'international_1_first_cost' => :'Float',
    :'international_2_additional_cost' => :'Float',
    :'international_2_first_cost' => :'Float',
    :'international_3_additional_cost' => :'Float',
    :'international_3_first_cost' => :'Float',
    :'international_4_additional_cost' => :'Float',
    :'international_4_first_cost' => :'Float',
    :'last_status_dts' => :'String',
    :'listed_dispatch_time_max' => :'Integer',
    :'listed_ebay_template_oid' => :'Integer',
    :'listing_dts' => :'String',
    :'listing_duration' => :'String',
    :'listing_price' => :'Float',
    :'listing_price_override' => :'Float',
    :'listing_type' => :'String',
    :'marketplace_analysis' => :'ItemEbayMarketPlaceAnalysis',
    :'marketplace_analysis_perform' => :'BOOLEAN',
    :'marketplace_final_value_fee_percentage' => :'Float',
    :'marketplace_last_check_dts' => :'String',
    :'marketplace_lowest' => :'BOOLEAN',
    :'marketplace_map_violation' => :'BOOLEAN',
    :'marketplace_multiplier' => :'Float',
    :'marketplace_other_price' => :'Float',
    :'marketplace_other_seller' => :'String',
    :'marketplace_other_shipping' => :'Float',
    :'marketplace_other_total' => :'Float',
    :'marketplace_our_additional_profit_potential' => :'Float',
    :'marketplace_our_price' => :'Float',
    :'marketplace_our_profit' => :'Float',
    :'marketplace_our_shipping' => :'Float',
    :'marketplace_our_total' => :'Float',
    :'marketplace_overhead' => :'Float',
    :'marketplace_profitable' => :'BOOLEAN',
    :'next_attempt_dts' => :'String',
    :'next_listing_duration' => :'String',
    :'no_promotional_shipping' => :'BOOLEAN',
    :'packaging_handling_costs' => :'Float',
    :'previous_ebay_auction_id' => :'String',
    :'quantity' => :'Integer',
    :'reserve_price' => :'Float',
    :'send_dimensions_and_weight' => :'String',
    :'start_time' => :'String',
    :'status' => :'String',
    :'target_dispatch_time_max' => :'Integer'
  }
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/ultracart_api/models/item_ebay.rb, line 675
def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      active == o.active &&
      category_id == o.category_id &&
      category_specifics == o.category_specifics &&
      condition_description == o.condition_description &&
      condition_id == o.condition_id &&
      consecutive_failures == o.consecutive_failures &&
      custom_category1 == o.custom_category1 &&
      custom_category2 == o.custom_category2 &&
      dispatch_time_max == o.dispatch_time_max &&
      domestic_1_additional_cost == o.domestic_1_additional_cost &&
      domestic_1_first_cost == o.domestic_1_first_cost &&
      domestic_2_additional_cost == o.domestic_2_additional_cost &&
      domestic_2_first_cost == o.domestic_2_first_cost &&
      domestic_3_additional_cost == o.domestic_3_additional_cost &&
      domestic_3_first_cost == o.domestic_3_first_cost &&
      domestic_4_additional_cost == o.domestic_4_additional_cost &&
      domestic_4_first_cost == o.domestic_4_first_cost &&
      ebay_auction_id == o.ebay_auction_id &&
      ebay_specific_inventory == o.ebay_specific_inventory &&
      ebay_template_name == o.ebay_template_name &&
      ebay_template_oid == o.ebay_template_oid &&
      end_time == o.end_time &&
      free_shipping == o.free_shipping &&
      free_shipping_method == o.free_shipping_method &&
      international_1_additional_cost == o.international_1_additional_cost &&
      international_1_first_cost == o.international_1_first_cost &&
      international_2_additional_cost == o.international_2_additional_cost &&
      international_2_first_cost == o.international_2_first_cost &&
      international_3_additional_cost == o.international_3_additional_cost &&
      international_3_first_cost == o.international_3_first_cost &&
      international_4_additional_cost == o.international_4_additional_cost &&
      international_4_first_cost == o.international_4_first_cost &&
      last_status_dts == o.last_status_dts &&
      listed_dispatch_time_max == o.listed_dispatch_time_max &&
      listed_ebay_template_oid == o.listed_ebay_template_oid &&
      listing_dts == o.listing_dts &&
      listing_duration == o.listing_duration &&
      listing_price == o.listing_price &&
      listing_price_override == o.listing_price_override &&
      listing_type == o.listing_type &&
      marketplace_analysis == o.marketplace_analysis &&
      marketplace_analysis_perform == o.marketplace_analysis_perform &&
      marketplace_final_value_fee_percentage == o.marketplace_final_value_fee_percentage &&
      marketplace_last_check_dts == o.marketplace_last_check_dts &&
      marketplace_lowest == o.marketplace_lowest &&
      marketplace_map_violation == o.marketplace_map_violation &&
      marketplace_multiplier == o.marketplace_multiplier &&
      marketplace_other_price == o.marketplace_other_price &&
      marketplace_other_seller == o.marketplace_other_seller &&
      marketplace_other_shipping == o.marketplace_other_shipping &&
      marketplace_other_total == o.marketplace_other_total &&
      marketplace_our_additional_profit_potential == o.marketplace_our_additional_profit_potential &&
      marketplace_our_price == o.marketplace_our_price &&
      marketplace_our_profit == o.marketplace_our_profit &&
      marketplace_our_shipping == o.marketplace_our_shipping &&
      marketplace_our_total == o.marketplace_our_total &&
      marketplace_overhead == o.marketplace_overhead &&
      marketplace_profitable == o.marketplace_profitable &&
      next_attempt_dts == o.next_attempt_dts &&
      next_listing_duration == o.next_listing_duration &&
      no_promotional_shipping == o.no_promotional_shipping &&
      packaging_handling_costs == o.packaging_handling_costs &&
      previous_ebay_auction_id == o.previous_ebay_auction_id &&
      quantity == o.quantity &&
      reserve_price == o.reserve_price &&
      send_dimensions_and_weight == o.send_dimensions_and_weight &&
      start_time == o.start_time &&
      status == o.status &&
      target_dispatch_time_max == o.target_dispatch_time_max
end
_deserialize(type, value) click to toggle source

Deserializes the data based on type @param string type Data type @param string value Value to be deserialized @return [Object] Deserialized data

# File lib/ultracart_api/models/item_ebay.rb, line 785
def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :BOOLEAN
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    temp_model = UltracartClient.const_get(type).new
    temp_model.build_from_hash(value)
  end
end
_to_hash(value) click to toggle source

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value @param [Object] value Any valid value @return [Hash] Returns the value in the form of hash

# File lib/ultracart_api/models/item_ebay.rb, line 851
def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end
build_from_hash(attributes) click to toggle source

Builds the object from hash @param [Hash] attributes Model attributes in the form of hash @return [Object] Returns the model itself

# File lib/ultracart_api/models/item_ebay.rb, line 764
def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.swagger_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    end # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end
eql?(o) click to toggle source

@see the `==` method @param [Object] Object to be compared

# File lib/ultracart_api/models/item_ebay.rb, line 751
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/ultracart_api/models/item_ebay.rb, line 757
def hash
  [active, category_id, category_specifics, condition_description, condition_id, consecutive_failures, custom_category1, custom_category2, dispatch_time_max, domestic_1_additional_cost, domestic_1_first_cost, domestic_2_additional_cost, domestic_2_first_cost, domestic_3_additional_cost, domestic_3_first_cost, domestic_4_additional_cost, domestic_4_first_cost, ebay_auction_id, ebay_specific_inventory, ebay_template_name, ebay_template_oid, end_time, free_shipping, free_shipping_method, international_1_additional_cost, international_1_first_cost, international_2_additional_cost, international_2_first_cost, international_3_additional_cost, international_3_first_cost, international_4_additional_cost, international_4_first_cost, last_status_dts, listed_dispatch_time_max, listed_ebay_template_oid, listing_dts, listing_duration, listing_price, listing_price_override, listing_type, marketplace_analysis, marketplace_analysis_perform, marketplace_final_value_fee_percentage, marketplace_last_check_dts, marketplace_lowest, marketplace_map_violation, marketplace_multiplier, marketplace_other_price, marketplace_other_seller, marketplace_other_shipping, marketplace_other_total, marketplace_our_additional_profit_potential, marketplace_our_price, marketplace_our_profit, marketplace_our_shipping, marketplace_our_total, marketplace_overhead, marketplace_profitable, next_attempt_dts, next_listing_duration, no_promotional_shipping, packaging_handling_costs, previous_ebay_auction_id, quantity, reserve_price, send_dimensions_and_weight, start_time, status, target_dispatch_time_max].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/ultracart_api/models/item_ebay.rb, line 662
def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end
to_body() click to toggle source

to_body is an alias to to_hash (backward compatibility) @return [Hash] Returns the object in the form of hash

# File lib/ultracart_api/models/item_ebay.rb, line 831
def to_body
  to_hash
end
to_hash() click to toggle source

Returns the object in the form of hash @return [Hash] Returns the object in the form of hash

# File lib/ultracart_api/models/item_ebay.rb, line 837
def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    next if value.nil?
    hash[param] = _to_hash(value)
  end
  hash
end
to_s() click to toggle source

Returns the string representation of the object @return [String] String presentation of the object

# File lib/ultracart_api/models/item_ebay.rb, line 825
def to_s
  to_hash.to_s
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

# File lib/ultracart_api/models/item_ebay.rb, line 669
def valid?
  true
end