Module: RegApi2::User
Overview
REG.API user category
Instance Method Summary collapse
-
#create(opts = {}) ⇒ String
New user registration.
-
#get_balance(opts = {}) ⇒ Hash(currency, prepay, blocked, credit)
View current balance.
-
#get_statistics(opts = {}) ⇒ Hash(costs_for_period, active_domains_cnt, active_domains_get_ctrl_cnt, renew_domains_cnt, ...)
Get user statistics.
-
#nop ⇒ void
Accessibility testing.
-
#refill_balance(opts = {}) ⇒ Hash(total_payment, ...)
Add funds to the account.
Methods included from Builder
Instance Method Details
#create(opts = {}) ⇒ String
Note:
Accessability: partners
New user registration.
28 |
# File 'lib/reg_api2/user.rb', line 28 define :create, required: %w[ user_login user_password user_email user_country_code ], field: :user_id |
#get_balance(opts = {}) ⇒ Hash(currency, prepay, blocked, credit)
Note:
Accessability: clients
Note:
Support of service lists: no
View current balance.
47 |
# File 'lib/reg_api2/user.rb', line 47 define :get_balance, required: %w[ currency ] |
#get_statistics(opts = {}) ⇒ Hash(costs_for_period, active_domains_cnt, active_domains_get_ctrl_cnt, renew_domains_cnt, ...)
Note:
Accessability: clients
Note:
Support of service lists: no
Get user statistics.
38 |
# File 'lib/reg_api2/user.rb', line 38 define :get_statistics, optional: %w[ date_till date_from ] |
#nop ⇒ void
This method returns an undefined value.
Accessibility testing.
17 |
# File 'lib/reg_api2/user.rb', line 17 define :nop |
#refill_balance(opts = {}) ⇒ Hash(total_payment, ...)
Note:
Accessability: clients
Note:
Support of service lists: no
Add funds to the account. Allows sending invoices to WebMoney and Yandex.Dengi.
61 |
# File 'lib/reg_api2/user.rb', line 61 define :refill_balance, required: %w[ pay_type wmid currency amount ] |