lib/ultracart_api/models/item.rb in ultracart_api-3.1.42 vs lib/ultracart_api/models/item.rb in ultracart_api-3.1.43

- old
+ new

@@ -21,11 +21,11 @@ attr_accessor :auto_order attr_accessor :ccbill # Channel Partner Item Mapping - attr_accessor :channel_partner_mappings + attr_accessor :channel_partner_item_mappings attr_accessor :chargeback attr_accessor :checkout @@ -138,11 +138,11 @@ { :'accounting' => :'accounting', :'amember' => :'amember', :'auto_order' => :'auto_order', :'ccbill' => :'ccbill', - :'channel_partner_mappings' => :'channelPartnerMappings', + :'channel_partner_item_mappings' => :'channel_partner_item_mappings', :'chargeback' => :'chargeback', :'checkout' => :'checkout', :'content' => :'content', :'creation_dts' => :'creation_dts', :'description' => :'description', @@ -194,11 +194,11 @@ { :'accounting' => :'ItemAccounting', :'amember' => :'ItemAmember', :'auto_order' => :'ItemAutoOrder', :'ccbill' => :'ItemCCBill', - :'channel_partner_mappings' => :'Array<ItemChannelPartnerMapping>', + :'channel_partner_item_mappings' => :'Array<ItemChannelPartnerMapping>', :'chargeback' => :'ItemChargeback', :'checkout' => :'ItemCheckout', :'content' => :'ItemContent', :'creation_dts' => :'String', :'description' => :'String', @@ -267,13 +267,13 @@ if attributes.has_key?(:'ccbill') self.ccbill = attributes[:'ccbill'] end - if attributes.has_key?(:'channelPartnerMappings') - if (value = attributes[:'channelPartnerMappings']).is_a?(Array) - self.channel_partner_mappings = value + if attributes.has_key?(:'channel_partner_item_mappings') + if (value = attributes[:'channel_partner_item_mappings']).is_a?(Array) + self.channel_partner_item_mappings = value end end if attributes.has_key?(:'chargeback') self.chargeback = attributes[:'chargeback'] @@ -531,11 +531,11 @@ self.class == o.class && accounting == o.accounting && amember == o.amember && auto_order == o.auto_order && ccbill == o.ccbill && - channel_partner_mappings == o.channel_partner_mappings && + channel_partner_item_mappings == o.channel_partner_item_mappings && chargeback == o.chargeback && checkout == o.checkout && content == o.content && creation_dts == o.creation_dts && description == o.description && @@ -588,10 +588,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [accounting, amember, auto_order, ccbill, channel_partner_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash + [accounting, amember, auto_order, ccbill, channel_partner_item_mappings, chargeback, checkout, content, creation_dts, description, description_translated_text_instance_oid, digital_delivery, ebay, email_notifications, enrollment123, gift_certificate, google_product_search, identifiers, inactive, instant_payment_notifications, internal, kit, kit_component_only, kit_definition, last_modified_dts, merchant_id, merchant_item_id, merchant_item_oid, options, parent_category_id, parent_category_path, payment_processing, physical, pricing, properties, realtime_pricing, recommend_replenishment_days, related, reporting, restriction, revguard, reviews, salesforce, shipping, tags, tax, third_party_email_marketing, variant_items, variations, wishlist_member].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself