Class: BankOfThailand::Resources::LicenseCheck
- Inherits:
-
BankOfThailand::Resource
- Object
- BankOfThailand::Resource
- BankOfThailand::Resources::LicenseCheck
- Defined in:
- lib/bank_of_thailand/resources/statistics.rb
Overview
BOT License Check Public API
API for checking licenses or registrations for businesses under the supervision of the Bank of Thailand, such as P-Loan, Nano Finance, e-Money.
Constant Summary collapse
- BASE_URL =
Base URL for this API (overrides the global base URL)
"https://gateway.api.bot.or.th/BotLicenseCheckAPI"
Instance Attribute Summary
Attributes inherited from BankOfThailand::Resource
Instance Method Summary collapse
-
#authorized_detail(id:) ⇒ Hash
Get authorized entity details.
-
#license(auth_id:, doc_id:) ⇒ Hash
Get license details.
-
#search_authorized(keyword:, page: nil, limit: nil) ⇒ Hash
Search for authorized entities.
Methods inherited from BankOfThailand::Resource
Constructor Details
This class inherits a constructor from BankOfThailand::Resource
Instance Method Details
#authorized_detail(id:) ⇒ Hash
Get authorized entity details
65 66 67 |
# File 'lib/bank_of_thailand/resources/statistics.rb', line 65 def (id:) get_with_base_url("#{BASE_URL}/AuthorizedDetail", id: id) end |
#license(auth_id:, doc_id:) ⇒ Hash
Get license details
50 51 52 53 54 55 56 |
# File 'lib/bank_of_thailand/resources/statistics.rb', line 50 def license(auth_id:, doc_id:) get_with_base_url( "#{BASE_URL}/License", authId: auth_id, docId: doc_id ) end |
#search_authorized(keyword:, page: nil, limit: nil) ⇒ Hash
Search for authorized entities
31 32 33 34 35 36 37 |
# File 'lib/bank_of_thailand/resources/statistics.rb', line 31 def (keyword:, page: nil, limit: nil) params = { keyword: keyword } params[:page] = page if page params[:limit] = limit if limit get_with_base_url("#{BASE_URL}/SearchAuthorized", params) end |