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) ⇒ MerchantClient

Returns a new instance of MerchantClient.

Parameters:



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

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

Instance Method Details

#capturesOnlinePayments::SDK::Merchant::Captures::CapturesClient

Resource /v2/merchantId/payments/paymentId/captures



59
60
61
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 59

def captures
  OnlinePayments::SDK::Merchant::Captures::CapturesClient.new(self, nil)
end

#completeOnlinePayments::SDK::Merchant::Complete::CompleteClient

Resource /v2/merchantId/payments/paymentId/complete



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

def complete
  OnlinePayments::SDK::Merchant::Complete::CompleteClient.new(self, nil)
end

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

Resource /v2/merchantId/hostedcheckouts



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

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

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

Resource /v2/merchantId/hostedtokenizations



45
46
47
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 45

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

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

Resource /v2/merchantId/mandates



136
137
138
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 136

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

Resource /v2/merchantId/paymentlinks



150
151
152
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 150

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

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

Resource /v2/merchantId/payments



52
53
54
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 52

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

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

Resource /v2/merchantId/payouts/payoutId



129
130
131
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 129

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

#privacy_policyOnlinePayments::SDK::Merchant::PrivacyPolicy::PrivacyPolicyClient

Resource /v2/merchantId/services/privacypolicy



143
144
145
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 143

def privacy_policy
  OnlinePayments::SDK::Merchant::PrivacyPolicy::PrivacyPolicyClient.new(self, nil)
end

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

Resource /v2/merchantId/productgroups



87
88
89
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 87

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

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

Resource /v2/merchantId/products



94
95
96
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 94

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

#refundsOnlinePayments::SDK::Merchant::Refunds::RefundsClient

Resource /v2/merchantId/payments/paymentId/refunds



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

def refunds
  OnlinePayments::SDK::Merchant::Refunds::RefundsClient.new(self, nil)
end

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

Resource /v2/merchantId/services/testconnection



101
102
103
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 101

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

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

Resource /v2/merchantId/sessions



115
116
117
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 115

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

#subsequentOnlinePayments::SDK::Merchant::Subsequent::SubsequentClient

Resource /v2/merchantId/payments/paymentId/subsequent



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

def subsequent
  OnlinePayments::SDK::Merchant::Subsequent::SubsequentClient.new(self, nil)
end

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

Resource /v2/merchantId/tokens/tokenId



122
123
124
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 122

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

#webhooksOnlinePayments::SDK::Merchant::Webhooks::WebhooksClient

Resource /v2/merchantId/webhooks/validateCredentials



108
109
110
# File 'lib/onlinepayments/sdk/merchant/merchant_client.rb', line 108

def webhooks
  OnlinePayments::SDK::Merchant::Webhooks::WebhooksClient.new(self, nil)
end