Class: Worldline::Acquiring::SDK::V1::Acquirer::AcquirerClient

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

Overview

Acquirer client. Thread-safe.

Instance Attribute Summary

Attributes inherited from ApiResource

#communicator

Instance Method Summary collapse

Constructor Details

#initialize(parent, path_context) ⇒ AcquirerClient

Returns a new instance of AcquirerClient.

Parameters:



17
18
19
# File 'lib/worldline/acquiring/sdk/v1/acquirer/acquirer_client.rb', line 17

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

Instance Method Details

#merchant(merchant_id) ⇒ Worldline::Acquiring::SDK::V1::Acquirer::Merchant::MerchantClient

Resource /processing/v1/acquirerId/merchantId

Parameters:

  • merchant_id (String)

Returns:



25
26
27
28
29
# File 'lib/worldline/acquiring/sdk/v1/acquirer/acquirer_client.rb', line 25

def merchant(merchant_id)
  Worldline::Acquiring::SDK::V1::Acquirer::Merchant::MerchantClient.new(self, {
    'merchantId'.freeze => merchant_id,
  })
end