Class: CheckoutSdk::Risk::RiskClient
- Defined in:
- lib/checkout_sdk/risk/risk_client.rb
Overview
@deprecated Risk endpoints are no longer supported officially, This module will be removed in a future release.
Instance Attribute Summary
Attributes inherited from Client
#api_client, #authorization_type, #configuration
Instance Method Summary collapse
-
#initialize(api_client, configuration) ⇒ RiskClient
constructor
A new instance of RiskClient.
- #pre_authentication_scan(pre_authentication_request) ⇒ Object
- #pre_capture_scan(pre_capture_request) ⇒ Object
Constructor Details
#initialize(api_client, configuration) ⇒ RiskClient
Returns a new instance of RiskClient.
14 15 16 |
# File 'lib/checkout_sdk/risk/risk_client.rb', line 14 def initialize(api_client, configuration) super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY) end |
Instance Method Details
#pre_authentication_scan(pre_authentication_request) ⇒ Object
19 20 21 |
# File 'lib/checkout_sdk/risk/risk_client.rb', line 19 def pre_authentication_scan(pre_authentication_request) api_client.invoke_post(PRE_AUTHENTICATION, , pre_authentication_request) end |
#pre_capture_scan(pre_capture_request) ⇒ Object
24 25 26 |
# File 'lib/checkout_sdk/risk/risk_client.rb', line 24 def pre_capture_scan(pre_capture_request) api_client.invoke_post(PRE_CAPTURE, , pre_capture_request) end |