Class: Malipopay::Resources::References
- Inherits:
-
Object
- Object
- Malipopay::Resources::References
- Defined in:
- lib/malipopay/resources/references.rb
Instance Method Summary collapse
-
#banks(params = {}) ⇒ Hash
List all supported banks.
-
#business_types(params = {}) ⇒ Hash
List business types.
-
#countries(params = {}) ⇒ Hash
List all supported countries.
-
#currencies(params = {}) ⇒ Hash
List all supported currencies.
-
#initialize(http_client) ⇒ References
constructor
A new instance of References.
-
#institutions(params = {}) ⇒ Hash
List all supported financial institutions.
Constructor Details
#initialize(http_client) ⇒ References
Returns a new instance of References.
6 7 8 |
# File 'lib/malipopay/resources/references.rb', line 6 def initialize(http_client) @http = http_client end |
Instance Method Details
#banks(params = {}) ⇒ Hash
List all supported banks
13 14 15 |
# File 'lib/malipopay/resources/references.rb', line 13 def banks(params = {}) @http.get("/api/v1/standard/banks", params: params) end |
#business_types(params = {}) ⇒ Hash
List business types
41 42 43 |
# File 'lib/malipopay/resources/references.rb', line 41 def business_types(params = {}) @http.get("/api/v1/standard/businessType", params: params) end |
#countries(params = {}) ⇒ Hash
List all supported countries
34 35 36 |
# File 'lib/malipopay/resources/references.rb', line 34 def countries(params = {}) @http.get("/api/v1/standard/countries", params: params) end |
#currencies(params = {}) ⇒ Hash
List all supported currencies
27 28 29 |
# File 'lib/malipopay/resources/references.rb', line 27 def currencies(params = {}) @http.get("/api/v1/standard/currency", params: params) end |
#institutions(params = {}) ⇒ Hash
List all supported financial institutions
20 21 22 |
# File 'lib/malipopay/resources/references.rb', line 20 def institutions(params = {}) @http.get("/api/v1/standard/institutions", params: params) end |