lib/ultracart_api/models/customer.rb in ultracart_api-3.10.55 vs lib/ultracart_api/models/customer.rb in ultracart_api-3.10.56

- old
+ new

@@ -94,10 +94,13 @@ attr_accessor :loyalty # Maximum item count attr_accessor :maximum_item_count + # Merchant ID + attr_accessor :merchant_id + # Minimum item count attr_accessor :minimum_item_count # Minimum subtotal attr_accessor :minimum_subtotal @@ -213,10 +216,11 @@ :'free_shipping_minimum' => :'free_shipping_minimum', :'last_modified_by' => :'last_modified_by', :'last_modified_dts' => :'last_modified_dts', :'loyalty' => :'loyalty', :'maximum_item_count' => :'maximum_item_count', + :'merchant_id' => :'merchant_id', :'minimum_item_count' => :'minimum_item_count', :'minimum_subtotal' => :'minimum_subtotal', :'no_coupons' => :'no_coupons', :'no_free_shipping' => :'no_free_shipping', :'no_realtime_charge' => :'no_realtime_charge', @@ -278,10 +282,11 @@ :'free_shipping_minimum' => :'Float', :'last_modified_by' => :'String', :'last_modified_dts' => :'String', :'loyalty' => :'CustomerLoyalty', :'maximum_item_count' => :'Integer', + :'merchant_id' => :'String', :'minimum_item_count' => :'Integer', :'minimum_subtotal' => :'Float', :'no_coupons' => :'BOOLEAN', :'no_free_shipping' => :'BOOLEAN', :'no_realtime_charge' => :'BOOLEAN', @@ -440,10 +445,14 @@ if attributes.has_key?(:'maximum_item_count') self.maximum_item_count = attributes[:'maximum_item_count'] end + if attributes.has_key?(:'merchant_id') + self.merchant_id = attributes[:'merchant_id'] + end + if attributes.has_key?(:'minimum_item_count') self.minimum_item_count = attributes[:'minimum_item_count'] end if attributes.has_key?(:'minimum_subtotal') @@ -788,10 +797,11 @@ free_shipping_minimum == o.free_shipping_minimum && last_modified_by == o.last_modified_by && last_modified_dts == o.last_modified_dts && loyalty == o.loyalty && maximum_item_count == o.maximum_item_count && + merchant_id == o.merchant_id && minimum_item_count == o.minimum_item_count && minimum_subtotal == o.minimum_subtotal && no_coupons == o.no_coupons && no_free_shipping == o.no_free_shipping && no_realtime_charge == o.no_realtime_charge && @@ -830,10 +840,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [activity, affiliate_oid, allow_3rd_party_billing, allow_cod, allow_drop_shipping, allow_purchase_order, allow_quote_request, allow_selection_of_address_type, attachments, auto_approve_cod, auto_approve_purchase_order, automatic_merchant_notes, billing, business_notes, cards, cc_emails, customer_profile_oid, dhl_account_number, dhl_duty_account_number, email, exempt_shipping_handling_charge, fedex_account_number, free_shipping, free_shipping_minimum, last_modified_by, last_modified_dts, loyalty, maximum_item_count, minimum_item_count, minimum_subtotal, no_coupons, no_free_shipping, no_realtime_charge, orders, orders_summary, password, pricing_tiers, privacy, qb_class, qb_code, quotes, quotes_summary, referral_source, reviewer, sales_rep_code, send_signup_notification, shipping, signup_dts, software_entitlements, suppress_buysafe, tags, tax_codes, tax_exempt, tax_id, terms, track_separately, unapproved, ups_account_number, website_url].hash + [activity, affiliate_oid, allow_3rd_party_billing, allow_cod, allow_drop_shipping, allow_purchase_order, allow_quote_request, allow_selection_of_address_type, attachments, auto_approve_cod, auto_approve_purchase_order, automatic_merchant_notes, billing, business_notes, cards, cc_emails, customer_profile_oid, dhl_account_number, dhl_duty_account_number, email, exempt_shipping_handling_charge, fedex_account_number, free_shipping, free_shipping_minimum, last_modified_by, last_modified_dts, loyalty, maximum_item_count, merchant_id, minimum_item_count, minimum_subtotal, no_coupons, no_free_shipping, no_realtime_charge, orders, orders_summary, password, pricing_tiers, privacy, qb_class, qb_code, quotes, quotes_summary, referral_source, reviewer, sales_rep_code, send_signup_notification, shipping, signup_dts, software_entitlements, suppress_buysafe, tags, tax_codes, tax_exempt, tax_id, terms, track_separately, unapproved, ups_account_number, website_url].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself