Braintree.Search (Braintree v0.13.0)
This module performs advanced search on a resource.
For additional reference see: https://developers.braintreepayments.com/reference/general/searching/search-fields/ruby
Link to this section Summary
Functions
Perform an advanced search on a given resource and create new structs based on the initializer given.
Link to this section Functions
Link to this function
perform(params, resource, initializer, opts \\ [])
@spec perform(map(), String.t(), (... -> any()), Keyword.t()) :: {:ok, [any()]} | {:error, Braintree.ErrorResponse.t()}
Perform an advanced search on a given resource and create new structs based on the initializer given.
example
Example
search_params = %{first_name: %{is: "Jenna"}} {:ok, customers} = Braintree.Search.perform(search_params, "customers", &Braintree.Customer.new/1)