Class: Worldline::Connect::SDK::V1::V1Client

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

Overview

V1 client.

Thread safe.

Instance Attribute Summary

Attributes inherited from ApiResource

#client_meta_info, #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/connect/sdk/v1/v1_client.rb', line 19

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

Instance Method Details

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

Resource /{merchantId}

Parameters:

  • merchant_id (String)

Returns:



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

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