Class: Payassist::Bank

Inherits:
Client
  • Object
show all
Defined in:
lib/payassist/bank.rb

Overview

Get Banks API

Instance Method Summary collapse

Methods inherited from Client

#handle_error, #interpret_response, #send_request

Instance Method Details

#allObject



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