Module: GarnetClient
- Defined in:
- lib/garnet_client.rb,
lib/garnet_client/engine.rb,
lib/garnet_client/result.rb,
lib/garnet_client/railtie.rb,
lib/garnet_client/service.rb,
lib/garnet_client/version.rb,
lib/garnet_client/utils/http_request.rb,
app/models/garnet_client/notice_deposit.rb,
app/controllers/garnet_notify_controller.rb,
app/models/garnet_client/notice_withdraw.rb,
app/models/garnet_client/notice_transaction.rb
Defined Under Namespace
Modules: Utils Classes: Engine, GarnetNotifyController, MigrationGenerator, NoticeDeposit, NoticeTransaction, NoticeWithdraw, Railtie, Result, Service
Constant Summary collapse
- API_POST_NOTICE_DEPOSIT_URL =
接口路径
'/api/garnet_client/notify_deposits'- API_POST_NOTICE_WITHDRAW_URL =
接口路径
'/api/garnet_client/notify_withdraws'- API_POST_NOTICE_TX_URL =
接口路径
'/api/garnet_client/notify_transactions'- VERSION =
"0.1.10"
Class Attribute Summary collapse
-
.api_base_url ⇒ Object
Returns the value of attribute api_base_url.
-
.debug_mode ⇒ Object
mer_id 商户账号 mer_key 加密key.
-
.tenant_id ⇒ Object
mer_id 商户账号 mer_key 加密key.
Class Method Summary collapse
Class Attribute Details
.api_base_url ⇒ Object
Returns the value of attribute api_base_url.
26 27 28 |
# File 'lib/garnet_client.rb', line 26 def api_base_url @api_base_url end |
.debug_mode ⇒ Object
mer_id 商户账号mer_key 加密key
25 26 27 |
# File 'lib/garnet_client.rb', line 25 def debug_mode @debug_mode end |
.tenant_id ⇒ Object
mer_id 商户账号mer_key 加密key
25 26 27 |
# File 'lib/garnet_client.rb', line 25 def tenant_id @tenant_id end |
Class Method Details
.debug_mode? ⇒ Boolean
40 41 42 |
# File 'lib/garnet_client.rb', line 40 def debug_mode? @debug_mode end |
.response_headers ⇒ Object
32 33 34 35 36 37 |
# File 'lib/garnet_client.rb', line 32 def response_headers params = {"Content-Type" => @content_type, "tenant-id" => @tenant_id} response_headers = params response_headers end |