Module: Hyperwallet::Client::User
- Included in:
- Hyperwallet::Client
- Defined in:
- lib/hyperwallet/resources/user.rb
Constant Summary collapse
- PATH =
'users'.freeze
Instance Method Summary collapse
- #create_user(program_token:, client_user_id:, email:, profile_type: 'BUSINESS', business_type: 'NOT_FOR_PROFIT_ORGANIZATION', business_name:, address:, city:, state:, postal_code:, country: 'US') ⇒ Object
- #find_user(id) ⇒ Object
- #list_users(options = {}) ⇒ Object
Instance Method Details
#create_user(program_token:, client_user_id:, email:, profile_type: 'BUSINESS', business_type: 'NOT_FOR_PROFIT_ORGANIZATION', business_name:, address:, city:, state:, postal_code:, country: 'US') ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/hyperwallet/resources/user.rb', line 14 def create_user( program_token:, client_user_id:, email:, profile_type: 'BUSINESS', business_type: 'NOT_FOR_PROFIT_ORGANIZATION', business_name:, address:, city:, state:, postal_code:, country: 'US' ) = { programToken: program_token, clientUserId: client_user_id, profileType: profile_type, email: email, businessType: business_type, businessName: business_name, addressLine1: address, city: city, stateProvince: state, postalCode: postal_code, country: country } post(user_path, ) end |
#find_user(id) ⇒ Object
10 11 12 |
# File 'lib/hyperwallet/resources/user.rb', line 10 def find_user(id) get(user_path(id)) end |
#list_users(options = {}) ⇒ Object
6 7 8 |
# File 'lib/hyperwallet/resources/user.rb', line 6 def list_users( = {}) get(user_path, ) end |