Class: Worldline::Acquiring::SDK::V1::V1Client

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/v1/v1_client.rb

Overview

V1 client.

Thread safe.

Instance Attribute Summary

Attributes inherited from ApiResource

#communicator

Instance Method Summary collapse

Constructor Details

#initialize(parent, path_context) ⇒ V1Client

Returns a new instance of V1Client.

Parameters:



19
20
21
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 19

def initialize(parent, path_context)
  super(parent: parent, path_context: path_context)
end

Instance Method Details

#acquirer(acquirer_id) ⇒ Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient

Resource /processing/v1/acquirerId

Parameters:

  • acquirer_id (String)

Returns:



27
28
29
30
31
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 27

def acquirer(acquirer_id)
  Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient.new(self, {
    'acquirerId'.freeze => acquirer_id,
  })
end

#pingWorldline::Acquiring::SDK::V1::Ping::PingClient

Resource /services/v1/ping



36
37
38
# File 'lib/worldline/acquiring/sdk/v1/v1_client.rb', line 36

def ping
  Worldline::Acquiring::SDK::V1::Ping::PingClient.new(self, nil)
end