Sha256: c098d7722fdf45f9abca5d1d4d951a10f7f8a94292d2c0bb977a9179eb581403

Contents?: true

Size: 1.25 KB

Versions: 6

Compression:

Stored size: 1.25 KB

Contents

require_relative 'checkout/classic_checkout_sdk_api'
require_relative 'checkout/modifications_api'
require_relative 'checkout/orders_api'
require_relative 'checkout/payment_links_api'
require_relative 'checkout/payments_api'
require_relative 'checkout/recurring_api'
require_relative 'checkout/utility_api'

module Adyen
  class Checkout
    attr_accessor :service, :version

    DEFAULT_VERSION = 70
    def initialize(client, version = DEFAULT_VERSION)
      @service = 'Checkout'
      @client = client
      @version = version
    end

    def classic_checkout_sdk_api
      @classic_checkout_sdk_api ||= Adyen::ClassicCheckoutSDKApi.new(@client, @version)
    end

    def modifications_api
      @modifications_api ||= Adyen::ModificationsApi.new(@client, @version)
    end

    def orders_api
      @orders_api ||= Adyen::OrdersApi.new(@client, @version)
    end

    def payment_links_api
      @payment_links_api ||= Adyen::PaymentLinksApi.new(@client, @version)
    end

    def payments_api
      @payments_api ||= Adyen::PaymentsApi.new(@client, @version)
    end

    def recurring_api
      @recurring_api ||= Adyen::RecurringApi.new(@client, @version)
    end

    def utility_api
      @utility_api ||= Adyen::UtilityApi.new(@client, @version)
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adyen-ruby-api-library-7.3.1 lib/adyen/services/checkout.rb
adyen-ruby-api-library-7.3.0 lib/adyen/services/checkout.rb
adyen-ruby-api-library-7.2.0 lib/adyen/services/checkout.rb
adyen-ruby-api-library-7.1.0 lib/adyen/services/checkout.rb
adyen-ruby-api-library-7.0.3 lib/adyen/services/checkout.rb
adyen-ruby-api-library-7.0.2 lib/adyen/services/checkout.rb