Sha256: 78c6d8af395d3fef3b3e310c574867fb23096590c74865b04e9315d63a2d3f78

Contents?: true

Size: 573 Bytes

Versions: 9

Compression:

Stored size: 573 Bytes

Contents

require_relative './service'
module Adyen
  class PosMobile < Service
    attr_accessor :service, :version

    DEFAULT_VERSION = 68
    def initialize(client, version = DEFAULT_VERSION)
      super(client, version, 'PosMobile')
    end

    def create_communication_session(request, headers: {})
      endpoint = '/sessions'.gsub(/{.+?}/, '%s')
      endpoint = endpoint.gsub(%r{^/}, '')
      endpoint = format(endpoint)
      
      action = { method: 'post', url: endpoint }
      @client.call_adyen_api(@service, action, request, headers, @version)
    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
adyen-ruby-api-library-10.0.0 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.9.0 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.8.0 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.7.1 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.7.0 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.6.0 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.5.2 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.5.1 lib/adyen/services/posMobile.rb
adyen-ruby-api-library-9.5.0 lib/adyen/services/posMobile.rb