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
-
#captures ⇒ OnlinePayments::SDK::Merchant::Captures::CapturesClient
Resource /v2/merchantId/payments/paymentId/captures.
-
#complete ⇒ OnlinePayments::SDK::Merchant::Complete::CompleteClient
Resource /v2/merchantId/payments/paymentId/complete.
-
#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) ⇒ 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/payoutId.
-
#privacy_policy ⇒ OnlinePayments::SDK::Merchant::PrivacyPolicy::PrivacyPolicyClient
Resource /v2/merchantId/services/privacypolicy.
-
#product_groups ⇒ OnlinePayments::SDK::Merchant::ProductGroups::ProductGroupsClient
Resource /v2/merchantId/productgroups.
-
#products ⇒ OnlinePayments::SDK::Merchant::Products::ProductsClient
Resource /v2/merchantId/products.
-
#refunds ⇒ OnlinePayments::SDK::Merchant::Refunds::RefundsClient
Resource /v2/merchantId/payments/paymentId/refunds.
-
#services ⇒ OnlinePayments::SDK::Merchant::Services::ServicesClient
Resource /v2/merchantId/services/testconnection.
-
#sessions ⇒ OnlinePayments::SDK::Merchant::Sessions::SessionsClient
Resource /v2/merchantId/sessions.
-
#subsequent ⇒ OnlinePayments::SDK::Merchant::Subsequent::SubsequentClient
Resource /v2/merchantId/payments/paymentId/subsequent.
-
#tokens ⇒ OnlinePayments::SDK::Merchant::Tokens::TokensClient
Resource /v2/merchantId/tokens/tokenId.
-
#webhooks ⇒ OnlinePayments::SDK::Merchant::Webhooks::WebhooksClient
Resource /v2/merchantId/webhooks/validateCredentials.
Constructor Details
#initialize(parent, path_context) ⇒ MerchantClient
Returns a new instance of MerchantClient.
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
#captures ⇒ OnlinePayments::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 |
#complete ⇒ OnlinePayments::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_checkout ⇒ OnlinePayments::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_tokenization ⇒ OnlinePayments::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 |
#mandates ⇒ OnlinePayments::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 |
#payment_links ⇒ OnlinePayments::SDK::Merchant::PaymentLinks::PaymentLinksClient
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 |
#payments ⇒ OnlinePayments::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 |
#payouts ⇒ OnlinePayments::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_policy ⇒ OnlinePayments::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_groups ⇒ OnlinePayments::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 |
#products ⇒ OnlinePayments::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 |
#refunds ⇒ OnlinePayments::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 |
#services ⇒ OnlinePayments::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 |
#sessions ⇒ OnlinePayments::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 |
#subsequent ⇒ OnlinePayments::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 |
#tokens ⇒ OnlinePayments::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 |
#webhooks ⇒ OnlinePayments::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 |