lib/chargebee/models/customer.rb in chargebee-2.5.4 vs lib/chargebee/models/customer.rb in chargebee-2.5.5
- old
+ new
@@ -22,14 +22,14 @@
end
attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
:net_term_days, :allow_direct_debit, :created_at, :created_from_ip, :taxability, :entity_code,
:exempt_number, :resource_version, :updated_at, :locale, :consolidated_invoicing, :billing_date,
- :billing_date_mode, :billing_day_of_week, :billing_day_of_week_mode, :card_status, :fraud_flag,
- :primary_payment_source_id, :backup_payment_source_id, :billing_address, :referral_urls, :contacts,
- :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits, :unbilled_charges,
- :refundable_credits, :excess_payments, :balances, :meta_data, :deleted, :registered_for_gst
+ :billing_date_mode, :billing_day_of_week, :billing_day_of_week_mode, :pii_cleared, :card_status,
+ :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address, :referral_urls,
+ :contacts, :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits,
+ :unbilled_charges, :refundable_credits, :excess_payments, :balances, :meta_data, :deleted, :registered_for_gst
# OPERATIONS
#-----------
def self.create(params={}, env=nil, headers={})
@@ -104,9 +104,17 @@
Request.send('post', uri_path("customers","move"), params, env, headers)
end
def self.change_billing_date(id, params={}, env=nil, headers={})
Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers)
+ end
+
+ def self.merge(params, env=nil, headers={})
+ Request.send('post', uri_path("customers","merge"), params, env, headers)
+ end
+
+ def self.clear_personal_data(id, env=nil, headers={})
+ Request.send('post', uri_path("customers",id.to_s,"clear_personal_data"), {}, env, headers)
end
end # ~Customer
end # ~ChargeBee
\ No newline at end of file