Class: Payassist::Bank
Overview
Get Banks API
Instance Method Summary collapse
Methods inherited from Client
#handle_error, #interpret_response, #send_request
Instance Method Details
#all ⇒ Object
9 10 11 12 |
# File 'lib/payassist/bank.rb', line 9 def all body = prepare_body("BanksAll", {}) send_request(path: "bank/all", body: body, method: :get) end |
#by_phone(number) ⇒ Object
14 15 16 17 |
# File 'lib/payassist/bank.rb', line 14 def by_phone(number) body = prepare_body("BanksAllByNumber", {}) send_request(path: "bank/#{number}", body: body, method: :get) end |