lib/braintree/customer.rb in braintree-2.5.2 vs lib/braintree/customer.rb in braintree-2.6.0
- old
+ new
@@ -132,19 +132,19 @@
# Deprecated. Use Braintree::Customer.sale
#
# See http://www.braintreepaymentsolutions.com/docs/ruby/transactions/create_from_vault
def sale(transaction_attributes)
- warn "[DEPRECATED] sale as an instance method is deprecated. Please use CreditCard.sale"
+ warn "[DEPRECATED] sale as an instance method is deprecated. Please use Customer.sale"
@gateway.transaction.sale(transaction_attributes.merge(:customer_id => id))
end
# Deprecated. Use Braintree::Customer.sale!
#
# See http://www.braintreepaymentsolutions.com/docs/ruby/transactions/create_from_vault
def sale!(transaction_attributes)
- warn "[DEPRECATED] sale! as an instance method is deprecated. Please use CreditCard.sale!"
+ warn "[DEPRECATED] sale! as an instance method is deprecated. Please use Customer.sale!"
return_object_or_raise(:transaction) { sale(transaction_attributes) }
end
# Returns a ResourceCollection of transactions for the customer.
def transactions(options = {})
@@ -153,11 +153,11 @@
# Deprecated. Use Braintree::Customer.update
#
# See http://www.braintreepaymentsolutions.com/docs/ruby/customers/update
def update(attributes)
- warn "[DEPRECATED] update as an instance method is deprecated. Please use CreditCard.update"
+ warn "[DEPRECATED] update as an instance method is deprecated. Please use Customer.update"
result = @gateway.customer.update(id, attributes)
if result.success?
copy_instance_variables_from_object result.customer
end
result
@@ -165,10 +165,10 @@
# Deprecated. Use Braintree::Customer.update!
#
# See http://www.braintreepaymentsolutions.com/docs/ruby/customers/update
def update!(attributes)
- warn "[DEPRECATED] update! as an instance method is deprecated. Please use CreditCard.update!"
+ warn "[DEPRECATED] update! as an instance method is deprecated. Please use Customer.update!"
return_object_or_raise(:customer) { update(attributes) }
end
# Returns true if +other+ is a Customer with the same id
def ==(other)