lib/braintree/customer.rb in braintree-2.6.3 vs lib/braintree/customer.rb in braintree-2.7.0
- old
+ new
@@ -65,9 +65,14 @@
# See http://www.braintreepaymentsolutions.com/docs/ruby/transactions/create_from_vault
def self.sale!(customer_id, transaction_attributes)
return_object_or_raise(:transaction) { sale(customer_id, transaction_attributes) }
end
+ # See http://www.braintreepaymentsolutions.com/docs/ruby/customers/search
+ def self.search(&block)
+ Configuration.gateway.customer.search(&block)
+ end
+
# Returns a ResourceCollection of transactions for the customer with the given +customer_id+.
def self.transactions(customer_id, options = {})
Configuration.gateway.customer.transactions(customer_id, options = {})
end