Class: CheckoutSdk::Forward::ForwardClient

Inherits:
Client
  • Object
show all
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

Constructor Details

#initialize(api_client, configuration) ⇒ ForwardClient

Returns a new instance of ForwardClient.

Parameters:



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

Parameters:

  • forward_request (Hash)


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), sdk_authorization, forward_request)
end

#get(forward_id) ⇒ Object

Parameters:

  • forward_id (String)


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), sdk_authorization)
end