Class: CheckoutSdk::Forward::ForwardClient
- Defined in:
- lib/checkout_sdk/forward/forward_client.rb
Instance Attribute Summary
Attributes inherited from Client
#api_client, #authorization_type, #configuration
Instance Method Summary collapse
- #forward_request(forward_request) ⇒ Object
- #get(forward_id) ⇒ Object
-
#initialize(api_client, configuration) ⇒ ForwardClient
constructor
A new instance of ForwardClient.
Constructor Details
#initialize(api_client, configuration) ⇒ ForwardClient
Returns a new instance of ForwardClient.
11 12 13 |
# File 'lib/checkout_sdk/forward/forward_client.rb', line 11 def initialize(api_client, configuration) super(api_client, configuration, CheckoutSdk::AuthorizationType::SECRET_KEY_OR_OAUTH) end |
Instance Method Details
#forward_request(forward_request) ⇒ Object
16 17 18 |
# File 'lib/checkout_sdk/forward/forward_client.rb', line 16 def forward_request(forward_request) api_client.invoke_post(build_path(FORWARD), , forward_request) end |
#get(forward_id) ⇒ Object
21 22 23 |
# File 'lib/checkout_sdk/forward/forward_client.rb', line 21 def get(forward_id) api_client.invoke_get(build_path(FORWARD, forward_id), ) end |