Class: OnlinePayments::SDK::Merchant::MerchantClient

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/onlinepayments/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:



25
26
27
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 25

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

Instance Method Details

#hosted_checkoutOnlinePayments::SDK::Merchant::HostedCheckout::HostedCheckoutClient

Resource /v2/{merchantId}/hostedcheckouts



31
32
33
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 31

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

#hosted_tokenizationOnlinePayments::SDK::Merchant::HostedTokenization::HostedTokenizationClient

Resource /v2/{merchantId}/hostedtokenizations



37
38
39
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 37

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

#mandatesOnlinePayments::SDK::Merchant::Mandates::MandatesClient

Resource /v2/{merchantId}/mandates



43
44
45
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 43

def mandates
  OnlinePayments::SDK::Merchant::Mandates::MandatesClient.new(self, nil)
end

Resource /v2/{merchantId}/paymentlinks



49
50
51
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 49

def payment_links
  OnlinePayments::SDK::Merchant::PaymentLinks::PaymentLinksClient.new(self, nil)
end

#paymentsOnlinePayments::SDK::Merchant::Payments::PaymentsClient

Resource /v2/{merchantId}/payments



55
56
57
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 55

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

#payoutsOnlinePayments::SDK::Merchant::Payouts::PayoutsClient

Resource /v2/{merchantId}/payouts



61
62
63
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 61

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

#product_groupsOnlinePayments::SDK::Merchant::ProductGroups::ProductGroupsClient

Resource /v2/{merchantId}/productgroups



67
68
69
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 67

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

#productsOnlinePayments::SDK::Merchant::Products::ProductsClient

Resource /v2/{merchantId}/products



73
74
75
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 73

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

#servicesOnlinePayments::SDK::Merchant::Services::ServicesClient

Resource /v2/{merchantId}/services



79
80
81
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 79

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

#sessionsOnlinePayments::SDK::Merchant::Sessions::SessionsClient

Resource /v2/{merchantId}/sessions



85
86
87
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 85

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

#tokensOnlinePayments::SDK::Merchant::Tokens::TokensClient

Resource /v2/{merchantId}/tokens



91
92
93
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 91

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