Class: OnlinePayments::SDK::Merchant::MerchantClient
- Inherits:
-
ApiResource
- Object
- ApiResource
- OnlinePayments::SDK::Merchant::MerchantClient
- 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
-
#hosted_checkout ⇒ OnlinePayments::SDK::Merchant::HostedCheckout::HostedCheckoutClient
Resource /v2/{merchantId}/hostedcheckouts.
-
#hosted_tokenization ⇒ OnlinePayments::SDK::Merchant::HostedTokenization::HostedTokenizationClient
Resource /v2/{merchantId}/hostedtokenizations.
-
#initialize(parent, path_context = nil) ⇒ MerchantClient
constructor
A new instance of MerchantClient.
-
#mandates ⇒ OnlinePayments::SDK::Merchant::Mandates::MandatesClient
Resource /v2/{merchantId}/mandates.
-
#payment_links ⇒ OnlinePayments::SDK::Merchant::PaymentLinks::PaymentLinksClient
Resource /v2/{merchantId}/paymentlinks.
-
#payments ⇒ OnlinePayments::SDK::Merchant::Payments::PaymentsClient
Resource /v2/{merchantId}/payments.
-
#payouts ⇒ OnlinePayments::SDK::Merchant::Payouts::PayoutsClient
Resource /v2/{merchantId}/payouts.
-
#product_groups ⇒ OnlinePayments::SDK::Merchant::ProductGroups::ProductGroupsClient
Resource /v2/{merchantId}/productgroups.
-
#products ⇒ OnlinePayments::SDK::Merchant::Products::ProductsClient
Resource /v2/{merchantId}/products.
-
#services ⇒ OnlinePayments::SDK::Merchant::Services::ServicesClient
Resource /v2/{merchantId}/services.
-
#sessions ⇒ OnlinePayments::SDK::Merchant::Sessions::SessionsClient
Resource /v2/{merchantId}/sessions.
-
#tokens ⇒ OnlinePayments::SDK::Merchant::Tokens::TokensClient
Resource /v2/{merchantId}/tokens.
Constructor Details
#initialize(parent, path_context = nil) ⇒ MerchantClient
Returns a new instance of MerchantClient.
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_checkout ⇒ OnlinePayments::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_tokenization ⇒ OnlinePayments::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 |
#mandates ⇒ OnlinePayments::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 |
#payment_links ⇒ OnlinePayments::SDK::Merchant::PaymentLinks::PaymentLinksClient
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 |
#payments ⇒ OnlinePayments::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 |
#payouts ⇒ OnlinePayments::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_groups ⇒ OnlinePayments::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 |
#products ⇒ OnlinePayments::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 |
#services ⇒ OnlinePayments::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 |
#sessions ⇒ OnlinePayments::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 |
#tokens ⇒ OnlinePayments::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 |