lib/ultracart_api/models/customer.rb in ultracart_api-3.10.155 vs lib/ultracart_api/models/customer.rb in ultracart_api-3.10.156
- old
+ new
@@ -127,10 +127,13 @@
# Pricing tiers for this customer
attr_accessor :pricing_tiers
attr_accessor :privacy
+ # Properties for this customer
+ attr_accessor :properties
+
# QuickBooks class to import this customer as
attr_accessor :qb_class
# QuickBooks name to import this customer as
attr_accessor :qb_code
@@ -233,10 +236,11 @@
:'orders' => :'orders',
:'orders_summary' => :'orders_summary',
:'password' => :'password',
:'pricing_tiers' => :'pricing_tiers',
:'privacy' => :'privacy',
+ :'properties' => :'properties',
:'qb_class' => :'qb_class',
:'qb_code' => :'qb_code',
:'qb_tax_exemption_reason_code' => :'qb_tax_exemption_reason_code',
:'quotes' => :'quotes',
:'quotes_summary' => :'quotes_summary',
@@ -301,10 +305,11 @@
:'orders' => :'Array<Order>',
:'orders_summary' => :'CustomerOrdersSummary',
:'password' => :'String',
:'pricing_tiers' => :'Array<CustomerPricingTier>',
:'privacy' => :'CustomerPrivacy',
+ :'properties' => :'Array<CustomerProperty>',
:'qb_class' => :'String',
:'qb_code' => :'String',
:'qb_tax_exemption_reason_code' => :'Integer',
:'quotes' => :'Array<Order>',
:'quotes_summary' => :'CustomerQuotesSummary',
@@ -506,10 +511,16 @@
if attributes.has_key?(:'privacy')
self.privacy = attributes[:'privacy']
end
+ if attributes.has_key?(:'properties')
+ if (value = attributes[:'properties']).is_a?(Array)
+ self.properties = value
+ end
+ end
+
if attributes.has_key?(:'qb_class')
self.qb_class = attributes[:'qb_class']
end
if attributes.has_key?(:'qb_code')
@@ -826,10 +837,11 @@
orders == o.orders &&
orders_summary == o.orders_summary &&
password == o.password &&
pricing_tiers == o.pricing_tiers &&
privacy == o.privacy &&
+ properties == o.properties &&
qb_class == o.qb_class &&
qb_code == o.qb_code &&
qb_tax_exemption_reason_code == o.qb_tax_exemption_reason_code &&
quotes == o.quotes &&
quotes_summary == o.quotes_summary &&
@@ -859,10 +871,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, 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, 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