lib/ultracart_api/models/item.rb in ultracart_api-3.6.18 vs lib/ultracart_api/models/item.rb in ultracart_api-3.6.19

- old
+ new

@@ -46,10 +46,13 @@ attr_accessor :email_notifications attr_accessor :enrollment123 + # Fulfillment Add-ons + attr_accessor :fulfillment_addons + attr_accessor :gift_certificate attr_accessor :google_product_search attr_accessor :identifiers @@ -149,10 +152,11 @@ :'description_translated_text_instance_oid' => :'description_translated_text_instance_oid', :'digital_delivery' => :'digital_delivery', :'ebay' => :'ebay', :'email_notifications' => :'email_notifications', :'enrollment123' => :'enrollment123', + :'fulfillment_addons' => :'fulfillment_addons', :'gift_certificate' => :'gift_certificate', :'google_product_search' => :'google_product_search', :'identifiers' => :'identifiers', :'inactive' => :'inactive', :'instant_payment_notifications' => :'instant_payment_notifications', @@ -205,10 +209,11 @@ :'description_translated_text_instance_oid' => :'Integer', :'digital_delivery' => :'ItemDigitalDelivery', :'ebay' => :'ItemEbay', :'email_notifications' => :'ItemEmailNotifications', :'enrollment123' => :'ItemEnrollment123', + :'fulfillment_addons' => :'Array<ItemFulfillmentAddon>', :'gift_certificate' => :'ItemGiftCertificate', :'google_product_search' => :'ItemGoogleProductSearch', :'identifiers' => :'ItemIdentifiers', :'inactive' => :'BOOLEAN', :'instant_payment_notifications' => :'ItemInstantPaymentNotifications', @@ -313,10 +318,16 @@ if attributes.has_key?(:'enrollment123') self.enrollment123 = attributes[:'enrollment123'] end + if attributes.has_key?(:'fulfillment_addons') + if (value = attributes[:'fulfillment_addons']).is_a?(Array) + self.fulfillment_addons = value + end + end + if attributes.has_key?(:'gift_certificate') self.gift_certificate = attributes[:'gift_certificate'] end if attributes.has_key?(:'google_product_search') @@ -542,10 +553,11 @@ description_translated_text_instance_oid == o.description_translated_text_instance_oid && digital_delivery == o.digital_delivery && ebay == o.ebay && email_notifications == o.email_notifications && enrollment123 == o.enrollment123 && + fulfillment_addons == o.fulfillment_addons && gift_certificate == o.gift_certificate && google_product_search == o.google_product_search && identifiers == o.identifiers && inactive == o.inactive && instant_payment_notifications == o.instant_payment_notifications && @@ -588,10 +600,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def 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 + [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, fulfillment_addons, 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