class Paysafe::REST::Client
Public Class Methods
new(**options)
click to toggle source
Initializes a new Client
object
@param options [Hash] @return [Paysafe::REST::Client]
# File lib/paysafe/rest/client.rb, line 12 def initialize(**options) @config = Configuration.new(**options) end
Public Instance Methods
card_payments()
click to toggle source
# File lib/paysafe/rest/client.rb, line 30 def card_payments @card_payments ||= Api::CardPaymentsApi.new(@config) end
credentials()
click to toggle source
@return [Hash]
# File lib/paysafe/rest/client.rb, line 17 def credentials { api_key: api_key, api_secret: api_secret } end
credentials?()
click to toggle source
@return [Boolean]
# File lib/paysafe/rest/client.rb, line 22 def credentials? credentials.values.all? end
customer_vault()
click to toggle source
# File lib/paysafe/rest/client.rb, line 26 def customer_vault @customer_vault ||= Api::CustomerVaultApi.new(@config) end
payments()
click to toggle source
# File lib/paysafe/rest/client.rb, line 34 def payments @payments ||= Api::PaymentsApi.new(@config) end