Class: Brainshell::Commands::Customer
- Inherits:
-
Base
- Object
- Thor
- Base
- Brainshell::Commands::Customer
show all
- Defined in:
- lib/brainshell/commands/customer.rb
Constant Summary
ValueFormatter::KNOWN_FORMAT_METHODS
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
define_query_options
#format_value
Class Method Details
.multiple_search_fields ⇒ Object
14
15
16
|
# File 'lib/brainshell/commands/customer.rb', line 14
def multiple_search_fields
%w(ids).freeze
end
|
.range_search_fields ⇒ Object
18
19
20
|
# File 'lib/brainshell/commands/customer.rb', line 18
def range_search_fields
%w(created_at).freeze
end
|
.text_search_fields ⇒ Object
7
8
9
10
11
12
|
# File 'lib/brainshell/commands/customer.rb', line 7
def text_search_fields
%w(address_country_name address_extended_address address_first_name
address_last_name address_locality address_postal_code address_region address_street_address cardholder_name
company credit_card_expiration_date credit_card_number email fax first_name id last_name payment_method_token
payment_method_token_with_duplicates paypal_account_email phone website).freeze
end
|
Instance Method Details
#find(id) ⇒ Object
25
26
27
28
|
# File 'lib/brainshell/commands/customer.rb', line 25
def find(id)
customer = Braintree::Customer.find(id)
build_table([customer])
end
|
#query ⇒ Object
32
33
34
|
# File 'lib/brainshell/commands/customer.rb', line 32
def query
run_query Braintree::Customer
end
|