lib/ultracart_api/models/customer.rb in ultracart_api-3.10.167 vs lib/ultracart_api/models/customer.rb in ultracart_api-3.10.168

- old
+ new

@@ -68,10 +68,13 @@ attr_accessor :dhl_account_number # DHL duty account number attr_accessor :dhl_duty_account_number + # Do not send mail (null will not update) + attr_accessor :do_not_send_mail + attr_accessor :edi # Email address of this customer profile attr_accessor :email @@ -215,10 +218,11 @@ :'cards' => :'cards', :'cc_emails' => :'cc_emails', :'customer_profile_oid' => :'customer_profile_oid', :'dhl_account_number' => :'dhl_account_number', :'dhl_duty_account_number' => :'dhl_duty_account_number', + :'do_not_send_mail' => :'do_not_send_mail', :'edi' => :'edi', :'email' => :'email', :'exempt_shipping_handling_charge' => :'exempt_shipping_handling_charge', :'fedex_account_number' => :'fedex_account_number', :'free_shipping' => :'free_shipping', @@ -284,10 +288,11 @@ :'cards' => :'Array<CustomerCard>', :'cc_emails' => :'Array<CustomerEmail>', :'customer_profile_oid' => :'Integer', :'dhl_account_number' => :'String', :'dhl_duty_account_number' => :'String', + :'do_not_send_mail' => :'BOOLEAN', :'edi' => :'CustomerEDI', :'email' => :'String', :'exempt_shipping_handling_charge' => :'BOOLEAN', :'fedex_account_number' => :'String', :'free_shipping' => :'BOOLEAN', @@ -423,10 +428,14 @@ if attributes.has_key?(:'dhl_duty_account_number') self.dhl_duty_account_number = attributes[:'dhl_duty_account_number'] end + if attributes.has_key?(:'do_not_send_mail') + self.do_not_send_mail = attributes[:'do_not_send_mail'] + end + if attributes.has_key?(:'edi') self.edi = attributes[:'edi'] end if attributes.has_key?(:'email') @@ -816,10 +825,11 @@ cards == o.cards && cc_emails == o.cc_emails && customer_profile_oid == o.customer_profile_oid && dhl_account_number == o.dhl_account_number && dhl_duty_account_number == o.dhl_duty_account_number && + do_not_send_mail == o.do_not_send_mail && edi == o.edi && email == o.email && exempt_shipping_handling_charge == o.exempt_shipping_handling_charge && fedex_account_number == o.fedex_account_number && free_shipping == o.free_shipping && @@ -871,10 +881,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, edi, 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, properties, qb_class, qb_code, qb_tax_exemption_reason_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, do_not_send_mail, edi, 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, properties, qb_class, qb_code, qb_tax_exemption_reason_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