Class: Ingenico::Direct::SDK::Merchant::MerchantClient

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/ingenico/direct/sdk/merchant/merchant_client.rb

Overview

Merchant client. Thread-safe.

Instance Attribute Summary

Attributes inherited from ApiResource

#client_meta_info, #communicator

Instance Method Summary collapse

Constructor Details

#initialize(parent, path_context = nil) ⇒ MerchantClient

Returns a new instance of MerchantClient.

Parameters:



24
25
26
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 24

def initialize(parent, path_context = nil)
  super(parent, path_context)
end

Instance Method Details

#hosted_checkoutIngenico::Direct::SDK::Merchant::HostedCheckout::HostedCheckoutClient

Resource /v2/{merchantId}/hostedcheckouts



30
31
32
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 30

def hosted_checkout
  Ingenico::Direct::SDK::Merchant::HostedCheckout::HostedCheckoutClient.new(self, nil)
end

#hosted_tokenizationIngenico::Direct::SDK::Merchant::HostedTokenization::HostedTokenizationClient

Resource /v2/{merchantId}/hostedtokenizations



36
37
38
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 36

def hosted_tokenization
  Ingenico::Direct::SDK::Merchant::HostedTokenization::HostedTokenizationClient.new(self, nil)
end

#paymentsIngenico::Direct::SDK::Merchant::Payments::PaymentsClient

Resource /v2/{merchantId}/payments



42
43
44
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 42

def payments
  Ingenico::Direct::SDK::Merchant::Payments::PaymentsClient.new(self, nil)
end

#payoutsIngenico::Direct::SDK::Merchant::Payouts::PayoutsClient

Resource /v2/{merchantId}/payouts



48
49
50
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 48

def payouts
  Ingenico::Direct::SDK::Merchant::Payouts::PayoutsClient.new(self, nil)
end

#product_groupsIngenico::Direct::SDK::Merchant::ProductGroups::ProductGroupsClient

Resource /v2/{merchantId}/productgroups



54
55
56
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 54

def product_groups
  Ingenico::Direct::SDK::Merchant::ProductGroups::ProductGroupsClient.new(self, nil)
end

#productsIngenico::Direct::SDK::Merchant::Products::ProductsClient

Resource /v2/{merchantId}/products



60
61
62
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 60

def products
  Ingenico::Direct::SDK::Merchant::Products::ProductsClient.new(self, nil)
end

#servicesIngenico::Direct::SDK::Merchant::Services::ServicesClient

Resource /v2/{merchantId}/services



66
67
68
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 66

def services
  Ingenico::Direct::SDK::Merchant::Services::ServicesClient.new(self, nil)
end

#sessionsIngenico::Direct::SDK::Merchant::Sessions::SessionsClient

Resource /v2/{merchantId}/sessions



72
73
74
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 72

def sessions
  Ingenico::Direct::SDK::Merchant::Sessions::SessionsClient.new(self, nil)
end

#tokensIngenico::Direct::SDK::Merchant::Tokens::TokensClient

Resource /v2/{merchantId}/tokens



78
79
80
# File 'lib/ingenico/direct/sdk/merchant/merchant_client.rb', line 78

def tokens
  Ingenico::Direct::SDK::Merchant::Tokens::TokensClient.new(self, nil)
end