Sha256: 4754b67dad74f8ce80c864db88986a482823d3ee220d64ef691c4512f1bf5e71
Contents?: true
Size: 877 Bytes
Versions: 4
Compression:
Stored size: 877 Bytes
Contents
module Paysafe module REST class Client extend Forwardable delegate [:account_number, :api_base, :api_key, :api_secret, :test_mode, :timeout] => :@config # Initializes a new Client object # # @param options [Hash] # @return [Paysafe::REST::Client] def initialize(**options) @config = Configuration.new(**options) end # @return [Hash] def credentials { api_key: api_key, api_secret: api_secret } end # @return [Boolean] def credentials? credentials.values.all? end def customer_vault @customer_vault ||= Api::CustomerVaultApi.new(@config) end def card_payments @card_payments ||= Api::CardPaymentsApi.new(@config) end def payments @payments ||= Api::PaymentsApi.new(@config) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
paysafe-0.16.0 | lib/paysafe/rest/client.rb |
paysafe-0.15.0 | lib/paysafe/rest/client.rb |
paysafe-0.14.0 | lib/paysafe/rest/client.rb |
paysafe-0.13.0 | lib/paysafe/rest/client.rb |